transcoding and stream output 2 channels

About encoding, codec settings, muxers and filter usage
hrjun
New Cone
New Cone
Posts: 6
Joined: 13 Feb 2007 11:35

transcoding and stream output 2 channels

Postby hrjun » 06 Mar 2007 09:13

Hi!
I try to stream 2 channels from DVB card (SS2) to internet,(Ubuntu,vlc 0.8.6) When I don't transcode it , it works great.But when I try to transcode , I 've got a problem - only 1 channel goes fine, second one - does not.I think, that something wrong with a string.The string is:
$vlc -vvv --color --ttl 12 --ts-es-id-pid --programs=2,3 (input stream) --sout-standard-access=mmsh --sout-standard-mux=ts --sout
'#duplicate{dst="transcode{vcodec=mpgv,vb=1024,scale=1,acodec=mpga,
ab=128,channels=2}:std{dst="My IP:port},select="program=2"}'
'#duplicate{dst="transcode{vcodec=mpgv,vb=1024,scale=1,acodec=mpga,
ab=128,channels=2}:std{dst=My IP:port},select="program=3"}'

thx in advance

hrjun
New Cone
New Cone
Posts: 6
Joined: 13 Feb 2007 11:35

Postby hrjun » 08 Mar 2007 21:33

solved.

aygun
Blank Cone
Blank Cone
Posts: 16
Joined: 28 Feb 2007 16:01
Location: Romania
Contact:

Postby aygun » 07 Jun 2007 07:33

How did u solve the problem ?

I want to stream an whole transponder and i do not know how ?

Please , can u help me ?

Thank u.
Aygun

hihi
Blank Cone
Blank Cone
Posts: 49
Joined: 09 Jan 2007 08:48

Re: transcoding and stream output 2 channels

Postby hihi » 13 Aug 2007 18:29

Hello,

I've the same problem, I've got a Multicast transportstream with several services init. I want to join the stream and save only two services (program 107 and program 108) into a separate files(or the same if possible), I've got the following config file:

# Comment the following line if you don't want to reset your VLM configuration
del all

# Input options
new testing1 broadcast enabled
setup testing1 input "udp://10.10.126.1@224.1.1.1:49410"
setup testing1 output "#duplicate{dst="transcode{}:std{access=file,mux=ts,dst=fileA.ts}",select="program=107",dst="transcode{}:std{access=file,mux=ts,dst=fileB.ts}", select="program=108"}"


# Launch everything
control testing1 play

# end of streamtofile batch

But it wont work, could someone take a look where the fault may be?

hrjun
New Cone
New Cone
Posts: 6
Joined: 13 Feb 2007 11:35

Re: transcoding and stream output 2 channels

Postby hrjun » 21 Jan 2008 12:46

This is working script for linux to accept transpoder channels, transcode it and stream out in unicast (!) mode. Just create file ( i.e. "vlcstart.sh" ) , after that make it executable ( chmod +x vlcstart.sh ) and put this strings into that file.
A little explanations :
--programs - numbers of the channels to accept from transpoder, transcode and stream out
--dvb-adapter= - the number of your dvb adapter (0 , 1 , 2 ). I.e. if u use only one dvb adapter ( your sattelite card, I have SS2 ) , the number of this adapter will be - 0, second one will be - 1 , and so on.
--dvb-frequency= - frequency of transpoder
--dvb-srate= srate of transpoder ( hope u know where to get it :))
--dvb-voltage= 13 or 18 ( vertical or horisontal polarisation )
dst=your_ip ( put here IP of your server and port, ports must be different for each program )

#!/bin/sh
vlc -vvv --daemon --ttl 12 --ts-es-id-pid \
--programs=*,8**,4*** \
dvb: --dvb-adapter=* --dvb-frequency=* --dvb-srate=* --dvb-voltage=* --dvb-fec=3 --dvb-caching=1000 \
--sout='#transcode{vcodec=mpgv,vb=2000,scale=1,acodec=mpga,ab=128,channels=2}:duplicate{dst=std{access=mmsh,mux=ts,dst=your_ip:1251},
select="program=*",dst=std{access=mmsh,mux=ts,dst=your_ip:1252},select="program=8**",dst=std{access=mmsh,mux=ts,dst=your_ip:1253},
select="program=4***"}'
Acctualy, using this example, u can add more channels to accept and stream out.


Return to “VLC stream-output (sout)”

Who is online

Users browsing this forum: No registered users and 3 guests