I was getting "past duration too long" errors on an encode, and from Googling you're supposed to specify an input framerate to prevent that.
But when I try this:
I get the error "Option framerate not found".Code:(ffmpeg -framerate 29.970 -i "video.mkv" -acodec copy -vcodec libx264 -preset slow -crf 18 -force_key_frames chapters -pix_fmt yuv420p -x264opts level=4.1 "x\video.mkv" )
+ Reply to Thread
Results 1 to 3 of 3
-
-
documentation:
-r[:stream_specifier] fps (input/output,per-stream)
Set frame rate (Hz value, fraction or abbreviation).
As an input option, ignore any timestamps stored in the file and instead generate timestamps assuming constant frame rate fps. This is not the same as the -framerate option used for some input formats like image2 or v4l2 (it used to be the same in older versions of FFmpeg). If in doubt use -framerate instead of the input option -r.
As an output option, duplicate or drop input frames to achieve constant output frame rate fps.
The "If in doubt use -framerate instead of the input option -r." should be deleted from the doc, or at least mentioned that this is only applicable when image grabbing using image2 or v4l2 is used. ;)
Cu Selurusers currently on my ignore list: deadrats, Stears555, marcorocchini
Similar Threads
-
Wrong framerate during FFMPEG concatenation
By qo4on in forum Newbie / General discussionsReplies: 21Last Post: 28th Apr 2020, 06:57 -
changing ffmpeg framerate with " -r " not recognized?
By pxstein in forum Video ConversionReplies: 1Last Post: 21st Apr 2020, 07:23 -
lossless framerate change with ffmpeg?
By BabaG in forum Video ConversionReplies: 7Last Post: 8th Feb 2020, 19:53 -
(Willing to pay)ffmpeg Need help downloading live stream ffmpeg and rtmp
By grabyea in forum Video Streaming DownloadingReplies: 0Last Post: 10th Apr 2016, 16:54 -
FFMPEG change the framerate but keep the same duration
By marcorocchini in forum Newbie / General discussionsReplies: 3Last Post: 19th Mar 2016, 14:27