Skip to main content
Senior
October 15, 2026
Question

GStreamer - Play video works, but no sound?

Hi!

I’m using this comman

gst-launch-1.0 -v  filesrc location=bbb.mp4 !  qtdemux ! h264parse !  v4l2slh264dec !   waylandsink fullscreen=true

To play video in 1080p without lagging. But this comes without sound.

How can I play sound with gst-launch-1.0?

I can only play sound with “aplay /path/to/file.wav”.

1 reply

WindowsAuthor
Senior
October 15, 2026

Here is one solution to play videos and sound at the same time e.g mp4 file. The question is now: Can this command to play videos with sound be shorten any further?

gst-launch-1.0 -e \
filesrc location=bbb.mp4 ! qtdemux name=d \
d.video_0 ! queue ! h264parse ! v4l2slh264dec ! waylandsink fullscreen=true \
d.audio_0 ! queue ! decodebin ! audioconvert ! \
audioresample ! audio/x-raw,rate=48000,channels=2,format=S16LE ! \
alsasink device=playback_hdmi