[FFmpeg-user] ffmpeg with damaged dv from tape capture

Dave Rice dave at dericed.com
Sun Feb 24 14:29:10 CET 2013


On Feb 24, 2013, at 3:37 AM, Carl Eugen Hoyos <cehoyos at ag.or.at> wrote:

> Dave Rice <dave <at> dericed.com> writes:
> 
>> Only the video is detected, although there is audio 
>> in the dv data once past the first few broken frames.
> 
> I can reproduce the issue but are you sure whoever wants 
> to work on this issue will find enough audio in the 
> sample to test a possible fix? (I don't know.)
> 
> [...]

My sample file is the first few frames from a much larger file. I can post a much longer file for testing tomorrow.

>> [1] I know dvgrab can output mov but ffmpeg does a 
>> better job with this task: copying dv timecode to 
>> mov timecode 
> 
>> and better handling of 4 channel audio in dv.
> 
> Unrelated: Could you post ffmpeg -i dv.mov console output 
> so I know if this is a known issue? (Or post a sample.)

Here is ffmpeg -i for both the sample dv and the mov output (very similar).

ffmpeg -i dv_tape_capture.dv
ffmpeg version 1.1.git Copyright (c) 2000-2013 the FFmpeg developers
  built on Feb 23 2013 20:08:23 with Apple clang version 4.1 (tags/Apple/clang-421.11.66) (based on LLVM 3.1svn)
  configuration: --prefix=/usr/local/Cellar/ffmpeg/HEAD --enable-shared --enable-pthreads --enable-gpl --enable-version3 --enable-nonfree --enable-hardcoded-tables --enable-avresample --cc=cc --host-cflags= --host-ldflags= --enable-libx264 --enable-libfaac --enable-libmp3lame --enable-libxvid --enable-ffplay --enable-libopenjpeg --extra-cflags='-I/usr/local/Cellar/openjpeg/1.5.1/include/openjpeg-1.5 '
  libavutil      52. 17.103 / 52. 17.103
  libavcodec     54. 92.100 / 54. 92.100
  libavformat    54. 63.100 / 54. 63.100
  libavdevice    54.  3.103 / 54.  3.103
  libavfilter     3. 39.101 /  3. 39.101
  libswscale      2.  2.100 /  2.  2.100
  libswresample   0. 17.102 /  0. 17.102
  libpostproc    52.  2.100 / 52.  2.100
[dv @ 0x7fe46882b400] Detected timecode is invalid
[dvvideo @ 0x7fe468813000] AC EOB marker is absent pos=64
    Last message repeated 1 times
[dvvideo @ 0x7fe468813000] AC EOB marker is absent pos=65
[dvvideo @ 0x7fe468813000] AC EOB marker is absent pos=67
[dvvideo @ 0x7fe468813000] AC EOB marker is absent pos=65
    Last message repeated 1 times
[dvvideo @ 0x7fe468813000] AC EOB marker is absent pos=70
[dvvideo @ 0x7fe468813000] AC EOB marker is absent pos=64
[dvvideo @ 0x7fe468813000] AC EOB marker is absent pos=66
[dvvideo @ 0x7fe468813000] AC EOB marker is absent pos=64
[dvvideo @ 0x7fe468813000] AC EOB marker is absent pos=67
[dvvideo @ 0x7fe468813000] AC EOB marker is absent pos=72
[dvvideo @ 0x7fe468813000] AC EOB marker is absent pos=64
    Last message repeated 1 times
[dvvideo @ 0x7fe468813000] AC EOB marker is absent pos=66
[dvvideo @ 0x7fe468813000] AC EOB marker is absent pos=71
[dvvideo @ 0x7fe468813000] AC EOB marker is absent pos=64
[dvvideo @ 0x7fe468813000] AC EOB marker is absent pos=68
[dvvideo @ 0x7fe468813000] AC EOB marker is absent pos=67
[dvvideo @ 0x7fe468813000] AC EOB marker is absent pos=68
[dvvideo @ 0x7fe468813000] AC EOB marker is absent pos=67
[dvvideo @ 0x7fe468813000] AC EOB marker is absent pos=65
[dvvideo @ 0x7fe468813000] AC EOB marker is absent pos=64
[dvvideo @ 0x7fe468813000] AC EOB marker is absent pos=68
[dvvideo @ 0x7fe468813000] AC EOB marker is absent pos=97
[dvvideo @ 0x7fe468813000] AC EOB marker is absent pos=74
[dvvideo @ 0x7fe468813000] AC EOB marker is absent pos=68
[dvvideo @ 0x7fe468813000] AC EOB marker is absent pos=64
[dvvideo @ 0x7fe468813000] AC EOB marker is absent pos=73
[dvvideo @ 0x7fe468813000] AC EOB marker is absent pos=65
[dvvideo @ 0x7fe468813000] AC EOB marker is absent pos=85
[dvvideo @ 0x7fe468813000] AC EOB marker is absent pos=64
    Last message repeated 2 times
[dvvideo @ 0x7fe468813000] AC EOB marker is absent pos=78
[dvvideo @ 0x7fe468813000] AC EOB marker is absent pos=64
[dvvideo @ 0x7fe468813000] AC EOB marker is absent pos=65
    Last message repeated 4 times
[dvvideo @ 0x7fe468813000] AC EOB marker is absent pos=64
    Last message repeated 1 times
[dvvideo @ 0x7fe468813000] AC EOB marker is absent pos=66
[dvvideo @ 0x7fe468813000] AC EOB marker is absent pos=64
[dvvideo @ 0x7fe468813000] AC EOB marker is absent pos=68
    Last message repeated 1 times
[dvvideo @ 0x7fe468813000] AC EOB marker is absent pos=67
[dvvideo @ 0x7fe468813000] AC EOB marker is absent pos=64
[dvvideo @ 0x7fe468813000] AC EOB marker is absent pos=66
[dvvideo @ 0x7fe468813000] AC EOB marker is absent pos=100
[dvvideo @ 0x7fe468813000] AC EOB marker is absent pos=67
[dvvideo @ 0x7fe468813000] AC EOB marker is absent pos=64
    Last message repeated 1 times
[dvvideo @ 0x7fe468813000] AC EOB marker is absent pos=70
[dvvideo @ 0x7fe468813000] AC EOB marker is absent pos=65
[dvvideo @ 0x7fe468813000] AC EOB marker is absent pos=64
[dvvideo @ 0x7fe468813000] AC EOB marker is absent pos=65
[dvvideo @ 0x7fe468813000] AC EOB marker is absent pos=68
[dvvideo @ 0x7fe468813000] AC EOB marker is absent pos=64
    Last message repeated 1 times
[dvvideo @ 0x7fe468813000] AC EOB marker is absent pos=68
[dvvideo @ 0x7fe468813000] AC EOB marker is absent pos=64
    Last message repeated 4 times
[dvvideo @ 0x7fe468813000] AC EOB marker is absent pos=73
[dvvideo @ 0x7fe468813000] AC EOB marker is absent pos=74
[dvvideo @ 0x7fe468813000] AC EOB marker is absent pos=64
    Last message repeated 1 times
[dvvideo @ 0x7fe468813000] AC EOB marker is absent pos=65
[dvvideo @ 0x7fe468813000] AC EOB marker is absent pos=64
    Last message repeated 2 times
[dvvideo @ 0x7fe468813000] AC EOB marker is absent pos=65
[dvvideo @ 0x7fe468813000] AC EOB marker is absent pos=64
[dvvideo @ 0x7fe468813000] AC EOB marker is absent pos=66
[dvvideo @ 0x7fe468813000] AC EOB marker is absent pos=68
[dvvideo @ 0x7fe468813000] AC EOB marker is absent pos=71
[dvvideo @ 0x7fe468813000] AC EOB marker is absent pos=64
    Last message repeated 1 times
[dvvideo @ 0x7fe468813000] AC EOB marker is absent pos=67
[dvvideo @ 0x7fe468813000] AC EOB marker is absent pos=64
    Last message repeated 1 times
[dvvideo @ 0x7fe468813000] AC EOB marker is absent pos=66
[dvvideo @ 0x7fe468813000] AC EOB marker is absent pos=67
[dvvideo @ 0x7fe468813000] AC EOB marker is absent pos=64
[dvvideo @ 0x7fe468813000] AC EOB marker is absent pos=72
[dvvideo @ 0x7fe468813000] AC EOB marker is absent pos=70
[dvvideo @ 0x7fe468813000] AC EOB marker is absent pos=64
    Last message repeated 3 times
[dvvideo @ 0x7fe468813000] AC EOB marker is absent pos=74
[dvvideo @ 0x7fe468813000] AC EOB marker is absent pos=64
[dvvideo @ 0x7fe468813000] AC EOB marker is absent pos=65
[dvvideo @ 0x7fe468813000] AC EOB marker is absent pos=70
[dvvideo @ 0x7fe468813000] AC EOB marker is absent pos=64
[dvvideo @ 0x7fe468813000] AC EOB marker is absent pos=71
    Last message repeated 1 times
[dvvideo @ 0x7fe468813000] AC EOB marker is absent pos=64
[dvvideo @ 0x7fe468813000] AC EOB marker is absent pos=65
[dvvideo @ 0x7fe468813000] AC EOB marker is absent pos=68
[dvvideo @ 0x7fe468813000] AC EOB marker is absent pos=64
[dvvideo @ 0x7fe468813000] AC EOB marker is absent pos=71
[dvvideo @ 0x7fe468813000] AC EOB marker is absent pos=66
[dv @ 0x7fe46882b400] Estimating duration from bitrate, this may be inaccurate
Input #0, dv, from 'dv_tape_capture.dv':
  Duration: 00:00:00.33, start: 0.000000, bitrate: 28771 kb/s
    Stream #0:0: Video: dvvideo, yuv411p, 720x480, 28771 kb/s, SAR 8:9 DAR 4:3, 29.97 tbr, 29.97 tbn, 29.97 tbc
At least one output file must be specified

ffmpeg -i dv_tape_capture.mov
ffmpeg version 1.1.git Copyright (c) 2000-2013 the FFmpeg developers
  built on Feb 23 2013 20:08:23 with Apple clang version 4.1 (tags/Apple/clang-421.11.66) (based on LLVM 3.1svn)
  configuration: --prefix=/usr/local/Cellar/ffmpeg/HEAD --enable-shared --enable-pthreads --enable-gpl --enable-version3 --enable-nonfree --enable-hardcoded-tables --enable-avresample --cc=cc --host-cflags= --host-ldflags= --enable-libx264 --enable-libfaac --enable-libmp3lame --enable-libxvid --enable-ffplay --enable-libopenjpeg --extra-cflags='-I/usr/local/Cellar/openjpeg/1.5.1/include/openjpeg-1.5 '
  libavutil      52. 17.103 / 52. 17.103
  libavcodec     54. 92.100 / 54. 92.100
  libavformat    54. 63.100 / 54. 63.100
  libavdevice    54.  3.103 / 54.  3.103
  libavfilter     3. 39.101 /  3. 39.101
  libswscale      2.  2.100 /  2.  2.100
  libswresample   0. 17.102 /  0. 17.102
  libpostproc    52.  2.100 / 52.  2.100
[dvvideo @ 0x7f9ab0833a00] AC EOB marker is absent pos=64
    Last message repeated 1 times
[dvvideo @ 0x7f9ab0833a00] AC EOB marker is absent pos=65
[dvvideo @ 0x7f9ab0833a00] AC EOB marker is absent pos=67
[dvvideo @ 0x7f9ab0833a00] AC EOB marker is absent pos=65
    Last message repeated 1 times
[dvvideo @ 0x7f9ab0833a00] AC EOB marker is absent pos=70
[dvvideo @ 0x7f9ab0833a00] AC EOB marker is absent pos=64
[dvvideo @ 0x7f9ab0833a00] AC EOB marker is absent pos=66
[dvvideo @ 0x7f9ab0833a00] AC EOB marker is absent pos=64
[dvvideo @ 0x7f9ab0833a00] AC EOB marker is absent pos=67
[dvvideo @ 0x7f9ab0833a00] AC EOB marker is absent pos=72
[dvvideo @ 0x7f9ab0833a00] AC EOB marker is absent pos=64
    Last message repeated 1 times
[dvvideo @ 0x7f9ab0833a00] AC EOB marker is absent pos=66
[dvvideo @ 0x7f9ab0833a00] AC EOB marker is absent pos=71
[dvvideo @ 0x7f9ab0833a00] AC EOB marker is absent pos=64
[dvvideo @ 0x7f9ab0833a00] AC EOB marker is absent pos=68
[dvvideo @ 0x7f9ab0833a00] AC EOB marker is absent pos=67
[dvvideo @ 0x7f9ab0833a00] AC EOB marker is absent pos=68
[dvvideo @ 0x7f9ab0833a00] AC EOB marker is absent pos=67
[dvvideo @ 0x7f9ab0833a00] AC EOB marker is absent pos=65
[dvvideo @ 0x7f9ab0833a00] AC EOB marker is absent pos=64
[dvvideo @ 0x7f9ab0833a00] AC EOB marker is absent pos=68
[dvvideo @ 0x7f9ab0833a00] AC EOB marker is absent pos=97
[dvvideo @ 0x7f9ab0833a00] AC EOB marker is absent pos=74
[dvvideo @ 0x7f9ab0833a00] AC EOB marker is absent pos=68
[dvvideo @ 0x7f9ab0833a00] AC EOB marker is absent pos=64
[dvvideo @ 0x7f9ab0833a00] AC EOB marker is absent pos=73
[dvvideo @ 0x7f9ab0833a00] AC EOB marker is absent pos=65
[dvvideo @ 0x7f9ab0833a00] AC EOB marker is absent pos=85
[dvvideo @ 0x7f9ab0833a00] AC EOB marker is absent pos=64
    Last message repeated 2 times
[dvvideo @ 0x7f9ab0833a00] AC EOB marker is absent pos=78
[dvvideo @ 0x7f9ab0833a00] AC EOB marker is absent pos=64
[dvvideo @ 0x7f9ab0833a00] AC EOB marker is absent pos=65
    Last message repeated 4 times
[dvvideo @ 0x7f9ab0833a00] AC EOB marker is absent pos=64
    Last message repeated 1 times
[dvvideo @ 0x7f9ab0833a00] AC EOB marker is absent pos=66
[dvvideo @ 0x7f9ab0833a00] AC EOB marker is absent pos=64
[dvvideo @ 0x7f9ab0833a00] AC EOB marker is absent pos=68
    Last message repeated 1 times
[dvvideo @ 0x7f9ab0833a00] AC EOB marker is absent pos=67
[dvvideo @ 0x7f9ab0833a00] AC EOB marker is absent pos=64
[dvvideo @ 0x7f9ab0833a00] AC EOB marker is absent pos=66
[dvvideo @ 0x7f9ab0833a00] AC EOB marker is absent pos=100
[dvvideo @ 0x7f9ab0833a00] AC EOB marker is absent pos=67
[dvvideo @ 0x7f9ab0833a00] AC EOB marker is absent pos=64
    Last message repeated 1 times
[dvvideo @ 0x7f9ab0833a00] AC EOB marker is absent pos=70
[dvvideo @ 0x7f9ab0833a00] AC EOB marker is absent pos=65
[dvvideo @ 0x7f9ab0833a00] AC EOB marker is absent pos=64
[dvvideo @ 0x7f9ab0833a00] AC EOB marker is absent pos=65
[dvvideo @ 0x7f9ab0833a00] AC EOB marker is absent pos=68
[dvvideo @ 0x7f9ab0833a00] AC EOB marker is absent pos=64
    Last message repeated 1 times
[dvvideo @ 0x7f9ab0833a00] AC EOB marker is absent pos=68
[dvvideo @ 0x7f9ab0833a00] AC EOB marker is absent pos=64
    Last message repeated 4 times
[dvvideo @ 0x7f9ab0833a00] AC EOB marker is absent pos=73
[dvvideo @ 0x7f9ab0833a00] AC EOB marker is absent pos=74
[dvvideo @ 0x7f9ab0833a00] AC EOB marker is absent pos=64
    Last message repeated 1 times
[dvvideo @ 0x7f9ab0833a00] AC EOB marker is absent pos=65
[dvvideo @ 0x7f9ab0833a00] AC EOB marker is absent pos=64
    Last message repeated 2 times
[dvvideo @ 0x7f9ab0833a00] AC EOB marker is absent pos=65
[dvvideo @ 0x7f9ab0833a00] AC EOB marker is absent pos=64
[dvvideo @ 0x7f9ab0833a00] AC EOB marker is absent pos=66
[dvvideo @ 0x7f9ab0833a00] AC EOB marker is absent pos=68
[dvvideo @ 0x7f9ab0833a00] AC EOB marker is absent pos=71
[dvvideo @ 0x7f9ab0833a00] AC EOB marker is absent pos=64
    Last message repeated 1 times
[dvvideo @ 0x7f9ab0833a00] AC EOB marker is absent pos=67
[dvvideo @ 0x7f9ab0833a00] AC EOB marker is absent pos=64
    Last message repeated 1 times
[dvvideo @ 0x7f9ab0833a00] AC EOB marker is absent pos=66
[dvvideo @ 0x7f9ab0833a00] AC EOB marker is absent pos=67
[dvvideo @ 0x7f9ab0833a00] AC EOB marker is absent pos=64
[dvvideo @ 0x7f9ab0833a00] AC EOB marker is absent pos=72
[dvvideo @ 0x7f9ab0833a00] AC EOB marker is absent pos=70
[dvvideo @ 0x7f9ab0833a00] AC EOB marker is absent pos=64
    Last message repeated 3 times
[dvvideo @ 0x7f9ab0833a00] AC EOB marker is absent pos=74
[dvvideo @ 0x7f9ab0833a00] AC EOB marker is absent pos=64
[dvvideo @ 0x7f9ab0833a00] AC EOB marker is absent pos=65
[dvvideo @ 0x7f9ab0833a00] AC EOB marker is absent pos=70
[dvvideo @ 0x7f9ab0833a00] AC EOB marker is absent pos=64
[dvvideo @ 0x7f9ab0833a00] AC EOB marker is absent pos=71
    Last message repeated 1 times
[dvvideo @ 0x7f9ab0833a00] AC EOB marker is absent pos=64
[dvvideo @ 0x7f9ab0833a00] AC EOB marker is absent pos=65
[dvvideo @ 0x7f9ab0833a00] AC EOB marker is absent pos=68
[dvvideo @ 0x7f9ab0833a00] AC EOB marker is absent pos=64
[dvvideo @ 0x7f9ab0833a00] AC EOB marker is absent pos=71
[dvvideo @ 0x7f9ab0833a00] AC EOB marker is absent pos=66
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'dv_tape_capture.mov':
  Metadata:
    major_brand     : qt  
    minor_version   : 512
    compatible_brands: qt  
    encoder         : Lavf54.63.100
  Duration: 00:00:00.33, start: 0.000000, bitrate: 28762 kb/s
    Stream #0:0(eng): Video: dvvideo (dvc  / 0x20637664), yuv411p, 720x480, 28771 kb/s, SAR 8:9 DAR 4:3, 29.97 fps, 29.97 tbr, 30k tbn, 29.97 tbc
    Metadata:
      handler_name    : DataHandler
At least one output file must be specified

Dave Rice


More information about the ffmpeg-user mailing list