[gst-devel] channel changing dvbsrc plugin

Zhao, Halley halley.zhao at intel.com
Fri Mar 6 04:39:18 CET 2009


Try to block the upstream src pad before you link/unlink.

http://www.sfr-fresh.com/unix/privat/gstreamer-0.10.22.tar.gz:a/gstreamer-0.10.22/docs/design/part-block.txt


________________________________
From: Sumanth V [mailto:sumanth.v at allaboutif.com]
Sent: 2009年3月6日 3:37
To: Discussion of the development of GStreamer
Subject: [gst-devel] channel changing dvbsrc plugin

Hi All,

             I am writing a application using a dvbsrc plugin to play the incoming TV channels. How do i change the channels with out stopping the application? Right now i am doing it by changing the es-pid property of the mpegtsdemux plugin, i am able to to change the channels, but as soon as i change the channel , the video is getting freezed, its not playing. but i can change the channles. As soon as i shift to next channel, the video is getting freezed.
         For the first time when i start the application it plays which ever channel i have selected, but later when i try to change the channels , the video is getting freezed.

The method i am using to change the channel is :-
 * when i want to change a channel, i set the pipeline to READY state and tune to a channel which i want to play and the set the "es-pid" property of the
    mpegtsdemux plugin to the pid of the channel which i want to play.
 * Set the pipeline back to PLAYING state.
 * When the mpegtsdemux plugin generates a new pad for the new channel , i unlink the previous linked queue pad to the mpegtsdemux and then link to the new pad.

 the pipeline is
 gst-launch dvbsrc diseqc-source=0 frequency=10990000 symbol-rate=27500 polarity="v" code-rate-hp=3/4 ! mpegtsdemux ! queue ! mpeg2dec ! ffmpegcolorspace ! xvimagesink

 Where am i going wrong here? Why is the video of the new channel  getting freezed??

regards,
Sumanth


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20090306/0ff57b92/attachment.htm>


More information about the gstreamer-devel mailing list