[FFmpeg-trac] #3753(undetermined:new): '-timecode' & '-metadata' not working: not creating a stream (tmcd) in output MOV
FFmpeg
trac at avcodec.org
Thu Jul 3 05:24:58 CEST 2014
#3753: '-timecode' & '-metadata' not working: not creating a stream (tmcd) in
output MOV
-------------------------------------+-------------------------------------
Reporter: AgentJJ24 | Owner:
Type: defect | Status: new
Priority: normal | Component:
Version: git-master | undetermined
Keywords: mov, | Resolution:
timecode, metadata | Blocked By:
Blocking: | Reproduced by developer: 0
Analyzed by developer: 0 |
-------------------------------------+-------------------------------------
Comment (by AgentJJ24):
Replying to [comment:4 Timothy_Gu]:
> I don't think ffmpeg supports muxing arbitrary metadata keys like
reel_name (but I might be wrong). For timecode, can you try `-metadata
timecode=01:02:03:04`?
It'll show it in the Output, but it doesn't seem to "stick." It doesn't
appear with ffprobe nor is it anywhere in the binary (I've gone so far as
to check the QT atoms in a hex editor).
It seems that ffmpeg just doesn't want to write out the stream.
Here's an example:
{{{
ffmpeg -i ./INPUT.mov -map_metadata:s:1 0:s:1 -map 0 -c:v copy -c:d copy
-metadata:s:1 timecode="01:02:03:04" -metadata:s:1 reel_name=ABCD1234 -y
./OUTPUT.mov
ffmpeg version 2.2.4- http://johnvansickle.com/ffmpeg/ Copyright (c)
2000-2014 the FFmpeg developers
built on Jul 1 2014 22:10:48 with gcc 4.8 (Debian 4.8.3-4)
configuration: --enable-gpl --enable-version3 --disable-shared
--disable-debug --enable-runtime-cpudetect --enable-libmp3lame --enable-
libx264 --enable-libwebp --enable-libspeex --enable-libvorbis --enable-
libvpx --enable-libfreetype --enable-fontconfig --enable-libxvid --enable-
libopencore-amrnb --enable-libopencore-amrwb --enable-libtheora --enable-
libvo-aacenc --enable-libvo-amrwbenc --enable-gray --enable-libopenjpeg
--enable-libopus --disable-ffserver --enable-libass --enable-gnutls
--cc=gcc-4.8
libavutil 52. 66.100 / 52. 66.100
libavcodec 55. 52.102 / 55. 52.102
libavformat 55. 33.100 / 55. 33.100
libavdevice 55. 10.100 / 55. 10.100
libavfilter 4. 2.100 / 4. 2.100
libswscale 2. 5.102 / 2. 5.102
libswresample 0. 18.100 / 0. 18.100
libpostproc 52. 3.100 / 52. 3.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from './INPUT.mov':
Metadata:
creation_time : 2014-06-29 03:18:04
Duration: 00:00:47.42, start: 0.000000, bitrate: 664 kb/s
Stream #0:0(eng): Video: h264 (Main) (avc1 / 0x31637661), yuv420p(tv,
bt709), 854x480, 658 kb/s, 23.98 fps, 23.98 tbr, 24k tbn, 48k tbc
(default)
Metadata:
creation_time : 2014-06-29 03:18:04
handler_name : Apple Alias Data Handler
timecode : 00:00:00:00
Stream #0:1(eng): Data: none (tmcd / 0x64636D74) (default)
Metadata:
creation_time : 2014-06-29 03:18:27
handler_name : Apple Alias Data Handler
timecode : 00:00:00:00
Output #0, mov, to './OUTPUT.mov':
Metadata:
encoder : Lavf55.33.100
Stream #0:0: Video: h264 (avc1 / 0x31637661), yuv420p, 854x480,
q=2-31, 658 kb/s, 23.98 fps, 24k tbn, 24k tbc (default)
Stream #0:1(eng): Data: none (tmcd / 0x64636D74) (default)
Metadata:
creation_time : 2014-06-29 03:18:27
handler_name : Apple Alias Data Handler
timecode : 01:02:03:04
reel_name : ABCD1234
Stream mapping:
Stream #0:0 -> #0:0 (copy)
Stream #0:1 -> #0:1 (copy)
Press [q] to stop, [?] for help
frame= 1137 fps=0.0 q=-1.0 Lsize= 3824kB time=00:00:47.33 bitrate=
661.8kbits/s
video:3811kB audio:0kB subtitle:0 data:0 global headers:0kB muxing
overhead 0.362185%
}}}
It LOOKS like it would be PERFECT. However, when I probe it:
{{{
ffprobe OUTPUT.mov
ffprobe version 0.7-rc8
Copyright (c) 2007-2013 Baptiste Coudurier and the FFmpeg developers
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'OUTPUT.mov':
Metadata:
major_brand: qt
minor_version: 512
compatible_brands: qt
encoder: Lavf55.33.100
timecode: 00:00:00:00
Duration: 13:10:22.37, bitrate: 0 kb/s
Stream #0.0(eng): Video: h264 (Main), yuv420p, 854x480p, 658 kb/s,
23.98 fps
Stream #0.1(eng): Data: unknown (tmcd)
Unsupported codec with id 0 for input stream 1
}}}
Or '-show_streams':
{{{
ffprobe -show_streams OUTPUT.mov
ffprobe version 0.7-rc8
Copyright (c) 2007-2013 Baptiste Coudurier and the FFmpeg developers
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'OUTPUT.mov':
Metadata:
major_brand: qt
minor_version: 512
compatible_brands: qt
encoder: Lavf55.33.100
timecode: 00:00:00:00
Duration: 13:10:22.37, bitrate: 0 kb/s
Stream #0.0(eng): Video: h264 (Main), yuv420p, 854x480p, 658 kb/s,
23.98 fps
Stream #0.1(eng): Data: unknown (tmcd)
Unsupported codec with id 0 for input stream 1
[STREAM]
index=0
codec_name=h264
codec_long_name=H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10
codec_type=video
codec_time_base=0/1
codec_tag_string=avc1
codec_tag=0x31637661
width=854
height=480
has_b_frames=0
pix_fmt=yuv420p
level=30
progressive
r_frame_rate=24000/1001
avg_frame_rate=1705500/71071
time_base=1/24000
start_time=0.000000
duration=47.380667
nb_frames=1137
TAG:language=eng
[/STREAM]
[STREAM]
index=1
codec_name=unknown
codec_type=data
codec_time_base=1/24
codec_tag_string=tmcd
codec_tag=0x64636d74
r_frame_rate=0/0
avg_frame_rate=0/0
time_base=1/24
start_time=0.000000
duration=47422.375000
nb_frames=1
TAG:language=eng
[/STREAM]
}}}
--
Ticket URL: <https://trac.ffmpeg.org/ticket/3753#comment:5>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker
More information about the FFmpeg-trac
mailing list