Opened 5 years ago

Closed 5 years ago

Last modified 5 years ago

#8040 closed defect (invalid)

Theora encoding is broken in FFmpeg 64 bits

Reported by: daneelveloper Owned by:
Priority: normal Component: avcodec
Version: unspecified Keywords: libtheora
Cc: Blocked By:
Blocking: Reproduced by developer: no
Analyzed by developer: no

Description

Using FFmpeg 4.1.4 32 and 64 bits tools.

  • 64 bits tool seems to encode broken Theora video. Bad video and many errors shown with FFplay.
  • 32 bits tool works as expected. Good results and no errors shown in FFplay.

Many input video types has been tested and all of them show problems. The command to test is:

ffmpeg -i in.mp4 -t 5 -c:v theora -q:v 5 out.ogv

Choppy playing and pixelated blocks in most cases. The errors shown in FFplay are like this:

ffplay -report output64.ogv

ffplay started on 2019-07-25 at 09:23:39
Report written to "ffplay-20190725-092339.log"
ffplay version 4.1.4 Copyright (c) 2003-2019 the FFmpeg developers
  built with gcc 9.1.1 (GCC) 20190716
  configuration: --enable-gpl --enable-version3 --enable-sdl2 --enable-fontconfig --enable-gnutls --enable-iconv --enable-libass --enable-libbluray --enable-libfreetype --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libtheora --enable-libtwolame --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxml2 --enable-libzimg --enable-lzma --enable-zlib --enable-gmp --enable-libvidstab --enable-libvorbis --enable-libvo-amrwbenc --enable-libmysofa --enable-libspeex --enable-libxvid --enable-libaom --enable-libmfx --enable-amf --enable-ffnvcodec --enable-cuvid --enable-d3d11va --enable-nvenc --enable-nvdec --enable-dxva2 --enable-avisynth
  libavutil      56. 22.100 / 56. 22.100
  libavcodec     58. 35.100 / 58. 35.100
  libavformat    58. 20.100 / 58. 20.100
  libavdevice    58.  5.100 / 58.  5.100
  libavfilter     7. 40.101 /  7. 40.101
  libswscale      5.  3.100 /  5.  3.100
  libswresample   3.  3.100 /  3.  3.100
  libpostproc    55.  3.100 / 55.  3.100
Input #0, ogg, from 'output64.ogv':
  Duration: 00:00:05.01, start: 0.000000, bitrate: 12978 kb/s
    Stream #0:0(eng): Video: theora, yuv420p, 1920x1080 [SAR 1:1 DAR 16:9], 29.97 fps, 29.97 tbr, 29.97 tbn, 29.97 tbc
    Metadata:
      CREATION_TIME   : 2017-11-18T10:03:08.000000Z
      LANGUAGE        : eng
      HANDLER_NAME    :  Ambarella AVC
      ENCODER         : Lavc58.35.100 libtheora
      MAJOR_BRAND     : avc1
      MINOR_VERSION   : 0
      COMPATIBLE_BRANDS: avc1isom
: Audio: vorbis, 48000 Hz, stereo, fltp, 112 kb/sq=    0KB vq=    0KB sq=    0B f=0/0
    Metadata:
      CREATION_TIME   : 2017-11-18T10:03:08.000000Z
      LANGUAGE        : eng
      HANDLER_NAME    :  Ambarella AAC
      ENCODER         : Lavc58.35.100 libvorbis
      MAJOR_BRAND     : avc1
      MINOR_VERSION   : 0
      COMPATIBLE_BRANDS: avc1isom
[theora @ 0d5b1a80] error in unpack_block_qpis0KB sq=    0B f=0/0
[theora @ 0cd75280] error in unpack_block_qpis
[theora @ 0cd75640] error in unpack_block_qpis
[theora @ 0cd75a00] error in unpack_block_qpis
[theora @ 0cc8f9c0] error in unpack_block_qpis
[theora @ 0cc8fdc0] error in unpack_block_qpis6KB sq=    0B f=0/0
[theora @ 0cc90180] error in unpack_block_qpis
[theora @ 0cc90540] error in unpack_block_qpis
[theora @ 00da2180] error in unpack_block_qpis
[theora @ 0d5b1a80] error in unpack_block_qpis
[theora @ 0cd75280] error in unpack_block_qpis
[theora @ 0cd75a00] error in unpack_block_qpis
[theora @ 0cc8f9c0] error in unpack_block_qpis
[theora @ 0cc90180] error in unpack_block_qpis
[theora @ 0cc8fdc0] error in unpack_block_qpis
[theora @ 0cc90540] error in unpack_block_qpis
[theora @ 00da2180] error in unpack_block_qpis
[theora @ 0d5b1a80] error in unpack_block_qpis
[theora @ 0cd75280] error in unpack_block_qpis
[theora @ 0cd75640] error in unpack_block_qpis
[theora @ 0cd75a00] error in unpack_block_qpis
[theora @ 0cc8f9c0] error in unpack_block_qpis
[theora @ 0cc90180] error in unpack_block_qpis
[theora @ 0cc90540] error in unpack_block_qpis
[theora @ 00da2180] error in unpack_block_qpis
[theora @ 0cd75280] error in unpack_block_qpis
[theora @ 0d5b1a80] error in unpack_block_qpis
[theora @ 0cd75640] error in unpack_block_qpis
[theora @ 0cd75a00] error in unpack_block_qpis
[theora @ 0cc8f9c0] error in unpack_block_qpis
[theora @ 0cc8fdc0] error in unpack_block_qpis
[theora @ 0cc90180] error in unpack_block_qpis
[theora @ 0cc90540] error in unpack_block_qpis
[theora @ 0cd75280] error in unpack_block_qpis
[theora @ 0d5b1a80] error in unpack_block_qpis
[theora @ 0cd75640] error in unpack_block_qpis
[theora @ 0cd75a00] error in unpack_block_qpis
[theora @ 0cc8f9c0] error in unpack_block_qpis
[theora @ 0cc8fdc0] error in unpack_block_qpis1KB sq=    0B f=0/0
[theora @ 0cc90180] error in unpack_block_qpis
[theora @ 0cc90540] error in unpack_block_qpis
[theora @ 00da2180] error in unpack_block_qpis9KB sq=    0B f=0/0
[theora @ 0d5b1a80] error in unpack_block_qpis
[theora @ 00da2180] error in unpack_vectors
[theora @ 0cc8fdc0] error in unpack_block_qpis
[theora @ 0cc90180] error in unpack_block_qpis
[theora @ 0cd75a00] error in unpack_vectors
[theora @ 0cc8f9c0] error in unpack_block_qpis
[theora @ 0d5b1a80] error in unpack_block_qpis
[theora @ 0cd75280] error in unpack_block_qpis1KB sq=    0B f=0/0
   1.04 A-V: -0.000 fd=   0 aq=   16KB vq= 1968KB sq=    0B f=0/0

Thank you.

Change History (3)

comment:1 by Carl Eugen Hoyos, 5 years ago

Keywords: libtheora added
Priority: importantnormal
Version: 4.1unspecified

Please test current FFmpeg git head and provide the ffmpeg command line you tested together with the complete, uncut console output to make this a valid ticket.

comment:2 by daneelveloper, 5 years ago

Resolution: wontfix
Status: newclosed

I assumed last Zeranoe 64 bit nightly build (which I used for my tests) were up to date but after building FFmpeg git head by myself I've verified that Theora encoding is working. Thanks for your hint and time.

comment:3 by Carl Eugen Hoyos, 5 years ago

Resolution: wontfixinvalid
Note: See TracTickets for help on using tickets.