Commit 5ee57b86 authored by Francois Cartegnie's avatar Francois Cartegnie

demux: mp4: add youtube meta

parent 604aa2b4
......@@ -3892,6 +3892,12 @@ static const struct
{ ATOM_rtng, MP4_ReadBox_Metadata, ATOM_ilst },
{ ATOM_trkn, MP4_ReadBox_Metadata, ATOM_ilst },
{ ATOM_xid_, MP4_ReadBox_Metadata, ATOM_ilst },
{ ATOM_gshh, MP4_ReadBox_Metadata, ATOM_ilst }, /* YouTube gs?? */
{ ATOM_gspm, MP4_ReadBox_Metadata, ATOM_ilst },
{ ATOM_gspu, MP4_ReadBox_Metadata, ATOM_ilst },
{ ATOM_gssd, MP4_ReadBox_Metadata, ATOM_ilst },
{ ATOM_gsst, MP4_ReadBox_Metadata, ATOM_ilst },
{ ATOM_gstd, MP4_ReadBox_Metadata, ATOM_ilst },
/* udta */
{ ATOM_0x40PRM, MP4_ReadBox_String, ATOM_udta },
......
......@@ -325,6 +325,12 @@ typedef int64_t stime_t;
#define ATOM_rtng VLC_FOURCC( 'r', 't', 'n', 'g' )
#define ATOM_tsel VLC_FOURCC( 't', 's', 'e', 'l' )
#define ATOM_xid_ VLC_FOURCC( 'x', 'i', 'd', ' ' )
#define ATOM_gshh VLC_FOURCC( 'g', 's', 'h', 'h' )
#define ATOM_gspm VLC_FOURCC( 'g', 's', 'p', 'm' )
#define ATOM_gspu VLC_FOURCC( 'g', 's', 'p', 'u' )
#define ATOM_gssd VLC_FOURCC( 'g', 's', 's', 'd' )
#define ATOM_gsst VLC_FOURCC( 'g', 's', 's', 't' )
#define ATOM_gstd VLC_FOURCC( 'g', 's', 't', 'd' )
#define ATOM_0x40PRM VLC_FOURCC( '@', 'P', 'R', 'M' )
#define ATOM_0x40PRQ VLC_FOURCC( '@', 'P', 'R', 'Q' )
......
......@@ -95,6 +95,12 @@ static const struct
{ ATOM_flvr, N_("Encoding Params") },
{ ATOM_vndr, N_("Vendor") },
{ ATOM_xid_, N_("Catalog Number") },
{ ATOM_gshh, N_("YouTube Host") },
{ ATOM_gspm, N_("YouTube Ping Message") },
{ ATOM_gspu, N_("YouTube Ping Url") },
{ ATOM_gssd, N_("YouTube Source Data") },
{ ATOM_gsst, N_("YouTube Start Time") },
{ ATOM_gstd, N_("YouTube Track Duration") },
{ 0, "" },
};
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment