[FFmpeg-user] Cannot Initialize DV Format

ace8cjc ace8cjc at proton.me
Sun Apr 9 21:28:46 EEST 2023


Thank you for the quick response. 

************

Here is the command-line I used to capture the .dv footage:

ffmpeg -f avfoundation -capture_raw_data true -i "ZR20" -c copy -map 0 -f rawvideo capture.dv

************

Here is the command-line I used as a test to cut a small section from that file:

ffmpeg -ss 00:00:01 -i capture.dv -to 00:00:02 -c copy cut.dv

And here is the output: 

ffmpeg version 5.1.2 Copyright (c) 2000-2022 the FFmpeg developers
  built with Apple clang version 14.0.0 (clang-1400.0.29.202)
  configuration: --prefix=/usr/local/Cellar/ffmpeg/5.1.2_6 --enable-shared --enable-pthreads --enable-version3 --cc=clang --host-cflags= --host-ldflags= --enable-ffplay --enable-gnutls --enable-gpl --enable-libaom --enable-libaribb24 --enable-libbluray --enable-libdav1d --enable-libmp3lame --enable-libopus --enable-librav1e --enable-librist --enable-librubberband --enable-libsnappy --enable-libsrt --enable-libsvtav1 --enable-libtesseract --enable-libtheora --enable-libvidstab --enable-libvmaf --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxml2 --enable-libxvid --enable-lzma --enable-libfontconfig --enable-libfreetype --enable-frei0r --enable-libass --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libspeex --enable-libsoxr --enable-libzmq --enable-libzimg --disable-libjack --disable-indev=jack --enable-videotoolbox
  libavutil      57. 28.100 / 57. 28.100
  libavcodec     59. 37.100 / 59. 37.100
  libavformat    59. 27.100 / 59. 27.100
  libavdevice    59.  7.100 / 59.  7.100
  libavfilter     8. 44.100 /  8. 44.100
  libswscale      6.  7.100 /  6.  7.100
  libswresample   4.  7.100 /  4.  7.100
  libpostproc    56.  6.100 / 56.  6.100
[dv @ 0x7f8ae3704bc0] Detected timecode is invalid
[dv @ 0x7f8ae3704bc0] Estimating duration from bitrate, this may be inaccurate
Input #0, dv, from 'capture.dv':
  Duration: 00:00:04.94, start: 0.000000, bitrate: 28771 kb/s
  Stream #0:0: Video: dvvideo, yuv411p, 720x480 [SAR 8:9 DAR 4:3], 25000 kb/s, 29.97 fps, 29.97 tbr, 29.97 tbn
  Stream #0:1: Audio: pcm_s16le, 32000 Hz, stereo, s16, 1024 kb/s
  Stream #0:2: Audio: pcm_s16le, 32000 Hz, stereo, s16, 1024 kb/s
[dv @ 0x7f8ae3708d00] Can't initialize DV format!
Make sure that you supply exactly two streams:
     video: 25fps or 29.97fps, audio: 2ch/48|44|32kHz/PCM
     (50Mbps allows an optional second audio stream)
Could not write header for output file #0 (incorrect codec parameters ?): Operation not permitted
Error initializing output stream 0:1 -- 
Stream mapping:
  Stream #0:0 -> #0:0 (copy)
  Stream #0:1 -> #0:1 (copy)
    Last message repeated 1 times

***

This also creates a 0KB file, named cut.dv

------- Original Message -------
On Sunday, April 9th, 2023 at 2:13 AM, Vincent Deconinck <vdeconinck at gmail.com> wrote:


> > When using ffmpeg to perform a copy action against my dv file, I get the
> > following error:
> > "cannot initialize dv format"
> 
> 
> To be able to help you better, could you post the command-line you used, as
> well as the full console output of ffmpeg ?
> And please also make a sample DV file exhibiting the issue available online
> and post the link here so that experts can try and reproduce it.
> Kind regards,
> 
> Vincent
> _______________________________________________
> ffmpeg-user mailing list
> ffmpeg-user at ffmpeg.org
> https://ffmpeg.org/mailman/listinfo/ffmpeg-user
> 
> To unsubscribe, visit link above, or email
> ffmpeg-user-request at ffmpeg.org with subject "unsubscribe".


More information about the ffmpeg-user mailing list