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.

problem in playing video from pal out (ti8148 and linux-04.01.00.07 )

Hi,

             I am trying to play the video using pal out line, below are the configuration and gst script used. I it is able to play only small part of the video and throwing the error as   shown below and for the second time it is not playing at-all.

Error:

Inside videobuf_reqbufs
New clock: GstSystemClock
Recieved EOS event, press <CTRL+C> to terminate pipeline.
Recieved EOS event, press <CTRL+C> to terminate pipeline.
Got EOS from element "pipeline0".
Execution ended after 29400005450 ns.
Setting pipeline to PAUSED ...
Setting pipeline to READY ...
Setting pipeline to NULL ...
Freeing pipeline ...

configuration:

echo 0 > /sys/devices/platform/vpss/display2/enabled
echo ntsc > /sys/devices/platform/vpss/display2/mode
echo composite > /sys/devices/platform/vpss/display2/output
echo 1 > /sys/devices/platform/vpss/display2/enabled

Script for playing video:

gst-launch filesrc location=sample.mp4 ! qtdemux ! h264pa
rse ! omx_h264dec ! omx_scaler ! v4l2sink device=/dev/video3 userpointer=false m
in-queued-bufs=2

Response:

Setting pipeline to PAUSED ...

** (gst-launch-0.10:1207): CRITICAL **: gst_v4l2sink_sync_rotation: assertion `v4l2_ioctl (fd, VIDIOC_S_CTRL, &control) >= 0' failed

** (gst-launch-0.10:1207): CRITICAL **: gst_v4l2sink_sync_rotation: assertion `v4l2_ioctl (fd, VIDIOC_S_CTRL, &control) >= 0' failed

** (gst-launch-0.10:1207): CRITICAL **: gst_v4l2sink_sync_flip: assertion `v4l2_ioctl (fd, VIDIOC_S_CTRL, &control) >= 0' failed
Pipeline is PREROLLING ...
Pipeline is PREROLLED ...
Setting pipeline to PLAYING ...

Inside videobuf_reqbufs
New clock: GstSystemClock
Recieved EOS event, press <CTRL+C> to terminate pipeline.
Recieved EOS event, press <CTRL+C> to terminate pipeline.
Got EOS from element "pipeline0".
Execution ended after 29400005450 ns.
Setting pipeline to PAUSED ...
Setting pipeline to READY ...
Setting pipeline to NULL ...
Freeing pipeline ...

  • Hello,
    /dev/video3 is the composite output.
    You shall down scale it to width=720 height=480.
    Add caps to the pipeline.

    Best Regards,
    Margarita
  • Hello,

    Which EZSDK version you are using ? I see that the PSP version is old. The PSP version in EZSDK 5.05.02 is linux-2.6.37-psp04.04.00.01 it is checked with linux-2.6.37-psp04.04.00.02 as well.

    Best Regards,
    Margarita
  • Hello,

    I checked with EZSDK 5.05.0.

    root@dm814x-evm:~# cat /sys/devices/platform/vpss/display2/mode
    ntsc

    sudheer singh1 said:
    Inside videobuf_reqbufs

    .

    I do not see such error when device=/dev/video3 on EVM

    Pipeline is PREROLLED ...
    Setting pipeline to PLAYING ...
    New clock: GstSystemClock
    perf0: frames: 58     current: 57.97     average: 57.97    arm-load: 7
    perf0: frames: 112     current: 53.82     average: 55.89    arm-load: 34
    perf0: frames: 166     current: 53.80     average: 55.19    arm-load: 38
    perf0: frames: 220     current: 53.72     average: 54.82    arm-load: 29
    perf0: frames: 274     current: 53.78     average: 54.62    arm-load: 29
    perf0: frames: 329     current: 54.07     average: 54.52    arm-load: 35
    perf0: frames: 383     current: 53.93     average: 54.44    arm-load: 38
    perf0: frames: 437     current: 53.80     average: 54.36    arm-load: 39
    perf0: frames: 491     current: 53.59     average: 54.27    arm-load: 32
    Caught interrupt -- handling interrupt.
    Interrupt: Stopping pipeline ...
    Execution ended after 9993723150 ns.
    Setting pipeline to PAUSED ...
    Setting pipeline to READY ...
    Setting pipeline to NULL ...
    Freeing pipeline ...

    BR

    Margarita

  • Hi,
    I have tried with the cap 720x480, it improved the display quality but it stop playing the video after few seconds throwing the error
    Recieved EOS event, press <CTRL+C> to terminate pipeline.


    gst-launch filesrc location=sample.mp4 ! qtdemux ! h264pa
    rse ! omx_h264dec ! omx_scaler ! 'video/x-raw-yuv, width=(int)720, height=(int)4
    80' !v4l2sink device=/dev/video3 userpointer=false min-queued-bufs=2
  • is there any issue with the video which I am using?
  • Hello,

    Set the userpointer to true.

    BR
    Margarita
  • Even after setting the userpointer to true it is not playing the full video.
  • Hi Margarita,
    Can you please send across the test video and the gst script to play on pal out which you have used on the evm, so that I will try the same on my board.
  • Hi Margarita,
    I am using the .mp4 video to play on tv out port and the display unit which I am using is projector , do we need to play any specific video format to play on the tv out port.

    Can you please send across the test video and the gst script to play on pal out which you have used on the evm, so that I will try the same on my board.


    Thanks,
    Sudheer.
  • Hello,

    I used videotestsrc element. Could you try with it?
    I would recommend you again to move to the latest PSP version.

    Best Regards,
    Margarita
  • Hi Margarita,
    I have changed projector i.e. pal out display unit and used the command
    gst-launch filesrc location=sample.mp4 ! qtdemux ! h264pa
    rse ! omx_h264dec ! omx_scaler ! 'video/x-raw-yuv, width=(int)720, height=(int)4
    80' !v4l2sink device=/dev/video3 userpointer=false min-queued-bufs=2

    but the video is getting played fast and stop for some time and start playing for some time and it stops abruptely without playing the entire video.

    when I am adding the "framerate=(fraction)30/1" it is not playing any thing.
    i.e.
    gst-launch filesrc location=sample.mp4 ! qtdemux ! h264pa
    rse ! omx_h264dec ! omx_scaler ! 'video/x-raw-yuv, width=(int)720, height=(int)4
    80,framerate=(fraction)25/1' !v4l2sink device=/dev/video3 userpointer=false min-queued-bufs=2

    Is this issue related to command?


    Thanks,
    Sudheer.
  • Hello,

    Please set the sync property to the v4l2sink element.

    .... ! v4l2sink sync=true

    There is no point to set min-queued-bufs=2 since the default value is 2.


    Let me know the result.

    BR
    Margarita

  • Hi Margarita,

                      This time I have changed the test video  i.e. Lip_Sync_Test_Markers.mp4 and resolution is 640X480.
     It was playing the video continuously but

    1 minute video it was playing 2 minutes,

    upper 70% of the video is displayed at the bottom and lower (30%) it is showing at the top and

    top video is distorted, bottom part of the video is better.

    gst command used is :

    gst-launch filesrc location=Lip_Sync_Test_Markers.mp4 ! qtdemux ! h264pa
    rse ! omx_h264dec ! omx_scaler ! 'video/x-raw-yuv, width=(int)720, height=(int)4
    80' !v4l2sink sync=true device=/dev/video3 userpointer=false min-queued-bufs=2

    Please help to resolve the issue.

    If possible can you attach the test video and the gst command used to play the video on pal out. I suspect the command or test video file I am using is having some issue.

    I have attached the test video which I have used. I have used the projector as the display unit.

    Thanks,

    Sudheer.

  • Hi Margarita,

                                  Thanks for the support, actually there was hardware issue in the costume board, after rectifying the hardware issue I could able to play the PAL (TV out) out video. I could able to play videos up to 720X480 resolution only.

    Thanks,

    Sudheer.

     

  • Hello Sudheer,

    I am glad that this issue is resolved. Please close the thread.

    BR
    Margarita