[FFmpeg-user] Data stream/timecode copy to ffv1/matroska

Kieran O'Leary kieran.oleary at irishfilm.ie
Sat Aug 8 14:03:07 CEST 2015


I have a 1080p24 v210.mov file with 2 audio tracks and a data track, which I'm assuming is the timecode. I want to just transcode the video track to ffv1, and copy over everything else into a matroska wrapper.

Is there an easier way to do this, and is it possible to carry over timecode to matroska?

It says that mkv only supports video, audio, subs.

 I did some googling and saw mention of "-dcodec copy", so I assumed "-c:d" would work too?

Will I need to use "-map -0:d" to just disable the data stream?

C:\Users\Ingest_1>C:\Users\Ingest_1\Downloads\ffmpeg-20150806-git-9c0407e-win64-
static\ffmpeg-20150806-git-9c0407e-win64-static\bin\ffmpeg.exe -i "D:\Media\AC18
4 I Went Down MV6348.mov" -map 0 -c:v ffv1 -level 3 -g 1 -c:a copy -c:d copy "AC184_i_went_down_mv6348.mkv"
ffmpeg version N-74313-g9c0407e Copyright (c) 2000-2015 the FFmpeg developers
  built with gcc 4.9.3 (GCC)
  configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-av
isynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enab
le-iconv --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --
enable-libdcadec --enable-libfreetype --enable-libgme --enable-libgsm --enable-l
ibilbc --enable-libmodplug --enable-libmp3lame --enable-libopencore-amrnb --enab
le-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-librtmp --en
able-libschroedinger --enable-libsoxr --enable-libspeex --enable-libtheora --ena
ble-libtwolame --enable-libvidstab --enable-libvo-aacenc --enable-libvo-amrwbenc
 --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enabl
e-libx264 --enable-libx265 --enable-libxavs --enable-libxvid --enable-lzma --ena
ble-decklink --enable-zlib
  libavutil      54. 30.100 / 54. 30.100
  libavcodec     56. 57.100 / 56. 57.100
  libavformat    56. 40.101 / 56. 40.101
  libavdevice    56.  4.100 / 56.  4.100
  libavfilter     5. 32.100 /  5. 32.100
  libswscale      3.  1.101 /  3.  1.101
  libswresample   1.  2.101 /  1.  2.101
  libpostproc    53.  3.100 / 53.  3.100
Guessed Channel Layout for  Input Stream #0.2 : stereo
Guessed Channel Layout for  Input Stream #0.3 : stereo
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'D:\Media\AC184 I Went Down MV6348.mov':

  Metadata:
    creation_time   : 2015-07-06 11:40:21
  Duration: 01:48:34.50, start: 0.000000, bitrate: 1066293 kb/s
    Stream #0:0(eng): Video: v210 (v210 / 0x30313276), yuv422p10le, 1920x1080, 1
061683 kb/s, SAR 1:1 DAR 16:9, 24 fps, 24 tbr, 24k tbn, 24k tbc (default)
    Metadata:
      creation_time   : 2015-07-06 11:40:21
      handler_name    : Apple Alias Data Handler
      encoder         : 10 bit YCbCr
      timecode        : 10:22:04:08
    Stream #0:1(eng): Data: none (tmcd / 0x64636D74) (default)
    Metadata:
      creation_time   : 2015-07-06 11:40:21
      handler_name    : Apple Alias Data Handler
      reel_name       : Untitled
      timecode        : 10:22:04:08
    Stream #0:2(eng): Audio: pcm_s24le (in24 / 0x34326E69), 48000 Hz, 2 channels
, s32 (24 bit), 2304 kb/s (default)
    Metadata:
      creation_time   : 2015-07-06 11:40:21
      handler_name    : Apple Alias Data Handler
    Stream #0:3(eng): Audio: pcm_s24le (in24 / 0x34326E69), 48000 Hz, 2 channels
, s32 (24 bit), 2304 kb/s (default)
    Metadata:
      creation_time   : 2015-07-06 11:40:21
      handler_name    : Apple Alias Data Handler
File 'AC184_i_went_down_mv6348.mkv' al
ready exists. Overwrite ? [y/N] y
[ffv1 @ 0000000000396b60] bits_per_raw_sample > 8, forcing coder 1
[matroska @ 0000000000394160] Codec for stream 1 does not use global headers but
 container format requires global headers
[matroska @ 0000000000394160] Codec for stream 2 does not use global headers but
 container format requires global headers
[matroska @ 0000000000394160] Codec for stream 3 does not use global headers but
 container format requires global headers
[matroska @ 0000000000394160] Only audio, video, and subtitles are supported for
 Matroska.
Output #0, matroska, to '\AC184_i_went_
down_mv6348.mkv':
  Metadata:
    encoder         : Lavf56.40.101
    Stream #0:0(eng): Video: ffv1 (FFV1 / 0x31564646), yuv422p10le, 1920x1080 [S
AR 1:1 DAR 16:9], q=2-31, 200 kb/s, 24 fps, 1k tbn, 24 tbc (default)
    Metadata:
      creation_time   : 2015-07-06 11:40:21
      handler_name    : Apple Alias Data Handler
      timecode        : 10:22:04:08
      encoder         : Lavc56.57.100 ffv1
    Stream #0:1(eng): Data: none (tmcd / 0x64636D74) (default)
    Metadata:
      creation_time   : 2015-07-06 11:40:21
      handler_name    : Apple Alias Data Handler
      reel_name       : Untitled
      timecode        : 10:22:04:08
    Stream #0:2(eng): Audio: pcm_s24le ([1][0][0][0] / 0x0001), 48000 Hz, stereo
 (24 bit), 2304 kb/s (default)
    Metadata:
      creation_time   : 2015-07-06 11:40:21
      handler_name    : Apple Alias Data Handler
    Stream #0:3(eng): Audio: pcm_s24le ([1][0][0][0] / 0x0001), 48000 Hz, stereo
 (24 bit), 2304 kb/s (default)
    Metadata:
      creation_time   : 2015-07-06 11:40:21
      handler_name    : Apple Alias Data Handler
Stream mapping:
  Stream #0:0 -> #0:0 (v210 (native) -> ffv1 (native))
  Stream #0:1 -> #0:1 (copy)
  Stream #0:2 -> #0:2 (copy)
  Stream #0:3 -> #0:3 (copy)
Could not write header for output file #0 (incorrect codec parameters ?): Invali
d argument



-Kieran.


------
This email has been scanned for spam and malware by The Email Laundry.



More information about the ffmpeg-user mailing list