Page 1 of 1

How to filter one program from TS with multiple programs

Posted: 24 Jun 2009 11:24
by jasonluo
I have a TS file which contains four programs. Each program has one video track, two audio tracks and two dvb subtitle tracks. How can I generate a new TS file which includes only one program?

Thanks a lot.

Re: How to filter one program from TS with multiple programs

Posted: 24 Jun 2009 11:40
by thannoy
@see VLC_command-line_help
@see Documentation:Streaming_HowTo

Code: Select all

vlc input.ts --program=prgmNumber --sout file/ts://oupout.ts

Re: How to filter one program from TS with multiple programs

Posted: 24 Jun 2009 12:15
by jasonluo
I tested the command, but the TS file generated is without any subtitle track. How can I remain the subtitle tracks of the program?

Re: How to filter one program from TS with multiple programs

Posted: 24 Jun 2009 14:38
by thannoy
Maybe look at those papougenet posts:
@see viewtopic.php?f=7&t=58265
@see viewtopic.php?f=4&t=59246

Re: How to filter one program from TS with multiple programs

Posted: 24 Jun 2009 15:06
by jasonluo
Great. It works with the following command line:

vlc.exe d:\650_hk.ts :sout-all :sout=#duplicate{dst=std{access=file,mux=ts,dst="d:\a.ts"},select="program=1",dst=display,select="program=1"}

Thanks a lot!

Re: How to filter one program from TS with multiple programs

Posted: 25 Jun 2009 07:27
by jasonluo
Another problem. With the above command line, the PMT of the program is lost. How can I remain the PMT of that program?

Re: How to filter one program from TS with multiple programs

Posted: 01 Jul 2009 12:20
by csr
On linux I tried

Code: Select all

vlc input.ts :sout-all :sout=#duplicate{dst=std{access=file,mux=ts,dst="/home/csr/digitaltv_conf/drup.ts"},select="program=103",dst=display,select="program=103"}
but got the following error:

Code: Select all

[code][00000409] main stream out error: no sout stream module matched "duplicateselect=program=103" [00000408] main stream output error: stream chain failed for `duplicateselect=program=103' [00000407] main input error: cannot start stream output instance, aborting
[/code]

What's that about? I'm on ubuntu. Is their vlc distrib missing some functionality?

Re: How to filter one program from TS with multiple programs

Posted: 13 Aug 2009 09:28
by csr
I've recompiled vlc with --enable-sout but I still get the same error. Any takers?

Re: How to filter one program from TS with multiple programs

Posted: 09 Feb 2010 11:00
by mayuranantwar
Hello jasonluo!
Could you please share your transport stream with multiple dvb subtitling tracks?







Thanks,
MSA