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.

Linux/AM5716: VLC can't play video stream

Genius 5785 points

Part Number: AM5716
Other Parts Discussed in Thread: AM5718

Tool/software: Linux

Hello Experts,

I'd like to play the streaming video captured by Gstreamer to VLC player on Ubuntu. But I can't do that. Please give me some advice.

AM5718-IDK
PSDK-Linux v4.03
Utuntu 14.04

I enter the following command on the EVM terminal with reference to TI Wiki.

gst-launch-1.0 -e v4l2src device=/dev/video1 io-mode=5 ! 'video/x-raw, format=(string)NV12, width=(int)640, height=(int)480, framerate=(fraction)30/1' ! ducatih264enc bitrate=1000 ! queue ! h264parse config-interval=1 ! mpegtsmux ! udpsink host=192.168.10.1 sync=false port=5000

http://software-dl.ti.com/processor-sdk-linux/esd/docs/04_03_00_05/linux/Examples_and_Demos.html?highlight=iwr1443#ros-and-radar

The following execution results are showed and the access lamps of the Hub blink.

root@am57xx-evm:~# gst-launch-1.0 -e v4l2src device=/dev/video1 io-mode=5 ! 'video/x-raw, format=(string)NV12, width=(int)640, height=(int)480, framerate=(fraction)30/1' ! ducatih264enc bitrate=1000 ! queue ! h264parse config-interval=1 ! mpegtsmux ! udpsink host=192.168.10.1 sync=false port=5000
Setting pipeline to PAUSED ...
Pipeline is live and does not need PREROLL ...
Setting pipeline to PLAYING ...
New clock: GstSystemClock

I operate the VLC player as follows.

Open Media -> Open Network: udp://192.168.10.22:5000 (Also tried -> udp://@192.168.10.22:5000)

I can see the streaming  from YouTube on the VLC. The PINGs between Ubuntu and EVM pass. The mp4 file can be saved by Gstreamer to the SD card.

Regards,
Kazu

  • If I understood your post correctly, you are saying the when you stream a video from AM5718 IDK EVM to the host UBUNTU machine, you can see the data is being received by the UBUNTU host machine but the VLC player doesn't play the stream. Is this correct understanding?

    If you are able to save in memory the encoded file from target EVM, can you play back that compressed *.mp4 file using VLC?
  • Hi manisha,

    Thank you for your quick reply.

    manisha said:
    If I understood your post correctly, you are saying the when you stream a video from AM5718 IDK EVM to the host UBUNTU machine, you can see the data is being received by the UBUNTU host machine but the VLC player doesn't play the stream. Is this correct understanding?

    Yes, that's right.

    manisha said:
    If you are able to save in memory the encoded file from target EVM, can you play back that compressed *.mp4 file using VLC?

    Yes, I can see it.

    I saved x.mp4 to the SD card with the following command.

    gst-launch-1.0 -e v4l2src device=/dev/video1 num-buffers=1000 io-mode=4 ! 'video/x-raw, format=(string)YUY2, width=(int)1280, height=(int)720, framerate=(fraction)30/1' ! vpe num-input-buffers=8 ! queue ! ducatimpeg4enc bitrate=4000 ! queue ! mpeg4videoparse ! qtmux ! filesink location=x.mp4

    Then I removed the SD card from the EVM and inserted it into Ubuntu and played x.mp4 on VLC. (rootfs/home/root/x.mp4)

    Please let me know if you have any suggestions.

    Regards,
    Kazu

  • Hello Kazu,

    Kazu Kon said:
    udpsink host=192.168.10.1 sync=false

    Kazu Kon said:
    udp://192.168.10.22:5000

    Please try with IP 192.168.10.1 in vlc or change the udpsink host property to xx.xx.xx.22.

    BR
    Margarita

  • Hi Margarita,

    Thank you for your advice.

    Margarita Gashova said:
    Please try with IP 192.168.10.1 in vlc or change the udpsink host property to xx.xx.xx.22.

    I tried, but this didn't work.

    I didn't change the settings of Gstreamer (udpsink host = 192.168.10.1 etc) and Ubuntu IP address (192.168.10.1), but it worked well as I set the VLC setting below.

    udp://@:5000

    Regards,
    Kazu

  • Hello Kazu,

    Thank you for sharing the solution!

    BR
    Margarita