I have a bunch of variable frame rate video lying around that I want to convert to HEVC to save space. I've tried converting them in the past and found that converting from variable x264 or otherwise to HEVC always ends up with desynced audio and video.
Is there any way I can maybe pre-convert the variable files into constant x264 and then convert to constant HEVC? I don't want variable HEVC if possible.
Pic related
>>57419744
Any decent encoder can do this. Just load up handbrake or something.
>>57420333
The media info says the audio plays at 48.674fps. Would I just use crf 0 and set the constant video frame rate to 48.674?
>>57419744
Just going off the pic I'd go with constant 29.97. It will save more space than going at the max 59.94 and if you to go with lower fps like 23.98/24 the motion will get all choppy and look like shit
Also: MPEG Streamclip is good
>>57420738
The 48.674fps audio won't be a problem?
>>57420802
fps isn't an applicable measurement of audio but yes if that's actually 48 kHz audio sampling rate that should be fine as-is
>>57421030
Ah. I see. I'll give it a shot. Thanks anon
>>57421049
Just try to pass the audio through as much as possible and not mess with any settings too much. 29.97 for video should work fine
>>57419744
ffmpeg -i input.mkv -vsync 1 -r 60 -c copy -c:v libx265 (... other options ...)
>>57421128
don't use "-r 29.97", 29.97 is just a shortened version of 29.97002997, or 30/1.001
use "-r 30/1.001"
>>57421889
I'm not sure how x264 and x265 handle variable to constant conversions but I've tried converting the variable file directly to HEVC in CLI with -r 60 doesn't seem to help.