Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Read mp4 file using gstreamer pipeline

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 following invalid frame.

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

Read mp4 file using gstreamer pipeline

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 following an invalid frame.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