Read mp4 file using gstreamer pipeline

asked 2018-11-30 00:06:39 -0600

Anil Patel gravatar image

updated 2018-11-30 00:08:05 -0600

Hi Team,

I have one "Now_You_See_Me.mp4" file and I need to read a frame from that file through GStreamer. Because, when I tried to read .mp4 directly on my edge device (board) I got an invalid frame with colored lining (maybe decoder issue).

Can anyone help me on this? How I can read .mp4 file in opencv through gstreamer pipeline? I have tried with followings:

playbin uri=file:///home/root/big_buck_bunny.mp4
playbin uri=file:///home/root/big_buck_bunny.mp4 ! appsink
filesrc location=big_buck_bunny.mp4 ! decodebin ! videoconvert ! kmssink 
filesrc location=big_buck_bunny.mp4 ! decodebin ! videoconvert ! kmssink ! appsink
filesrc location=big_buck_bunny.mp4 ! decodebin ! videoconvert ! appsink
filesrc location=big_buck_bunny.mp4 ! decodebin ! videoconvert ! autovideosink
uridecodebin uri=file:///home/root/big_buck_bunny.mp4 ! videoconvert ! autovideosink

Thanks, --Anil

edit retag flag offensive close merge delete

Comments

uridecodebin uri=file:///home/root/big_buck_bunny.mp4 ! videoconvert ! appsink or filesrc location=big_buck_bunny.mp4 ! matroskademux ! decodebin ! videoconvert ! appsink?

mshabunin gravatar imagemshabunin ( 2018-12-03 05:18:57 -0600 )edit