It will play MKV but it is slower to load for some reason and the controls for fast forward or rewind do not work the same way as for mp4 which again sounds odd but that is the way it is. so would prefer mp4 files.
Right now I have a TV series I am ripping from DVD and following that will convert all the avi files I have. Once that is done I may start with some of the HD camcorder videos I have and can post again then for some guidance but for now ripping this one TV series and converting the avi files is at the top of the list.
Thank you
Try StreamFab Downloader and download from Netflix, Amazon, Youtube! Or Try DVDFab and copy Blu-rays! or rip iTunes movies!
+ Reply to Thread
Results 31 to 60 of 81
Thread
-
-
-
There are programs in the software section of this site that may help
MKVToolnix - rewrap almost anything to MKV (no re-encoding)
MP4Box Gui - rewrap most things to mp4 (no re-encoding)
MKVtoMP4 - quick MKV to MP4 container switch (only re-encodes audio under certain circumstances, otherwise no re-encode)
Perhaps you should try them -
I quite clearly stated that every time you reencode a video with a lossy codec you will lose quality. But the more bitrate you use the less those losses will be. Say, for example, reencoding at the same bitrate loses 5 percent of the quality. Reencoding at twice the bitrate may lose only 2 percent of the quality.
Beyond that, different codec families require different bitrates to retain quality. For example, if you were reencoding an h.264 video with MPEG 2, you might need 4 times as much bitrate to come close to the same quality. Even different encoders of the same family require different bitrates. For example Intel's Quick Sync h.264 encoder may require 50 percent or more bitrate than x264 to deliver similar quality -- even though they are both h.264 (MPEG 4 Part 10, aka AVC) encoders. -
-
Video compression isn't one single thing. It's a collection of methods. Some are very fast but don't compress much. Others can compress much more (and more accurately) but take longer to do so. x264's ultrafast preset uses only the fastest, least effective compression methods. As you move to slower presets slower and more effective methods are used.
-
Are you referring to the presets in Handbrake? Is that what you would recommend for ripping from a Blu-Ray or DVD? I am not really worried about compression only want a format compatible with my new TV.
Also you had mentioned AviDemux for converting my AVIs. will this do a whole folder or do you have to load the files individually? What do you think of MP4Box.GUI Davexnet mentioned?
Thanks again -
Sorry I have been away for so long. I would love to use a batch process and do an entire folder at a time. I downloaded ffmpeg but when I ran the program I got what appeared to be a dos window flash on the screen and then nothing so am obviously not doing something. Does it install like most programs or is it a command line type program? Any assistance in running it to convert entire folders at a time would be much appreciated.
Thank you -
ffmpeg is a command line program. You can use it in a batch file to remux all AVI files in a folder to MP4. Put a copy of the following text in a batch file, in the same folder as the AVI files you want to remux. You can use Notepad to create the file, just be sure to save with the extension .BAT, not .TXT.
Code:for %%F in ("*.avi") do ( ffmpeg -i "%%~nxF" -c copy "%%~nF.mp4" ) pause
Code:for %%F in ("*.avi") do ( "G:\Program Files\ffmpeg\bin\ffmpeg.exe" -i "%%~nxF" -c copy "%%~nF.mp4" ) pause
The "pause" on the second line is to leave the CMD window open when the process is done -- so you can see if there are any error messages. -
Beware that some codecs used in AVI may not be accepted in MP4. So check the resulting filfes. Xvid/Divx and MP3/AC3 should be fine.
Thanks very much for your help. -
-
-
[Attachment 53825 - Click to enlarge] Does the ffmpeg generally take quite a bit longer than the AviDemux? The AviDemux was quite fast where the ffmpeg is taking roughy3-6 minutes per video and most files are under 200MB. I am fine with that as I don't have to babysit or load each file individually but just wondered if that is normal?
Here is a screen capture of the messages that scroll as it is doing each file and there are a long list for each file but the new file seems to play fine.
ThanksLast edited by jackdup; 16th Jun 2020 at 14:10. Reason: Upload screen capture.
-
I tried this myself with some old xvid/mp3 avi files. It seems as if ffmpeg doesn't properly support the packed "B' frames in the avi.
The conversion takes longer, and you can see stuttering in the output file during scenes with movement. Perhaps you
should check the files
Perhaps jagabo will respond, there was a thread in the last few months where something similar came up -
Earlier I tried it with some xvid/mp3 avi files (480x360, 29.97 fps, 22 minutes, ~200 MB) and the files remuxed nearly instantaneously. There were no problems. Looking at the videos showed they used only I and P frames. No B frames, so no packed bitstream.
I found an Xvid AVI with packed bitstream -- I see the same "pts has no value" error messages and slow processing. It's the display of all those error messages that is causing the slowdown. You can avoid that by setting the log level to panic. Might as well eliminate the banner message too:
Code:for %%F in ("*.avi") do ( ffmpeg -hide_banner -loglevel panic -i "%%~nxF" -c copy "%%~nF.mp4" )
Code:for %%F in ("*.avi") do ( ffmpeg -y -fflags +genpts -i "%%~nxF" -c copy -bsf:v mpeg4_unpack_bframes "%%~nF.temp.avi" ffmpeg -y -fflags +genpts -i "%%~nF.temp.avi" -c copy -bsf:v mpeg4_unpack_bframes "%%~nF.mp4" del "%%~nF.temp.avi" )
Note I added the -y flag to prevent the program asking if you want to overwrite existing files. -
I tried this myself with some old xvid/mp3 avi files. It seems as if ffmpeg doesn't properly support the packed "B' frames in the avi.
The conversion takes longer, and you can see stuttering in the output file during scenes with movement. Perhaps you
should check the files
Perhaps jagabo will respond, there was a thread in the last few months where something similar came up
Thank you for the reply. -
-
Thanks jagabo, great solution, and as you said - nearly instantaneous when it's working right
-
The first option was very quick but the second produced the following output and took a few minutes per file. It isn’t a problem but thought I would post in case this should not be the result.
[Attachment 53832 - Click to enlarge]
[Attachment 53833 - Click to enlarge]
[Attachment 53834 - Click to enlarge] -
I haven't had that problem here. Does the resulting file play properly? You can always add "-loglevel panic" to stop the error messages. That might speed it up.
-
Yes the video seems to play fine. I only did a couple of files and only tested it on my Samsung TV but before I delete the original AVI files I would like to feel confident it will play on other players with no problem, as once I delete the files won’t be able to try anything else if I find problems on different players. When I have a bit more time I will test the output from all three of the batch files you provided. All three played fine on my Samsung TV. Can you tell exactly where to add the above to stop the errors. I have no doubt it would speed things up as the second command you provided made a huge difference in the time to process each file.
Thanks again -
-
Whichever line is causing the problem. I can't tell from your screen shot. Or both lines. It just supresses the less critical warning messages.
-
I have had so much going on believe it or not I didn't get around to trying this until today. It has taken roughly an hour to do 18 files which seems a lot longer than I understood this should take.
Here is the contents of the batch file so would appreciate if you would look it over and insure it is correct and that there isn't an error or something which would be causing it to take longer than it otherwise would.
Thank you
Code:for %%F in ("*.avi") do ( ffmpeg -y -loglevel panic -fflags +genpts -i "%%~nxF" -c copy -bsf:v mpeg4_unpack_bframes "%%~nF.temp.avi" ffmpeg -y -loglevel panic -fflags +genpts -i "%%~nF.temp.avi" -c copy -bsf:v mpeg4_unpack_bframes "%%~nF.mp4" del "%%~nF.temp.avi" )
-
It's kinda reassuring, goes to show that I'm not alone in this hectic world who can be vvveerrrrryyy sssslllooooow at doing things sometimes...
A few “capsule replies” :
– You should learn how to take screenshots.
– Instead of going through all that hassle, just because the stupid new TV dropped support for older files that were played fine on the older model from the same brand, you could get a cheap standalone player that is known to play all common digital media file formats, like the once popular WD Live. Never had one, but I've read nothing but praise about that particular unit, it was quite cheap new and could be found even cheaper now used. Don't know if it's been updated to play newer formats like H.265, but that's not the issue here. Or play the pesky files from a laptop computer, or a Raspberry thingy (no experience with these), or some Internet set-top media boxes...
– If converting those pesky AVI files is really necessary, perhaps mkvmerge wouldn't have hiccups like ffmpeg does. It can be used from a GUI called MKVToolNix, but to process an entire folder a CLI script is way faster. What's nice is that when importing a file (drag-and-drop works) into MKVToolNix, then changing any setting, it can display the actual command line that is sent to the mkvmerge.exe executable ; then based on that it's easy to create a FOR ... DO ... loop script, even without fully understanding the intricacies of each and every switch / option involved. Anyway, for a simple AVI to MKV remuxing the command is quite straighforward.
Code:"C:/Path/to/MKVToolNix\mkvmerge.exe" --ui-language en --output ^"E:\Path\to\output\output.mkv^" --language 0:und --language 1:und ^"^(^" ^"E:\Path\to\input\input.avi^" ^"^)^" --track-order 0:0,0:1
That's the base command obtained from “Multiplexer” => “Show command line” ; then the loop script would be (removed the unnecessary clutter) :
Code:FOR %%F in (*.avi) DO "C:\Path\to\MKVToolnix\mkvmerge.exe" --output "%%~nF.mkv" "%%F" --track-order 0:0,0:1
Code:FOR /R "F:\VIDEO" %%F in (*.avi) DO "C:\Path\to\MKVToolnix\mkvmerge.exe" --output "%%~nF.mkv" "%%F" --track-order 0:0,0:1
Code:FOR /R "F:\VIDEO" %F in (*.avi) DO "C:\Path\to\MKVToolnix\mkvmerge.exe" --output "%~nF.mkv" "%F" --track-order 0:0,0:1
Code:F: CD "VIDEO" FOR %%F in (*.avi) DO "C:\Path\to\MKVToolnix\mkvmerge.exe" --output "%%~nF.mkv" "%%F" --track-order 0:0,0:1
I only did a couple of files and only tested it on my Samsung TV but before I delete the original AVI files I would like to feel confident it will play on other players with no problem, as once I delete the files won’t be able to try anything else if I find problems on different players. -
I just ran a test with 24 Xvid AVI files of about 650 MB each (~52 minute TV episodes), 14.5 GB total, on a 4 TB local hard drive. It took about 6 minutes and 30 seconds. CPU usage was only about 5 percent (8 core, 16 thread system). But if you have lots of files that were generating lots of error messages it may take much longer. Even though ffmpeg isn't writing those error messages to the screen it's probably still doing a lot of extra work internally.
It's my mistake but the second ffmpeg command line doesn't need the " -bsf:v mpeg4_unpack_bframes" option. It's already been done by the first command. I don't think it makes much difference in the execution time though.
It's worth a try. -
Regarding muxing to MKV: MkvMerge doesn't unpack the packed bitstream so the resulting video may not play well on all devices.
After a quick test, KMPlayer, MPCHC, PotPlayer, SMPlayer, WMPlayer all played the MVK properly. So did Kodi on my Raspberry Pi 3, and VLC on my Android smartphone.Last edited by jagabo; 20th Dec 2020 at 21:12.
Similar Threads
-
Handbrake: Same audio settings for all the titles when converting a batch?
By Srivas in forum Video ConversionReplies: 3Last Post: 27th Oct 2018, 15:40 -
Converter settings for converting FRAPS video
By Dante4 in forum Video ConversionReplies: 33Last Post: 5th Jul 2016, 09:22 -
Update: need Avisynth settings help (converting old DV/VOB to H.264)
By LouGee in forum Video ConversionReplies: 8Last Post: 13th Feb 2016, 11:30 -
Advice on converting from HD to SD...best settings/programs to use
By underthemountain in forum Newbie / General discussionsReplies: 52Last Post: 4th Apr 2015, 18:33 -
Best settings converting .ts fo .mp4
By maverickluke in forum Video ConversionReplies: 3Last Post: 8th Dec 2014, 09:14