[FFmpeg-user] Timed Metadata extraction/insertions

Larsen, Peter pebl at akamai.com
Wed Jul 15 16:24:25 CEST 2015


Hi,
I have a question about timed metadata in mpeg-ts.

Given a ts with timed-metadata like
http://devimages.apple.com.edgekey.net/streaming/examples/bipbop_16x9/gear1/main.ts
How do I extract the timed-metadata information?

I have tried
ffmpeg -i main.ts -f ffmetadata metadata.txt

Input #0, mpegts, from 'main.ts':
  Duration: 00:30:00.00, start: 10.000000, bitrate: 263 kb/s
  Program 1
    Stream #0:0[0x101]: Audio: aac (LC) ([15][0][0][0] / 0x000F), 22050 Hz, stereo, fltp, 41 kb/s
    Stream #0:1[0x102]: Video: h264 (Main) ([27][0][0][0] / 0x001B), yuv420p(tv, smpte170m/smpte170m/bt709), 416x234, 29.97 tbr, 90k tbn, 180k tbc
    Stream #0:2[0x103]: Data: timed_id3 (ID3  / 0x20334449)

but the text file was empty.

There are timed-metadata every 5sec in main.ts, like:

ID3v2Tag(Id3v2UserTextInformation(TXXX,, *** THIS IS Timed MetaData @ -- 00:19:10.0 *** ),)
ID3v2Tag(Id3v2UserTextInformation(TXXX,, *** THIS IS Timed MetaData @ -- 00:19:15.0 *** ),)

Next question is; how do I insert a timed metadata at a specific time, ID, and text?
Options like -metadata TITLE=foo does not seem to do what I want (e.g. I cannot specify a timestamp).

Peter


More information about the ffmpeg-user mailing list