[FFmpeg-trac] #5037(ffmpeg:new): WEBM VP8 & VP9 - 2-pass encoding does not work

FFmpeg trac at avcodec.org
Wed Nov 25 17:34:02 CET 2015


#5037: WEBM VP8 & VP9 - 2-pass encoding does not work
-------------------------------------+-------------------------------------
             Reporter:  solidghost   |                     Type:  defect
               Status:  new          |                 Priority:  normal
            Component:  ffmpeg       |                  Version:
             Keywords:               |  unspecified
             Blocking:               |               Blocked By:
Analyzed by developer:  0            |  Reproduced by developer:  0
-------------------------------------+-------------------------------------
 '''Summary:'''

 2-pass encoding does not work when using libvpx-vp9 & libvpx. The output
 always says ''"Output file is empty, nothing was encoded"'', when the
 first pass is complete. Then it continues with the second pass.

 The finished file does not seem to have used information from the first
 pass because the final bitrate is far from the specified one. Also the
 quality distribution is far from good.

 '''This is the code string:'''


 {{{
 ffmpeg -y -i Input.mov -vcodec libvpx-vp9 -f rawvideo -pix_fmt yuv420p
 -aspect 16:9 -b:v 220k -vminrate 50k -s 420x236 -g 100 -qmin 0 -qmax 63
 -an -pass 1 /dev/null && \
 ffmpeg -y -i Input.mov -vcodec libvpx-vp9 -f webm -pix_fmt yuv420p -aspect
 16:9 -b:v 220k -vminrate 50k -s 420x236 -g 100 -qmin 0 -qmax 63 -an -pass
 2 \ out.webm
 }}}

 '''FFMPEG Output from the Terminal:'''


 {{{
 Thomas-MacBook-Pro:NEW_ONLINE_SETTINGS Thomas$ ffmpeg -y -i raw.mov
 -vcodec libvpx-vp9 -f rawvideo -pix_fmt yuv420p -aspect 16:9 -b:v 220k
 -vminrate 50k -s 420x236 -g 100 -qmin 0 -qmax 63 -an -pass 1 /dev/null &&
 \
 > ffmpeg -y -i raw.mov -vcodec libvpx-vp9 -f webm -pix_fmt yuv420p -aspect
 16:9 -b:v 220k -vminrate 50k -s 420x236 -g 100 -qmin 0 -qmax 63 -an -pass
 2 \ out.webm
 ffmpeg version 2.8 Copyright (c) 2000-2015 the FFmpeg developers
   built with Apple LLVM version 7.0.0 (clang-700.0.72)
   configuration: --prefix=/usr/local/Cellar/ffmpeg/2.8 --enable-shared
 --enable-pthreads --enable-gpl --enable-version3 --enable-hardcoded-tables
 --enable-avresample --cc=clang --host-cflags= --host-ldflags= --enable-
 opencl --enable-libx264 --enable-libmp3lame --enable-libvo-aacenc
 --enable-libxvid --enable-libfreetype --enable-libvorbis --enable-libvpx
 --enable-libass --enable-ffplay --enable-libfdk-aac --enable-libopus
 --enable-libquvi --enable-libx265 --enable-nonfree --enable-vda
   libavutil      54. 31.100 / 54. 31.100
   libavcodec     56. 60.100 / 56. 60.100
   libavformat    56. 40.101 / 56. 40.101
   libavdevice    56.  4.100 / 56.  4.100
   libavfilter     5. 40.101 /  5. 40.101
   libavresample   2.  1.  0 /  2.  1.  0
   libswscale      3.  1.101 /  3.  1.101
   libswresample   1.  2.101 /  1.  2.101
   libpostproc    53.  3.100 / 53.  3.100
 Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'raw.mov':
   Metadata:
     major_brand     : qt
     minor_version   : 537199360
     compatible_brands: qt
     creation_time   : 2015-11-23 13:44:32
   Duration: 00:00:30.00, start: 0.000000, bitrate: 224330 kb/s
     Stream #0:0(eng): Video: qtrle (rle  / 0x20656C72), rgb24, 720x576,
 222782 kb/s, SAR 35:24 DAR 175:96, 25 fps, 25 tbr, 25 tbn, 25 tbc
 (default)
     Metadata:
       creation_time   : 2015-11-23 13:44:32
       handler_name    : Apple Alias Data Handler
       encoder         : Animation
       timecode        : 00:00:00:00
     Stream #0:1(eng): Audio: pcm_s16le (sowt / 0x74776F73), 48000 Hz,
 stereo, s16, 1536 kb/s (default)
     Metadata:
       creation_time   : 2015-11-23 13:44:32
       handler_name    : Apple Alias Data Handler
       timecode        : 00:00:00:00
     Stream #0:2(eng): Data: none (tmcd / 0x64636D74), 0 kb/s (default)
     Metadata:
       creation_time   : 2015-11-23 13:44:40
       handler_name    : Apple Alias Data Handler
       timecode        : 00:00:00:00
 [libvpx-vp9 @ 0x7f95a200b800] v1.4.0
 Output #0, rawvideo, to '/dev/null':
   Metadata:
     major_brand     : qt
     minor_version   : 537199360
     compatible_brands: qt
     encoder         : Lavf56.40.101
     Stream #0:0(eng): Video: vp9 (libvpx-vp9), yuv420p, 420x236 [SAR
 944:945 DAR 16:9], q=0-63, pass 1, 220 kb/s, 25 fps, 25 tbn, 25 tbc
 (default)
     Metadata:
       creation_time   : 2015-11-23 13:44:32
       handler_name    : Apple Alias Data Handler
       timecode        : 00:00:00:00
       encoder         : Lavc56.60.100 libvpx-vp9
 Stream mapping:
   Stream #0:0 -> #0:0 (qtrle (native) -> vp9 (libvpx-vp9))
 Press [q] to stop, [?] for help
 frame=  750 fps=134 q=0.0 Lsize=       0kB time=00:00:00.00 bitrate=N/A
 video:0kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB
 muxing overhead: unknown
 Output file is empty, nothing was encoded
 ffmpeg version 2.8 Copyright (c) 2000-2015 the FFmpeg developers
   built with Apple LLVM version 7.0.0 (clang-700.0.72)
   configuration: --prefix=/usr/local/Cellar/ffmpeg/2.8 --enable-shared
 --enable-pthreads --enable-gpl --enable-version3 --enable-hardcoded-tables
 --enable-avresample --cc=clang --host-cflags= --host-ldflags= --enable-
 opencl --enable-libx264 --enable-libmp3lame --enable-libvo-aacenc
 --enable-libxvid --enable-libfreetype --enable-libvorbis --enable-libvpx
 --enable-libass --enable-ffplay --enable-libfdk-aac --enable-libopus
 --enable-libquvi --enable-libx265 --enable-nonfree --enable-vda
   libavutil      54. 31.100 / 54. 31.100
   libavcodec     56. 60.100 / 56. 60.100
   libavformat    56. 40.101 / 56. 40.101
   libavdevice    56.  4.100 / 56.  4.100
   libavfilter     5. 40.101 /  5. 40.101
   libavresample   2.  1.  0 /  2.  1.  0
   libswscale      3.  1.101 /  3.  1.101
   libswresample   1.  2.101 /  1.  2.101
   libpostproc    53.  3.100 / 53.  3.100
 Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'raw.mov':
   Metadata:
     major_brand     : qt
     minor_version   : 537199360
     compatible_brands: qt
     creation_time   : 2015-11-23 13:44:32
   Duration: 00:00:30.00, start: 0.000000, bitrate: 224330 kb/s
     Stream #0:0(eng): Video: qtrle (rle  / 0x20656C72), rgb24, 720x576,
 222782 kb/s, SAR 35:24 DAR 175:96, 25 fps, 25 tbr, 25 tbn, 25 tbc
 (default)
     Metadata:
       creation_time   : 2015-11-23 13:44:32
       handler_name    : Apple Alias Data Handler
       encoder         : Animation
       timecode        : 00:00:00:00
     Stream #0:1(eng): Audio: pcm_s16le (sowt / 0x74776F73), 48000 Hz,
 stereo, s16, 1536 kb/s (default)
     Metadata:
       creation_time   : 2015-11-23 13:44:32
       handler_name    : Apple Alias Data Handler
       timecode        : 00:00:00:00
     Stream #0:2(eng): Data: none (tmcd / 0x64636D74), 0 kb/s (default)
     Metadata:
       creation_time   : 2015-11-23 13:44:40
       handler_name    : Apple Alias Data Handler
       timecode        : 00:00:00:00
 [libvpx-vp9 @ 0x7f849401bc00] v1.4.0
 Output #0, webm, to ' out.webm':
   Metadata:
     major_brand     : qt
     minor_version   : 537199360
     compatible_brands: qt
     encoder         : Lavf56.40.101
     Stream #0:0(eng): Video: vp9 (libvpx-vp9), yuv420p, 420x236 [SAR
 944:945 DAR 16:9], q=0-63, pass 2, 220 kb/s, 25 fps, 1k tbn, 25 tbc
 (default)
     Metadata:
       creation_time   : 2015-11-23 13:44:32
       handler_name    : Apple Alias Data Handler
       timecode        : 00:00:00:00
       encoder         : Lavc56.60.100 libvpx-vp9
 Stream mapping:
   Stream #0:0 -> #0:0 (qtrle (native) -> vp9 (libvpx-vp9))
 Press [q] to stop, [?] for help
 frame=  750 fps= 13 q=0.0 Lsize=     844kB time=00:00:30.00 bitrate=
 230.4kbits/s
 video:838kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB
 muxing overhead: 0.744376%
 Thomas-MacBook-Pro:NEW_ONLINE_SETTINGS Thomas$
 }}}


 ffmpeg version 2.8 Copyright (c) 2000-2015 the FFmpeg developers
   built with Apple LLVM version 7.0.0 (clang-700.0.72)

--
Ticket URL: <https://trac.ffmpeg.org/ticket/5037>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list