Streaming Webcam to Tunemelt with Logo Overlay

I still need to test it properly, but I think it is very much possible to use ffmpeg to stream to tunemelt (a video CDN) directly. We can stream ffmpegs DirectShow input to the Tunemelt RTMP.

Update: Apparently even though Tunemelt accepts the stream, it is not properly linked to the Stream Name. I suspect the problem lays in the unconventional way of authenticating, where user/pass have to be entered in the path. I’m not sure if there’s any way around this…

In order to do so, the first step is to find the device name of the webcam and sound input. Do this by typing the following command:

ffmpeg -list_devices true -f dshow -i dummy

Example output is:
ffmpeg device
In my case, we need the “General Image Devic” and “Line In (2- IDT High Definition”.
Use the following command to start streaming this device to tunemelt (-r for frame rate of 30, if necessary, specify the proper output resolution of -s 1280×720).

ffmpeg -f dshow -i video=”General Image Devic”:audio=”Line In (2- IDT High Definition” -c:v libx264 -r 30 -f flv rtmp://[email:password]/[stream-name]

For added bonuspoints integrate a logo overlay. Use a png with transparency and use the -vf overlay command.

ffmpeg -f dshow -i video=”General Image Devic”:audio=”Line In (2- IDT High Definition” -vf “movie=logo1.png,scale=120:120 [watermark]; [in][watermark] overlay=10:10 [out]” -c:v libx264 -preset ultrafast -r 30 -f flv rtmp://[email:password]/[stream-name]

The end result is a nice video stream with logo overlay sent directly to Tunemelt.

One Reply to “Streaming Webcam to Tunemelt with Logo Overlay”

Leave a Reply

Your email address will not be published. Required fields are marked *