How to display whats playing?

About encoding, codec settings, muxers and filter usage
iAmUrNeMeSiS
New Cone
New Cone
Posts: 7
Joined: 03 Oct 2009 06:40

How to display whats playing?

Postby iAmUrNeMeSiS » 11 Oct 2009 12:50

HI,

is there anyway to display the filename and running time of the video that i stream? so that people who watches it know what it currently playing and when its ending.

Thanks

kdh
Cone that earned his stripes
Cone that earned his stripes
Posts: 224
Joined: 16 Jun 2009 22:38

Re: How to display whats playing?

Postby kdh » 11 Oct 2009 23:15

You could use Marquee.

here is the link to the vlc wiki page

http://wiki.videolan.org/Documentation:Modules/marq

i'm using linux side stuff.. here is my example as to how I get it to work:

vlc --freetype-font=/usr/share/vlc/skins2/fonts/FreeSans.ttf --sub-filter=marq --marq-size=15 --marq-position=9 --marq-marquee="Live: My show" http://localhost:9070 --sout "#transcode{vcodec=FLV1,height=250,width=300,fps=15,acodec=mp3,vb=100,ab=64,sfilter=marq}:std{access=http,mux=ffmpeg{mux=flv},dst=everydayjunglist.org:8081/stream.flv}"


this allows me to display the marq as I transcode the video into my output flv.

Based on the Wiki page you could change the command in my example to something like:

from:

--marq-marquee="Live: My show"

to

--marq-marquee="Currently playing: \$t"

that should give a display of whats playing.

iAmUrNeMeSiS
New Cone
New Cone
Posts: 7
Joined: 03 Oct 2009 06:40

Re: How to display whats playing?

Postby iAmUrNeMeSiS » 12 Oct 2009 10:29

HI, thanks for the reply i've look it up but i am not using the command line but the gui. My files are all in a playlist, i just have to right click and choose stream so where am i suppose to add the:

--sub-filter=marq --marq-size=15 --marq-position=9 --marq-marquee="Currently playing: \$t"

Thanks

iAmUrNeMeSiS
New Cone
New Cone
Posts: 7
Joined: 03 Oct 2009 06:40

Re: How to display whats playing?

Postby iAmUrNeMeSiS » 12 Oct 2009 13:11

Hi,

i've foudn the correct setting which is:

Code: Select all

vlc --sub-filter=marq --marq-marquee="$N"
This will display the name of the video i am streaming but how do i add it to a stream? the following is my stream:

Code: Select all

:sout=#transcode{vcodec=h264,vb=1024,scale=1,width=320,height=240,acodec=mp4a,ab=128,channels=2,samplerate=44100,scodec=dvbs,soverlay}:rtp{dst=127.0.0.1,port=1234,mux=ts}
I'm streaming a playlist which i right click and choose stream and the above is the only options i have for any manual input.

Thanks

iAmUrNeMeSiS
New Cone
New Cone
Posts: 7
Joined: 03 Oct 2009 06:40

Re: How to display whats playing?

Postby iAmUrNeMeSiS » 12 Oct 2009 14:34

Hi,

Code: Select all

vlc --sub-filter=marq --marq-marquee="$N" --sout=#transcode{vcodec=h264,vb=1024,scale=1,width=320,height=240,acodec=mp4a,ab=128,channels=2,samplerate=44100,scodec=dvbs,soverlay}:rtp{dst=127.0.0.1,port=1234,mux=ts} video2.avi
Doesn't work, no marquee is displayed but streaming works fine.

Code: Select all

vlc --sub-filter=marq --marq-marquee="$N" video2.avi
Works displaying the name of the file but is local only.

Please help me see what i did wrong with the streaming code above thanks alot.

kdh
Cone that earned his stripes
Cone that earned his stripes
Posts: 224
Joined: 16 Jun 2009 22:38

Re: How to display whats playing?

Postby kdh » 12 Oct 2009 19:04

make your command look like this:

Code: Select all

vlc --sub-filter=marq --marq-marquee="$N" --sout=#transcode{vcodec=h264,vb=1024,scale=1,width=320,height=240,acodec=mp4a,ab=128,channels=2,samplerate=44100,scodec=dvbs,soverlay,sfilter=marq}:rtp{dst=127.0.0.1,port=1234,mux=ts} video2.avi
and it should pop up. The sfilter=marq should add it to your transcode stream.

iAmUrNeMeSiS
New Cone
New Cone
Posts: 7
Joined: 03 Oct 2009 06:40

Re: How to display whats playing?

Postby iAmUrNeMeSiS » 12 Oct 2009 19:21

hey

thanks it works but now i wantd to add this $L which will show the duration, where can i insert it? and i think i need to specify the position as well as i already have the title shown.

thanks

kdh
Cone that earned his stripes
Cone that earned his stripes
Posts: 224
Joined: 16 Jun 2009 22:38

Re: How to display whats playing?

Postby kdh » 12 Oct 2009 21:36

i would guess something like this would work.

Code: Select all

vlc --sub-filter=marq --marq-marquee="$N $L" --sout=#transcode{vcodec=h264,vb=1024,scale=1,width=320,height=240,acodec=mp4a,ab=128,channels=2,samplerate=44100,scodec=dvbs,soverlay,sfilter=marq}:rtp{dst=127.0.0.1,port=1234,mux=ts} video2.avi
--marq-size=15 --marq-position=9 will set the text size and where the position. I use position 9 that way its in the the lower left corner of the page.


Return to “VLC stream-output (sout)”

Who is online

Users browsing this forum: No registered users and 32 guests