View Single Post
Old 22nd July 2019, 23:01   #2  |  Link
benwaggoner
Moderator
 
Join Date: Jan 2006
Location: Portland, OR
Posts: 4,771
Quote:
Originally Posted by osgZach View Post
I've been playing with some compiled binaries my friend managed to find for me. But I'm having trouble with setting the proper FPS.

if I specify -fps-num 24000 -fps-denom 1001 it will output a file with 23.98 fps which ffmpeg does not like.
How does ffmpeg not like it? Ffmpeg has had excellent support for fractional framerates for as long as I can remember.

Quote:
If I just tell it 24, ffmpeg will take it, but then the audio from the original source will be off by 1 second (source clip is 10 minutes, video file comes out to 9m59s)
Because you sped up the fps by 0.1%, and the video isn't. Any audio tool like Audition or Audacity can also resample your audio 0.1% faster; another way to fix your problem.

Quote:
Maybe a misunderstanding on my part. When I dump the input mkv file to YUV with ffmpeg it seems to want to assign it the 23.98 fps at that point.
I can't seem to get it to play nice in that regard
Did you specify the fps of the YUV? YUV doesn't have any metadata, so you need to manually specify fps along with a whole lot of other stuff. I much prefer .y4m for this, which is a yuv file but with metadata headers.
__________________
Ben Waggoner
Principal Video Specialist, Amazon Prime Video

My Compression Book
benwaggoner is offline   Reply With Quote