Categories: HobbiesMusic

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:

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://live.tunemelt.tv/stream/live/[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://live.tunemelt.tv/stream/live/[email:password]/[stream-name]

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

View Comments

Share

Recent Posts

Academia and Industry Compared

In the beginning of this year I switched careers. I quit my job as assistant…

December 1, 2021

Aligning Values in AI Applications

Artificial Intelligence (AI) is everywhere. When you use the internet or computers in general you…

September 27, 2021

Why I (think I) Didn’t Succeed in Academia

I’m not too embarrassed to admit that I just finished a 16-session therapy with a…

June 28, 2021

Human-Centric AI Manifesto: Or How To Try and Do No Harm

Introduction Recently I’ve said farewell to my academic career and switched back to industry. While…

June 16, 2021

Surf and the Art of Career Navigation

Disclaimer: I am as good as a surfer as I am experienced a professional. I…

November 30, 2020

Research into Mobility in the Netherlands

Q-Park is probably the biggest owner of parking garages in the Netherlands. Based in Maastricht,…

April 6, 2020