[FFmpeg-trac] #1766(undetermined:new): Can't encode MPEG-2 at more than ~3Mb/s
FFmpeg
trac at avcodec.org
Mon Oct 8 21:26:23 CEST 2012
#1766: Can't encode MPEG-2 at more than ~3Mb/s
-------------------------------------+-------------------------------------
Reporter: | Owner:
agusdallalba | Status: new
Type: defect | Component:
Priority: normal | undetermined
Version: git-master | Resolution:
Keywords: mpeg2video | Blocked By:
dvd | Reproduced by developer: 0
Blocking: |
Analyzed by developer: 0 |
-------------------------------------+-------------------------------------
Comment (by agusdallalba):
I just tried to extract a jpg still from the source, and //it showed the
same kind of blockiness// in the jpg output. PNG, on the other side, was
perfect.
{{{
ffmpeg -v 9 -loglevel 99 -i Sherlock\ S01E01\ sample.mkv -ss 1 -vframes 1
-qscale 0 sourceframe26.jpg
ffmpeg version 1.0 Copyright (c) 2000-2012 the FFmpeg developers
built on Sep 29 2012 11:22:50 with gcc 4.7.1 (GCC) 20120721 (prerelease)
configuration: --prefix=/usr --enable-libmp3lame --enable-libvorbis
--enable-libxvid --enable-libx264 --enable-libvpx --enable-libtheora
--enable-libgsm --enable-libspeex --enable-postproc --enable-shared
--enable-x11grab --enable-libopencore_amrnb --enable-libopencore_amrwb
--enable-libschroedinger --enable-libopenjpeg --enable-librtmp --enable-
libpulse --enable-libv4l2 --enable-gpl --enable-version3 --enable-runtime-
cpudetect --disable-debug --disable-static
libavutil 51. 73.101 / 51. 73.101
libavcodec 54. 59.100 / 54. 59.100
libavformat 54. 29.104 / 54. 29.104
libavdevice 54. 2.101 / 54. 2.101
libavfilter 3. 17.100 / 3. 17.100
libswscale 2. 1.101 / 2. 1.101
libswresample 0. 15.100 / 0. 15.100
libpostproc 52. 0.100 / 52. 0.100
[matroska,webm @ 0x1e3e240] Format matroska,webm probed with size=2048 and
score=100
st:0 removing common factor 1000000 from timebase
[matroska,webm @ 0x1e3e240] File position before
avformat_find_stream_info() is 1586
[h264 @ 0x1e41120] Using externally provided dimensions
[h264 @ 0x1e41120] no picture
[matroska,webm @ 0x1e3e240] All info found
[matroska,webm @ 0x1e3e240] File position after
avformat_find_stream_info() is 1908009
Input #0, matroska,webm, from 'Sherlock S01E01 sample.mkv':
Metadata:
-- CUT --
ENCODER : Lavf54.28.101
Duration: 00:00:00.76, start: 0.000000, bitrate: 26954 kb/s
Stream #0:0(eng), 45, 1/1000: Video: h264 (High), yuv420p, 1280x720,
1/50, SAR 1:1 DAR 16:9, 25 fps, 25 tbr, 1k tbn, 50 tbc (default)
Metadata:
CREATION_TIME : 2010-08-28 16:03:10
LANGUAGE : eng
HANDLER_NAME : VideoHandler
Please use -q:a or -q:v, -qscale is ambiguous
[buffer @ 0x2262480] Setting entry with key 'video_size' to value
'1280x720'
[buffer @ 0x2262480] Setting entry with key 'pix_fmt' to value '0'
[buffer @ 0x2262480] Setting entry with key 'time_base' to value '1/1000'
[buffer @ 0x2262480] Setting entry with key 'pixel_aspect' to value '1/1'
[buffer @ 0x2262480] Setting entry with key 'sws_param' to value 'flags=2'
[buffer @ 0x2262480] Setting entry with key 'frame_rate' to value '25/1'
[graph 0 input from stream 0:0 @ 0x1e43460] w:1280 h:720 pixfmt:yuv420p
tb:1/1000 fr:25/1 sar:1/1 sws_param:flags=2
[format @ 0x2275e40] auto-inserting filter 'auto-inserted scaler 0'
between the filter 'Parsed_null_0' and the filter 'format'
[auto-inserted scaler 0 @ 0x2310b00] picking yuvj420p out of 2 ref:yuv420p
alpha:0
[auto-inserted scaler 0 @ 0x2310b00] w:1280 h:720 fmt:yuv420p sar:1/1 ->
w:1280 h:720 fmt:yuvj420p sar:1/1 flags:0x4
[mjpeg @ 0x2212c20] detected 4 logical cores
[mjpeg @ 0x1e79640] intra_quant_bias = 96 inter_quant_bias = 0
[mjpeg @ 0x1e92240] intra_quant_bias = 96 inter_quant_bias = 0
[mjpeg @ 0x1fe2ea0] intra_quant_bias = 96 inter_quant_bias = 0
[mjpeg @ 0x202c360] intra_quant_bias = 96 inter_quant_bias = 0
[mjpeg @ 0x2212c20] intra_quant_bias = 96 inter_quant_bias = 0
[h264 @ 0x1e41120] detected 4 logical cores
Output #0, image2, to 'sourceframe26.jpg':
Metadata:
-- CUT --
encoder : Lavf54.29.104
Stream #0:0(eng), 0, 1/90000: Video: mjpeg, yuvj420p, 1280x720 [SAR
1:1 DAR 16:9], 1/25, q=2-31, 200 kb/s, 90k tbn, 25 tbc (default)
Metadata:
CREATION_TIME : 2010-08-28 16:03:10
LANGUAGE : eng
HANDLER_NAME : VideoHandler
Stream mapping:
Stream #0:0 -> #0:0 (h264 -> mjpeg)
Press [q] to stop, [?] for help
[h264 @ 0x25e45e0] Using externally provided dimensions
[h264 @ 0x25e45e0] no picture
[h264 @ 0x2629420] no picture
No more output streams to write to, finishing.
frame= 1 fps=0.0 q=0.0 Lsize= 0kB time=00:00:00.04 bitrate=
0.0kbits/s
video:54kB audio:0kB subtitle:0 global headers:0kB muxing overhead
-100.000000%
[AVIOContext @ 0x1e46900] Statistics: 1936179 bytes read, 0 seeks
}}}
{{{
ffmpeg -v 9 -loglevel 99 -i Sherlock\ S01E01\ sample.mkv -ss 1 -s 720x576
-vframes 1 -qscale 0 sourceframe26_scaled.png
ffmpeg version 1.0 Copyright (c) 2000-2012 the FFmpeg developers
built on Sep 29 2012 11:22:50 with gcc 4.7.1 (GCC) 20120721 (prerelease)
configuration: --prefix=/usr --enable-libmp3lame --enable-libvorbis
--enable-libxvid --enable-libx264 --enable-libvpx --enable-libtheora
--enable-libgsm --enable-libspeex --enable-postproc --enable-shared
--enable-x11grab --enable-libopencore_amrnb --enable-libopencore_amrwb
--enable-libschroedinger --enable-libopenjpeg --enable-librtmp --enable-
libpulse --enable-libv4l2 --enable-gpl --enable-version3 --enable-runtime-
cpudetect --disable-debug --disable-static
libavutil 51. 73.101 / 51. 73.101
libavcodec 54. 59.100 / 54. 59.100
libavformat 54. 29.104 / 54. 29.104
libavdevice 54. 2.101 / 54. 2.101
libavfilter 3. 17.100 / 3. 17.100
libswscale 2. 1.101 / 2. 1.101
libswresample 0. 15.100 / 0. 15.100
libpostproc 52. 0.100 / 52. 0.100
[matroska,webm @ 0xd88240] Format matroska,webm probed with size=2048 and
score=100
st:0 removing common factor 1000000 from timebase
[matroska,webm @ 0xd88240] File position before
avformat_find_stream_info() is 1586
[h264 @ 0xd8b120] Using externally provided dimensions
[h264 @ 0xd8b120] no picture
[matroska,webm @ 0xd88240] All info found
[matroska,webm @ 0xd88240] File position after avformat_find_stream_info()
is 1908009
Input #0, matroska,webm, from 'Sherlock S01E01 sample.mkv':
Metadata:
-- CUT --
ENCODER : Lavf54.28.101
Duration: 00:00:00.76, start: 0.000000, bitrate: 26954 kb/s
Stream #0:0(eng), 45, 1/1000: Video: h264 (High), yuv420p, 1280x720,
1/50, SAR 1:1 DAR 16:9, 25 fps, 25 tbr, 1k tbn, 50 tbc (default)
Metadata:
CREATION_TIME : 2010-08-28 16:03:10
LANGUAGE : eng
HANDLER_NAME : VideoHandler
Please use -q:a or -q:v, -qscale is ambiguous
[buffer @ 0x11ac480] Setting entry with key 'video_size' to value
'1280x720'
[buffer @ 0x11ac480] Setting entry with key 'pix_fmt' to value '0'
[buffer @ 0x11ac480] Setting entry with key 'time_base' to value '1/1000'
[buffer @ 0x11ac480] Setting entry with key 'pixel_aspect' to value '1/1'
[buffer @ 0x11ac480] Setting entry with key 'sws_param' to value 'flags=2'
[buffer @ 0x11ac480] Setting entry with key 'frame_rate' to value '25/1'
[graph 0 input from stream 0:0 @ 0xd8d460] w:1280 h:720 pixfmt:yuv420p
tb:1/1000 fr:25/1 sar:1/1 sws_param:flags=2
[scaler for output stream 0:0 @ 0x1182200] picking rgb24 out of 7
ref:yuv420p alpha:0
[scaler for output stream 0:0 @ 0x1182200] w:1280 h:720 fmt:yuv420p
sar:1/1 -> w:720 h:576 fmt:rgb24 sar:64/45 flags:0x4
[png @ 0x115cc20] detected 4 logical cores
[h264 @ 0xd8b120] detected 4 logical cores
Output #0, image2, to 'sourceframe26_scaled.png':
Metadata:
-- CUT --
encoder : Lavf54.29.104
Stream #0:0(eng), 0, 1/90000: Video: png, rgb24, 720x576 [SAR 64:45
DAR 16:9], 1/25, q=2-31, 200 kb/s, 90k tbn, 25 tbc (default)
Metadata:
CREATION_TIME : 2010-08-28 16:03:10
LANGUAGE : eng
HANDLER_NAME : VideoHandler
Stream mapping:
Stream #0:0 -> #0:0 (h264 -> png)
Press [q] to stop, [?] for help
[h264 @ 0xe746c0] Using externally provided dimensions
[h264 @ 0xe746c0] no picture
[h264 @ 0xeb9020] no picture
No more output streams to write to, finishing.
frame= 1 fps=0.0 q=0.0 Lsize= 0kB time=00:00:00.04 bitrate=
0.0kbits/s
video:309kB audio:0kB subtitle:0 global headers:0kB muxing overhead
-100.000000%
[AVIOContext @ 0xd90900] Statistics: 1936179 bytes read, 0 seeks
--
Ticket URL: <https://ffmpeg.org/trac/ffmpeg/ticket/1766#comment:7>
FFmpeg <http://ffmpeg.org>
FFmpeg issue tracker
More information about the FFmpeg-trac
mailing list