My simple transcoding app hangs, code review requested
Tim-Philipp Müller
t.i.m at zen.co.uk
Wed Oct 2 13:55:07 PDT 2013
On Wed, 2013-10-02 at 22:53 +0300, Andrey Utkin wrote:
> I have build equivalent gst-launch command line, but it hangs in the same way:
>
> gst-launch-1.0 filesrc
> location=/home/krieger/Downloads/big_buck_bunny_720p_h264.mov !
> qtdemux name=demux demux.audio_0 ! queue ! avdec_aac ! audioconvert !
> avenc_mp2 ! queue ! mpegtsmux name=mux mux. ! filesink
> location=bbb_reenc.ts demux.video_0 ! queue ! avdec_h264 !
> videoconvert ! x264enc ! queue ! mux.
>
> I've read that some options tuning for queues may help.
> How exactly should i tune it?
>
Try:
demux.audio_0 ! queue max-size-bytes=0 max-size-buffers=0
max-size-time=5000000000 ! avdec_aac ! ...
If that doesn't help, try x264enc tune=zerolatency (but that's more of
an emergency fix, it reduces quality unnecessarily and shouldn't be used
unless you really want low latency)
Cheers
-Tim
More information about the gstreamer-devel
mailing list