Opened 14 years ago

Closed 13 years ago

Last modified 12 years ago

#159 closed defect (fixed)

"Sony DV Codec" - wrong resolution reported by FFmpeg + broken output

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

Description

issue 1605

https://roundup.libav.org/file653/dvcp.avi

Author: ami_stuff 	Date: 2009-12-09.01:14:04 	

Attached file is encoded with "Sony DV Software Codec" codec and have 720x576 resolution.

When I convert attached file, the output file will look incorrect:

C:\>ffmpeg -i dvcp.avi out.avi
FFmpeg version SVN-r20757, Copyright (c) 2000-2009 Fabrice Bellard, et al.
  built on Dec  7 2009 06:02:20 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. 5. 1 / 50. 5. 1
  libavcodec    52.42. 0 / 52.42. 0
  libavformat   52.41. 0 / 52.41. 0
  libavdevice   52. 2. 0 / 52. 2. 0
  libswscale     0. 7. 2 /  0. 7. 2

Seems stream 0 codec frame rate differs from container frame rate: 29.97 (30000/
1001) -> 25.00 (25/1)
Input #0, avi, from 'dvcp.avi':
  Duration: 00:00:00.64, start: 0.000000, bitrate: 28907 kb/s
    Stream #0.0: Video: dvvideo, yuv411p, 720x480, 25 tbr, 25 tbn, 29.97 tbc
Output #0, avi, to 'out.avi':
    Stream #0.0: Video: mpeg4, yuv420p, 720x480, q=2-31, 200 kb/s, 25 tbn, 25 tb
c
Stream mapping:
  Stream #0.0 -> #0.0
Press [q] to stop encoding
frame=   16 fps=  0 q=31.0 Lsize=     200kB time=0.64 bitrate=2566.3kbits/s
video:195kB audio:0kB global headers:0kB muxing overhead 3.046699%
Author: cehoyos 	Date: 2009-12-09.23:00:18 	

Output looks wrong with ffmpeg, plays fine with mplayer -vc mcdv (but not qdv)
in 720x576.
Author: cehoyos 	Date: 2009-12-31.00:20:06 	

ff_dv_frame_profile() returns dv_profiles[0] (525/60 NTSC) for this sample,
correct would be dv_profiles[1] (625/50 PAL), a special case (as for 576i50
25Mbps 4:1:1) is probably necessary.
First 10 bytes of frame (frame[0] frame[1] ... frame[9]):
1f 7 0 0 a0 cb de 0 ff ff

Attachments (2)

dvcp.avi (2.2 MB ) - added by Carl Eugen Hoyos 14 years ago.
adaptec.avi (430.0 KB ) - added by ami_stuff 14 years ago.

Change History (7)

comment:1 by Carl Eugen Hoyos, 14 years ago

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

by Carl Eugen Hoyos, 14 years ago

Attachment: dvcp.avi added

comment:2 by ami_stuff, 14 years ago

The same problem happens with file created with "Adaptec DVsoft codec":

http://www.free-codecs.com/download/adaptec_dvsoft_codec.htm

The file seems to play correctly as well with dv_profiles[1],
so now what should be done is to find out some similarities with these
2 files (maybe some frame?) and next force dv_profiles[1] to use
with them.

by ami_stuff, 14 years ago

Attachment: adaptec.avi added

comment:3 by Michael Niedermayer, 13 years ago

Resolution: fixed
Status: openclosed

comment:4 by Carl Eugen Hoyos, 13 years ago

Keywords: dvvideo added

comment:5 by Carl Eugen Hoyos, 12 years ago

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