Opened 12 years ago

Closed 12 years ago

Last modified 11 years ago

#970 closed defect (fixed)

AVNr 1:1 raw mode - black bar at the top

Reported by: ami_stuff Owned by:
Priority: normal Component: avcodec
Version: git-master Keywords: AVRn AVID roundup
Cc: Blocked By:
Blocking: Reproduced by developer: yes
Analyzed by developer: no

Description

(issue 1474)

http://roundup.libav.org/file564/avid_1_1_resolution.rar

C:\>ffmpeg -i avid_1_1_resolution.avi out.avi
ffmpeg version N-37208-g01fcbdf Copyright (c) 2000-2012 the FFmpeg developers
  built on Jan 27 2012 18:34:52 with gcc 4.6.2
  configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-ru
ntime-cpudetect --enable-avisynth --enable-bzlib --enable-frei0r --enable-libope
ncore-amrnb --enable-libopencore-amrwb --enable-libfreetype --enable-libgsm --en
able-libmp3lame --enable-libopenjpeg --enable-librtmp --enable-libschroedinger -
-enable-libspeex --enable-libtheora --enable-libvo-aacenc --enable-libvo-amrwben
c --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libxavs --enable-
libxvid --enable-zlib
  libavutil      51. 34.101 / 51. 34.101
  libavcodec     53. 60.100 / 53. 60.100
  libavformat    53. 31.100 / 53. 31.100
  libavdevice    53.  4.100 / 53.  4.100
  libavfilter     2. 60.100 /  2. 60.100
  libswscale      2.  1.100 /  2.  1.100
  libswresample   0.  6.100 /  0.  6.100
  libpostproc    52.  0.100 / 52.  0.100
[mp3 @ 0214AEE0] Header missing
Input #0, avi, from 'avid_1_1_resolution.avi':
  Duration: 00:00:01.79, start: 0.000000, bitrate: 163654 kb/s
    Stream #0:0: Video: rawvideo (AVRn / 0x6E525641), uyvy422, 720x576, 23.97 tb
r, 23.97 tbn, 23.97 tbc
    Stream #0:1: Audio: mp3 (U[0][0][0] / 0x0055), 44100 Hz, stereo, s16, 128 kb
/s
File 'out.avi' already exists. Overwrite ? [y/N] y
Incompatible pixel format 'uyvy422' for codec 'mpeg4', auto-selecting format 'yu
v420p'
[buffer @ 02154B80] w:720 h:576 pixfmt:uyvy422 tb:1/1000000 sar:0/1 sws_param:
[buffersink @ 02154E00] auto-inserting filter 'auto-inserted scale 0' between th
e filter 'src' and the filter 'out'
[scale @ 02155320] w:720 h:576 fmt:uyvy422 -> w:720 h:576 fmt:yuv420p flags:0x4
Output #0, avi, to 'out.avi':
  Metadata:
    ISFT            : Lavf53.31.100
    Stream #0:0: Video: mpeg4 (FMP4 / 0x34504D46), yuv420p, 720x576, q=2-31, 200
 kb/s, 23.97 tbn, 23.97 tbc
    Stream #0:1: Audio: mp3 (U[0][0][0] / 0x0055), 44100 Hz, stereo, s16, 128 kb
/s
Stream mapping:
  Stream #0:0 -> #0:0 (rawvideo -> mpeg4)
  Stream #0:1 -> #0:1 (mp3 -> libmp3lame)
Press [q] to stop, [?] for help
[mp3 @ 0214AEE0] Header missing
Error while decoding stream #0:1
frame=    6 fps=  0 q=5.9 size=     103kB time=00:00:00.25 bitrate=3371.1kbits/s
frame=   12 fps= 11 q=8.3 size=     113kB time=00:00:00.50 bitrate=1843.2kbits/s
frame=   19 fps= 12 q=10.8 size=     146kB time=00:00:00.79 bitrate=1509.1kbits/
frame=   26 fps= 12 q=11.8 size=     174kB time=00:00:01.08 bitrate=1311.5kbits/
frame=   35 fps= 13 q=18.4 size=     191kB time=00:00:01.46 bitrate=1071.6kbits/
frame=   43 fps= 13 q=25.7 size=     210kB time=00:00:01.67 bitrate=1030.4kbits/
incomplete frame
Error while decoding stream #0:1
frame=   43 fps= 13 q=25.7 Lsize=     218kB time=00:00:01.77 bitrate=1006.6kbits
/s
video:178kB audio:28kB global headers:0kB muxing overhead 5.977184%

Change History (8)

comment:1 by ami_stuff, 12 years ago

the same problem with "avid_ntsc_progressive.avi"

http://roundup.libav.org/file710/avid_ntsc.rar

comment:2 by Elon Musk, 12 years ago

Does same happens with other/normal resolutions?

comment:3 by ami_stuff, 12 years ago

check ticket #162 for normal mjpeg mode, but this is a different problem (wrong resolution reported by ffmpeg).

I'm not sure, but I think raw "1:1" mode worked ok in the past (without black bar).

comment:4 by Carl Eugen Hoyos, 12 years ago

Component: undeterminedavcodec
Keywords: AVRn added
Reproduced by developer: set
Status: newopen
Version: unspecifiedgit-master

Related to #970.

comment:5 by reimar, 12 years ago

Actually this is more of duplicate of ticket #162 (even if it should be easier to solve).
The AVRn codecs seem to store the overscan area along with it the proper image data, so if you look at it in e.g. GIMP you will see that the video actually is 720x592 and not like the headers claim 720x576.

comment:6 by Carl Eugen Hoyos, 12 years ago

Keywords: AVID added

comment:7 by Michael Niedermayer, 12 years ago

Resolution: fixed
Status: openclosed

comment:8 by Carl Eugen Hoyos, 11 years ago

Keywords: roundup added
Note: See TracTickets for help on using tickets.