1

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

md.jamal
  • 4,067
  • 8
  • 45
  • 108
  • could you attach a small mp4, which doesn’t work ? – Prabhakar Lad Feb 28 '18 at 11:13
  • any video with audio is not working – md.jamal Feb 28 '18 at 11:18
  • Try the following pipeline (make sure you change the xvimagesink, and also make sure you have all the plugins installed which are used in the pipeline): gst-launch-1.0 -m filesrc location=1.mp4 ! qtdemux name=demux demux. ! queue ! faad ! audioconvert ! level message=true ! audioresample ! autoaudiosink demux. ! queue ! avdec_h264 ! xvimagesink – Prabhakar Lad Feb 28 '18 at 11:21
  • No. I don't want to play audio, as I don't have audio codec working in the board. This pipeline is working : gst-launch-0.10 filesrc location=Images/hash.mp4 ! qtdemux ! vpudec ! imxv4l2sink. But we have already code using playbin2 plugin.. So I was thinking, if we can change something in the playbin2 to make it work – md.jamal Feb 28 '18 at 11:24
  • you would need to update your gstreamer to 1.0 and use playbin instead. (playbin2 should ideally create the pipeline (qtdemux ! vpudec ! imxv4l2sink)) look at the logs and see what elements it is creating. – Prabhakar Lad Feb 28 '18 at 11:27
  • Sorry. I cannot use gstreamer 1.0.. How to check that what is the pipeline constructed by playbin2 – md.jamal Feb 28 '18 at 11:29
  • use gst-launch-0.10 -vvv – Prabhakar Lad Feb 28 '18 at 11:30
  • Can you explain me the significance of flags field used in the above pipeline – md.jamal Feb 28 '18 at 11:31
  • It's using vpudec, aiurdemux and sink – md.jamal Feb 28 '18 at 11:33
  • aiurdemux is nxp specific you need to check with them https://community.nxp.com/thread/335794 – Prabhakar Lad Feb 28 '18 at 11:51
  • Can we change the default demux in playbin – md.jamal Mar 01 '18 at 03:46

1 Answers1

1

I was able to solve by changing the value of flags field to disable audio.enter image description here

gst-launch-0.10 playbin2 uri=file:///mnt/hash.mp4 video-sink="imxv4l2sink" flags=0x51
md.jamal
  • 4,067
  • 8
  • 45
  • 108