filesrc with no EOS possible?

mattes effemm at mykmk.com
Sat Apr 26 10:18:26 PDT 2014


On Tue, 22 Apr 2014 02:45:16 -0700 (PDT) Hamo61 <hamza_the_one at hotmail.de>
wrote

> Hi,
> im trying to transcode a videofile. The Source is a live recording file wich
> gets permanent bigger.
> Now i want Gstreamer to transocde the file. The Problem is, that Gstreamer
> reacher EOS very fast so the transcoding stops. Is it possible to say
> Gstreamer that he doesnt stop transcoding?
> 
> Here my pipeline:
> gst-launch-1.0 -v filesrc num-buffers=-1
> location=/home/pi/sambashare/one/src/video/original.h264 ! decodebin ! queue
> ! omxh264enc control-rate=1 target-bitrate=1024000 ! filesink
> location=/home/pi/sambashare/one/plain/video/1024000/1024000.h264

Most likely filesrc plugin is reading zero bytes at one point, which leads to
EOS event and shutdown of the pipeline.  You could wrap up your
pipeline in C, then intercept EOS via a bufferprobe. Though not sure what it
takes to make filesrc start reading again.
Might be easier to write your own filesrc plugin and implement a method
that works for your case.
Have you thought about getting the data directly from the live source,
instead of reading it from a file. This will save a lot of cpu cycle, 
which you now spent on file read and decoding.

Mat




More information about the gstreamer-devel mailing list