[FFmpeg-trac] #4088(undetermined:closed): Theora video duration different depending on scale

FFmpeg trac at avcodec.org
Fri Nov 7 10:20:26 CET 2014


#4088: Theora video duration different depending on scale
-------------------------------------+-------------------------------------
             Reporter:  mlinnosk     |                    Owner:
                 Type:  defect       |                   Status:  closed
             Priority:  normal       |                Component:
              Version:  git-master   |  undetermined
             Keywords:  libtheora    |               Resolution:
  ogg                                |  worksforme
             Blocking:               |               Blocked By:
Analyzed by developer:  0            |  Reproduced by developer:  0
-------------------------------------+-------------------------------------
Changes (by cehoyos):

 * keywords:  theora,pipe => libtheora ogg
 * status:  new => closed
 * version:  2.4.3 => git-master
 * resolution:   => worksforme


Comment:

 Feel free to reopen this ticket if you can provide source files that allow
 to reproduce the issue (or if this is {{{unzip}}}-related).
 {{{
 $ ffmpeg -f lavfi -i testsrc=r=1 -pix_fmt rgba -vframes 392 testsrc%3d.png
 }}}
 {{{
 $ cat testsrc* | ffmpeg -f image2pipe -i - -s 1024x640 -aspect 16:10
 -sws_flags lanczos -qscale:v 7 -pix_fmt yuv420p out1.ogv
 ffmpeg version N-67446-gc11f731 Copyright (c) 2000-2014 the FFmpeg
 developers
   built on Nov  7 2014 09:43:19 with gcc 4.7 (SUSE Linux)
   configuration: --enable-gpl --enable-libtheora
   libavutil      54. 11.100 / 54. 11.100
   libavcodec     56. 12.100 / 56. 12.100
   libavformat    56. 12.101 / 56. 12.101
   libavdevice    56.  2.100 / 56.  2.100
   libavfilter     5.  2.103 /  5.  2.103
   libswscale      3.  1.101 /  3.  1.101
   libswresample   1.  1.100 /  1.  1.100
   libpostproc    53.  3.100 / 53.  3.100
 Input #0, image2pipe, from 'pipe:':
   Duration: N/A, bitrate: N/A
     Stream #0:0: Video: png, rgba, 1920x1080 [SAR 3:4 DAR 4:3], 25 fps, 25
 tbr, 25 tbn, 25 tbc
 Output #0, ogg, to 'out1.ogv':
   Metadata:
     encoder         : Lavf56.12.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.12.100 libtheora
 Stream mapping:
   Stream #0:0 -> #0:0 (png (native) -> theora (libtheora))
 frame=  392 fps= 28 q=0.0 Lsize=    2375kB time=00:00:15.68
 bitrate=1240.7kbits/s
 video:2360kB audio:0kB subtitle:0kB other streams:0kB global headers:3kB
 muxing overhead: 0.613787%
 }}}
 {{{
 $ cat testsrc* | ffmpeg -f image2pipe -i - -s 1280x800 -aspect 16:10
 -sws_flags lanczos -qscale:v 7 -pix_fmt yuv420p out2.ogv
 ffmpeg version N-67446-gc11f731 Copyright (c) 2000-2014 the FFmpeg
 developers
   built on Nov  7 2014 09:43:19 with gcc 4.7 (SUSE Linux)
   configuration: --enable-gpl --enable-libtheora
   libavutil      54. 11.100 / 54. 11.100
   libavcodec     56. 12.100 / 56. 12.100
   libavformat    56. 12.101 / 56. 12.101
   libavdevice    56.  2.100 / 56.  2.100
   libavfilter     5.  2.103 /  5.  2.103
   libswscale      3.  1.101 /  3.  1.101
   libswresample   1.  1.100 /  1.  1.100
   libpostproc    53.  3.100 / 53.  3.100
 Input #0, image2pipe, from 'pipe:':
   Duration: N/A, bitrate: N/A
     Stream #0:0: Video: png, rgba, 1920x1080 [SAR 3:4 DAR 4:3], 25 fps, 25
 tbr, 25 tbn, 25 tbc
 Output #0, ogg, to 'out2.ogv':
   Metadata:
     encoder         : Lavf56.12.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.12.100 libtheora
 Stream mapping:
   Stream #0:0 -> #0:0 (png (native) -> theora (libtheora))
 frame=  392 fps= 19 q=0.0 Lsize=    3240kB time=00:00:15.68
 bitrate=1692.7kbits/s
 video:3221kB audio:0kB subtitle:0kB other streams:0kB global headers:3kB
 muxing overhead: 0.580756%
 }}}
 {{{
 $ ffmpeg -i out1.ogv -i out2.ogv
 ffmpeg version N-67446-gc11f731 Copyright (c) 2000-2014 the FFmpeg
 developers
   built on Nov  7 2014 09:43:19 with gcc 4.7 (SUSE Linux)
   configuration: --enable-gpl --enable-libtheora
   libavutil      54. 11.100 / 54. 11.100
   libavcodec     56. 12.100 / 56. 12.100
   libavformat    56. 12.101 / 56. 12.101
   libavdevice    56.  2.100 / 56.  2.100
   libavfilter     5.  2.103 /  5.  2.103
   libswscale      3.  1.101 /  3.  1.101
   libswresample   1.  1.100 /  1.  1.100
   libpostproc    53.  3.100 / 53.  3.100
 Input #0, ogg, from 'out1.ogv':
   Duration: 00:00:15.68, start: 0.000000, bitrate: 1240 kb/s
     Stream #0:0: Video: theora, yuv420p, 1024x640 [SAR 1:1 DAR 8:5], 25
 tbr, 25 tbn, 25 tbc
     Metadata:
       ENCODER         : Lavc56.12.100 libtheora
 Input #1, ogg, from 'out2.ogv':
   Duration: 00:00:15.68, start: 0.000000, bitrate: 1692 kb/s
     Stream #1:0: Video: theora, yuv420p, 1280x800 [SAR 1:1 DAR 8:5], 25
 tbr, 25 tbn, 25 tbc
     Metadata:
       ENCODER         : Lavc56.12.100 libtheora
 At least one output file must be specified
 }}}
 The following command lines also produce files of identical length:
 {{{
 $ ffmpeg -i testsrc%3d.png -s 1024x640 -aspect 16:10 -sws_flags lanczos
 -qscale:v 7 -pix_fmt yuv420p out1.ogv
 }}}
 {{{
 $ ffmpeg -i testsrc%3d.png -s 1280x800 -aspect 16:10 -sws_flags lanczos
 -qscale:v 7 -pix_fmt yuv420p out2.ogv
 }}}

--
Ticket URL: <https://trac.ffmpeg.org/ticket/4088#comment:18>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list