[FFmpeg-user] Cannot Initialize DV Format

ace8cjc ace8cjc at proton.me
Mon Apr 10 06:20:32 EEST 2023


On Sunday, April 9th, 2023 at 4:02 PM, Carl Zwanzig <cpz at tuunq.com> wrote:
> Use -map to select which of the audio streams you want

Adding -map was a success, but with two caveats (below). First, here is the new command-line:

ffmpeg -ss 00:00:01 -i capture.dv -to 00:00:02 -c copy -map 0:0 cut.dv  
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 @ 0x7f8e21805080] Detected timecode is invalid
[dv @ 0x7f8e21805080] 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
Output #0, dv, to 'cut.dv':
  Metadata:
    encoder         : Lavf59.27.100
  Stream #0:0: Video: dvvideo, yuv411p, 720x480 [SAR 8:9 DAR 4:3], q=2-31, 25000 kb/s, 29.97 fps, 29.97 tbr, 29.97 tbn
Stream mapping:
  Stream #0:0 -> #0:0 (copy)
Press [q] to stop, [?] for help
frame=   60 fps=0.0 q=-1.0 Lsize=    7031kB time=00:00:02.00 bitrate=28771.2kbits/s speed= 241x    
video:7031kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.000000%

Two caveats I could still use some help understanding:

Using -map, I could only use this stream: "Stream #0:0: Video"
Adding a second stream resulted in the original error.
The output file still includes audio though. How can this be if I'm only mapping the video stream?

Second, using a tool like MediaInfo, the new file has a generic recorded date of "1970-01-01" 

I thought "-c copy" retained all metadata? If not, is there an option retain all metadata in the output? I've tried "-map_metadata 0" and "vf copy_metadata" to no avail.

Thank you for the patience. I'm still learning. I'm reading through the Wiki as fast as I can, but some concepts haven't clicked yet.
 
> (Please do not top-post on this list.)

My sincere apologies here. I've re-read the FAQ and hope to be following the correct process now. Thank you again.


More information about the ffmpeg-user mailing list