Skip to content

Instantly share code, notes, and snippets.

@dericed
Created October 31, 2020 18:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dericed/659bd843bd38b6f24a60198b5e345795 to your computer and use it in GitHub Desktop.
Save dericed/659bd843bd38b6f24a60198b5e345795 to your computer and use it in GitHub Desktop.
% ffmpeg -y -v debug -i /Users/davidrice/Documents/GitHub/dvrescue/tools/samples/BAVC1010004_DSR20_100014_30-32.dv -c:v copy -c:a pcm_s16le /Users/davidrice/Documents/GitHub/dvrescue/tools/samples/BAVC1010004_DSR20_100014_30-32_pcm.mov
ffmpeg version 4.3.1 Copyright (c) 2000-2020 the FFmpeg developers
built with Apple clang version 12.0.0 (clang-1200.0.32.21)
configuration: --prefix=/usr/local/Cellar/ffmpeg/4.3.1_2 --enable-shared --enable-pthreads --enable-version3 --enable-avresample --cc=clang --host-cflags= --host-ldflags= --enable-ffplay --enable-gnutls --enable-gpl --enable-libaom --enable-libbluray --enable-libdav1d --enable-libmp3lame --enable-libopus --enable-librav1e --enable-librubberband --enable-libsnappy --enable-libsrt --enable-libtesseract --enable-libtheora --enable-libvidstab --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-librtmp --enable-libspeex --enable-libsoxr --enable-videotoolbox --disable-libjack --disable-indev=jack
libavutil 56. 51.100 / 56. 51.100
libavcodec 58. 91.100 / 58. 91.100
libavformat 58. 45.100 / 58. 45.100
libavdevice 58. 10.100 / 58. 10.100
libavfilter 7. 85.100 / 7. 85.100
libavresample 4. 0. 0 / 4. 0. 0
libswscale 5. 7.100 / 5. 7.100
libswresample 3. 7.100 / 3. 7.100
libpostproc 55. 7.100 / 55. 7.100
Splitting the commandline.
Reading option '-y' ... matched as option 'y' (overwrite output files) with argument '1'.
Reading option '-v' ... matched as option 'v' (set logging level) with argument 'debug'.
Reading option '-i' ... matched as input url with argument '/Users/davidrice/Documents/GitHub/dvrescue/tools/samples/BAVC1010004_DSR20_100014_30-32.dv'.
Reading option '-c:v' ... matched as option 'c' (codec name) with argument 'copy'.
Reading option '-c:a' ... matched as option 'c' (codec name) with argument 'pcm_s16le'.
Reading option '/Users/davidrice/Documents/GitHub/dvrescue/tools/samples/BAVC1010004_DSR20_100014_30-32_pcm.mov' ... matched as output url.
Finished splitting the commandline.
Parsing a group of options: global .
Applying option y (overwrite output files) with argument 1.
Applying option v (set logging level) with argument debug.
Successfully parsed a group of options.
Parsing a group of options: input url /Users/davidrice/Documents/GitHub/dvrescue/tools/samples/BAVC1010004_DSR20_100014_30-32.dv.
Successfully parsed a group of options.
Opening an input file: /Users/davidrice/Documents/GitHub/dvrescue/tools/samples/BAVC1010004_DSR20_100014_30-32.dv.
[NULL @ 0x7f82fb012000] Opening '/Users/davidrice/Documents/GitHub/dvrescue/tools/samples/BAVC1010004_DSR20_100014_30-32.dv' for reading
[file @ 0x7f82f9622280] Setting default whitelist 'file,crypto,data'
[dv @ 0x7f82fb012000] Format dv probed with size=2048 and score=75
[dv @ 0x7f82fb012000] Detected timecode is invalid
[dv @ 0x7f82fb012000] Before avformat_find_stream_info() pos: 0 bytes read:32768 seeks:0 nb_streams:1
[dv @ 0x7f82fb012000] All info found
[dv @ 0x7f82fb012000] Estimating duration from bitrate, this may be inaccurate
[dv @ 0x7f82fb012000] After avformat_find_stream_info() pos: 120000 bytes read:120000 seeks:0 frames:2
Input #0, dv, from '/Users/davidrice/Documents/GitHub/dvrescue/tools/samples/BAVC1010004_DSR20_100014_30-32.dv':
Duration: 00:02:00.02, start: 0.000000, bitrate: 28771 kb/s
Stream #0:0, 1, 1001/30000: Video: dvvideo, 1 reference frame, yuv411p(topleft), 720x480 [SAR 8:9 DAR 4:3], 0/1, 25000 kb/s, 29.97 fps, 29.97 tbr, 29.97 tbn, 29.97 tbc
Stream #0:1, 1, 1/30000: Audio: pcm_s16le, 48000 Hz, stereo, s16, 1536 kb/s
Successfully opened the file.
Parsing a group of options: output url /Users/davidrice/Documents/GitHub/dvrescue/tools/samples/BAVC1010004_DSR20_100014_30-32_pcm.mov.
Applying option c:v (codec name) with argument copy.
Applying option c:a (codec name) with argument pcm_s16le.
Successfully parsed a group of options.
Opening an output file: /Users/davidrice/Documents/GitHub/dvrescue/tools/samples/BAVC1010004_DSR20_100014_30-32_pcm.mov.
[file @ 0x7f82f9506ec0] Setting default whitelist 'file,crypto,data'
Successfully opened the file.
Stream mapping:
Stream #0:0 -> #0:0 (copy)
Stream #0:1 -> #0:1 (pcm_s16le (native) -> pcm_s16le (native))
Press [q] to stop, [?] for help
cur_dts is invalid st:0 (0) [init:1 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)
cur_dts is invalid st:1 (0) [init:0 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)
cur_dts is invalid st:0 (0) [init:1 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)
cur_dts is invalid st:1 (0) [init:0 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)
detected 8 logical cores
[graph_0_in_0_1 @ 0x7f82f9704680] Setting 'time_base' to value '1/48000'
[graph_0_in_0_1 @ 0x7f82f9704680] Setting 'sample_rate' to value '48000'
[graph_0_in_0_1 @ 0x7f82f9704680] Setting 'sample_fmt' to value 's16'
[graph_0_in_0_1 @ 0x7f82f9704680] Setting 'channel_layout' to value '0x3'
[graph_0_in_0_1 @ 0x7f82f9704680] tb:1/48000 samplefmt:s16 samplerate:48000 chlayout:0x3
[format_out_0_1 @ 0x7f82f95089c0] Setting 'sample_fmts' to value 's16'
[AVFilterGraph @ 0x7f82f9508500] query_formats: 4 queried, 9 merged, 0 already done, 0 delayed
Output #0, mov, to '/Users/davidrice/Documents/GitHub/dvrescue/tools/samples/BAVC1010004_DSR20_100014_30-32_pcm.mov':
Metadata:
encoder : Lavf58.45.100
Stream #0:0, 0, 1/30000: Video: dvvideo, 1 reference frame (dvcp / 0x70637664), yuv411p(topleft), 720x480 (0x0) [SAR 8:9 DAR 4:3], 0/1, q=2-31, 25000 kb/s, 29.97 fps, 29.97 tbr, 30k tbn, 29.97 tbc
Stream #0:1, 0, 1/48000: Audio: pcm_s16le (sowt / 0x74776F73), 48000 Hz, stereo, s16, 1536 kb/s
Metadata:
encoder : Lavc58.91.100 pcm_s16le
[out_0_1 @ 0x7f82f95088c0] EOF on sink link out_0_1:default.bitrate=30204.8kbits/s speed=31.3x
No more output streams to write to, finishing.
Not writing 'clli' atom. No content light level info.
Not writing 'mdcv' atom. Missing mastering metadata.
frame= 3597 fps=961 q=-1.0 Lsize= 444019kB time=00:01:59.98 bitrate=30315.1kbits/s speed=32.1x
video:421523kB audio:22435kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.013719%
Input file #0 (/Users/davidrice/Documents/GitHub/dvrescue/tools/samples/BAVC1010004_DSR20_100014_30-32.dv):
Input stream #0:0 (video): 3597 packets read (431640000 bytes);
Input stream #0:1 (audio): 3586 packets read (22973352 bytes); 3586 frames decoded (5743338 samples);
Total: 7183 packets (454613352 bytes) demuxed
Output file #0 (/Users/davidrice/Documents/GitHub/dvrescue/tools/samples/BAVC1010004_DSR20_100014_30-32_pcm.mov):
Output stream #0:0 (video): 3597 packets muxed (431640000 bytes);
Output stream #0:1 (audio): 3586 frames encoded (5743338 samples); 3586 packets muxed (22973352 bytes);
Total: 7183 packets (454613352 bytes) muxed
3586 frames successfully decoded, 0 decoding errors
[AVIOContext @ 0x7f82f9507040] Statistics: 2 seeks, 1738 writeouts
[AVIOContext @ 0x7f82f9622440] Statistics: 431640000 bytes read, 0 seeks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment