[FFmpeg-trac] #159(undetermined:new): "Sony DV Codec" - wrong resolution reported by FFmpeg + broken output

FFmpeg trac at avcodec.org
Fri May 6 21:34:46 CEST 2011


#159: "Sony DV Codec" - wrong resolution reported by FFmpeg + broken output
--------------------------+--------------------------
 Reporter:  ami_stuff     |        Type:  defect
   Status:  new           |    Priority:  normal
Component:  undetermined  |     Version:  unspecified
 Keywords:                |  Blocked By:
 Blocking:                |  Reproduced:  0
 Analyzed:  0             |
--------------------------+--------------------------
 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
 }}}

-- 
Ticket URL: <https://ffmpeg.org/trac/ffmpeg/ticket/159>
FFmpeg <http://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list