Jump to content

Streaming to IPTV from camcorder


chowbok

Recommended Posts

chowbok

This is only tangentially connected to Emby, but I thought maybe I could find some help here anyway.

I have an old analog camcorder hooked up to a Raspberry Pi. I use ffmpeg to pick up the raw video stream and convert it to an RTMP stream, like so:

ffmpeg -f v4l2 -video_size 640x480 -i /dev/video0 -c:v libx264 -preset ultrafast -vf eq=gamma=1.5:saturation=1.3 -listen 1 -f flv rtmp://192.168.1.27:8080/stream.flv

Then I set up a new "channel" in the IPTV extension as RTMP with the rtmp: URL listed above. This works fine except for two things: 1) I can't pause or rewind; and 2) when I stop the stream the ffmpeg process exits.

Not sure what to do about this. Should I put some sort of intermediate RTMP server in-between them, or are there some more esoteric ffmpeg flags I could use, or am I just going about this the wrong way completely? I'd really appreciate any advice or pointers anyone might have.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...