[FFmpeg-trac] #4591(avformat:new): attachments mjpeg are discovered wrongly as video stream and therefore h264 encoding is broken

FFmpeg trac at avcodec.org
Thu Feb 10 14:19:30 EET 2022


#4591: attachments mjpeg are discovered wrongly as video stream and therefore h264
encoding is broken
-------------------------------------+-------------------------------------
             Reporter:  TheoMeister  |                    Owner:  (none)
                 Type:  defect       |                   Status:  new
             Priority:  important    |                Component:  avformat
              Version:  git-master   |               Resolution:
             Keywords:  mkv          |               Blocked By:
  regression                         |
             Blocking:               |  Reproduced by developer:  0
Analyzed by developer:  0            |
-------------------------------------+-------------------------------------
Comment (by mitar):

 [https://commons.wikimedia.org/wiki/File:KR369.ogg Example]:

 {{{
 ffmpeg version 4.2.4-1ubuntu0.1 Copyright (c) 2000-2020 the FFmpeg
 developers
   built with gcc 9 (Ubuntu 9.3.0-10ubuntu2)
   configuration: --prefix=/usr --extra-version=1ubuntu0.1
 --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu
 --incdir=/usr/include/x86_64-linux-gnu --arch=amd64 --enable-gpl
 --disable-stripping --enable-avresample --disable-filter=resample
 --enable-avisynth --enable-gnutls --enable-ladspa --enable-libaom
 --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca
 --enable-libcdio --enable-libcodec2 --enable-libflite --enable-
 libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme
 --enable-libgsm --enable-libjack --enable-libmp3lame --enable-libmysofa
 --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-
 libpulse --enable-librsvg --enable-librubberband --enable-libshine
 --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libssh
 --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-
 libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-
 libx265 --enable-libxml2 --enable-libxvid --enable-libzmq --enable-libzvbi
 --enable-lv2 --enable-omx --enable-openal --enable-opencl --enable-opengl
 --enable-sdl2 --enable-libdc1394 --enable-libdrm --enable-libiec61883
 --enable-nvenc --enable-chromaprint --enable-frei0r --enable-libx264
 --enable-shared
   libavutil      56. 31.100 / 56. 31.100
   libavcodec     58. 54.100 / 58. 54.100
   libavformat    58. 29.100 / 58. 29.100
   libavdevice    58.  8.100 / 58.  8.100
   libavfilter     7. 57.100 /  7. 57.100
   libavresample   4.  0.  0 /  4.  0.  0
   libswscale      5.  5.100 /  5.  5.100
   libswresample   3.  5.100 /  3.  5.100
   libpostproc    55.  5.100 / 55.  5.100
 Input #0, ogg, from 'KR369.ogg':
   Duration: 01:32:53.80, start: 0.000000, bitrate: 164 kb/s
     Stream #0:0: Audio: vorbis, 44100 Hz, stereo, fltp, 152 kb/s
     Metadata:
       ALBUM           : Küchenradio.org
       ENCODED-BY      : auphonic.com
       ARTIST          : Philip Banse
       TITLE           : KR369 Hotel Berlin
       PUBLISHER       : Küchenstud.io
       URL             : http://kuechenstud.io/
       DATE            : 2014
       GENRE           : Podcast
       RIGHTS-DATE     : 2014
       RIGHTS          : 2014 CC BY SA
       LICENSE         : http://creativecommons.org/licenses/by-sa/3.0/de/
       RIGHTS-URI      : http://creativecommons.org/licenses/by-sa/3.0/de/
       ENCODED_BY      : auphonic.com
       comment         : DocPhil, Cindy, Frau Katja und Onkel Andi zu
 Besuch bei Susanne DeOcampo-Herrmann, der Chefköchin im Hotel Berlin. Wir
 waren lange nicht mehr zusammen und hatten wie gewohnt alle auf einmal
 viele Fragen zur: Küchenplanung, Hotelgeschichte, Filetier-Tech
     Stream #0:1: Video: mjpeg (Baseline), yuvj420p(pc,
 bt470bg/unknown/unknown), 500x500 [SAR 1:1 DAR 1:1], 90k tbr, 90k tbn, 90k
 tbc (attached pic)
     Metadata:
       comment         : Cover (front)
 [ogg @ 0x560a7d33be80] Unsupported codec id in stream 0
 Could not write header for output file #0 (incorrect codec parameters ?):
 Invalid argument
 [ogg @ 0x560a7d33be80] Unsupported codec id in stream 0
 Could not write header for output file #0 (incorrect codec parameters ?):
 Invalid argument
 Stream mapping:
   Stream #0:1 -> #0:0 (copy)
     Last message repeated 1 times
 }}}
-- 
Ticket URL: <https://trac.ffmpeg.org/ticket/4591#comment:11>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list