Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

streaming examples #1

Closed
marclava opened this issue Jul 2, 2020 · 3 comments
Closed

streaming examples #1

marclava opened this issue Jul 2, 2020 · 3 comments

Comments

@marclava
Copy link

marclava commented Jul 2, 2020

How to stream a test video to the app? For example with FFmpeg? Here's what I tried (without success):
ffmpeg -re -i 1_reallyShort.mp4 -an -f rtp rtp://192.168.1.22:5600

@Consti10
Copy link
Owner

Consti10 commented Jul 7, 2020

Hello,
You can use the following gstreamer command to stream an example video to FPV_VR / VideoExampe via rtph264 on port 5600:
gst-launch-1.0 -v videotestsrc ! video/x-raw,framerate=120/1,width=1280,height=720 ! videoscale ! videoconvert ! x264enc key-int-max= 1 bitrate=5000 ! video/x-h264, profile=baseline ! rtph264pay ! udpsink host=192.168.137.47 port=5600

Unfortunately I do not know what's wrong with the ffmpeg pipeline above. However, since gstreamer rtp h264 is working, I can assume it is not a problem with VideoCore.

@Consti10 Consti10 closed this as completed Jul 7, 2020
@marclava
Copy link
Author

marclava commented Jul 7, 2020

The command you provided works.

I was also able to play a file, using this command:
gst-launch-1.0 filesrc location=file.m4v ! queue ! qtdemux ! h264parse ! rtph264pay ! udpsink host=192.168.1.22 port=5600

@Consti10
Copy link
Owner

Consti10 commented Jul 8, 2020

Thanks for the command. If you find any other usefull pipelines, don't hesitate to share them here in this thread.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants