Gstreamer Playbin Only Video

I am using the following pipeline

gst-launch-0.10 playbin2 uri=file:///mnt/hash.mp4 video-sink="imxv4l2sink" flags=0x57

This works fine for the video file ( mp4 ) which doesn't have video in it. But when I pass a mp4 file which has both video and audio it fails to play.

Can you please help me in reconstructing the pipeline to allow it to work on both kind of files: MP4 with only video, MP4 with both audio and video

11

1 Answer

I was able to solve by changing the value of flags field to disable audio.

gst-launch-0.10 playbin2 uri=file:///mnt/hash.mp4 video-sink="imxv4l2sink" flags=0x51

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Marcus Vance

Marcus Vance

Cybersecurity & Digital Privacy Researcher

Marcus Vance is a cybersecurity auditor and technology writer dedicated to educating the public about online safety, data privacy regulations, enterprise security, and emerging cyber threats.

Share this article
Twitter Facebook Pinterest