Stream with time overlay

For questions and discussion that is NOT (I repeat NOT) specific to a certain Operating System.
mgreene
Blank Cone
Blank Cone
Posts: 19
Joined: 27 Nov 2006 21:56

Stream with time overlay

Postby mgreene » 21 Dec 2006 19:58

Is it possible (specifically with a command line) to stream a file with the sub-filter time in effect and have this time format appear on the client side receiveing the stream? I tried this with the logo subfilter, but it only seemed to work if I loaded the streamer and the client instances on the same machine (I.e., not across a LAN).

mgreene
Blank Cone
Blank Cone
Posts: 19
Joined: 27 Nov 2006 21:56

Postby mgreene » 21 Dec 2006 20:36

OK, I found this on the forums which seems to work:

Code: Select all

C:\Program Files\VideoLAN\VLC>vlc -vvv "C:\Video\swEp01.mpg" --sout="#transcode{sfilter=time,soverlay=time,vcodec="mp2v",vb=2000}:std{access=rtp,mux=ts,url=192.168.2.22:1234}'
But a couple more questions:

1. How would I specify a --time-format="my format" option?

2. what does switch -vvv mean?

3. why does this only work when the opening delimiter on the sout argument is a

Code: Select all

"
and the closing one is a

Code: Select all

'

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37523
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Postby Jean-Baptiste Kempf » 22 Dec 2006 01:28

1. dunno
2. very very verbose
3. it should work with ' '
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.

Tappen
Cone that earned his stripes
Cone that earned his stripes
Posts: 150
Joined: 30 Oct 2006 07:55

Postby Tappen » 22 Dec 2006 05:41

To put the time overlay in the top center with moderate-high opacity and time format Hour:Minute:Second you'd add the following to the end of your command line.

--time-opacity=200 --time-position=4 --time-format="%%H:%%M:%%S"

Notice the %% instead of % which is necessary if this is in a Windows cmd file. %Y%m%d%H%M%S are the 6 components of the time you can use.

mgreene
Blank Cone
Blank Cone
Posts: 19
Joined: 27 Nov 2006 21:56

Postby mgreene » 22 Dec 2006 17:25

Sorry, but these seem to be ignored when the time filter is specified in the transcode - I tried this:

Code: Select all

vlc.exe myfile.mpg --sout="#transcode{sfilter=time,soverlay=time,vcodec="DIV3",vb=256}:std{access=mmsh,mux=asfh,dst=10.1.8.42:8080}' --time-opacity=200 --time-position=4 --time-format="%%H:%%M:%%S"
But the last 3 args seemed to be ignored. It continued to put the time in the lower left corner, no opacity, in the format : Date H:M:S

Tappen
Cone that earned his stripes
Cone that earned his stripes
Posts: 150
Joined: 30 Oct 2006 07:55

Postby Tappen » 22 Dec 2006 21:39

Sometimes -- works with options, sometimes :. Try the time options starting with a colon instead.


Return to “General VLC media player Troubleshooting”

Who is online

Users browsing this forum: No registered users and 13 guests