Opened 5 years ago

Closed 5 years ago

Last modified 4 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 cehoyos 5 years ago.
adaptec.avi (430.0 KB) - added by ami_stuff 5 years ago.

Change History (7)

comment:1 Changed 5 years ago by cehoyos

  • Component changed from undetermined to avcodec
  • Reproduced by developer set
  • Status changed from new to open
  • Version changed from unspecified to git-master

Changed 5 years ago by cehoyos

comment:2 Changed 5 years ago by ami_stuff

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.

Changed 5 years ago by ami_stuff

comment:3 Changed 5 years ago by michael

  • Resolution set to fixed
  • Status changed from open to closed

comment:4 Changed 5 years ago by cehoyos

  • Keywords dvvideo added

comment:5 Changed 4 years ago by cehoyos

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