Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion. Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules. |
29th November 2016, 04:18 | #1 | Link |
Registered User
Join Date: May 2016
Posts: 5
|
Variable frame video into constant frame x265
I've found that converting variable frame rate files into x265 constant frame always results in significant audio desync. I get this issue using both AviSynth and VapourSynth.
I've considered converting the variable frame file first into x264 constant at crf 0 but I don't consider that an effective solution moving forward for batch conversion. The temp file storage would be huge. Has anyone figured out a way to convert variable into into constant frame x265 and avoid the audio desync? |
29th November 2016, 08:54 | #2 | Link |
Registered User
Join Date: Dec 2002
Posts: 5,565
|
To convert VFR to CFR:
a.) use VFR aware converter like VidCoder, HandBrake or ffmpeg b.) in AviSynth or VapourSynth make a VFR->CFR conversion. For example in AviSynth: Code:
a=ffaudiosource("source.mkv") v=ffvideosource("source.mkv", fpsnum=24000, fpsden=1001) # example for 24/1.001 fps ~= 23.976 fps target AudioDub(v, a) |
29th November 2016, 21:28 | #4 | Link | |
Registered User
Join Date: May 2016
Posts: 5
|
Quote:
I thought about trying this but it doesn't sound like a long term solution for batch conversions. |
|
3rd December 2016, 03:34 | #5 | Link |
Registered User
Join Date: May 2016
Posts: 5
|
a=ffaudiosource("%source_file%")
v=ffvideosource("%source_file%", fpsnum=24000, fpsden=1001) AudioDub(v, a) Changing the FFVideoSource filter script in StaxRip to this seems to do the trick for converting variable to constant but now the video never fully converts. It'll convert about half before the audio is dropped and only the audio remains. Is there a command I'm missing? |
7th February 2017, 20:39 | #6 | Link |
Registered User
Join Date: Jan 2017
Posts: 4
|
In StaxRip, I'm clicking Filters -> Edit and inserting:
Code:
, fpsnum=25, fpsden=1 Code:
clip = core.ffms2.Source(r"%source_file%", cachefile = r"%temp_file%.ffindex", fpsnum=25, fpsden=1) |
Tags |
constant, encoding, hevc, variable, x264 |
|
|