gst-launch issue with both audio and video
John Hanks
jhanks at vsicorp.com
Thu Feb 22 02:11:38 UTC 2018
Thank you. That solved the problem with the pipeline from the command line.
I'm actually trying to run it from a program so that I can also access
the KLV data in the .ts file.
When I add the queue parameters to my program, the program provides the
following warning:
0:00:00.144022575 11856 0x186f720 WARN mpegtspacketizer
mpegtspacketizer.c:2329:mpegts_packetizer_pts_to_ts: No groups, can't
calculate timestamp
Looking up that message, I found someone that said you needed to add
'tsparse set-timestamps=true' before the tsdemux because " by default
the timestamps are not preserved when working with mpeg ts". I've added
that to the command line pipeline, which still works, but I still get
the error when I run the program with that added. (Of course if the
timestamp issue was true,. why do I not get this error when running from
gst-launch?)
Is there something else I'm missing?
John
On 02/17/2018 05:05 AM, Tim Müller wrote:
> On Fri, 2018-02-16 at 23:20 -0500, John Hanks wrote:
>
> Hi John,
>
> It could be that the keyframe distance in the MPEG-TS file is fairly
> large, larger than the ~1 second of buffering that the queue in the
> other branch provides.
>
> Or the bitrate is very high and the video branch queue default limits
> are too small for that (max 1 sec, 200 buffers, 1 MB).
>
> Some things to try:
>
> 1) Unset non-time limits on both queues:
> .. ! queue max-size-buffers=0 max-size-bytes=0 ! ..
>
> 2) Increase time limit on both queues, in addition to (1):
> .. ! queue max-size-time=3000000000 max... ! ..
>
> 3) Try decodebin or decodebin3 instead, or even playbin.
>
> Cheers
> -Tim
More information about the gstreamer-devel
mailing list