Opened 22 months ago

Last modified 22 months ago

#4519 new enhancement

Support for KUX container

Reported by: Underground78 Owned by:
Priority: wish Component: avformat
Version: git-master Keywords: flv
Cc: Blocked By:
Blocking: Reproduced by developer: no
Analyzed by developer: no

Description

The Chinese video streaming Youku Tudou seems to use its own container, named KUX. It would be great if FFmpeg could support it.

I don't think there is any publicly available specifications but the format seems derived from FLV and pretty straight forward to convert to a standard FLV file. I have attached a slightly simplified version of a conversion script I found on Gist. A sample file can be found here: sample.kux.

Attachments (1)

kux_to_flv.py (1.8 KB) - added by Underground78 22 months ago.
Conversion script (KUX to FLV)

Download all attachments as: .zip

Change History (7)

Changed 22 months ago by Underground78

Conversion script (KUX to FLV)

comment:1 Changed 22 months ago by al3x

Please upload more samples, one is never enough.

Based on the 'converter' and single file it seems like the header magic is KDK and the actual FLV content is at offset 0xe40000.

For me the following command produces a fully playable file:

dd if=sample.kux of=sample.kux.flv bs=14942208 skip=1

comment:2 Changed 22 months ago by cehoyos

  • Keywords flv added; kux youku removed

comment:4 Changed 22 months ago by cehoyos

I am certainly not against supporting this format but if all content can be found on youtube anyways...
https://www.youtube.com/watch?v=1nRObrCLKNs

comment:5 Changed 22 months ago by Underground78

To be honest I don't really care myself but I guess most Chinese users cannot access Youtube (easily at least).

comment:6 Changed 22 months ago by al3x

All four seem to work with simply skipping that data chunk. Supporting it isn't a big deal, but involves a lot of changes to adjust all offsets. Question is it worth it?

Note: See TracTickets for help on using tickets.