Bug#607593: ffmpeg: encoding ogg fails:[libtheora @ 0x2567a80]theora_encode_init failed. Use debian-multimedia.org fine.

Hector Oron hector.oron at gmail.com
Mon Dec 20 02:05:31 UTC 2010


Package: ffmpeg
Version: 4:0.5.2-6
Severity: important

Hello,

  On a pure Debian/unstable system, I attempt to convert *.flv to
*.ogg and it fails in many ways (I tried many options during the day).
  After installing packages from debian-multimedia.org, everything
works fine at the first time.

$ ffmpeg -y -i Underworld_Born_Slippy_1999_Live-K7Pts7AljZQ.flv
Underworld_Born_Slippy_1999_Live-K7Pts7AljZQ.ogg
FFmpeg version SVN-r0.5.2-4:0.5.2-6, Copyright (c) 2000-2009 Fabrice
Bellard, et al.
  configuration: --extra-version=4:0.5.2-6 --prefix=/usr
--enable-avfilter --enable-avfilter-lavf --enable-vdpau --enable-bzlib
--enable-libdirac --enable-libgsm --enable-libopenjpeg
--enable-libschroedinger --enable-libspeex --enable-libtheora
--enable-libvorbis --enable-pthreads --enable-zlib --disable-stripping
--disable-vhook --enable-runtime-cpudetect --enable-gpl
--enable-postproc --enable-swscale --enable-x11grab --enable-libfaad
--enable-libdc1394 --enable-shared --disable-static
  libavutil     49.15. 0 / 49.15. 0
  libavcodec    52.20. 1 / 52.20. 1
  libavformat   52.31. 0 / 52.31. 0
  libavdevice   52. 1. 0 / 52. 1. 0
  libavfilter    0. 4. 0 /  0. 4. 0
  libswscale     0. 7. 1 /  0. 7. 1
  libpostproc   51. 2. 0 / 51. 2. 0
  built on Oct  5 2010 13:32:26, gcc: 4.4.5

Seems stream 0 codec frame rate differs from container frame rate:
50.00 (50/1) -> 25.00 (25/1)
Input #0, flv, from 'Underworld_Born_Slippy_1999_Live-K7Pts7AljZQ.flv':
  Duration: 00:08:25.12, start: 0.000000, bitrate: 378 kb/s
    Stream #0.0: Video: h264, yuv420p, 322x288 [PAR 1:1 DAR 161:144],
378 kb/s, 25 tbr, 1k tbn, 50 tbc
    Stream #0.1: Audio: aac, 44100 Hz, stereo, s16
Output #0, ogg, to 'Underworld_Born_Slippy_1999_Live-K7Pts7AljZQ.ogg':
    Stream #0.0: Video: libtheora, yuv420p, 322x288 [PAR 1:1 DAR
161:144], q=2-31, 200 kb/s, 90k tbn, 25 tbc
    Stream #0.1: Audio: flac, 44100 Hz, stereo, s16, 64 kb/s
Stream mapping:
  Stream #0.0 -> #0.0
  Stream #0.1 -> #0.1
[libtheora @ 0x2567a80]theora_encode_init failed
Error while opening codec for output stream #0.0 - maybe incorrect
parameters such as bit_rate, rate, width or height


After installing debian-multimedia.org packages, I get a successful output:

FFmpeg version SVN-r25838, Copyright (c) 2000-2010 the FFmpeg developers
  built on Nov 29 2010 15:39:30 with gcc 4.4.5
  configuration: --enable-libdc1394 --prefix=/usr
--extra-cflags='-Wall -g ' --cc='ccache cc' --enable-shared
--enable-libmp3lame --enable-gpl --enable-libvorbis --enable-pthreads
--enable-libfaac --enable-libxvid --enable-postproc --enable-x11grab
--enable-libgsm --enable-libtheora --enable-libopencore-amrnb
--enable-libopencore-amrwb --enable-libx264 --enable-libspeex
--enable-nonfree --disable-stripping --enable-avfilter
--enable-libdirac --disable-decoder=libdirac --enable-libschroedinger
--disable-encoder=libschroedinger --enable-version3
--enable-libopenjpeg --enable-libvpx --enable-librtmp
--extra-libs=-lgcrypt --disable-altivec --disable-armv5te
--disable-armv6 --disable-vis
  libavutil     50.33. 0 / 50.33. 0
  libavcore      0.14. 0 /  0.14. 0
  libavcodec    52.97. 2 / 52.97. 2
  libavformat   52.87. 1 / 52.87. 1
  libavdevice   52. 2. 2 / 52. 2. 2
  libavfilter    1.65. 0 /  1.65. 0
  libswscale     0.12. 0 /  0.12. 0
  libpostproc   51. 2. 0 / 51. 2. 0
[flv @ 0x69e760] Estimating duration from bitrate, this may be inaccurate
Input #0, flv, from 'Underworld_Born_Slippy_1999_Live-K7Pts7AljZQ.flv':
  Metadata:
    duration        : 505
    starttime       : 0
    totalduration   : 505
    width           : 322
    height          : 288
    videodatarate   : 370
    audiodatarate   : 118
    totaldatarate   : 496
    framerate       : 25
    bytelength      : 31356776
    canseekontime   : true
    sourcedata      : BCCF6EA03HH1292793577283876
    purl            :
    pmsg            :
  Duration: 00:08:25.12, start: 0.000000, bitrate: 500 kb/s
    Stream #0.0: Video: h264, yuv420p, 322x288 [PAR 1:1 DAR 161:144],
378 kb/s, 25 tbr, 1k tbn, 50 tbc
    Stream #0.1: Audio: aac, 44100 Hz, stereo, s16, 121 kb/s
[buffer @ 0x6b1ce0] w:322 h:288 pixfmt:yuv420p
Output #0, ogg, to 'Underworld_Born_Slippy_1999_Live-K7Pts7AljZQ.ogg':
  Metadata:
    duration        : 505
    starttime       : 0
    totalduration   : 505
    width           : 322
    height          : 288
    videodatarate   : 370
    audiodatarate   : 118
    totaldatarate   : 496
    framerate       : 25
    bytelength      : 31356776
    canseekontime   : true
    sourcedata      : BCCF6EA03HH1292793577283876
    purl            :
    pmsg            :
    encoder         : Lavf52.87.1
    Stream #0.0: Video: libtheora, yuv420p, 322x288 [PAR 1:1 DAR
161:144], q=2-31, 200 kb/s, 25 tbn, 25 tbc
    Stream #0.1: Audio: flac, 44100 Hz, stereo, s16, 64 kb/s
Stream mapping:
  Stream #0.0 -> #0.0
  Stream #0.1 -> #0.1
Press [q] to stop encoding
frame=   75 fps=  0 q=0.0 size=     256kB time=2.93 bitrate= 718.0kbits/s
[...]
video:12328kB audio:55087kB global headers:3kB muxing overhead 0.448726%

Best regards,
-- 
 Héctor Orón

"Our Sun unleashes tremendous flares expelling hot gas into the Solar
System, which one day will disconnect us."

-- Day DVB-T stop working nicely
Video flare: http://antwrp.gsfc.nasa.gov/apod/ap100510.html





More information about the pkg-multimedia-maintainers mailing list