Unable to play h264 file.

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Unable to play h264 file.

1,769 Views
AGNI
Contributor I

Hi,

I have a file1.264 file which I want to play and get displayed on my display. When I run the command (as mentioned in your blog)
gst-launch filesrc location=file1.264 blocksize=152064  ! 'video/x-raw-yuv,format=(fourcc)I420, width=640, height=480, framerate=(fraction)30/1' ! vpuenc codec=6 ! matroskamux ! mfw_v4lsink sync=false
I get the message stating " WARNING: errorneous pipeline: could not link matroskamux0 to mfw_gst_v4lsink_info_t0" and nothing gets displayed. On the other end if I run the command "gst-launch playbin2 uri=file:/file.264 " I get to see the same video being played and displayed on my display.

Can anyone help me out here?

Thanks,

0 Kudos
Reply
4 Replies

913 Views
AGNI
Contributor I

Hi Everyone,

Thanks a lot for all the valuable feedback/input. I was finally able to play the .h264 file using the below mentioned pipeline.

gst-launch -v filesrc location=/video/file1.264 ! 'video/x-h264' ! 'vpudec framerate=(fraction)30/1' ! videoscale !
'video/x-raw-yuv, width=800, height=480' ! mfw_v4lsink sync=false.

Thanks,

Shri

0 Kudos
Reply

913 Views
LeonardoSandova
Specialist I

For scaling, use mfw_ipucsc, this way you use HW to do the task. Check this doc:https://community.freescale.com/docs/DOC-93448

0 Kudos
Reply

913 Views
LeonardoSandova
Specialist I

Try dumping .dot files so you can see the pipeline (graph) being constructed by playbin2. Check this link https://community.freescale.com/docs/DOC-93451

913 Views
smwsmart-e
Contributor II

Hi, have you got the right permissions? try the pipeline with sudo, I found that solved many problems between an element and sink!

Regards,

Stu