I 2-pass encode an existing *.mp4 into a (smaller) *.mp4 with the following command:
ffmpeg.exe -i "testffmpeg.mp4" -c:v libx264 -preset slow -b:v 1900k -s 1440x810 -pass 1 -g 30 -r 30 -an -f null NUL && ffmpeg.exe -i "testffmpeg.mp4" -c:v libx264 -preset slow -g 30 -r 30 -b:v 1900k -s 1440x810 -c:a libmp3lame -b:a 148k -pass 2 "testffmpeg_out.mp4"
which yields the output (for 1-pass) shown at the bottom.
Why are there such errors?
If I omit the " -r 30" parts the command works.
Do I have to specify " -r 30" in the first AND second pass command or only in one?
Output #0, null, to 'NUL':
Metadata:
major_brand : isom
minor_version : 512
compatible_brands: isomiso2avc1mp41
title : ****
artist : ****
date : 2019
comment : ***
encoder : Lavf58.29.100
Stream #0:0(und): Video: h264 (libx264), yuv420p, 1440x810 [SAR 1:1 DAR 16:9], q=-1--1, 1900 kb/s, 30 fps, 30 tbn, 30 tbc (default)
Metadata:
handler_name : ISO Media file produced by Google Inc.
encoder : Lavc58.54.100 libx264
Side data:
cpb: bitrate max/min/avg: 0/0/1900000 buffer size: 0 vbv_delay: -1
[libx264 @ 00000000024f49c0] non-strictly-monotonic PTS
Last message repeated 17 times
[null @ 0000000002682640] Application provided invalid, non monotonically increasing dts to muxer in stream 0: 1 >= 1
[null @ 0000000002682640] Application provided invalid, non monotonically increasing dts to muxer in stream 0: 2 >= 2
[libx264 @ 00000000024f49c0] non-strictly-monotonic PTS
[libx264 @ 00000000024f49c0] non-strictly-monotonic PTStrate=N/A speed=0.259x
[null @ 0000000002682640] Application provided invalid, non monotonically increasing dts to muxer in stream 0: 4 >= 4
[null @ 0000000002682640] Application provided invalid, non monotonically increasing dts to muxer in stream 0: 5 >= 5
[libx264 @ 00000000024f49c0] non-strictly-monotonic PTS
Last message repeated 1 times
[null @ 0000000002682640] Application provided invalid, non monotonically increasing dts to muxer in stream 0: 7 >= 7
[null @ 0000000002682640] Application provided invalid, non monotonically increasing dts to muxer in stream 0: 8 >= 8
[libx264 @ 00000000024f49c0] non-strictly-monotonic PTS
Last message repeated 1 times
[null @ 0000000002682640] Application provided invalid, non monotonically increasing dts to muxer in stream 0: 10 >= 10
[null @ 0000000002682640] Application provided invalid, non monotonically increasing dts to muxer in stream 0: 11 >= 11
[libx264 @ 00000000024f49c0] non-strictly-monotonic PTS
....
+ Reply to Thread
Results 1 to 2 of 2
Similar Threads
-
Why x264 "placebo" preset produce bigger file than "very slow"?
By aleaksunder in forum Video ConversionReplies: 21Last Post: 2nd Mar 2019, 07:25 -
"Drag" transparent images over moving footage with a "mouse"
By theatermajorindistress in forum Newbie / General discussionsReplies: 5Last Post: 8th Jun 2017, 12:48 -
What is the purpose of "Default" button in "Video" tab of XMedia Recode?
By MidnightUser in forum Newbie / General discussionsReplies: 1Last Post: 15th Jan 2016, 03:08 -
How i can encode audio of "REMUX" to "BluRay.720p.DTS" wit handbrake?
By VideoHelp4Ever in forum Blu-ray RippingReplies: 1Last Post: 2nd Jul 2015, 11:41 -
[SOLVED] "--ipratio" "--pbratio"+"--scenecut" "--minkeyint" / "--keyint
By Kdmeizk in forum Video ConversionReplies: 14Last Post: 21st Jun 2015, 07:21