Hi,

i'm trying to get the dv demuxer to work and have some questions.  After
trying the patch mentioned in '[issue887] pond.dv not recognized as DV
file' i could still not get past the header reading error. 

I've tried several approaches, here's the situation:

My video file has been recorded with libiec61883, and can be played
back fine using mplayer :

...
Playing vid.dv.
libavformat file format detected.
[lavf] Video stream found, -vid 0
[lavf] Audio stream found, -aid 1
VIDEO:  [dvsd]  720x480  0bpp  29.970 fps  28771.2 kbps (3512.1 kbyte/s)
==========================================================================
Requested video codec family [qdv] (vfm=dshow) not available.
Enable it at compilation.
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
Selected video codec: [ffdv] vfm: ffmpeg (FFmpeg DV decoder)
==========================================================================
==========================================================================
Forced audio codec: mad
Opening audio decoder: [pcm] Uncompressed PCM audio decoder
AUDIO: 48000 Hz, 2 ch, s16le, 1536.0 kbit/100.00% (ratio:
192000->192000)
Selected audio codec: [pcm] afm: pcm (Uncompressed PCM)
==========================================================================
AO: [pulse] 48000Hz 2ch s16le (2 bytes per sample)
Starting playback...
VDec: vo config request - 720 x 480 (preferred colorspace: Planar 411P)
...



trying the same using ffplay results in:

/opt/ffmpeg/bin/ffplay -f dv vid.dv 
FFplay version git-948cdcd, Copyright (c) 2003-2009 Fabrice Bellard, et
al.
  configuration: --enable-shared --prefix=/opt/ffmpeg
  libavutil     50. 3. 0 / 50. 3. 0
  libavcodec    52.25. 0 / 52.25. 0
  libavformat   52.32. 0 / 52.32. 0
  libavdevice   52. 2. 0 / 52. 2. 0
  libswscale     0. 7. 1 /  0. 7. 1
  built on Apr  7 2009 13:47:39, gcc: 4.3.2
[dv @ 0x13c2630]Cannot find DV header.
vid.dv: Error while opening file





playing back pond.dv results in:

/opt/ffmpeg/bin/ffplay -f dv ~/Desktop/pond.dv 
FFplay version git-948cdcd, Copyright (c) 2003-2009 Fabrice Bellard, et
al.
  configuration: --enable-shared --prefix=/opt/ffmpeg
  libavutil     50. 3. 0 / 50. 3. 0
  libavcodec    52.25. 0 / 52.25. 0
  libavformat   52.32. 0 / 52.32. 0
  libavdevice   52. 2. 0 / 52. 2. 0
  libswscale     0. 7. 1 /  0. 7. 1
  built on Apr  7 2009 13:47:39, gcc: 4.3.2
[dv @ 0x112f630]Can't determine profile of DV input stream.
/usr/local/home/ldemo/Desktop/pond.dv: Error while opening file





Here are some questions:

1. ffplay has a dvvideo codec, could that be used instead of forcing the
dv demuxer ? Unfortunately ./ffplay -f [format] does not use the
codecs. Is there any way to force a codec ?

2. After applying the patch from [issue887] there were some building
problems.  After changing config.mak, running configure and make, build
worked but the 'dv_broken' demuxer did not appear in the ./ffplay
-formats list.  How do i rebuild ffmpeg properly after addind a
mux/demuxer ?
(i had to apply the changes (noprobe) on the dv codec, but still same
header error)

3. Mplayer playback works fine and claims to use the ffmpeg
codec/decoder why can't i reproduce the same with ffplay ? (older
version of ffmpeg?)



Since i'm using ffmpeg for demuxing live mpeg2ts streams from the
network using Smartflow2 i would great to use it for demuxing my live dv
streams as well (less dependencies). 

I can try out patches if needed. 

Best regards,
Lukas

Reply via email to