How to filter one program from TS with multiple programs

About encoding, codec settings, muxers and filter usage
jasonluo
New Cone
New Cone
Posts: 4
Joined: 24 Jun 2009 11:19

How to filter one program from TS with multiple programs

Postby jasonluo » 24 Jun 2009 11:24

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.

thannoy
Big Cone-huna
Big Cone-huna
Posts: 601
Joined: 20 Mar 2008 09:44
VLC version: 0.9.8a & 1.0-git
Operating System: GNU/Linux Fedora10
Location: France
Contact:

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

Postby thannoy » 24 Jun 2009 11:40

@see VLC_command-line_help
@see Documentation:Streaming_HowTo

Code: Select all

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

jasonluo
New Cone
New Cone
Posts: 4
Joined: 24 Jun 2009 11:19

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

Postby jasonluo » 24 Jun 2009 12:15

I tested the command, but the TS file generated is without any subtitle track. How can I remain the subtitle tracks of the program?

thannoy
Big Cone-huna
Big Cone-huna
Posts: 601
Joined: 20 Mar 2008 09:44
VLC version: 0.9.8a & 1.0-git
Operating System: GNU/Linux Fedora10
Location: France
Contact:

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

Postby thannoy » 24 Jun 2009 14:38

Maybe look at those papougenet posts:
@see viewtopic.php?f=7&t=58265
@see viewtopic.php?f=4&t=59246

jasonluo
New Cone
New Cone
Posts: 4
Joined: 24 Jun 2009 11:19

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

Postby jasonluo » 24 Jun 2009 15:06

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!

jasonluo
New Cone
New Cone
Posts: 4
Joined: 24 Jun 2009 11:19

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

Postby jasonluo » 25 Jun 2009 07:27

Another problem. With the above command line, the PMT of the program is lost. How can I remain the PMT of that program?

csr
Blank Cone
Blank Cone
Posts: 13
Joined: 20 Sep 2006 09:24

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

Postby csr » 01 Jul 2009 12:20

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?

csr
Blank Cone
Blank Cone
Posts: 13
Joined: 20 Sep 2006 09:24

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

Postby csr » 13 Aug 2009 09:28

I've recompiled vlc with --enable-sout but I still get the same error. Any takers?

mayuranantwar
New Cone
New Cone
Posts: 8
Joined: 17 Dec 2007 15:14

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

Postby mayuranantwar » 09 Feb 2010 11:00

Hello jasonluo!
Could you please share your transport stream with multiple dvb subtitling tracks?







Thanks,
MSA


Return to “VLC stream-output (sout)”

Who is online

Users browsing this forum: No registered users and 6 guests