Opened 12 years ago

Closed 4 years ago

#1370 closed enhancement (fixed)

dvvideo enc: incorrect output with 1440x1080

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

Description

http://samples.ffmpeg.org/V-codecs/CDVHsample.avi

the same happens with -i test.bmp -s 1440x1080 -pix_fmt yuv422p

C:\>ffmpeg -i CDVHsample.avi -vcodec dvvideo out.avi
ffmpeg version N-41065-gab7d6cb Copyright (c) 2000-2012 the FFmpeg developers
  built on May 27 2012 02:29:13 with gcc 4.5.0 20100414 (Fedora MinGW 4.5.0-1.fc
14)
  configuration: --prefix=/var/www/users/research/ffmpeg/snapshots/build --arch=
x86 --target-os=mingw32 --cross-prefix=i686-pc-mingw32- --cc='ccache i686-pc-min
gw32-gcc' --enable-w32threads --enable-memalign-hack --enable-runtime-cpudetect
--enable-cross-compile --enable-static --disable-shared --extra-libs='-lws2_32 -
lwinmm' --extra-cflags='--static -I/var/www/users/research/ffmpeg/snapshots/buil
d/include' --extra-ldflags='-static -L/var/www/users/research/ffmpeg/snapshots/b
uild/lib' --enable-bzlib --enable-zlib --enable-gpl --enable-version3 --enable-n
onfree --enable-libx264 --enable-libspeex --enable-libtheora --enable-libvorbis
--enable-libfaac --enable-libxvid --enable-libopencore-amrnb --enable-libopencor
e-amrwb --enable-libmp3lame --enable-libvpx --disable-decoder=libvpx
  libavutil      51. 55.100 / 51. 55.100
  libavcodec     54. 23.100 / 54. 23.100
  libavformat    54.  6.101 / 54.  6.101
  libavdevice    54.  0.100 / 54.  0.100
  libavfilter     2. 77.100 /  2. 77.100
  libswscale      2.  1.100 /  2.  1.100
  libswresample   0. 15.100 /  0. 15.100
  libpostproc    52.  0.100 / 52.  0.100
Guessed Channel Layout for  Input Stream #0.1 : stereo
Input #0, avi, from 'CDVHsample.avi':
  Metadata:
    IRTD            : Keine Angabe
    title           : testi2
    date            : 2003
    genre           : western
    ISBJ            : Red Rock City
    IKEY            : Bua, Fu-bad, bla
    encoder         : Lavf52.25.0
    IAS1            : English
  Duration: 00:00:13.64, start: 0.000000, bitrate: 3075 kb/s
    Stream #0:0: Video: dvvideo (CDVH / 0x48564443), yuv422p, 1440x1080 [SAR 4:3
 DAR 16:9], SAR 1:1 DAR 4:3, 25 tbr, 25 tbn, 25 tbc
    Stream #0:1: Audio: pcm_s16le ([1][0][0][0] / 0x0001), 48000 Hz, stereo, s16
, 1536 kb/s
w:1440 h:1080 pixfmt:yuv422p tb:1/25 sar:1/1 sws_param:flags=2
[buffersink @ 0x1df33c0] No opaque field provided
Output #0, avi, to 'out.avi':
  Metadata:
    ILNG            : Keine Angabe
    IRTD            : Keine Angabe
    INAM            : testi2
    ICRD            : 2003
    IGNR            : western
    ISBJ            : Red Rock City
    IKEY            : Bua, Fu-bad, bla
    IAS1            : English
    ISFT            : Lavf54.6.101
    Stream #0:0: Video: dvvideo (dvsd / 0x64737664), yuv422p, 1440x1080 [SAR 1:1
 DAR 4:3], q=2-31, 200 kb/s, 25 tbn, 25 tbc
    Stream #0:1: Audio: mp3 (U[0][0][0] / 0x0055), 48000 Hz, stereo, s16
Stream mapping:
  Stream #0:0 -> #0:0 (dvvideo -> dvvideo)
  Stream #0:1 -> #0:1 (pcm_s16le -> libmp3lame)
Press [q] to stop, [?] for help
[dvvideo @ 0x2346b80] ac bitstream overflow
    Last message repeated 115 times
frame=    4 fps=0.0 q=0.0 size=     574kB time=00:00:00.04 bitrate=97881.3kbits/
ac bitstream overflow
[dvvideo @ 0x2346b80] ac bitstream overflow
    Last message repeated 34 times
Truncating packet of size 576000 to 563333
[dvvideo @ 0x1de2320] could not find dv frame profile
Error while decoding stream #0:0
Truncating packet of size 12668 to 1
frame=    8 fps=0.0 q=0.0 Lsize=    4516kB time=00:00:00.32 bitrate=115610.6kbit
s/s
video:4500kB audio:6kB global headers:0kB muxing overhead 0.231135%

Change History (5)

comment:1 by Carl Eugen Hoyos, 12 years ago

Component: undeterminedavcodec
Keywords: dvvideo added
Priority: normalimportant
Reproduced by developer: set
Status: newopen
Version: unspecifiedgit-master

Not a regression, afaict, but important as long as FFmpeg produces invalid files without any warning.

comment:2 by Carl Eugen Hoyos, 12 years ago

Priority: importantwish
Type: defectenhancement

FFmpeg prints an error now when DVCPRO HD encoding is requested.

comment:3 by ami_stuff, 8 years ago

FFmbc is able to encode dv hd, but it's gpl

https://github.com/bcoudurier/FFmbc

comment:4 by Balling, 4 years ago

Now works with ffmpeg.exe -i CDVHsample.avi -vcodec dvvideo -pix_fmt yuv422p out.avi

Though there is now a problem with ffplay, which uses incorrect aspect ratio. So does vlc, but media player classic and potplayer are right.

comment:5 by Balling, 4 years ago

Resolution: fixed
Status: openclosed
Note: See TracTickets for help on using tickets.