gstd-1.x icon indicating copy to clipboard operation
gstd-1.x copied to clipboard

Playbin3 gapless playback

Open anilgond opened this issue 5 years ago • 1 comments

Hi, I am wiritng C code using playbin3 as source and decklink as sink. I want to play multiple files one by one. While playing one I want to receive "about-to-finish" signal so that I can set another uri to play next file without gap, butI dont know how to receive this signal and then how to set next uri. Following is the pipeline: gstc_pipeline_create (client, "pipe1", "playbin3 uri=file:///home/1.mpg video-sink="deinterlace ! autovideoconvert ! interlace field-pattern=2:2 ! videoconvert ! video/x-raw,format=UYVY ! videoscale ! video/x-raw,width=1920,height=1080 ! videorate ! video/x-raw,framerate=25/1 ! decklinkvideosink mode=16"")

Any help will be appreciated.

anilgond avatar Sep 19 '20 18:09 anilgond

Hi @anilgond, I've started a simple example on how to do do gapless playback using playbin. You may find here:

https://github.com/RidgeRun/gstd-1.x/blob/feature/playbin-gapless-playback-example/examples/pygstc/playbin_gapless.py

Please note that this has not been merge yet, since I'll likely modify it a bit in the incoming days, but the skeleton is there.

michaelgruner avatar Sep 29 '20 04:09 michaelgruner