Question about decodebin and prerolling

Tim-Philipp Müller t.i.m at zen.co.uk
Thu Dec 20 09:10:15 UTC 2018


On Thu, 2018-12-20 at 08:41 +0000, Russel Winder wrote:

Hi,

> I just tried:
> 
>    gst-launch-1.0 decodebin uri=dvb://BBC%20NEWS ! x264enc ! mp4mux !
> filesink location=news.mp4
> 
> but it failed due to not being able to PREROLL.
> 
> playbin can handle uri=dvb://BBC%20NEWS, but it seems decodebin
> cannot. Hopefully I am missing something fairly obvious.

Hard to say what the problem is without more info but I would guess
that it's between decodebin and the encoder. Try adding a videoconvert
element. Also note that you will want to pass -e to gst-launch so your
file is finalised properly when you exit later.

Cheers
 Tim



More information about the gstreamer-devel mailing list