I have 4 video files (mkv container) of the same event but one of them has a variable frame rate mode and other 3 have a constant frame rate mode. MediaInfo says that in all cases the frame rate is 25fps. All videos are interlaced. What is the best way (software, settings) to join them?
Try StreamFab Downloader and download from Netflix, Amazon, Youtube! Or Try DVDFab and copy Blu-rays! or rip iTunes movies!
+ Reply to Thread
Results 1 to 20 of 20
Thread
-
-
Something like this in AviSynth:
Code:function CFRSource(string filename) { a = LWlibavAudioSource(filename) v = LWlibavVideoSource(filename, fpsnum=25000, fpsden=1000) AudioDub(v,a) } av1 = CFRSource("file1.mkv") av2 = CFRSource("file2.mkv") av3 = CFRSource("file3.mkv") av4 = CFRSource("file4.mkv") av1++av2++av3++av4
Last edited by jagabo; 20th May 2020 at 07:18.
-
When encoding with lossy codecs you will always lose quality. But if you encode with x264 at the slow preset (or any of the slower presets if you can stand to wait) at CRF 12 your output will hard to tell from the original, even when examining enlarged still frames. At 18 the video will look almost as good as the original at normal playback speeds but if you zoom in to still frames you'll see small differences.
It's possible to remux (no loss of quality) your mixed CFR and VFR videos into a single A/V file. But some players may have problems with it. ffmpeg is probably the best tool for that. -
Thanks jagabo, it's clear now.
Another question I have is related to my dilemma whether to deinterlace videos in my soccer video archive. I have a bunch of soccer matches and till now I was watching those videos on my old CRT monitor. I would like to buy some modern monitor but as far as I understood, they are showing a progressive content only. What would be better to do considering that I would play those videos on my computer only? I was thinking if I keep them in the original interlaced form, perhaps some real-time deinterlacers in the future would be able to deinterlace them while playing. Not sure how good are current real-time deinterlacers, perhaps someone can write more about that. -
-
If you are going to reencode the videos anyway (to reduce the file size, filter noise, etc.), and if you are willing to wait for the long encoding times using QTGMC(), you should deinterlace before encoding. Otherwise, don't bother. TVs and media players all have the ability to deinterlace, typically with quality similar to Yadif(mode=1).
-
So, we could say that cons of choosing deinterlacing are:
1) Too long processing time
2) Possibility that someday might appear better deinterlacing algorithms from the aspect of visual quality
Is there anything else I'm missing here? -
-
Last edited by GrouseHiker; 19th May 2020 at 21:55.
-
Thanks jagabo and davexnet. I guess I will do some processing, including deinterlacing, with SD videos only. HD videos I will leave like that.
-
-
Sorry, more typos (corrected in the original post). Filename is the name of the string variable passed to CFRSource(). As you can see it's called with:
Code:av1 = CFRSource("file1.mkv") av2 = CFRSource("file2.mkv") av3 = CFRSource("file3.mkv") av4 = CFRSource("file4.mkv")
Code:function CFRSource(string filename) { a = LWlibavAudioSource(filename) v = LWlibavVideoSource(filename, fpsnum=25000, fpsden=1000) AudioDub(v,a) } av1 = CFRSource("file1.mkv") av2 = CFRSource("file2.mkv") av3 = CFRSource("file3.mkv") av4 = CFRSource("file4.mkv") av1++av2++av3++av4
Code:function CFRSource(string filename) { a = LWlibavAudioSource(filename+".mkv") v = LWlibavVideoSource(filename+".mkv"), fpsnum=25000, fpsden=1000) AudioDub(v,a) } av1 = CFRSource("file1") av2 = CFRSource("file2") av3 = CFRSource("file3") av4 = CFRSource("file4") av1++av2++av3++av4
Last edited by jagabo; 20th May 2020 at 07:30.
-
-
Audio doesn't have a frame rate, only a duration. Force the frame rate of the 25p CFR segments to 25 fps has no effect. Forcing the frame rate of the VFR source will convert the frame rate to constant, 25 fps. This will be accomplished by duplicating or decimating frames as necessary. The overall length of the video won't be changed. Since the running time of the video doesn't change the running time of the audio doesn't need to change either.
-
Thanks... got it!
What happens to the audio, when the clip is simply brought in with?:
Code:LWlibavVideoSource(filename, fpsnum=25000, fpsden=1000)
-
Similar Threads
-
Converted MP4 Files Do Not Display Length, Data Rate, Frame Under Windows
By pone44 in forum Video ConversionReplies: 4Last Post: 24th Jun 2019, 01:14 -
Convert Frame Rate Across Multiple SRT files
By twathle in forum SubtitleReplies: 0Last Post: 5th Jul 2018, 02:50 -
transcode Variable Frame Rate (VFR) AVC video to Constant Frame rate (CFR)
By hydra3333 in forum Video ConversionReplies: 2Last Post: 4th Mar 2018, 05:01 -
Variable frame rate into constant frame rate without re-encoding
By DunnoNo in forum Newbie / General discussionsReplies: 8Last Post: 21st Dec 2017, 11:05 -
frame rate mode
By Anonymous in forum Video Streaming DownloadingReplies: 3Last Post: 5th Feb 2016, 10:49