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

RTSP to HTTP? #11

Open
iwoloschin opened this issue Feb 20, 2017 · 7 comments
Open

RTSP to HTTP? #11

iwoloschin opened this issue Feb 20, 2017 · 7 comments

Comments

@iwoloschin
Copy link

Is there a way to use this code to repackage an RTSP MJPEG stream into an HTTP MJPEG stream that HA's frontend can handle? Ideally I'd like to do this with minimal processing power, mostly because at the moment I'm stuck on a Raspberry Pi 3 which is struggling with repackaging an H.264 stream.

@pvizeli
Copy link
Member

pvizeli commented Feb 23, 2017

We can make a copy property, but your mix some things. First you ask for a RTSP MJPEG stream but at end of you message you say you have a H.264 RTSP stream? If you have a real RTSP MJPEG video stream, we can copy that to but if it a RTSP h264 Video stream, we need to transcode it.

@iwoloschin
Copy link
Author

This issue is sort of resolved by finding an apparently undocumented "full size" HTTP MJPEG Stream, but since it might actually be useful for others, let's keep the dialogue open.

Originally, I thought I could only get video feeds via RTSP (H.264 or MJPEG), which in HomeAssistant requires the ffmpeg component. Unfortunately, when run on a Raspberry Pi 3 transcoding is too processor intensive, so I was curious if ffmpeg can repackage an RTSP stream into an HTTP stream. This sounds like if it did work, it'd only be useful for MJPEG streams anyways, not H.264.

@aequitas
Copy link

Curious about this as well. I also have a ip camera with rtsp and h264 encoding. I've been playing around with the ffmpeg module but thus far I could not get a reliable stream on a raspberry pi, only still images. Copying the h264 stream would probably mean a change in the frontend as well since it only expects mjpegs i guess?

@pvizeli
Copy link
Member

pvizeli commented Aug 23, 2017

Yes the poly frontent support only mjpeg. If the frontend Support other things, we can change it here.

@aequitas
Copy link

Good to know. I currently solved my problem by discovering a JPEG output on my camera, so I won't chase after this further atm.

@pvizeli
Copy link
Member

pvizeli commented Aug 23, 2017

I run that with hassio and last ffmpeg on my raspberry with 6 cameras without any problems...

@aequitas
Copy link

Thanks for the hint. I haven't tried that yet, just compiled libav with hardware acceleration support. Might try it when I consider replacing my current setup.

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

3 participants