Avalpa Community

The place where we can talk freely about Avalpa product and services
It is currently Wed Aug 17, 2022 12:49 pm

All times are UTC + 1 hour [ DST ]




Post new topic Reply to topic  [ 4 posts ] 
Author Message
PostPosted: Tue Nov 19, 2013 5:05 pm 
Offline

Joined: Tue Nov 19, 2013 4:53 pm
Posts: 2
Hello all,

I would like to ask for a quick instruction on how to exchange one private section stream with the other. I believe there must be someone who could help me with this simple (in theory) task.

I have two PIDs on which I have my private sections in already existing stream (captured from real network), and 14 PMTs for 14 channels have those private sections indicated as components. I also have hex file containing data that I would like to appear instead on those two PIDs. I assume no PMT modification is needed, only demuxing and re-muxing with different private section, am I right? But which tools to use?

Any help would be appreciated since I have no experience with OpenCaster at all... :oops:


Top
 Profile  
 
PostPosted: Tue Nov 19, 2013 9:59 pm 
Offline

Joined: Sun Sep 22, 2013 10:29 am
Posts: 39
tsmodder is your friend!

Code:
$ tsmodder
Usage: 'tsmodder input.ts [b:buffer_size] +0 pat.ts +pid pmt.ts +pid nit.ts  ... '
'+pid file.ts' change the packets with 'pid' with the packets from the file.ts
'b:buffer_size' set size of the internal buffer to many packets as buffer_size


suppose you have priv1.ts that should replace PID num X1 and priv2.ts should replace PID num X2, you just create the new stream with:

Code:
tsmodder input.ts +X1 priv1.ts +X2 priv2.ts > output.ts


have fun!


Top
 Profile  
 
PostPosted: Wed Nov 20, 2013 9:22 am 
Offline

Joined: Tue Nov 19, 2013 4:53 pm
Posts: 2
Thanks a lot, aventuri!

This seems very convenient! There is only one problem. Currently my data is only a string of hex data. How to packetize it into TS? Does OpenCaster have such a tool? If not, do you know any other that might be useful?


Top
 Profile  
 
PostPosted: Wed Nov 20, 2013 9:49 am 
Offline

Joined: Sun Sep 22, 2013 10:29 am
Posts: 39
if they are just sections, you can use sec2ts.

in the previous example, suppose you have priv1.sect and priv2.sect; this is how you packetize in TS format:

Code:
sec2ts X1 <priv1.sect > priv1.ts
sec2ts X2 <priv2.sect > priv2.ts


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC + 1 hour [ DST ]


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group