View Full Version : Support for muxing User Data into MPEG2
jmac698
5th October 2011, 01:21
Hello,
I'm wondering if there's any other tools that let me mux user data into an mpg. I'd like to mux CC data. There is one tool to do this but it's slow and I'd like to know if there's any other options.
It's available on high end authoring programs like Scenarist, but I was hoping for a free tool.
I just had an idea to read the command line options for dvdauthor, which some free tools are based on.
Ok, there is no support at all for CC.
jmac698
5th October 2011, 01:40
Turns out I asked the same question 5 years ago, and I still haven't found a solution.
http://forum.doom9.org/archive/index.php/t-108483.html
pandy
5th October 2011, 10:19
Manzanita AFAIR support CC
jmac698
5th October 2011, 12:43
Yep, looks good but you can't even download a demo.
Blue_MiSfit
6th October 2011, 07:50
Yeah, one of Manzanita's muxers is definitely my suggestion. CPC's tools are very good as well. Reach out to the sales groups of either company and they will happily issue you a free evaluation. Fantastic sales and support from both places.
Bigger all-in-one solutions would be Digital Rapids Stream, Telestream FlipFactory, Rhozet Carbon Coder, to name only a few...
CC insertion is a pro feature. You pay for it ;)
obe-vod can do this from an scc file when encoding h.264, and is nice freeware (x264 based). But that's x264 and you're interested in MPEG-2...
Derek
pandy
6th October 2011, 09:26
http://www.theneitherworld.com/mcpoodle/SCC_TOOLS/DOCS/SCC_TOOLS.HTML
CC_MUX.EXE: Command-line utility to incorporate closed captions into MPEG files
http://www.theneitherworld.com/mcpoodle/SCC_TOOLS/DOCS/SCC_TOOLS.HTML#cc_mux
kieranrk
8th October 2011, 02:05
FWIW this could in theory break VBV.
pandy
10th October 2011, 14:09
FWIW this could in theory break VBV.
but this can be fixed by tmpegenc tools AFAIR
Emulgator
11th October 2011, 18:06
BTW, DVDLabPro2 can mux CC, but it is not free.
redshift90
22nd October 2011, 22:43
I wrote a utility that is used for inserting userdata (608/708 captions) into mpeg2 files.
It's extremely fast and has been been used on thousands of files.
What are you wanting to insert? I'm assuming CC data.
Currently I have versions that will accept McPoodle's 2byte format or raw userdata ie 00 00 01 B2 47 41 39 34 03 ...........
jmac698
23rd October 2011, 02:36
That would be great, but can you offer a download?
Yes cc raw data. I'm not so much interested in reading CC as creating a test signal in the VBI area.
redshift90
23rd October 2011, 02:54
That would be great, but can you offer a download?
Yes cc raw data. I'm not so much interested in reading CC as creating a test signal in the VBI area.
http://www.nixieworks.com/userdata_raw.zip
An executable and a sample file is included. You can look at the output.raw in an hex editor. for 608 captions you need this for each frame
00 00 01
output.raw is a 708 rip from some pitchblue content.
usage is;
userdata <input file> <output file> <cc data file>
redshift90
23rd October 2011, 03:37
That would be great, but can you offer a download?
Yes cc raw data. I'm not so much interested in reading CC as creating a test signal in the VBI area.
http://www.nixieworks.com/userdata_raw.zip
An executable and two sample files are included.
usage is;
userdata <input file> <output file> <cc data file>
You will need visual studio 2008 runtime installed.
This utility expects an mpeg2 elementary stream. If you feed it a transport stream or program stream the resulting file will not be playable. Also the file should not have any userdata already in it - if it does the results will be unpredictable.
For 608 captions each frame needs to look like this
00 00 01 B2 47 41 39 34 03 C1 FF FC 80 80 FF
The 80 80 will be your two byte 608 caption data.
The program calculates the length of each packet using the cc_count field. In this example the cc_count is 1 so cc_data_pkt is cc_count*24 or 3 bytes (FC 80 80) with the rest of the packet makes for a total size of 15.
I could write a book on this but I think this should get you going.
The result can viewed with VLC AFTER it's been muxed into a transport or program stream.
708_example.raw is a 708 rip from some pitchblue content. One day i'll learn how to generate 708
This utility reorders the data as per the temporal sequence.
jmac698
23rd October 2011, 04:21
Great! I have a question, I've seen reference that to put this into a DVD, you need to set a flag in the ifo file, do you know anything about this?
Also, I've seen a reference to 6 ways to include captioning data, which way is this one?
http://www.pixeltools.com/tech-tip-closed-captioning-existing.html
1 CEA 708 DTV 18 picture header user data in display order
2 CEA 708 NTSC 2 picture header user data in display order
3 CEA 608 2 picture header user data in display order
4 ATSC / CEA 608 2 picture header user data in display order
5 DVD 30 GOP header user data
6 SCTE 20 2 picture header user data in display order
redshift90
23rd October 2011, 04:42
Great! I have a question, I've seen reference that to put this into a DVD, you need to set a flag in the ifo file, do you know anything about this?
Also, I've seen a reference to 6 ways to include captioning data, which way is this one?
http://www.pixeltools.com/tech-tip-closed-captioning-existing.html
If you use the example you will be doing #4.
I'm not sure about the IFO file - I don't do a lot of work with DVD's
This tool inserts picture header userdata. DVD captions are placed in the GOP header(If memory serves)
So my tool will do all but 5 or 6
Oh and it does insert in display order.
jmac698
23rd October 2011, 05:24
5 DVD 30 GOP header user data
That means 30 bytes of CC data in each GOP, or 2 bytes per frame.
I'll try it out soon.
vBulletin® v3.8.11, Copyright ©2000-2026, vBulletin Solutions Inc.