Opened 2 years ago

Closed 2 years ago

Last modified 2 years ago

#7929 closed defect (worksforme)

Failed ogv result when converting AVI made with Premiere

Reported by: Facundo D Owned by:
Priority: normal Component: undetermined
Version: git-master Keywords: libtheora regression
Cc: Blocked By:
Blocking: Reproduced by developer: no
Analyzed by developer: no

Description

Summary of the bug:
I'm doing conversion from AVI (Premiere) to OGV (theora) and begining with 4.1+ it creates a broken result. Not only frames are lost, but some gets full green and sound became noise.

Conversion is currently working on 4.0.2. Same ffmpeg line.

How to reproduce:

% ffmpeg -i input.avi -codec:v libtheora -qscale:v 8 -codec:a libvorbis -qscale:a 5 output 

ffmpeg version 4.1+
Windows binary downloaded build

This is 4.1.3 log, file is created and i'll include it in ticket (400kb)

ffmpeg version 4.1.3 Copyright (c) 2000-2019 the FFmpeg developers
  built with gcc 8.3.1 (GCC) 20190414
  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
[avi @ 000001efa840a580] non-interleaved AVI
Guessed Channel Layout for Input Stream #0.1 : mono
Input #0, avi, from 'd:\Develop\reversion3-videos\test-ogv\probar_convertir.avi':
  Metadata:
    date            : 2019-05-28T14:40:34-03:00
    encoder         : Adobe Premiere Pro CC 2017.0 (Windows)
  Duration: 00:00:10.24, start: 0.000000, bitrate: 499113 kb/s
    Stream #0:0: Video: v210 (v210 / 0x30313276), yuv422p10le, 1280x720, 499615 kb/s, 25 fps, 25 tbr, 25 tbn, 25 tbc
    Stream #0:1: Audio: pcm_s16le ([1][0][0][0] / 0x0001), 48000 Hz, mono, s16, 768 kb/s
Stream mapping:
  Stream #0:0 -> #0:0 (v210 (native) -> theora (libtheora))
  Stream #0:1 -> #0:1 (pcm_s16le (native) -> vorbis (libvorbis))
Press [q] to stop, [?] for help
Output #0, ogv, to 'd:\Develop\reversion3-videos\test-ogv\probar_convertir.avi-qv8-qa5.ogv':
  Metadata:
    date            : 2019-05-28T14:40:34-03:00
    encoder         : Lavf58.20.100
    Stream #0:0: Video: theora (libtheora), yuv422p(progressive), 1280x720, q=2-31, 200 kb/s, 25 fps, 25 tbn, 25 tbc
    Metadata:
      encoder         : Lavc58.35.100 libtheora
      date            : 2019-05-28T14:40:34-03:00
    Stream #0:1: Audio: vorbis (libvorbis), 48000 Hz, mono, fltp
    Metadata:
      encoder         : Lavc58.35.100 libvorbis
      date            : 2019-05-28T14:40:34-03:00
[libtheora @ 000001efa840fb00] theora_encode_packetout failed [-1]e=2223.0kbits/s speed=0.993x
Video encoding failed
[libvorbis @ 000001efa84112c0] 39 frames left in the queue on closing
Conversion failed!

This is 4.0.2 log, no errors, result int ~5mb file.

ffmpeg version 4.0.2 Copyright (c) 2000-2018 the FFmpeg developers
  built with gcc 7.3.1 (GCC) 20180722
  configuration: --enable-gpl --enable-version3 --enable-sdl2 --enable-bzlib --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. 14.100 / 56. 14.100
  libavcodec     58. 18.100 / 58. 18.100
  libavformat    58. 12.100 / 58. 12.100
  libavdevice    58.  3.100 / 58.  3.100
  libavfilter     7. 16.100 /  7. 16.100
  libswscale      5.  1.100 /  5.  1.100
  libswresample   3.  1.100 /  3.  1.100
  libpostproc    55.  1.100 / 55.  1.100
[avi @ 0000019436caa3c0] non-interleaved AVI
Guessed Channel Layout for Input Stream #0.1 : mono
Input #0, avi, from 'd:\Develop\reversion3-videos\test-ogv\probar_convertir.avi':
  Metadata:
    date            : 2019-05-28T14:40:34-03:00
    encoder         : Adobe Premiere Pro CC 2017.0 (Windows)
  Duration: 00:00:10.24, start: 0.000000, bitrate: 499113 kb/s
    Stream #0:0: Video: v210 (v210 / 0x30313276), yuv422p10le, 1280x720, 499615 kb/s, 25 fps, 25 tbr, 25 tbn, 25 tbc
    Stream #0:1: Audio: pcm_s16le ([1][0][0][0] / 0x0001), 48000 Hz, mono, s16, 768 kb/s
Stream mapping:
  Stream #0:0 -> #0:0 (v210 (native) -> theora (libtheora))
  Stream #0:1 -> #0:1 (pcm_s16le (native) -> vorbis (libvorbis))
Press [q] to stop, [?] for help
Output #0, ogv, to 'd:\Develop\reversion3-videos\test-ogv\probar_convertir.avi-qv8-qa5.ogv':
  Metadata:
    date            : 2019-05-28T14:40:34-03:00
    encoder         : Lavf58.12.100
    Stream #0:0: Video: theora (libtheora), yuv422p(progressive), 1280x720, q=2-31, 200 kb/s, 25 fps, 25 tbn, 25 tbc
    Metadata:
      encoder         : Lavc58.18.100 libtheora
      date            : 2019-05-28T14:40:34-03:00
    Stream #0:1: Audio: vorbis (libvorbis), 48000 Hz, mono, fltp
    Metadata:
      encoder         : Lavc58.18.100 libvorbis
      date            : 2019-05-28T14:40:34-03:00
frame=  256 fps= 21 q=-0.0 Lsize=    4655kB time=00:00:10.24 bitrate=3724.2kbits/s speed=0.848x
video:4585kB audio:41kB subtitle:0kB other streams:0kB global headers:7kB muxing overhead: 0.622212%

Attachments (2)

probar_convertir.avi-qv8-qa5-4.1.3.ogv (457.5 KB ) - added by Facundo D 2 years ago.
stablishing_720.avi-crf25-gop15.mp4 (1.5 MB ) - added by Facundo D 2 years ago.

Download all attachments as: .zip

Change History (9)

by Facundo D, 2 years ago

comment:1 by Carl Eugen Hoyos, 2 years ago

Component: ffmpegundetermined
Keywords: regression added; ogv v210 removed

Did you attach an output file? Never do that, only attach input files.

Please test current FFmpeg git head and provide an input file that allows to reproduce the issue to make this a valid ticket.

by Facundo D, 2 years ago

comment:2 by Facundo D, 2 years ago

I'm using an AVI source file that kind of uncompressed, uploading it is a no go. (600mb file size). However, i did a avi -> mp4 conversion

I realize now that my source is 10 bit color coding, not sure if that's important here.

So, you ask, I answer; using current windows build (is it really necessary to build locally?)

Attachment added, filename is stablishing_720.avi-crf25-gop15.mp4 and when conversion is done it gets artifacts, command line is

ffmpeg.exe -i stablishing_720.avi-crf25-gop15.mp4 -codec:v libtheora -qscale:v 8 -codec:a libvorbis -qscale:a 5 stablishing_720.avi-crf25-gop15.mp4-qv8-qa5.ogv

log below

c:\binCmd\ffmpeg-20190530-9c35285-win64-static\bin\ffmpeg.exe -i d:\Develop\reversion3-videos\test-ogv\stablishing_720.avi-crf25-gop15.mp4 -codec:v libtheora -qscale:v 8 -codec:a libvorbis -qscale:a 5 d:\Develop\reversion3-videos\test-ogv\stablishing_720.avi-crf25-gop15.mp4-qv8-qa5.ogv
ffmpeg version N-93949-g9c35285aea Copyright (c) 2000-2019 the FFmpeg developers
  built with gcc 8.3.1 (GCC) 20190414
  configuration: --enable-gpl --enable-version3 --enable-sdl2 --enable-fontconfig --enable-gnutls --enable-iconv --enable-libass --enable-libdav1d --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 --enable-libopenmpt
  libavutil      56. 28.100 / 56. 28.100
  libavcodec     58. 52.102 / 58. 52.102
  libavformat    58. 27.103 / 58. 27.103
  libavdevice    58.  7.100 / 58.  7.100
  libavfilter     7. 54.101 /  7. 54.101
  libswscale      5.  4.101 /  5.  4.101
  libswresample   3.  4.100 /  3.  4.100
  libpostproc    55.  4.100 / 55.  4.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'd:\Develop\reversion3-videos\test-ogv\stablishing_720.avi-crf25-gop15.mp4':
  Metadata:
    major_brand     : isom
    minor_version   : 512
    compatible_brands: isomiso2mp41
    date            : 2019-04-30T14:48:41-03:00
    encoder         : Lavf58.27.103
  Duration: 00:00:10.02, start: 0.000000, bitrate: 1279 kb/s
    Stream #0:0(und): Video: hevc (Rext) (hev1 / 0x31766568), yuv422p10le(tv, progressive), 1280x720, 1270 kb/s, 25 fps, 25 tbr, 12800 tbn, 25 tbc (default)
    Metadata:
      handler_name    : VideoHandler
    Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 2 kb/s (default)
    Metadata:
      handler_name    : SoundHandler
Stream mapping:
  Stream #0:0 -> #0:0 (hevc (native) -> theora (libtheora))
  Stream #0:1 -> #0:1 (aac (native) -> vorbis (libvorbis))
Press [q] to stop, [?] for help
Output #0, ogv, to 'd:\Develop\reversion3-videos\test-ogv\stablishing_720.avi-crf25-gop15.mp4-qv8-qa5.ogv':
  Metadata:
    major_brand     : isom
    minor_version   : 512
    compatible_brands: isomiso2mp41
    date            : 2019-04-30T14:48:41-03:00
    encoder         : Lavf58.27.103
    Stream #0:0(und): Video: theora (libtheora), yuv422p, 1280x720, q=2-31, 200 kb/s, 25 fps, 25 tbn, 25 tbc (default)
    Metadata:
      handler_name    : VideoHandler
      encoder         : Lavc58.52.102 libtheora
      major_brand     : isom
      minor_version   : 512
      compatible_brands: isomiso2mp41
      date            : 2019-04-30T14:48:41-03:00
    Stream #0:1(und): Audio: vorbis (libvorbis), 48000 Hz, stereo, fltp (default)
    Metadata:
      handler_name    : SoundHandler
      encoder         : Lavc58.52.102 libvorbis
      major_brand     : isom
      minor_version   : 512
      compatible_brands: isomiso2mp41
      date            : 2019-04-30T14:48:41-03:00
frame=  250 fps= 21 q=-0.0 Lsize=    8600kB time=00:00:10.00 bitrate=7045.3kbits/s speed=0.832x
video:8552kB audio:0kB subtitle:0kB other streams:0kB global headers:7kB muxing overhead: 0.553395%

comment:3 by Facundo D, 2 years ago

i repeat an important detail: *same line, different version (4.0.x), works without any issue*

in reply to:  3 ; comment:4 by Carl Eugen Hoyos, 2 years ago

Resolution: worksforme
Status: newclosed

Replying to genuinefafa:

i repeat an important detail: *same line, different version (4.0.x), works without any issue*

Then please reopen this ticket if you can point us to the change introducing the issue.

Works fine here.

$ ffmpeg -i stablishing_720.avi-crf25-gop15.mp4 -codec:v libtheora -qscale:v 8 -codec:a libvorbis -qscale:a 5 out.ogv
ffmpeg version N-93954-g76ef18fd39 Copyright (c) 2000-2019 the FFmpeg developers
  built with gcc 9 (SUSE Linux)
  configuration: --enable-gpl --enable-gnutls --enable-libxml2 --enable-libx264 --enable-libx265 --enable-libvpx --enable-libaom --enable-libdav1d --enable-libmfx --enable-libtheora --enable-libvorbis
  libavutil      56. 28.100 / 56. 28.100
  libavcodec     58. 52.102 / 58. 52.102
  libavformat    58. 27.103 / 58. 27.103
  libavdevice    58.  7.100 / 58.  7.100
  libavfilter     7. 55.100 /  7. 55.100
  libswscale      5.  4.101 /  5.  4.101
  libswresample   3.  4.100 /  3.  4.100
  libpostproc    55.  4.100 / 55.  4.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'stablishing_720.avi-crf25-gop15.mp4':
  Metadata:
    major_brand     : isom
    minor_version   : 512
    compatible_brands: isomiso2mp41
    date            : 2019-04-30T14:48:41-03:00
    encoder         : Lavf58.27.103
  Duration: 00:00:10.02, start: 0.000000, bitrate: 1279 kb/s
    Stream #0:0(und): Video: hevc (Rext) (hev1 / 0x31766568), yuv422p10le(tv, progressive), 1280x720, 1270 kb/s, 25 fps, 25 tbr, 12800 tbn, 25 tbc (default)
    Metadata:
      handler_name    : VideoHandler
    Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 2 kb/s (default)
    Metadata:
      handler_name    : SoundHandler
Stream mapping:
  Stream #0:0 -> #0:0 (hevc (native) -> theora (libtheora))
  Stream #0:1 -> #0:1 (aac (native) -> vorbis (libvorbis))
Press [q] to stop, [?] for help
Output #0, ogv, to 'out.ogv':
  Metadata:
    major_brand     : isom
    minor_version   : 512
    compatible_brands: isomiso2mp41
    date            : 2019-04-30T14:48:41-03:00
    encoder         : Lavf58.27.103
    Stream #0:0(und): Video: theora (libtheora), yuv422p, 1280x720, q=2-31, 200 kb/s, 25 fps, 25 tbn, 25 tbc (default)
    Metadata:
      handler_name    : VideoHandler
      encoder         : Lavc58.52.102 libtheora
      major_brand     : isom
      minor_version   : 512
      compatible_brands: isomiso2mp41
      date            : 2019-04-30T14:48:41-03:00
    Stream #0:1(und): Audio: vorbis (libvorbis), 48000 Hz, stereo, fltp (default)
    Metadata:
      handler_name    : SoundHandler
      encoder         : Lavc58.52.102 libvorbis
      major_brand     : isom
      minor_version   : 512
      compatible_brands: isomiso2mp41
      date            : 2019-04-30T14:48:41-03:00
frame=  250 fps= 17 q=-0.0 Lsize=    7143kB time=00:00:10.00 bitrate=5851.4kbits/s speed=0.661x    
video:7102kB audio:0kB subtitle:0kB other streams:0kB global headers:7kB muxing overhead: 0.570896%

in reply to:  2 comment:5 by Carl Eugen Hoyos, 2 years ago

Replying to genuinefafa:

I'm using an AVI source file that kind of uncompressed, uploading it is a no go. (600mb file size).

See #2263 (at a time when the internet was generally slower)...

in reply to:  4 comment:6 by Facundo D, 2 years ago

Replying to cehoyos:

Works fine here.

Did you check playing the ogv file after conversion? i see a bunch of frames lost even do, no issue is reported by ffmpeg command line.

I did try with two different computers, both with Windows.

comment:7 by Carl Eugen Hoyos, 2 years ago

Note: See TracTickets for help on using tickets.