[FFmpeg-trac] #4088(undetermined:new): Theora video duration different depending on scale
FFmpeg
trac at avcodec.org
Thu Nov 6 13:23:13 CET 2014
#4088: Theora video duration different depending on scale
-------------------------------------+-------------------------------------
Reporter: mlinnosk | Owner:
Type: defect | Status: new
Priority: normal | Component:
Version: 2.4.3 | undetermined
Keywords: theora,pipe | Resolution:
Blocking: | Blocked By:
Analyzed by developer: 0 | Reproduced by developer: 0
-------------------------------------+-------------------------------------
Comment (by mlinnosk):
Broken:
{{{
unzip -p input.zip 1920x1200/raw/f_*.png | ffmpeg2 -loglevel verbose -f
image2pipe -c:v png -r 25 -i - -s 1024x640 -aspect 16:10 -sws_flags
lanczos -vcodec libtheora -pix_fmt yuv420p -an -qscale:v 7 -r 25 -y
output.ogv
ffmpeg version 2.4.3- http://johnvansickle.com/ffmpeg/ Copyright (c)
2000-2014 the FFmpeg developers
built on Nov 4 2014 13:14:24 with gcc 4.8 (Debian 4.8.3-13)
configuration: --enable-gpl --enable-version3 --disable-shared
--disable-debug --enable-runtime-cpudetect --enable-libmp3lame --enable-
libx264 --enable-libx265 --enable-libwebp --enable-libspeex --enable-
libvorbis --enable-libvpx --enable-libfreetype --enable-fontconfig
--enable-libxvid --enable-libopencore-amrnb --enable-libopencore-amrwb
--enable-libtheora --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-
gray --enable-libopenjpeg --enable-libopus --disable-ffserver --enable-
libass --enable-gnutls --cc=gcc-4.8
libavutil 54. 7.100 / 54. 7.100
libavcodec 56. 1.100 / 56. 1.100
libavformat 56. 4.101 / 56. 4.101
libavdevice 56. 0.100 / 56. 0.100
libavfilter 5. 1.100 / 5. 1.100
libswscale 3. 0.100 / 3. 0.100
libswresample 1. 1.100 / 1. 1.100
libpostproc 53. 0.100 / 53. 0.100
Input #0, image2pipe, from 'pipe:':
Duration: N/A, bitrate: N/A
Stream #0:0: Video: png, rgba, 1920x1200, 25 fps, 25 tbr, 25 tbn, 25
tbc
[graph 0 input from stream 0:0 @ 0x44681c0] w:1920 h:1200 pixfmt:rgba
tb:1/25 fr:25/1 sar:0/1 sws_param:flags=2
[scaler for output stream 0:0 @ 0x4460e00] w:1024 h:640 flags:'0x200'
interl:0
[graph 0 input from stream 0:0 @ 0x44681c0] TB:0.040000
FRAME_RATE:25.000000 SAMPLE_RATE:nan
[scaler for output stream 0:0 @ 0x4460e00] w:1920 h:1200 fmt:rgba sar:0/1
-> w:1024 h:640 fmt:yuv420p sar:0/1 flags:0x200
Output #0, ogg, to 'output.ogv':
Metadata:
encoder : Lavf56.4.101
Stream #0:0: Video: theora (libtheora), yuv420p, 1024x640 [SAR 1:1 DAR
8:5], q=2-31, 200 kb/s, 25 fps, 25 tbn, 25 tbc
Metadata:
encoder : Lavc56.1.100 libtheora
Stream mapping:
Stream #0:0 -> #0:0 (png (native) -> theora (libtheora))
No more output streams to write to, finishing.=00:00:15.28
bitrate=1760.5kbits/s
frame= 392 fps= 18 q=0.0 Lsize= 3299kB time=00:00:15.68
bitrate=1723.4kbits/s
video:3280kB audio:0kB subtitle:0kB other streams:0kB global headers:3kB
muxing overhead: 0.576610%
Input file #0 (pipe:):
Input stream #0:0 (video): 392 packets read (609131299 bytes); 392
frames decoded;
Total: 392 packets (609131299 bytes) demuxed
Output file #0 (output.ogv):
Output stream #0:0 (video): 392 frames encoded; 392 packets muxed
(3358425 bytes);
Total: 392 packets (3358425 bytes) muxed
}}}
OK:
{{{
unzip -p input.zip 1920x1200/raw/f_*.png | ffmpeg2 -loglevel verbose -f
image2pipe -c:v png -r 25 -i - -s 1280x800 -aspect 16:10 -sws_flags
lanczos -vcodec libtheora -pix_fmt yuv420p -an -qscale:v 7 -r 25 -y
output.ogv
ffmpeg version 2.4.3- http://johnvansickle.com/ffmpeg/ Copyright (c)
2000-2014 the FFmpeg developers
built on Nov 4 2014 13:14:24 with gcc 4.8 (Debian 4.8.3-13)
configuration: --enable-gpl --enable-version3 --disable-shared
--disable-debug --enable-runtime-cpudetect --enable-libmp3lame --enable-
libx264 --enable-libx265 --enable-libwebp --enable-libspeex --enable-
libvorbis --enable-libvpx --enable-libfreetype --enable-fontconfig
--enable-libxvid --enable-libopencore-amrnb --enable-libopencore-amrwb
--enable-libtheora --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-
gray --enable-libopenjpeg --enable-libopus --disable-ffserver --enable-
libass --enable-gnutls --cc=gcc-4.8
libavutil 54. 7.100 / 54. 7.100
libavcodec 56. 1.100 / 56. 1.100
libavformat 56. 4.101 / 56. 4.101
libavdevice 56. 0.100 / 56. 0.100
libavfilter 5. 1.100 / 5. 1.100
libswscale 3. 0.100 / 3. 0.100
libswresample 1. 1.100 / 1. 1.100
libpostproc 53. 0.100 / 53. 0.100
Input #0, image2pipe, from 'pipe:':
Duration: N/A, bitrate: N/A
Stream #0:0: Video: png, rgba, 1920x1200, 25 fps, 25 tbr, 25 tbn, 25
tbc
[graph 0 input from stream 0:0 @ 0x3b3e1c0] w:1920 h:1200 pixfmt:rgba
tb:1/25 fr:25/1 sar:0/1 sws_param:flags=2
[scaler for output stream 0:0 @ 0x3b36e00] w:1280 h:800 flags:'0x200'
interl:0
[graph 0 input from stream 0:0 @ 0x3b3e1c0] TB:0.040000
FRAME_RATE:25.000000 SAMPLE_RATE:nan
[scaler for output stream 0:0 @ 0x3b36e00] w:1920 h:1200 fmt:rgba sar:0/1
-> w:1280 h:800 fmt:yuv420p sar:0/1 flags:0x200
Output #0, ogg, to 'output.ogv':
Metadata:
encoder : Lavf56.4.101
Stream #0:0: Video: theora (libtheora), yuv420p, 1280x800 [SAR 1:1 DAR
8:5], q=2-31, 200 kb/s, 25 fps, 25 tbn, 25 tbc
Metadata:
encoder : Lavc56.1.100 libtheora
Stream mapping:
Stream #0:0 -> #0:0 (png (native) -> theora (libtheora))
No more output streams to write to, finishing.=00:00:15.56
bitrate=2434.7kbits/s
frame= 392 fps= 14 q=0.0 Lsize= 4639kB time=00:00:15.68
bitrate=2423.7kbits/s
video:4614kB audio:0kB subtitle:0kB other streams:0kB global headers:3kB
muxing overhead: 0.536514%
Input file #0 (pipe:):
Input stream #0:0 (video): 392 packets read (609131299 bytes); 392
frames decoded;
Total: 392 packets (609131299 bytes) demuxed
Output file #0 (output.ogv):
Output stream #0:0 (video): 392 frames encoded; 392 packets muxed
(4725135 bytes);
Total: 392 packets (4725135 bytes) muxed
}}}
--
Ticket URL: <https://trac.ffmpeg.org/ticket/4088#comment:7>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker
More information about the FFmpeg-trac
mailing list