Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion. Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules. |
6th May 2011, 19:16 | #1 | Link |
Registered User
Join Date: Apr 2009
Posts: 93
|
Inserting SEI
I'm thinking of adding a user-defined SEI to existing H.264/MTS files. It should be possible by inserting occasional MTS packets to hold the inserted data, and any existing data that would need to be moved to make room for the inserted data.
But this would progressively shift existing packets forward in the file. Would this be likely to break any indexes that might be present in the other files that are present in the Blu-ray and AVCHD folder structure? Or is there a better method of inserting data int existing H.264/MTS files? |
6th May 2011, 19:28 | #3 | Link |
Registered User
Join Date: Apr 2009
Posts: 93
|
Thanks for the quick response. I expected it would be problematic. In theory I think it should be possible to insert data with byte accuracy by resizing the preceding packet payload size, and moving the rest of the data into the inserted packet after the new data.
Is there any way to insert data without breaking anything? I just noticed that tsmuxer seems to have a feature which inserts SEIs to existing files but I haven't looked at how it does this, or whether it ignores any indexing problems that may be caused by this. |
7th May 2011, 12:52 | #5 | Link | |
Registered User
Join Date: Apr 2009
Posts: 93
|
Quote:
As regards any indexes that may be present in other auxilliary Blu-ray/AVCHD files, I'm assuming that any repackaging of the PES packets would break these indexes. |
|
|
|