How Do I Change Playback rate on a stream

This forum is about all development around libVLC.
rydaler
New Cone
New Cone
Posts: 5
Joined: 19 Jan 2010 21:13

How Do I Change Playback rate on a stream

Postby rydaler » 01 Feb 2010 14:41

I would like to either speed up or slow down the play rate of a UDP stream. I can easily vary the rate at which the VLC recieves packets and I would like to adjust the actual player to vary display speeds. When I tried libvlc_media_player_set_rate it would set a value and then have no effect on the play speed.

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

Re: How Do I Change Playback rate on a stream

Postby Rémi Denis-Courmont » 01 Feb 2010 19:04

You'd need to change the rate at the sender. Obviously VLC plays the incoming UDP stream at the speed at which it comes.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

rydaler
New Cone
New Cone
Posts: 5
Joined: 19 Jan 2010 21:13

Re: How Do I Change Playback rate on a stream

Postby rydaler » 02 Feb 2010 15:09

So then player play rate is determined by computing power? that seems strange...I could speed up a file played directly using VLC's control interface with no system lag. I would have suspected that there would be a similar command structure for streams. If there is I would love to know

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

Re: How Do I Change Playback rate on a stream

Postby Rémi Denis-Courmont » 02 Feb 2010 19:59

The sender sets the pace. At the receiver of the UDP stream, there is no choice but to play back at the same speed (just like with TV).
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded


Return to “Development around libVLC”

Who is online

Users browsing this forum: No registered users and 8 guests