Question / Help Input from stdin as a source?

no_one

New Member
Title says it all. I was just wondering if there is any way to treat stdin as a source. If there isn't, any known tricks / workarounds to create a similar result? My apologies if this question has already been asked, or if such a feature is on the roadmap and I wasn't able to find it.

As an aside, OBS Studio is looking incredible. Huge thanks to all who are contributing to the project!
 
By "stdin", do you mean you want your input (like your keystrokes) to be displayed on screen ?

Sorry, I suppose my question was a bit vague. I mean sending an audio / video stream over stdin.

Without going into too much detail, I'm trying to get a video feed from a source that doesn't support V4L (yes, it is unfortunately a Hauppauge), save it to its own file completely untouched, and then pipe it to OBS. So my final result would look like this for example:

$ cat /dev/video0 | tee untouched_feed.ts | obs -some_options

Or if OBS doesn't take the format (the stream is h.264 / aac):

$ cat /dev/video0 | tee untouched_feed.ts | ffmpeg -i - do_some_stuff - | obs -some_options

The only solution I've come up with so far is to pipe the stream to a player at the end, then capture the player window.

$ cat /dev/video0 | tee untouched_feed.ts | mpv -

This seems to work alright, but I was wondering if there was a way to cut out the player and just send it straight to OBS.
 
As a temporary workaround, you might try opening the pipe in VLC (I BELIEVE that VLC can receive video from a pipe), and then capture the VLC window.
 
Back
Top