video - MPEG 2 - Adding custom tags via editing the source -


I'm looking for advice and what I want to do is possible.

I have been asked to create something similar to the ID3 MP3 tag which can be used with MPEG2 / MPEG-TS video files. Because I'm a raw person, I was just thinking of dumping some type of XML structure within the file, however, this causes problems with applications that try to decode / run the file because the app is in the file XML / ASCII data is not expected. The end of the file 'command' which can be modified at the end of the MPEG files, and I can dump my XML after that part.

According to the compatibility, I only need to avoid the video file by breaking a video. The app that is reading the information tagged will be parsed with an application that I have written so far.

Any thoughts? Or am I suggesting impossible?

Thank you.

Any program decoding an MPEG 2-ts file repeated checking of an 188 byte packet Still working. If you look at the hex, you will see a 0x47 byte, which is also a sync byte (first byte) of each pack of 188 bytes. This is the reason that adding the XML data to the file will screw any decoders.

What you can do, add your packet or kidnap the tap-pid packet, usually at the beginning of an MPEG-2-TS file. Unfortunately, to do this properly, you want this data to be in the network information table, which is not already available. This means that you may have to add a reference to the NIT in PMT. Everyone needs advanced knowledge of transport knowledge and parsing / writing ability.

You can get rid of adding the packet at the beginning of the file without adjusting the context of the clock or just abort the existing null-pid packets (no clock reference changes required) after that A packet ID is used in the new packet, which probably will not be used as 81 9. Without modifying PMT in terms of NIT, it will not be a fully valid MPEG2-TS due to the unearned PID, but perhaps it will still work most commercial decoders

It is not very understandable I am sure, because you are just trying to add some tag information and are not familiar with MPEG2-TS but the standard that defines the exact format is Be careful this is a very heavy reading. If you want to go light (and cheap), then you can be away from now.

Comments

Popular posts from this blog

mysql - BLOB/TEXT column 'value' used in key specification without a key length -

c# - Using Vici cool Storage with monodroid -

python - referencing a variable in another function? -