How to change framerate dynamically

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

How to change framerate dynamically

fb8fb8
This post was updated on .
CONTENTS DELETED
The author has deleted this message.
Reply | Threaded
Open this post in threaded view
|

Re: How to change framerate dynamically

Stefan Sauer
On 07/04/11 13:12, [hidden email] wrote:
Hi,
 
I can use gstreamer to stream a mpg video from one Linux PC to another.
The framerate of the video can be changed by this command:
 
gst-launch filesrc "location= 1.MPG" ! decodebin ! videorate ! video/x-raw-yuv, width=640,height=480,framerate=15/1 ! ffmpegcolorspace ! jpegenc ! multipartmux ! tcpserversink host=192.168.2.1 port=5000
In this command, framerate is set to be 15. The video is streamed at framerate 15 from beginning to end.
But I want to change framerate dynamically, which means during the streaming I can change framerate anytime. After changing framerate, the video will continue but stream at the new framerate.

You can change the playback rate using the 'rate' fields on the seek event.

Stefan
 
How can I change framerate in this way?
Thanks!
_______________________________________________ gstreamer-devel mailing list [hidden email] http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel


_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: How to change framerate dynamically

Mailing List SVR
In reply to this post by fb8fb8
Il 04/07/2011 22:12, [hidden email] ha scritto:
Hi,
 
I can use gstreamer to stream a mpg video from one Linux PC to another.
The framerate of the video can be changed by this command:
 
gst-launch filesrc "location= 1.MPG" ! decodebin ! videorate ! video/x-raw-yuv, width=640,height=480,framerate=15/1 ! ffmpegcolorspace ! jpegenc ! multipartmux ! tcpserversink host=192.168.2.1 port=5000
In this command, framerate is set to be 15. The video is streamed at framerate 15 from beginning to end.
But I want to change framerate dynamically, which means during the streaming I can change framerate anytime. After changing framerate, the video will continue but stream at the new framerate.
 
How can I change framerate in this way?

you could try to change the caps for the capsfilter element after the videorate element, however this doesn't work for me:

https://bugzilla.gnome.org/show_bug.cgi?id=647648

let us know if you find a solution,

Nicola


Thanks!
_______________________________________________ gstreamer-devel mailing list [hidden email] http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel


_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: Re: How to change framerate dynamically

fb8fb8
This post was updated on .
In reply to this post by Stefan Sauer
CONTENTS DELETED
The author has deleted this message.
Reply | Threaded
Open this post in threaded view
|

Re: How to change framerate dynamically

Stefan Sauer
On 07/05/11 11:46, [hidden email] wrote:
where I can find the seek event?

in the api docs. Install devhelp as a help-browser and the docs packages or read them online on http://gstreamer.freedesktop.org or http://library.gnome.org

Stefan
Thanks!
 
Tom
 
 
 
 

From: Stefan Kost <[hidden email]>
To: Discussion of the development of and with GStreamer <[hidden email]>
Time: 2011-07-04  20:37:58
Carbon Copy: <>
Subject: Re: How to change framerate dynamically
On 07/04/11 13:12, [hidden email] wrote:
Hi,
 
I can use gstreamer to stream a mpg video from one Linux PC to another.
The framerate of the video can be changed by this command:
 
gst-launch filesrc "location= 1.MPG" ! decodebin ! videorate ! video/x-raw-yuv, width=640,height=480,framerate=15/1 ! ffmpegcolorspace ! jpegenc ! multipartmux ! tcpserversink host=192.168.2.1 port=5000
In this command, framerate is set to be 15. The video is streamed at framerate 15 from beginning to end.
But I want to change framerate dynamically, which means during the streaming I can change framerate anytime. After changing framerate, the video will continue but stream at the new framerate.

You can change the playback rate using the 'rate' fields on the seek event.

Stefan
 
How can I change framerate in this way?
Thanks!
_______________________________________________ gstreamer-devel mailing list [hidden email] http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel

_______________________________________________ gstreamer-devel mailing list [hidden email] http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel


_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel