This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Vayu EVM:Cannot get video in HDMI

Hi,

I am using Vayu EVM Rev G board with GLSDK 6.04.

I am trying to play h.264 encoded file using gstreamer. I have connected the HDMI. I have done the viddec3test with connection ID 12 and I could
 see the video playing in the HDMI monitor. But when I try doing this using gstreamer

gst-launch videotestsrc ! 'video/x-raw-yuv,width=1920,height=1080' ! kmssink

I get the output

Setting pipeline to PAUSED ...
Pipeline is PREROLLING ...
Pipeline is PREROLLED ...
Setting pipeline to PLAYING ...
New clock: GstSystemClock

but I could not see any thing in HDMI


I could not understand what is wrong! Please guide me on this regards,

Thanks in Advance!!

Regards,

Sarah Rajendran

  • Hi Sarah,
    You can set autovideosink's async-handling property to true:
    ... ! autovideosink async-handling=true

    Is your hdmi display capable of the hd resolution you desire?

    Regards,
    Boyko
  • Hi Boyko,

    Thanks for your kind replay, But after sentting the asyn property in the autovideosink I get the same output. The Gstreamer is in the Playing state but there is no output in the Monitor. What is the issue.

    My Monitor is HD resolution.

    Regards,

    Sarah.

  • Hi Boyko,

    I Got the display by setting connector=12 for the kmssink. Can you please tell me how to play audio of h264 encoded file in the pipeline
    I do the following for the video

    filesrc location=1332KBps-140S.mpg ! mpegtsdemux ! h264parse ! ducatih264dec ! kmssink connector=12
  • Hi,

    I got the gst-launch working. but when I write this to my application the video plays for some times and gives me a segmentation fault and this message



    The decoder's audio pad is linked to the audio decoder's sink pad
    [ 8843.296478] HDCP: hdcp_3des_cb: hdcp_keys not loaded = 0
    [ 8843.296478]
    [ 8843.303985] Enter hdmi_core_init
    [ 8843.307556] Enable video_path
    [ 9068.844543] omap-dma-engine 4a056000.dma-controller: freeing channel for 79
    [ 9068.852142] virtio_rpmsg_bus virtio1: msg received with no recepient
    Segmentation fault


    and after this while the nexttime running I could not get the gst state change
    MmRpc_create: Error: connect failed
    (AVB Info) 06:37:28.999847 (Initialize) ERROR: GST_STATE_CHANGE_FAILURE
    libdce.c:187: dce_ipc[ 9746.364685] omap-dma-engine _init Error: ERROR: Failed eError == DCE_EOK error val -4libdce.c:245: Engine_open Error: ERROR: Failed dce_ipc_init(co


    My application program is multithreaded ! Please tell me what this error mean and the each time I run a code I get different behaviour.


    Please tell me where to look at. The first error is kind of [ 9068.852142] virtio_rpmsg_bus virtio1: msg received with no recepient

    and the next is MmRpc_create: Error: connect failed.

    Thanks !!


    Regards,
    Sarah
  • Hi,

    Now even my gst launch give me an error

    11083.373107] omap-dma-engine 4a056000.dma-controller: allocating channel for 79
    MmRpc_create: Error: connect failed
    ERROR: Pipeline [11088.390777] omap-dma-engine 4a056000.dma-controller: freeing channel for 79
    doesn't want to pause.
    libdce.c:187: dce_ipc_init Error: ERROR: Failed eError == DCE_EOK error val -4libdce.c:245: Engine_open Error: ERROR.
    Freeing pipeline ..

    filesrc location=input.mpg ! mpegtsdemux name=dmux dmux. ! queue ! h264parse ! ducatih264dec ! kmssink connector=12
    demux. ! queue ! faad ! alsasink

    This is my pipeline

    Regards,
    sarah
  • Hi Sarah,
    What did you do between the last two posts? Or did the launch failed at later stage?
    Regards,
    Boyko
  • Hi,

    To be clear I got my gst-lauch perfect and working good initially and Then I integrated it to my application and It was also woking good

    I Got audio and video properly .
    I am Working on Vayu board as mentioned . I started this in the morning and then I countinued running the application. For the first time when I run the application code I could see video and Audio playing perfectly
    .Then after few minutes I saw The error as mentioned above in the first post and the video playback stoped

    9068.844543] omap-dma-engine 4a056000.dma-controller: freeing channel for 79
    [ 9068.852142] virtio_rpmsg_bus virtio1: msg received with no recepient
    Segmentation fault

    As I was continusly running the application again and again to figure out the problem.The time of video playing reduces and then after certine time My application piple could not create dynamic pads and then the application program gives the following error
    MmRpc_create: Error: connect failed
    (AVB Info) 06:37:28.999847 (Initialize) ERROR: GST_STATE_CHANGE_FAILURE
    libdce.c:187: dce_ipc[ 9746.364685] omap-dma-engine _init Error: ERROR: Failed eError == DCE_EOK error val -4libdce.c:245: Engine_open Error: ERROR: Failed dce_ipc_init(co

    and a segmentation fault.
    after I countinue my launch even gets failed.like this.

    11083.373107] omap-dma-engine 4a056000.dma-controller: allocating channel for 79
    MmRpc_create: Error: connect failed
    ERROR: Pipeline [11088.390777] omap-dma-engine 4a056000.dma-controller: freeing channel for 79
    doesn't want to pause.
    libdce.c:187: dce_ipc_init Error: ERROR: Failed eError == DCE_EOK error val -4libdce.c:245: Engine_open Error: ERROR.
    Freeing pipeline ..

    This is my pipeline:
    filesrc location=input.mpg ! mpegtsdemux name=dmux dmux. ! queue ! h264parse ! ducatih264dec ! kmssink connector=12
    dmux. ! queue ! faad ! alsasink

    When I restart the board the problem starts from the begining.

    Regards,
    Sarah