#162(undetermined:new): Avid AVI Codec - wrong resolution reported by FFmpeg
#162: Avid AVI Codec - wrong resolution reported by FFmpeg --------------------------+-------------------------- Reporter: ami_stuff | Type: defect Status: new | Priority: normal Component: undetermined | Version: unspecified Keywords: | Blocked By: Blocking: | Reproduced: 0 Analyzed: 0 | --------------------------+-------------------------- issue 1494 https://roundup.libav.org/file579/avid.avi {{{ Author: ami_stuff Date: 2009-10-19.18:53:59 Attached file is encoded with "Avid AVI Codec" and have 720x576 resolution, but FFmpeg reports 720x592 and adds black bar on the top of the video. -------- C:\>ffmpeg -i avid.avi FFmpeg version SVN-r20231, Copyright (c) 2000-2009 Fabrice Bellard, et al. built on Oct 14 2009 04:04:42 with gcc 4.2.4 configuration: --enable-memalign-hack --prefix=/mingw --cross- prefix=i686-ming w32- --cc=ccache-i686-mingw32-gcc --target-os=mingw32 --arch=i686 --cpu=i686 --e nable-avisynth --enable-gpl --enable-version3 --enable-zlib --enable-bzlib --ena ble-libgsm --enable-libfaad --enable-pthreads --enable-libvorbis --enable- libthe ora --enable-libspeex --enable-libmp3lame --enable-libopenjpeg --enable- libxvid --enable-libschroedinger --enable-libx264 --enable-libopencore_amrwb --enable-li bopencore_amrnb libavutil 50. 3. 0 / 50. 3. 0 libavcodec 52.37. 0 / 52.37. 0 libavformat 52.39. 1 / 52.39. 1 libavdevice 52. 2. 0 / 52. 2. 0 libswscale 0. 7. 1 / 0. 7. 1 [mjpeg @ 0x1a68250]Found 1 unreleased buffers! Input #0, avi, from 'avid.avi': Duration: 00:00:01.79, start: 0.000000, bitrate: 4289 kb/s Stream #0.0: Video: mjpeg, yuvj422p, 720x592, 23.97 tbr, 23.97 tbn, 23.97 tb c Stream #0.1: Audio: mp3, 44100 Hz, 2 channels, s16, 128 kb/s At least one output file must be specified }}} {{{ Author: cehoyos Date: 2009-10-19.23:46:14 Reproducible with mplayer avid.avi -vc avid }}} -- Ticket URL: <https://ffmpeg.org/trac/ffmpeg/ticket/162> FFmpeg <http://ffmpeg.org> FFmpeg issue tracker
#162: Avid AVI Codec - wrong resolution reported by FFmpeg -----------------------+---------------------- Reporter: ami_stuff | Owner: Type: defect | Status: open Priority: normal | Component: avcodec Version: git-master | Resolution: Keywords: | Blocked By: Blocking: | Reproduced: 1 Analyzed: 0 | -----------------------+---------------------- Changes (by cehoyos): * status: new => open * version: unspecified => git-master * component: undetermined => avcodec * reproduced: 0 => 1 -- Ticket URL: <https://avcodec.org/trac/ffmpeg/ticket/162#comment:1> FFmpeg <http://ffmpeg.org> FFmpeg issue tracker
#162: Avid AVI Codec - wrong resolution reported by FFmpeg -----------------------+---------------------- Reporter: ami_stuff | Owner: Type: defect | Status: open Priority: normal | Component: avcodec Version: git-master | Resolution: Keywords: | Blocked By: Blocking: | Reproduced: 1 Analyzed: 0 | -----------------------+---------------------- Comment (by michael): i know how to fix this once we support arbitrary crop values. -- Ticket URL: <https://ffmpeg.org/trac/ffmpeg/ticket/162#comment:2> FFmpeg <http://ffmpeg.org> FFmpeg issue tracker
#162: Avid AVI Codec - wrong resolution reported by FFmpeg -------------------------------------+------------------------------------- Reporter: ami_stuff | Owner: Type: defect | Status: open Priority: normal | Component: avcodec Version: git-master | Resolution: Keywords: mjpeg | Blocked By: cropping | Reproduced by developer: 1 Blocking: | Analyzed by developer: 0 | -------------------------------------+------------------------------------- Changes (by cehoyos): * keywords: => mjpeg cropping -- Ticket URL: <https://ffmpeg.org/trac/ffmpeg/ticket/162#comment:3> FFmpeg <http://ffmpeg.org> FFmpeg issue tracker
#162: Avid AVI Codec - wrong resolution reported by FFmpeg -------------------------------------+------------------------------------- Reporter: ami_stuff | Owner: Type: defect | Status: open Priority: normal | Component: avcodec Version: git-master | Resolution: Keywords: mjpeg | Blocked By: cropping AVID | Reproduced by developer: 1 Blocking: | Analyzed by developer: 0 | -------------------------------------+------------------------------------- Changes (by cehoyos): * keywords: mjpeg cropping => mjpeg cropping AVID -- Ticket URL: <https://ffmpeg.org/trac/ffmpeg/ticket/162#comment:4> FFmpeg <http://ffmpeg.org> FFmpeg issue tracker
#162: Avid AVI Codec - wrong resolution reported by FFmpeg -------------------------------------+------------------------------------- Reporter: ami_stuff | Owner: Type: defect | Status: open Priority: normal | Component: avcodec Version: git-master | Resolution: Keywords: mjpeg | Blocked By: cropping AVID roundup | Reproduced by developer: 1 Blocking: | Analyzed by developer: 0 | -------------------------------------+------------------------------------- Changes (by cehoyos): * keywords: mjpeg cropping AVID => mjpeg cropping AVID roundup -- Ticket URL: <https://ffmpeg.org/trac/ffmpeg/ticket/162#comment:5> FFmpeg <http://ffmpeg.org> FFmpeg issue tracker
#162: Avid AVI Codec - wrong resolution reported by FFmpeg -------------------------------------+------------------------------------- Reporter: ami_stuff | Owner: Type: defect | Status: open Priority: normal | Component: avcodec Version: git-master | Resolution: Keywords: mjpeg | Blocked By: cropping AVID avi roundup | Reproduced by developer: 1 Blocking: | Analyzed by developer: 0 | -------------------------------------+------------------------------------- Changes (by cehoyos): * keywords: mjpeg cropping AVID roundup => mjpeg cropping AVID avi roundup -- Ticket URL: <https://ffmpeg.org/trac/ffmpeg/ticket/162#comment:6> FFmpeg <http://ffmpeg.org> FFmpeg issue tracker
#162: Avid AVI Codec - wrong resolution reported by FFmpeg -------------------------------------+------------------------------------- Reporter: ami_stuff | Owner: Type: defect | Status: open Priority: normal | Component: avcodec Version: git-master | Resolution: Keywords: mjpeg | Blocked By: cropping AVID avi roundup | Reproduced by developer: 1 Blocking: | Analyzed by developer: 0 | -------------------------------------+------------------------------------- Comment (by michael): Can the correct / croped width/height be extracted from the avid codec bitstream / extradata ? -- Ticket URL: <https://ffmpeg.org/trac/ffmpeg/ticket/162#comment:7> FFmpeg <http://ffmpeg.org> FFmpeg issue tracker
#162: Avid AVI Codec - wrong resolution reported by FFmpeg -------------------------------------+------------------------------------- Reporter: ami_stuff | Owner: Type: defect | Status: open Priority: normal | Component: avcodec Version: git-master | Resolution: Keywords: mjpeg | Blocked By: cropping AVID avi roundup | Reproduced by developer: 1 Blocking: | Analyzed by developer: 0 | -------------------------------------+------------------------------------- Comment (by cehoyos): Replying to [comment:7 michael]:
Can the correct / croped width/height be extracted from the avid codec bitstream / extradata ?
The cropped size is set both in the avih and the strf tag. -- Ticket URL: <https://ffmpeg.org/trac/ffmpeg/ticket/162#comment:8> FFmpeg <http://ffmpeg.org> FFmpeg issue tracker
#162: Avid AVI Codec - wrong resolution reported by FFmpeg -------------------------------------+------------------------------------- Reporter: ami_stuff | Owner: Type: defect | Status: open Priority: normal | Component: avcodec Version: git-master | Resolution: Keywords: mjpeg | Blocked By: cropping AVID avi roundup | Reproduced by developer: 1 Blocking: | Analyzed by developer: 0 | -------------------------------------+------------------------------------- Comment (by michael): Replying to [comment:8 cehoyos]:
Replying to [comment:7 michael]:
Can the correct / croped width/height be extracted from the avid codec bitstream / extradata ?
The cropped size is set both in the avih and the strf tag.
does the binary decoder use these, that is does it decode the full resolution if these 2 values are increased ? -- Ticket URL: <https://ffmpeg.org/trac/ffmpeg/ticket/162#comment:9> FFmpeg <http://ffmpeg.org> FFmpeg issue tracker
#162: Avid AVI Codec - wrong resolution reported by FFmpeg -------------------------------------+------------------------------------- Reporter: ami_stuff | Owner: Type: defect | Status: open Priority: normal | Component: avcodec Version: git-master | Resolution: Keywords: mjpeg | Blocked By: cropping AVID avi roundup | Reproduced by developer: 1 Blocking: | Analyzed by developer: 0 | -------------------------------------+------------------------------------- Comment (by cehoyos): Three samples for testing with the original decoder attached. -- Ticket URL: <https://ffmpeg.org/trac/ffmpeg/ticket/162#comment:10> FFmpeg <http://ffmpeg.org> FFmpeg issue tracker
#162: Avid AVI Codec - wrong resolution reported by FFmpeg -------------------------------------+------------------------------------- Reporter: ami_stuff | Owner: Type: defect | Status: open Priority: normal | Component: avcodec Version: git-master | Resolution: Keywords: mjpeg | Blocked By: cropping AVID avi roundup | Reproduced by developer: 1 Blocking: | Analyzed by developer: 0 | -------------------------------------+------------------------------------- Comment (by ami_stuff): Replying to [comment:10 cehoyos]:
Three samples for testing with the original decoder attached.
here is the output: http://www.datafilehost.com/d/85578aa0 -- Ticket URL: <https://ffmpeg.org/trac/ffmpeg/ticket/162#comment:11> FFmpeg <http://ffmpeg.org> FFmpeg issue tracker
#162: Avid AVI Codec - wrong resolution reported by FFmpeg -------------------------------------+------------------------------------- Reporter: ami_stuff | Owner: Type: defect | Status: open Priority: normal | Component: avcodec Version: git-master | Resolution: Keywords: mjpeg | Blocked By: cropping AVID avi roundup | Reproduced by developer: 1 Blocking: | Analyzed by developer: 0 | -------------------------------------+------------------------------------- Comment (by cehoyos): The relevant value is within the strf tag, ie all samples except avidstrf.avi should display 576 lines. The original decoder scales the 576 lines of actual content to the 592 lines indicated in the header of avidstrf.avi. -- Ticket URL: <https://ffmpeg.org/trac/ffmpeg/ticket/162#comment:12> FFmpeg <http://ffmpeg.org> FFmpeg issue tracker
participants (1)
-
FFmpeg