[FFmpeg-trac] #5642(undetermined:new): Qmin Qmax with MPEG2 Encoding
FFmpeg
trac at avcodec.org
Wed Jun 15 10:00:43 CEST 2016
#5642: Qmin Qmax with MPEG2 Encoding
-------------------------------------+-------------------------------------
Reporter: | Owner:
smallishzulu | Status: new
Type: defect | Component:
Priority: normal | undetermined
Version: unspecified | Resolution:
Keywords: | Blocked By:
Blocking: | Reproduced by developer: 0
Analyzed by developer: 0 |
-------------------------------------+-------------------------------------
Comment (by smallishzulu):
Sorry for my late reply. I was travelling.
Command line:
ffmpeg -i /tmp/ada.ts -vcodec mpeg2video -minrate 1000k -maxrate 1000k -vb
1000k -bufsize 1000k -acodec mp2 -ac 2 -ab 128k -f mpets -muxrate 1300k -y
/tmp/out.ts
Case:
Bitrate actually is too low for given resolution and FFmpeg use qmax value
31 as default, by this setup warning message "[mpeg2video @ 0xe4ba9f20]
max bitrate possibly too small or try trellis with large lmax or increase
qmax" is given out. So I tried to set qmax to 51 to have output without
"dts < pcr, TS is invalid" error. Only way to do it, as far af I know, is
to make lower quality video on output by increasing qmax value. Than I
noticed that qmin and qmax does not work for mpeg2video codec.
Log:
ffmpeg version N-80335-gcb46b78 Copyright (c) 2000-2016 the FFmpeg
developers
built with gcc 4.8 (Ubuntu 4.8.4-2ubuntu1~14.04.3)
configuration: --prefix=/opt/ffmpeg --enable-static --disable-shared
--enable-nonfree --enable-gpl --extra-cflags='-I/opt/ffmpeg/include
-I/usr/local/include' --extra-ldflags=-L/opt/ffmpeg/lib
--bindir=/opt/ffmpeg/bin --extra-libs=-ldl --enable-libx264 --enable-
nonfree --enable-gpl --enable-nvenc --enable-vdpau --enable-libzvbi
--enable-libfdk-aac --enable-libmfx --enable-libzimg
libavutil 55. 24.100 / 55. 24.100
libavcodec 57. 46.100 / 57. 46.100
libavformat 57. 38.100 / 57. 38.100
libavdevice 57. 0.101 / 57. 0.101
libavfilter 6. 46.101 / 6. 46.101
libswscale 4. 1.100 / 4. 1.100
libswresample 2. 1.100 / 2. 1.100
libpostproc 54. 0.100 / 54. 0.100
[h264 @ 0xe4b810e0] SPS unavailable in decode_picture_timing
[h264 @ 0xe4b810e0] non-existing PPS 0 referenced
[h264 @ 0xe4b810e0] SPS unavailable in decode_picture_timing
[h264 @ 0xe4b810e0] non-existing PPS 0 referenced
[h264 @ 0xe4b810e0] decode_slice_header error
[h264 @ 0xe4b810e0] non-existing PPS 0 referenced
[h264 @ 0xe4b810e0] decode_slice_header error
[h264 @ 0xe4b810e0] no frame!
[h264 @ 0xe4b810e0] SPS unavailable in decode_picture_timing
[h264 @ 0xe4b810e0] non-existing PPS 0 referenced
[h264 @ 0xe4b810e0] SPS unavailable in decode_picture_timing
[h264 @ 0xe4b810e0] non-existing PPS 0 referenced
[h264 @ 0xe4b810e0] decode_slice_header error
[h264 @ 0xe4b810e0] non-existing PPS 0 referenced
[h264 @ 0xe4b810e0] decode_slice_header error
[h264 @ 0xe4b810e0] no frame!
[h264 @ 0xe4b810e0] SPS unavailable in decode_picture_timing
[h264 @ 0xe4b810e0] non-existing PPS 0 referenced
[h264 @ 0xe4b810e0] decode_slice_header error
[h264 @ 0xe4b810e0] non-existing PPS 0 referenced
[h264 @ 0xe4b810e0] decode_slice_header error
[h264 @ 0xe4b810e0] no frame!
[h264 @ 0xe4b810e0] SPS unavailable in decode_picture_timing
[h264 @ 0xe4b810e0] non-existing PPS 0 referenced
[h264 @ 0xe4b810e0] SPS unavailable in decode_picture_timing
[h264 @ 0xe4b810e0] non-existing PPS 0 referenced
[h264 @ 0xe4b810e0] decode_slice_header error
[h264 @ 0xe4b810e0] non-existing PPS 0 referenced
[h264 @ 0xe4b810e0] decode_slice_header error
[h264 @ 0xe4b810e0] no frame!
[h264 @ 0xe4b810e0] Increasing reorder buffer to 2
[mpegts @ 0xe4b7c6a0] PES packet size mismatch
Input #0, mpegts, from '/tmp/ada.ts':
Duration: 00:00:33.82, start: 21827.579833, bitrate: 5876 kb/s
Program 1
Stream #0:0[0x121]: Video: h264 (Main) ([27][0][0][0] / 0x001B),
yuv420p, 1920x1080 [SAR 1:1 DAR 16:9], 25 fps, 50 tbr, 90k tbn, 50 tbc
Stream #0:1[0x131](tur): Audio: aac (HE-AAC) ([15][0][0][0] / 0x000F),
48000 Hz, stereo, fltp, 127 kb/s
[mpeg2video @ 0xe4ba9f20] Warning vbv_delay will be set to 0xFFFF (=VBR)
as the specified vbv buffer is too large for the given bitrate!
[mpegts @ 0xe4b83a20] Using AVStream.codec to pass codec parameters to
muxers is deprecated, use AVStream.codecpar instead.
Last message repeated 1 times
Output #0, mpegts, to '/tmp/out.ts':
Metadata:
encoder : Lavf57.38.100
Stream #0:0: Video: mpeg2video (Main), yuv420p, 1920x1080 [SAR 1:1 DAR
16:9], q=2-31, 1000 kb/s, 25 fps, 90k tbn, 25 tbc
Metadata:
encoder : Lavc57.46.100 mpeg2video
Side data:
cpb: bitrate max/min/avg: 1000000/1000000/1000000 buffer size:
1000000 vbv_delay: -1
Stream #0:1(tur): Audio: mp2, 48000 Hz, stereo, s16, 128 kb/s
Metadata:
encoder : Lavc57.46.100 mp2
Stream mapping:
Stream #0:0 -> #0:0 (h264 (native) -> mpeg2video (native))
Stream #0:1 -> #0:1 (aac (native) -> mp2 (native))
Press [q] to stop, [?] for help
frame= 0 fps=0.0 q=0.0 size= 0kB time=00:00:00.00 bitrate=N/A
speed= 0x
[h264 @ 0xe4bc1fa0] reference picture missing during reorder
[h264 @ 0xe4bc1fa0] Missing reference picture, default is 65589
[h264 @ 0xe4bc1fa0] reference picture missing during reorder
[h264 @ 0xe4bc1fa0] Missing reference picture, default is 65589
[h264 @ 0xe4c11000] mmco: unref short failure
[h264 @ 0xe4c47b80] mmco: unref short failure
[h264 @ 0xe4c63180] mmco: unref short failure
[h264 @ 0xe4c11000] mmco: unref short failure
[aac @ 0xe4b83260] Number of bands (14) exceeds limit (13).
Error while decoding stream #0:1: Invalid data found when processing input
[mpegts @ 0xe4b83a20] Non-monotonous DTS in output stream 0:1; previous:
20218, current: 18538; changing to 20219. This may result in incorrect
timestamps in the output file.
frame= 0 fps=0.0 q=0.0 size= 0kB time=00:00:00.37 bitrate=
0.0kbits/s speed=0.371x
frame= 0 fps=0.0 q=0.0 size= 0kB time=00:00:00.78 bitrate=
0.0kbits/s speed=0.517x
[mpeg2video @ 0xe4ba9f20] rc buffer underflow
[mpeg2video @ 0xe4ba9f20] max bitrate possibly too small or try trellis
with large lmax or increase qmax
frame= 4 fps=1.9 q=31.6 size= 161kB time=00:00:01.72 bitrate=
767.7kbits/s speed=0.832x
[mpeg2video @ 0xe4ba9f20] rc buffer underflow
[mpeg2video @ 0xe4ba9f20] max bitrate possibly too small or try trellis
with large lmax or increase qmax
[mpeg2video @ 0xe4ba9f20] rc buffer underflow
[mpeg2video @ 0xe4ba9f20] max bitrate possibly too small or try trellis
with large lmax or increase qmax
[mpeg2video @ 0xe4ba9f20] rc buffer underflow
[mpeg2video @ 0xe4ba9f20] max bitrate possibly too small or try trellis
with large lmax or increase qmax
[mpeg2video @ 0xe4ba9f20] rc buffer underflow
[mpeg2video @ 0xe4ba9f20] max bitrate possibly too small or try trellis
with large lmax or increase qmax
[mpeg2video @ 0xe4ba9f20] rc buffer underflow
[mpeg2video @ 0xe4ba9f20] max bitrate possibly too small or try trellis
with large lmax or increase qmax
[mpeg2video @ 0xe4ba9f20] rc buffer underflow
[mpeg2video @ 0xe4ba9f20] max bitrate possibly too small or try trellis
with large lmax or increase qmax
[mpeg2video @ 0xe4ba9f20] rc buffer underflow
[mpeg2video @ 0xe4ba9f20] max bitrate possibly too small or try trellis
with large lmax or increase qmax
[mpeg2video @ 0xe4ba9f20] rc buffer underflow
[mpeg2video @ 0xe4ba9f20] max bitrate possibly too small or try trellis
with large lmax or increase qmax
[mpeg2video @ 0xe4ba9f20] rc buffer underflow
[mpeg2video @ 0xe4ba9f20] max bitrate possibly too small or try trellis
with large lmax or increase qmax
[mpeg2video @ 0xe4ba9f20] rc buffer underflow
[mpeg2video @ 0xe4ba9f20] max bitrate possibly too small or try trellis
with large lmax or increase qmax
[mpeg2video @ 0xe4ba9f20] rc buffer underflow
[mpeg2video @ 0xe4ba9f20] max bitrate possibly too small or try trellis
with large lmax or increase qmax
[mpeg2video @ 0xe4ba9f20] rc buffer underflow
[mpeg2video @ 0xe4ba9f20] max bitrate possibly too small or try trellis
with large lmax or increase qmax
[mpeg2video @ 0xe4ba9f20] rc buffer underflow
[mpeg2video @ 0xe4ba9f20] max bitrate possibly too small or try trellis
with large lmax or increase qmax
[mpeg2video @ 0xe4ba9f20] rc buffer underflow
[mpeg2video @ 0xe4ba9f20] max bitrate possibly too small or try trellis
with large lmax or increase qmax
[mpeg2video @ 0xe4ba9f20] rc buffer underflow
[mpeg2video @ 0xe4ba9f20] max bitrate possibly too small or try trellis
with large lmax or increase qmax
[mpeg2video @ 0xe4ba9f20] rc buffer underflow
[mpeg2video @ 0xe4ba9f20] max bitrate possibly too small or try trellis
with large lmax or increase qmax
[mpeg2video @ 0xe4ba9f20] rc buffer underflow
[mpeg2video @ 0xe4ba9f20] max bitrate possibly too small or try trellis
with large lmax or increase qmax
frame= 21 fps=8.2 q=31.0 size= 391kB time=00:00:02.40
bitrate=1333.5kbits/s speed=0.933x
[mpeg2video @ 0xe4ba9f20] rc buffer underflow
[mpeg2video @ 0xe4ba9f20] max bitrate possibly too small or try trellis
with large lmax or increase qmax
[mpeg2video @ 0xe4ba9f20] rc buffer underflow
[mpeg2video @ 0xe4ba9f20] max bitrate possibly too small or try trellis
with large lmax or increase qmax
[mpeg2video @ 0xe4ba9f20] rc buffer underflow
[mpeg2video @ 0xe4ba9f20] max bitrate possibly too small or try trellis
with large lmax or increase qmax
[mpegts @ 0xe4b83a20] dts < pcr, TS is invalid
Last message repeated 4 times
[mpeg2video @ 0xe4ba9f20] rc buffer underflow
[mpeg2video @ 0xe4ba9f20] max bitrate possibly too small or try trellis
with large lmax or increase qmax
[mpeg2video @ 0xe4ba9f20] rc buffer underflow
[mpeg2video @ 0xe4ba9f20] max bitrate possibly too small or try trellis
with large lmax or increase qmax
[mpeg2video @ 0xe4ba9f20] rc buffer underflow
[mpeg2video @ 0xe4ba9f20] max bitrate possibly too small or try trellis
with large lmax or increase qmax
[mpeg2video @ 0xe4ba9f20] rc buffer underflow
[mpeg2video @ 0xe4ba9f20] max bitrate possibly too small or try trellis
with large lmax or increase qmax
[mpeg2video @ 0xe4ba9f20] rc buffer underflow
[mpeg2video @ 0xe4ba9f20] max bitrate possibly too small or try trellis
with large lmax or increase qmax
[mpeg2video @ 0xe4ba9f20] rc buffer underflow
[mpeg2video @ 0xe4ba9f20] max bitrate possibly too small or try trellis
with large lmax or increase qmax
[mpegts @ 0xe4b83a20] dts < pcr, TS is invalid
Last message repeated 29 times
[mpeg2video @ 0xe4ba9f20] rc buffer underflow
[mpeg2video @ 0xe4ba9f20] max bitrate possibly too small or try trellis
with large lmax or increase qmax
[mpeg2video @ 0xe4ba9f20] rc buffer underflow
[mpeg2video @ 0xe4ba9f20] max bitrate possibly too small or try trellis
with large lmax or increase qmax
[mpeg2video @ 0xe4ba9f20] rc buffer underflow
[mpeg2video @ 0xe4ba9f20] max bitrate possibly too small or try trellis
with large lmax or increase qmax
[mpeg2video @ 0xe4ba9f20] rc buffer underflow
[mpeg2video @ 0xe4ba9f20] max bitrate possibly too small or try trellis
with large lmax or increase qmax
frame= 34 fps= 11 q=31.0 size= 542kB time=00:00:02.92
bitrate=1519.4kbits/s speed=0.949x
[mpeg2video @ 0xe4ba9f20] rc buffer underflow
[mpeg2video @ 0xe4ba9f20] max bitrate possibly too small or try trellis
with large lmax or increase qmax
[mpeg2video @ 0xe4ba9f20] rc buffer underflow
[mpeg2video @ 0xe4ba9f20] max bitrate possibly too small or try trellis
with large lmax or increase qmax
[mpeg2video @ 0xe4ba9f20] rc buffer underflow
[mpeg2video @ 0xe4ba9f20] max bitrate possibly too small or try trellis
with large lmax or increase qmax
[mpegts @ 0xe4b83a20] dts < pcr, TS is invalid
Last message repeated 20 times
[mpeg2video @ 0xe4ba9f20] rc buffer underflow
[mpeg2video @ 0xe4ba9f20] max bitrate possibly too small or try trellis
with large lmax or increase qmax
[mpeg2video @ 0xe4ba9f20] rc buffer underflow
[mpeg2video @ 0xe4ba9f20] max bitrate possibly too small or try trellis
with large lmax or increase qmax
[mpegts @ 0xe4b83a20] dts < pcr, TS is invalid
Last message repeated 33 times
frame= 46 fps= 13 q=31.0 size= 723kB time=00:00:03.40
bitrate=1741.1kbits/s speed=0.95x
[mpegts @ 0xe4b83a20] dts < pcr, TS is invalid
Last message repeated 22 times
[mpeg2video @ 0xe4ba9f20] rc buffer underflow
[mpeg2video @ 0xe4ba9f20] max bitrate possibly too small or try trellis
with large lmax or increase qmax
[mpegts @ 0xe4b83a20] dts < pcr, TS is invalid
Last message repeated 29 times
frame= 59 fps= 14 q=31.0 size= 896kB time=00:00:03.92
bitrate=1873.1kbits/s speed=0.958x
[mpegts @ 0xe4b83a20] dts < pcr, TS is invalid
Last message repeated 7 times
[mpeg2video @ 0xe4ba9f20] rc buffer underflow
[mpeg2video @ 0xe4ba9f20] max bitrate possibly too small or try trellis
with large lmax or increase qmax
[mpegts @ 0xe4b83a20] dts < pcr, TS is invalid
Last message repeated 7 times
[mpeg2video @ 0xe4ba9f20] rc buffer underflow
[mpeg2video @ 0xe4ba9f20] max bitrate possibly too small or try trellis
with large lmax or increase qmax
[mpeg2video @ 0xe4ba9f20] rc buffer underflow
[mpeg2video @ 0xe4ba9f20] max bitrate possibly too small or try trellis
with large lmax or increase qmax
[mpeg2video @ 0xe4ba9f20] rc buffer underflow
[mpeg2video @ 0xe4ba9f20] max bitrate possibly too small or try trellis
with large lmax or increase qmax
[mpegts @ 0xe4b83a20] dts < pcr, TS is invalid
Last message repeated 25 times
[mpeg2video @ 0xe4ba9f20] rc buffer underflow
[mpeg2video @ 0xe4ba9f20] max bitrate possibly too small or try trellis
with large lmax or increase qmax
[mpeg2video @ 0xe4ba9f20] rc buffer underflow
[mpeg2video @ 0xe4ba9f20] max bitrate possibly too small or try trellis
with large lmax or increase qmax
frame= 72 fps= 16 q=31.0 size= 1038kB time=00:00:04.44
bitrate=1915.2kbits/s speed=0.967x
[mpeg2video @ 0xe4ba9f20] rc buffer underflow
[mpeg2video @ 0xe4ba9f20] max bitrate possibly too small or try trellis
with large lmax or increase qmax
[mpeg2video @ 0xe4ba9f20] rc buffer underflow
[mpeg2video @ 0xe4ba9f20] max bitrate possibly too small or try trellis
with large lmax or increase qmax
[mpeg2video @ 0xe4ba9f20] rc buffer underflow
[mpeg2video @ 0xe4ba9f20] max bitrate possibly too small or try trellis
with large lmax or increase qmax
[mpeg2video @ 0xe4ba9f20] rc buffer underflow
[mpeg2video @ 0xe4ba9f20] max bitrate possibly too small or try trellis
with large lmax or increase qmax
[mpeg2video @ 0xe4ba9f20] rc buffer underflow
[mpeg2video @ 0xe4ba9f20] max bitrate possibly too small or try trellis
with large lmax or increase qmax
[mpegts @ 0xe4b83a20] dts < pcr, TS is invalid
Last message repeated 7 times
[mpeg2video @ 0xe4ba9f20] rc buffer underflow
[mpeg2video @ 0xe4ba9f20] max bitrate possibly too small or try trellis
with large lmax or increase qmax
[mpeg2video @ 0xe4ba9f20] rc buffer underflow
[mpeg2video @ 0xe4ba9f20] max bitrate possibly too small or try trellis
with large lmax or increase qmax
[mpegts @ 0xe4b83a20] dts < pcr, TS is invalid
Last message repeated 25 times
[mpeg2video @ 0xe4ba9f20] rc buffer underflow
[mpeg2video @ 0xe4ba9f20] max bitrate possibly too small or try trellis
with large lmax or increase qmax
[mpeg2video @ 0xe4ba9f20] rc buffer underflow
[mpeg2video @ 0xe4ba9f20] max bitrate possibly too small or try trellis
with large lmax or increase qmax
[mpeg2video @ 0xe4ba9f20] rc buffer underflow
[mpeg2video @ 0xe4ba9f20] max bitrate possibly too small or try trellis
with large lmax or increase qmax
frame= 84 fps= 16 q=31.0 size= 1153kB time=00:00:04.92
bitrate=1920.3kbits/s speed=0.964x
[mpeg2video @ 0xe4ba9f20] rc buffer underflow
[mpeg2video @ 0xe4ba9f20] max bitrate possibly too small or try trellis
with large lmax or increase qmax
[mpegts @ 0xe4b83a20] dts < pcr, TS is invalid
Last message repeated 40 times
frame= 97 fps= 17 q=31.0 size= 1286kB time=00:00:05.44
bitrate=1936.1kbits/s speed=0.97x
[mpegts @ 0xe4b83a20] dts < pcr, TS is invalid
Last message repeated 10 times
[mpeg2video @ 0xe4ba9f20] rc buffer underflow
[mpeg2video @ 0xe4ba9f20] max bitrate possibly too small or try trellis
with large lmax or increase qmax
[mpegts @ 0xe4b83a20] dts < pcr, TS is invalid
Last message repeated 28 times
frame= 109 fps= 18 q=31.0 size= 1427kB time=00:00:05.92
bitrate=1974.0kbits/s speed=0.968x
[mpegts @ 0xe4b83a20] dts < pcr, TS is invalid
Last message repeated 3 times
[mpeg2video @ 0xe4ba9f20] rc buffer underflow
[mpeg2video @ 0xe4ba9f20] max bitrate possibly too small or try trellis
with large lmax or increase qmax
[mpegts @ 0xe4b83a20] dts < pcr, TS is invalid
Last message repeated 22 times
[mpeg2video @ 0xe4ba9f20] rc buffer underflow
[mpeg2video @ 0xe4ba9f20] max bitrate possibly too small or try trellis
with large lmax or increase qmax
[mpegts @ 0xe4b83a20] dts < pcr, TS is invalid
Last message repeated 55 times
frame= 121 fps= 18 q=31.0 Lsize= 1691kB time=00:00:06.44
bitrate=2151.1kbits/s speed=0.961x
video:1280kB audio:89kB subtitle:0kB other streams:0kB global headers:0kB
muxing overhead: 23.530687%
Exiting normally, received signal 2.
--
Ticket URL: <https://trac.ffmpeg.org/ticket/5642#comment:2>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker
More information about the FFmpeg-trac
mailing list