Stream current timestamp/position

About encoding, codec settings, muxers and filter usage
rhegner
Blank Cone
Blank Cone
Posts: 10
Joined: 29 Mar 2016 12:21

Stream current timestamp/position

Postby rhegner » 29 Mar 2016 12:28

I need an external application to be synchronized with a video being played. Therefore the external application needs to know the current timestamp/position in the file.

Is it possible using the streaming capabilities of VLC to set up a stream which does not contain actual audio and video data, but only the current timestamp/position?
This information should preferably be sent via UDP and preferably in a format which is easy to parse (ideal would be just a raw timestamp per UDP packet).

rhegner
Blank Cone
Blank Cone
Posts: 10
Joined: 29 Mar 2016 12:21

Re: Stream current timestamp/position

Postby rhegner » 29 Mar 2016 12:51

What I tried so far is clicking together a stream output using the GUI with an UDP destination, RAW encapsulation and no video or audio codec, resulting in the following stream output string:

Code: Select all

:sout=#duplicate{dst=udp{dst=127.0.0.1:55438},dst=display} :sout-keep
But with these settings VLC does not seem to send anything.

This doesn't seem to work as well:

Code: Select all

:sout=#duplicate{dst=rtp{dst=127.0.0.1,port=5004,sap,name=test},dst=display} :sout-keep

Rémi Denis-Courmont
Developer
Developer
Posts: 15233
Joined: 07 Jun 2004 16:01
VLC version: master
Operating System: Linux
Contact:

Re: Stream current timestamp/position

Postby Rémi Denis-Courmont » 29 Mar 2016 15:14

Not really so far.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

rhegner
Blank Cone
Blank Cone
Posts: 10
Joined: 29 Mar 2016 12:21

Re: Stream current timestamp/position

Postby rhegner » 29 Mar 2016 15:16

Thank you for your response!
Do you know if I can use the Network Sync feature for this purpose? Does it send UDP packets? I couldn't find any documentation describing how it actually works.

Rémi Denis-Courmont
Developer
Developer
Posts: 15233
Joined: 07 Jun 2004 16:01
VLC version: master
Operating System: Linux
Contact:

Re: Stream current timestamp/position

Postby Rémi Denis-Courmont » 29 Mar 2016 15:58

Yeah it is supposed to work though it is largelly unmaintained and poorly documented.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded


Return to “VLC stream-output (sout)”

Who is online

Users browsing this forum: No registered users and 7 guests