Re: [FFmpeg-user] Poor quality output when converting avi to mp4
Gyan, just wanted to let you know that mp4box has been fixed. They actually had a fix for me to test by Friday, but I didn't see the message until Saturday and couldn't test before Monday. As of yesterday both versions are fixed, and the fixed versions can be found here: all versions should now include this fix, including win32 builds - so you can use any of the files at https://gpac.wp.imt.fr/downloads/gpac-nightly-builds/ where revNNN NNN>=208 I don't know when they will update the official download page but the bug report I submitted has been closed. So now that this problem has been taken care of as well, I will post to the superuser site as soon as I get a chance and explain the fix you found for me to convert bad AVI videos to mp4. Thanks again for your help. Ute On Thu, Jul 27, 2017 at 10:46 PM, Gyan wrote: > On Fri, Jul 28, 2017 at 3:56 AM, Ute Willmore > wrote: > > > > Which version are you using Gyan? Maybe I can get the same version? I > > really don't want to start all over trying to find a way to extract the > raw > > video with a different application. > > > > It's built as part of this suite from the current git master: > https://github.com/jb-alvarado/media-autobuild_suite > > Can you share one of these larger files? > ___ > ffmpeg-user mailing list > ffmpeg-user@ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > > To unsubscribe, visit link above, or email > ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe". ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user To unsubscribe, visit link above, or email ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
Re: [FFmpeg-user] Poor quality output when converting avi to mp4
On Tue, Aug 1, 2017 at 12:11 AM, Ute Willmore wrote: > I still plan on posting the solution to the superuser group, to answer my > own question on that group from 2 weeks ago, but not until I know when GPAC > will release the test version I have to their official download site. No > sense in telling people about the solution until they can get the fixed > version of mp4box. > You can post it now if you like. GPAC has the commit publicly*, so users can get the nightly if they need this fix. * https://github.com/gpac/gpac/commit/90af13a1e45eb1ec3d774a50ddbbfe30c8c8e83b ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user To unsubscribe, visit link above, or email ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
Re: [FFmpeg-user] Poor quality output when converting avi to mp4
William, thanks for the reply but mp4box has been fixed and I got a test version from GPAC support on Friday. So I'll just stick with that. I went to the site you suggested but the site was out of date, the last update was in 2013. I could not find anything about command line options in the documentation, and without the ability to run from the command line VirtualDub does not work for me. Thanks for trying Ute On Thu, Jul 27, 2017 at 5:59 PM, William Caulfield < william.caulfi...@contentbridge.tv> wrote: > On Thu, Jul 27, 2017 at 3:26 PM, Ute Willmore > wrote: > > > Unfortunately, I ran into a serious problem with the solution you > provided, > > Gyan. > > I don't recall if I mentioned already that the 64 bit version of mp4box I > > got from https://gpac.wp.imt.fr/downloads/gpac-nightly-builds/ doesn't > > work > > at all for me. I always get a message from Windows saying the application > > stopped working. > > > > > If you're on Windows, check out http://www.virtualdub.org/ It was always > the goto player/converter for AVI. You should be able to bring in your AVI > and output to a more standard YUY2. > > -- > > *William Caulfield *| *ContentBridge Systems* > ___ > ffmpeg-user mailing list > ffmpeg-user@ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > > To unsubscribe, visit link above, or email > ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe". ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user To unsubscribe, visit link above, or email ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
Re: [FFmpeg-user] Poor quality output when converting avi to mp4
Gyan, the problem has been solved! I had reported a bug with the GPAC support site, and someone named A. David got back to me on Friday to let me know he/she thinks he fixed it.The email was in my spam folder and I didn't find it until Saturday, but man was I surprised and relieved to see it. I tested the new 64 bit version this morning and it extracted the video from a 7.5 GB video in about 30 second. FFMPEG extracted the audio from the original avi file, combined it with the raw video mp4box created and scaled the video to 640:480 and converted everything to mp4 in 8.5 minutes. I am happy with that and so is my supervisor. It looks like this time, the problem is really solved. So, thanks again for your help. I very much appreciate it. I assume you no longer need one of my larger video files, since mp4box is fixed. I really don't know how to get one to you anyway. I don't have that much space left in my Dropbox account and I doubt I can email it to you. If you still want one, let me know and maybe we can figure something out. I still plan on posting the solution to the superuser group, to answer my own question on that group from 2 weeks ago, but not until I know when GPAC will release the test version I have to their official download site. No sense in telling people about the solution until they can get the fixed version of mp4box. Ute On Thu, Jul 27, 2017 at 10:46 PM, Gyan wrote: > On Fri, Jul 28, 2017 at 3:56 AM, Ute Willmore > wrote: > > > > Which version are you using Gyan? Maybe I can get the same version? I > > really don't want to start all over trying to find a way to extract the > raw > > video with a different application. > > > > It's built as part of this suite from the current git master: > https://github.com/jb-alvarado/media-autobuild_suite > > Can you share one of these larger files? > ___ > ffmpeg-user mailing list > ffmpeg-user@ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > > To unsubscribe, visit link above, or email > ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe". ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user To unsubscribe, visit link above, or email ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
Re: [FFmpeg-user] Poor quality output when converting avi to mp4
On Fri, Jul 28, 2017 at 3:56 AM, Ute Willmore wrote: > Which version are you using Gyan? Maybe I can get the same version? I > really don't want to start all over trying to find a way to extract the raw > video with a different application. > It's built as part of this suite from the current git master: https://github.com/jb-alvarado/media-autobuild_suite Can you share one of these larger files? ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user To unsubscribe, visit link above, or email ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
Re: [FFmpeg-user] Poor quality output when converting avi to mp4
On Thu, Jul 27, 2017 at 3:26 PM, Ute Willmore wrote: > Unfortunately, I ran into a serious problem with the solution you provided, > Gyan. > I don't recall if I mentioned already that the 64 bit version of mp4box I > got from https://gpac.wp.imt.fr/downloads/gpac-nightly-builds/ doesn't > work > at all for me. I always get a message from Windows saying the application > stopped working. > > If you're on Windows, check out http://www.virtualdub.org/ It was always the goto player/converter for AVI. You should be able to bring in your AVI and output to a more standard YUY2. -- *William Caulfield *| *ContentBridge Systems* ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user To unsubscribe, visit link above, or email ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
Re: [FFmpeg-user] Poor quality output when converting avi to mp4
Unfortunately, I ran into a serious problem with the solution you provided, Gyan. I don't recall if I mentioned already that the 64 bit version of mp4box I got from https://gpac.wp.imt.fr/downloads/gpac-nightly-builds/ doesn't work at all for me. I always get a message from Windows saying the application stopped working. I was able to use the 32 bit version on the short 18 second video I was using for testing (hd.avi). But when I tried a larger file yesterday to see how long mp4box would take to extract the raw video, it also crashed with that same message: *mp4box has stopped working. A problem caused the program to stop working correctly. Windows will close the program and notify you if a solution is available.* File I tried to process is just under 70 kb large but we need to process much larger files than that. I have one sample file that is almost 180 kb in size and he files could be larger than that. I first got the latest daily build of the 32 bit and 64 bit Windows versions from GPAC. When I noticed the crash, I went to their official download site and got both version there, but they both crash when I run a larger file in mp4box. The 32 bit version can handle the short test file but the 64 bit version will crash even with the small file. I started the debugger and found out the problem is an unhandled exception. There is also a Error message in the systems Application log, but it doesn't tell me anything helpful either. I will file a new issue in the GitHub but I don't expect an answer quick enough to help. Which version are you using Gyan? Maybe I can get the same version? I really don't want to start all over trying to find a way to extract the raw video with a different application. Anyway help would be appreciated. Thanks again Ute On Wed, Jul 26, 2017 at 11:15 PM, Gyan wrote: > On Thu, Jul 27, 2017 at 12:29 AM, Ute Willmore > wrote: > > > > > > *Would you mind if I posted your solution on the super user group?* I > just > > want other users of ffmpeg to have this solution available to them. It > > could save someone a lot of time and frustration. > > I will also include the bug report Carl Eugen Hoyos filed. > > > > You're welcome. Go ahead at SU. > ___ > ffmpeg-user mailing list > ffmpeg-user@ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > > To unsubscribe, visit link above, or email > ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe". ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user To unsubscribe, visit link above, or email ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
Re: [FFmpeg-user] Poor quality output when converting avi to mp4
On Thu, Jul 27, 2017 at 12:29 AM, Ute Willmore wrote: > > *Would you mind if I posted your solution on the super user group?* I just > want other users of ffmpeg to have this solution available to them. It > could save someone a lot of time and frustration. > I will also include the bug report Carl Eugen Hoyos filed. > You're welcome. Go ahead at SU. ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user To unsubscribe, visit link above, or email ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
Re: [FFmpeg-user] Poor quality output when converting avi to mp4
Carl Eugen, My supervisor told me that this happens only when we save the video to a DVR after recording it, and then download it to a PC to play it. If the video is NOT saved to the DVR, i.e. downloaded to the PC from the video camera, the video is fine and conversion/scaling is no problem. I hope this helps to narrow down the problem for you. Thanks for filing the bug report. Ute On Tue, Jul 25, 2017 at 1:12 AM, Carl Eugen Hoyos wrote: > 2017-07-24 20:55 GMT+02:00 Gyan : > > As best as I can tell, ffmpeg does have issues with parsing non-standard > > H.264 bitstreams. It's certainly not as resilient as other decoders. > > Could you elaborate? > FFmpeg decoders (and demuxers) were written with the intent to > read as many non-standard files as possible and this is what we > have been experiencing (for a decade) - bugs such as the one > described in this ticket are of course possible. > > Do you have (many) samples that fail with FFmpeg but work with > other decoders? > > Or do you mean that error resilience for damaged (as opposed to > non-standard) H.264 is not as good as expected? Use > single-threaded decoding for improved error resilience with FFmpeg. > (Multi-threaded error resilience is non-trivial, and multi-threaded > decoding seemed - much - more important a few years ago than > error resilience.) > > Carl Eugen > ___ > ffmpeg-user mailing list > ffmpeg-user@ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > > To unsubscribe, visit link above, or email > ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe". ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user To unsubscribe, visit link above, or email ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
Re: [FFmpeg-user] Poor quality output when converting avi to mp4
Thanks Gyan! You are a life saver! I really want you to know how grateful I am that you helped me with this problem. I had tried so many different ways to get this solved and got nowhere. I asked for help on the superuser group, but got none. I tried different converters but it seemed there was always a problem. For example: I tried again to do this with VLC yesterday when I couldn't figure out how to do it with mp4box. I found the command to extract the video from the avi file rather quickly but could not get the audio extracted. I found examples for extracting audio from an avi file, but they never worked for me. There is a way to convert an avi file into an mp4 file in a single step, called a "Dump", using the GUI. After hours of trying to reproduce the results on the command line, I gave up. Of course, if I had looked at your original post again, I would have seen the command to get the audio using ffmpeg, but I had been reading the mp4box documentation and found the command to extract the raw video. I recognized it as the one you used in your first reply. I also saw commands for getting Audio but again, I could not get it to work. Well, maybe that wasn't for mp4box. :-) I have tried to many tools and read so much online documentation it is hard to recall what I found for what tool. :-) Anyway, I wanted to do this is as few steps as possible using a few tools as possible, which is why I didn't even think of using ffmpeg to get the audio and combine audio and video. But, the solution you provided will do. If my supervisor doesn't like it, he can try to figure out something else. :-) I think he will be very happy though. He tried to solve this for days, before he assigned the task to me. *Would you mind if I posted your solution on the super user group?* I just want other users of ffmpeg to have this solution available to them. It could save someone a lot of time and frustration. I will also include the bug report Carl Eugen Hoyos filed. *I will of course give you credit for finding the solution.* Again, thank you very much for your help! You have been awesome!!! Ute On Wed, Jul 26, 2017 at 10:38 AM, Gyan wrote: > On Wed, Jul 26, 2017 at 9:50 PM, Ute Willmore > wrote: > > > > That helps, but I don't see the second command to get the audio or use > > ffmpeg to play the video. > > > > The 2nd command in my original post (where I presented this method). > > It is, > > ffmpeg -v verbose -i hd_video.h264 -i hd.avi -map 0 -map 1:a -vf > scale=640:480 out.mp4 > > Gyan > ___ > ffmpeg-user mailing list > ffmpeg-user@ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > > To unsubscribe, visit link above, or email > ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe". ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user To unsubscribe, visit link above, or email ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
Re: [FFmpeg-user] Poor quality output when converting avi to mp4
On Wed, Jul 26, 2017 at 9:50 PM, Ute Willmore wrote: > That helps, but I don't see the second command to get the audio or use > ffmpeg to play the video. > The 2nd command in my original post (where I presented this method). It is, ffmpeg -v verbose -i hd_video.h264 -i hd.avi -map 0 -map 1:a -vf scale=640:480 out.mp4 Gyan ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user To unsubscribe, visit link above, or email ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
Re: [FFmpeg-user] Poor quality output when converting avi to mp4
Thanks Guam, That helps, but I don't see the second command to get the audio or use ffmpeg to play the video. Did something get truncated, or did you forget to type it? I am reading your mail on my phone using Chrome to access gmail. Maybe that is causing problems? The message I received is show in full below. Do you see the commands you mentioned in your email? Is the message different from what you typed? Please try to send the commands again. Thanks Ute On Tuesday, July 25, 2017, Gyan wrote: > You have to run > > mp4box -aviraw video hd.avi which will create hd_video.h264 > > The h264 file cannot be played by many (most?) players but it can be used > by ffmpeg, as shown in the subsequent command. The h264 file only contains > video, no audio so it has to be combined with the audio from the original > source. The 2nd command does that. > ___ > ffmpeg-user mailing list > ffmpeg-user@ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > > To unsubscribe, visit link above, or email > ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe". ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user To unsubscribe, visit link above, or email ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
Re: [FFmpeg-user] Poor quality output when converting avi to mp4
You have to run mp4box -aviraw video hd.avi which will create hd_video.h264 The h264 file cannot be played by many (most?) players but it can be used by ffmpeg, as shown in the subsequent command. The h264 file only contains video, no audio so it has to be combined with the audio from the original source. The 2nd command does that. ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user To unsubscribe, visit link above, or email ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
Re: [FFmpeg-user] Poor quality output when converting avi to mp4
Gyan, I am having trouble with mp4box and I am hoping you can help me once again. I downloaded and installed the 32 bit and 64 bit version of GPAC but when I try to run either one, I get errors or a file that won't play. I am running mp4box on the cmd line using this command: mp4box -aviraw video hdout.mp4 But the 32 bit version produces a file I cannot play with media player or mplayer. I repeated the command using the 64 bit version, but I get a message saying the applicatiThis is on the 64 on started wrong and to click ok to close it. So I looked around some and found an example for converting avi to mp4 using mp4vbox and tried it: mp4box.exe -add hd.avi hdout.mp4 But I get: Unfortunately, mp4box.exe had stopped working. This was using the 64 bit version. What am I doing wrong? I got both version from the GPAC download page here: https://gpac.wp.imt.fr/downloads/ using the links in the first paragraph labeled Windows 32 bits and Windows 64 bits. When installation was done, I copied the exe files to a local driectory and renamed on to mp4box32.exe and left the 64 bit version named mp4box.exe. That way I know for sure which version I am running and I have all the files in one sub-directory on my desktop where I am working using the command prompt. When I got the error saying mp4box stopped running, I started using the mp4box executable in program files by using the full path to tghe executable butIstill get the error. Please help if you can. Ute Ute On Mon, Jul 24, 2017 at 1:57 PM, Gyan wrote: > On Tue, Jul 25, 2017 at 1:10 AM, Ute Willmore > wrote: > > > > > What is non-standard about my input video? > > > > That I don't know. Only that ffmpeg doesn't decode most of the frames from > the original file. > > > > I ran many conversion commands, and listed several of them in my original > > message. Which one did you use? > > > > 'ffmpeg -v verbose -i hd.avi -vf scale=640:480 scaledoutput.mp4' > > What does "Muxing to TS" mean and why/how did you do that? What does > > "Invalid NAL warnings mean? > > > > H.264 data is stored in chunks called NAL units. I transferred the contents > to another container format just to test the result, so you can ignore this > part. > > > > > Is this the one you are using? > > https://www.videohelp.com/software/MP4Box > > > > Yes, but this is the download page at the official site: > https://gpac.wp.imt.fr/downloads/gpac-nightly-builds/ > > mp4box is one of the tools bundled. > > > > Do you have any idea what needs to be done to > > produce a standard avi video in the first place? > > > > How are these AVIs produced? > ___ > ffmpeg-user mailing list > ffmpeg-user@ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > > To unsubscribe, visit link above, or email > ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe". ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user To unsubscribe, visit link above, or email ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
Re: [FFmpeg-user] Poor quality output when converting avi to mp4
On Tue, Jul 25, 2017 at 12:42 PM, Carl Eugen Hoyos wrote: > 2017-07-24 20:55 GMT+02:00 Gyan : > > As best as I can tell, ffmpeg does have issues with parsing non-standard > > H.264 bitstreams. It's certainly not as resilient as other decoders. > > Could you elaborate? > Every few weeks, there's a question at one of the SE sites about a file that does not convert as expected with ffmpeg. Most of the time, VLC or Potplayer (Win player that I use) plays these files without a hitch. Many of these tend to be from surveillance cameras or similar niche applications. When I come across these in the future, I'll open tickets. ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user To unsubscribe, visit link above, or email ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
Re: [FFmpeg-user] Poor quality output when converting avi to mp4
2017-07-24 20:55 GMT+02:00 Gyan : > As best as I can tell, ffmpeg does have issues with parsing non-standard > H.264 bitstreams. It's certainly not as resilient as other decoders. Could you elaborate? FFmpeg decoders (and demuxers) were written with the intent to read as many non-standard files as possible and this is what we have been experiencing (for a decade) - bugs such as the one described in this ticket are of course possible. Do you have (many) samples that fail with FFmpeg but work with other decoders? Or do you mean that error resilience for damaged (as opposed to non-standard) H.264 is not as good as expected? Use single-threaded decoding for improved error resilience with FFmpeg. (Multi-threaded error resilience is non-trivial, and multi-threaded decoding seemed - much - more important a few years ago than error resilience.) Carl Eugen ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user To unsubscribe, visit link above, or email ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
Re: [FFmpeg-user] Poor quality output when converting avi to mp4
2017-07-24 20:26 GMT+02:00 Ute Willmore : > dropbox.com/s/dw6ml8iwnnkmoz9/hd.avi?dl=0 This is now ticket #6551, thank you for the sample! Carl Eugen ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user To unsubscribe, visit link above, or email ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
Re: [FFmpeg-user] Poor quality output when converting avi to mp4
I understand what you mean, Moritz! I used to work under UNIX so command line was all I used. It's been a while since then, but when I use a tool like ffmpeg it comes back quickly. Looking at the command line documentation for VLC yesterday, I got confused. The problem is, that they allow you (or force you) to nest options. That leads to using "" and ( or { and before you know it, you get lost counting double quotes and brackets. :-) That's what happened to me last night, so I called it a day and went home. :-) I'll figure it out when I can take the time to play with it and I am not as tired as I was last night. I just don't want to report a bug that is not a bug and I would like to know what I get when I tell VLC to use ffmpeg to convert the file... I'll keep you posted, if you like. Ute On Mon, Jul 24, 2017 at 4:57 PM, Moritz Barsnick wrote: > On Mon, Jul 24, 2017 at 16:07:00 -0600, Ute Willmore wrote: > > confirm a bug. VLC allows you to use ffmpeg to convert a video from the > > command line and I want to see what the output looks like before I > report a > > bug. > > Actually, vlc (or the command line version cvlc) has its own "engine" > for conversion of videos. It does make use of libavformat/libavcodec, I > believe, but not exclusively. So vlc could be used to convert, instead > of ffmpeg, or at least to remux for ffmpeg's use. > > I personally have a lot of trouble wrapping my head around vlc's > command line syntax though, I'm hardly of any help. (One of many guides > is here: https://wiki.videolan.org/Transcode/) > > Moritz > ___ > ffmpeg-user mailing list > ffmpeg-user@ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > > To unsubscribe, visit link above, or email > ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe". ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user To unsubscribe, visit link above, or email ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
Re: [FFmpeg-user] Poor quality output when converting avi to mp4
On Mon, Jul 24, 2017 at 16:07:00 -0600, Ute Willmore wrote: > confirm a bug. VLC allows you to use ffmpeg to convert a video from the > command line and I want to see what the output looks like before I report a > bug. Actually, vlc (or the command line version cvlc) has its own "engine" for conversion of videos. It does make use of libavformat/libavcodec, I believe, but not exclusively. So vlc could be used to convert, instead of ffmpeg, or at least to remux for ffmpeg's use. I personally have a lot of trouble wrapping my head around vlc's command line syntax though, I'm hardly of any help. (One of many guides is here: https://wiki.videolan.org/Transcode/) Moritz ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user To unsubscribe, visit link above, or email ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
Re: [FFmpeg-user] Poor quality output when converting avi to mp4
Gyan, thanks for getting back to me and taking the time to explain. I am not sure how they are produced, except that someone takes a video, it may be stored on a DVR before it is downloaded to a PC, but it could be downloaded from the camera straight to the PC as well. This is for a commercial product so all kinds of video cameras are used, whatever the client wants to use. I don't know if the problem happens only when they are stored on a DVR before they are downloaded to the PC or not. I am a software person! So I know very little about the hardware involved in this. I just write the code for the software that uses the videos. :-) I'll try to find out though and let you know when I do. For now, I hope I can replace ffmpeg with mp4box. I thought the version on On Mon, Jul 24, 2017 at 1:57 PM, Gyan wrote: > On Tue, Jul 25, 2017 at 1:10 AM, Ute Willmore > wrote: > > > > > What is non-standard about my input video? > > > > That I don't know. Only that ffmpeg doesn't decode most of the frames from > the original file. > > > > I ran many conversion commands, and listed several of them in my original > > message. Which one did you use? > > > > 'ffmpeg -v verbose -i hd.avi -vf scale=640:480 scaledoutput.mp4' > > What does "Muxing to TS" mean and why/how did you do that? What does > > "Invalid NAL warnings mean? > > > > H.264 data is stored in chunks called NAL units. I transferred the contents > to another container format just to test the result, so you can ignore this > part. > > > > > Is this the one you are using? > > https://www.videohelp.com/software/MP4Box > > > > Yes, but this is the download page at the official site: > https://gpac.wp.imt.fr/downloads/gpac-nightly-builds/ > > mp4box is one of the tools bundled. > > > > Do you have any idea what needs to be done to > > produce a standard avi video in the first place? > > > > How are these AVIs produced? > ___ > ffmpeg-user mailing list > ffmpeg-user@ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > > To unsubscribe, visit link above, or email > ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe". ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user To unsubscribe, visit link above, or email ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
Re: [FFmpeg-user] Poor quality output when converting avi to mp4
Thank you Moritz! I will at least consider doing that, but I was beginning to suspect a bug myself. I just need to find a solution or work around first before I can take the time to do some more testing with VLC to confirm a bug. VLC allows you to use ffmpeg to convert a video from the command line and I want to see what the output looks like before I report a bug. Ute On Mon, Jul 24, 2017 at 2:05 PM, Moritz Barsnick wrote: > On Tue, Jul 25, 2017 at 00:25:36 +0530, Gyan wrote: > > Running your conversion command on your source, I see > > > > Input stream #0:0 (video): 856 packets read (18695093 bytes); 104 frames > > decoded; > > > > Muxing to TS and playing that throws invalid NAL warnings. > > But that was a conversion, right? > > > mp4box -aviraw video hd.avi > > > > which produced hd_video.h264. This plays fine with ffplay. > > That was remuxing, right? > > > As best as I can tell, ffmpeg does have issues with parsing non-standard > > H.264 bitstreams. It's certainly not as resilient as other decoders. > > I did a different test: > - Playing the original video with ffplay produces the peculiar image > Ute is probably seeing. > - Playing with mplayer produces an acceptable image. (mplayer uses > ffmpeg's libavcodec for decoding the video..) > - Playing with "mplayer -demuxer lavf" produces the same junk as > ffplay. > > So I come to the conclusion that ffmpeg/libavformat has an issue > demuxing the file. mplayer's native AVI demuxer doesn't. The latter is > also probably valid for VLC, if that works for Ute. mp4box also doesn't > have an issue. So, I think this is worth tracking as an ffmpeg bug (on > trac.ffmpeg.org), providing the sample as an attachment, the command > line and the complete, uncut console output. > > My $0.02, > Moritz > ___ > ffmpeg-user mailing list > ffmpeg-user@ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > > To unsubscribe, visit link above, or email > ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe". ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user To unsubscribe, visit link above, or email ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
Re: [FFmpeg-user] Poor quality output when converting avi to mp4
On Tue, Jul 25, 2017 at 00:25:36 +0530, Gyan wrote: > Running your conversion command on your source, I see > > Input stream #0:0 (video): 856 packets read (18695093 bytes); 104 frames > decoded; > > Muxing to TS and playing that throws invalid NAL warnings. But that was a conversion, right? > mp4box -aviraw video hd.avi > > which produced hd_video.h264. This plays fine with ffplay. That was remuxing, right? > As best as I can tell, ffmpeg does have issues with parsing non-standard > H.264 bitstreams. It's certainly not as resilient as other decoders. I did a different test: - Playing the original video with ffplay produces the peculiar image Ute is probably seeing. - Playing with mplayer produces an acceptable image. (mplayer uses ffmpeg's libavcodec for decoding the video..) - Playing with "mplayer -demuxer lavf" produces the same junk as ffplay. So I come to the conclusion that ffmpeg/libavformat has an issue demuxing the file. mplayer's native AVI demuxer doesn't. The latter is also probably valid for VLC, if that works for Ute. mp4box also doesn't have an issue. So, I think this is worth tracking as an ffmpeg bug (on trac.ffmpeg.org), providing the sample as an attachment, the command line and the complete, uncut console output. My $0.02, Moritz ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user To unsubscribe, visit link above, or email ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
Re: [FFmpeg-user] Poor quality output when converting avi to mp4
On Tue, Jul 25, 2017 at 1:10 AM, Ute Willmore wrote: > > What is non-standard about my input video? > That I don't know. Only that ffmpeg doesn't decode most of the frames from the original file. > I ran many conversion commands, and listed several of them in my original > message. Which one did you use? > 'ffmpeg -v verbose -i hd.avi -vf scale=640:480 scaledoutput.mp4' What does "Muxing to TS" mean and why/how did you do that? What does > "Invalid NAL warnings mean? > H.264 data is stored in chunks called NAL units. I transferred the contents to another container format just to test the result, so you can ignore this part. > Is this the one you are using? > https://www.videohelp.com/software/MP4Box > Yes, but this is the download page at the official site: https://gpac.wp.imt.fr/downloads/gpac-nightly-builds/ mp4box is one of the tools bundled. > Do you have any idea what needs to be done to > produce a standard avi video in the first place? > How are these AVIs produced? ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user To unsubscribe, visit link above, or email ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
Re: [FFmpeg-user] Poor quality output when converting avi to mp4
Gyan, I am still very new to video conversion and ffmpeg, so I don't understand parts of your reply. Please explain: What is non-standard about my input video? I ran many conversion commands, and listed several of them in my original message. Which one did you use? What does "Muxing to TS" mean and why/how did you do that? What does "Invalid NAL warnings mean? I gather mp4box is another tool to use when dealing with videos and there are all kinds of version available. Is this the one you are using? https://www.videohelp.com/software/MP4Box I think you are saying that no matter what I will have to use MP4Box or something similar to make a "standard" avi video and then convert that new video to mp4 using the ffmpeg command you used. Is that correct? Obviously, I would prefer not to process the video twice, because the real video can be quite large. Do you have any idea what needs to be done to produce a standard avi video in the first place? Thanks urw On Mon, Jul 24, 2017 at 12:55 PM, Gyan wrote: > On Mon, Jul 24, 2017 at 11:56 PM, Ute Willmore > wrote: > > > Hi everyone, > > > > I am hoping someone on this list can help me with a problem I am having > > when converting a .avi video to .mp4 using FFmpeg. The output I get > starts > > out looking good, but then degrades and by the time the 18 second video > > finishes it is hard to recognize what's on the screen. The colors are all > > off, some areas are just single color blobs where there used to be trees. > > > > Running your conversion command on your source, I see > > Input stream #0:0 (video): 856 packets read (18695093 bytes); 104 frames > decoded; > > Muxing to TS and playing that throws invalid NAL warnings. > > So I ran > > mp4box -aviraw video hd.avi > > which produced hd_video.h264. This plays fine with ffplay. > > Running > > ffmpeg -v verbose -i hd_video.h264 -i hd.avi -map 0 -map 1:a -vf > scale=640:480 out.mp4 > > produces an undistorted output. > > As best as I can tell, ffmpeg does have issues with parsing non-standard > H.264 bitstreams. It's certainly not as resilient as other decoders. > ___ > ffmpeg-user mailing list > ffmpeg-user@ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > > To unsubscribe, visit link above, or email > ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe". ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user To unsubscribe, visit link above, or email ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
Re: [FFmpeg-user] Poor quality output when converting avi to mp4
crf stands for constant rate factor. Allowed values are between 0 and 51, default is 23. To get better quality, use a lower number. The recommended start value, if the default does not work for you, is 18. 0 is lossless. You can read on the topic here: https://trac.ffmpeg.org/wiki/Encode/H.265 URW On Mon, Jul 24, 2017 at 12:57 PM, Phil Rhodes < phil_rhodes-at-rocketmail@ffmpeg.org> wrote: > I'd be interested to know what "crf 23" actually means. > How do I get it to do, say, 2.5Mbps? > P > ___ > ffmpeg-user mailing list > ffmpeg-user@ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > > To unsubscribe, visit link above, or email > ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe". ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user To unsubscribe, visit link above, or email ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
Re: [FFmpeg-user] Poor quality output when converting avi to mp4
On Mon, Jul 24, 2017 at 11:56 PM, Ute Willmore wrote: > Hi everyone, > > I am hoping someone on this list can help me with a problem I am having > when converting a .avi video to .mp4 using FFmpeg. The output I get starts > out looking good, but then degrades and by the time the 18 second video > finishes it is hard to recognize what's on the screen. The colors are all > off, some areas are just single color blobs where there used to be trees. > Running your conversion command on your source, I see Input stream #0:0 (video): 856 packets read (18695093 bytes); 104 frames decoded; Muxing to TS and playing that throws invalid NAL warnings. So I ran mp4box -aviraw video hd.avi which produced hd_video.h264. This plays fine with ffplay. Running ffmpeg -v verbose -i hd_video.h264 -i hd.avi -map 0 -map 1:a -vf scale=640:480 out.mp4 produces an undistorted output. As best as I can tell, ffmpeg does have issues with parsing non-standard H.264 bitstreams. It's certainly not as resilient as other decoders. ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user To unsubscribe, visit link above, or email ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
Re: [FFmpeg-user] Poor quality output when converting avi to mp4
I'd be interested to know what "crf 23" actually means. How do I get it to do, say, 2.5Mbps? P ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user To unsubscribe, visit link above, or email ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
Re: [FFmpeg-user] Poor quality output when converting avi to mp4
On Tue, Jul 25, 2017 at 12:15 AM, Reindl Harald wrote: > ffmpeg -v verbose -i hd.avi -vf scale=640:480 scaledoutput.mp4 > > > > without a bitrate param the results are poor because of ridiculous low > bitrate defaults, at least that was the case many years ago as we > implemented our php-wrapper > Not an issue here, as MP4 defaults to libx264, when available, which in turn defaults to CRF 23. ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user To unsubscribe, visit link above, or email ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
Re: [FFmpeg-user] Poor quality output when converting avi to mp4
Am 24.07.2017 um 20:26 schrieb Ute Willmore: I am hoping someone on this list can help me with a problem I am having when converting a .avi video to .mp4 using FFmpeg. The output I get starts out looking good, but then degrades and by the time the 18 second video finishes it is hard to recognize what's on the screen. The colors are all off, some areas are just single color blobs where there used to be trees. I am really hoping someone here will be able to help. I have the latest version 20170718-012620a of ffmpeg. This is the static 64 bit version for Windows running on Windows 10 Pro. I started out using the following command to convert the video: ffmpeg -v verbose -i hd.avi -vf scale=640:480 scaledoutput.mp4 without a bitrate param the results are poor because of ridiculous low bitrate defaults, at least that was the case many years ago as we implemented our php-wrapper ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user To unsubscribe, visit link above, or email ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".