Skip to content

Instantly share code, notes, and snippets.

@markvdb
Created November 23, 2019 20:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save markvdb/796c40e3644694163694a61e88c2b3a8 to your computer and use it in GitHub Desktop.
Save markvdb/796c40e3644694163694a61e88c2b3a8 to your computer and use it in GitHub Desktop.
playback with audio in weston
Setting pipeline to PAUSED ...
0:00:00.038146622 13381 0x55fe274cd6f0 WARN basesrc gstbasesrc.c:3583:gst_base_src_start_complete:<filesrc0> pad not activated yet
Pipeline is PREROLLING ...
0:00:00.038855420 13381 0x55fe274a82d0 WARN qtdemux qtdemux.c:3031:qtdemux_parse_trex:<demux> failed to find fragment defaults for stream 1
0:00:00.039018154 13381 0x55fe274a82d0 WARN qtdemux qtdemux.c:3031:qtdemux_parse_trex:<demux> failed to find fragment defaults for stream 2
0:00:00.039339405 13381 0x55fe274a82d0 WARN basesrc gstbasesrc.c:2445:gst_base_src_update_length:<filesrc0> processing at or past EOS
Got context from element 'vaapipostproc0': gst.gl.GLDisplay=context, gst.gl.GLDisplay=(GstGLDisplay)"\(GstGLDisplayWayland\)\ gldisplaywayland0";
Redistribute latency...
0:00:00.141129871 13381 0x55fe274ef720 WARN vaapidisplay gstvaapidisplay_wayland.c:167:gst_vaapi_display_wayland_bind_display: wayland: get display name
Got context from element 'vaapipostproc0': gst.vaapi.Display=context, gst.vaapi.Display=(GstVaapiDisplay)"\(GstVaapiDisplayEGL\)\ vaapidisplayegl0";
Redistribute latency...
0:00:00.157038585 13381 0x7fb404071a30 WARN default grammar.y:510:gst_parse_no_more_pads:<decodebin0> warning: Delayed linking failed.
0:00:00.157078238 13381 0x7fb404071a30 WARN default grammar.y:510:gst_parse_no_more_pads:<decodebin0> warning: failed delayed linking some pad of GstDecodeBin named decodebin0 to some pad of GstAutoVideoSink named autovideosink0
WARNING: from element /GstPipeline:pipeline0/GstDecodeBin:decodebin0: Delayed linking failed.
Additional debug info:
./grammar.y(510): gst_parse_no_more_pads (): /GstPipeline:pipeline0/GstDecodeBin:decodebin0:
failed delayed linking some pad of GstDecodeBin named decodebin0 to some pad of GstAutoVideoSink named autovideosink0
handling interrupt.
Interrupt: Stopping pipeline ...
ERROR: pipeline doesn't want to preroll.
Setting pipeline to NULL ...
Freeing pipeline ...
@markvdb
Copy link
Author

markvdb commented Nov 23, 2019

The above didn't work for the vaapi supported h264 profiles (so with hw acceleration), but it did work (inside weston) with the baseline profile (no vaapi acceleration). Successful baseline log below:

playback_baseline.log
Setting pipeline to PAUSED ...
0:00:00.036552072 13505 0x55fa5a7c3af0 WARN basesrc gstbasesrc.c:3583:gst_base_src_start_complete: pad not activated yet
Pipeline is PREROLLING ...
0:00:00.036960050 13505 0x55fa5a79e2d0 WARN qtdemux qtdemux.c:3031:qtdemux_parse_trex: failed to find fragment defaults for stream 1
0:00:00.037067379 13505 0x55fa5a79e2d0 WARN qtdemux qtdemux.c:3031:qtdemux_parse_trex: failed to find fragment defaults for stream 2
0:00:00.037155566 13505 0x55fa5a79e2d0 WARN basesrc gstbasesrc.c:2445:gst_base_src_update_length: processing at or past EOS
Got context from element 'vaapipostproc0': gst.gl.GLDisplay=context, gst.gl.GLDisplay=(GstGLDisplay)"(GstGLDisplayWayland)\ gldisplaywayland0";
0:00:00.134169648 13505 0x55fa5a7f5b20 WARN vaapidisplay gstvaapidisplay_wayland.c:167:gst_vaapi_display_wayland_bind_display: wayland: get display name
Got context from element 'vaapipostproc0': gst.vaapi.Display=context, gst.vaapi.Display=(GstVaapiDisplay)"(GstVaapiDisplayEGL)\ vaapidisplayegl0";
0:00:00.143665800 13505 0x55fa5a7f5b20 WARN decodebin gstdecodebin2.c:2514:connect_pad: Couldn't set vaapidecodebin0 to PAUSED
Redistribute latency...
Redistribute latency...
Redistribute latency...
Pipeline is PREROLLED ...
Setting pipeline to PLAYING ...
New clock: GstPulseSinkClock
handling interrupt.
Interrupt: Stopping pipeline ...
Execution ended after 0:00:03.079124013
Setting pipeline to PAUSED ...
Setting pipeline to READY ...
Setting pipeline to NULL ...
Freeing pipeline ...

@markvdb
Copy link
Author

markvdb commented Nov 23, 2019

gst-launch-1.0 --gst-debug-level=2 filesrc location=$1 ! qtdemux name=demux demux.video_0 ! queue ! decodebin ! autovideosink demux.audio_0 ! queue ! decodebin ! autoaudiosink

was the pipeline for both, inside weston

@markvdb
Copy link
Author

markvdb commented Nov 23, 2019

Successful baseline playback pipeline:
http://glasno.st/logs/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment