I am trying to composite a website (which contains JavaScript and as a result is updating regularly) with a video feed. My goal is to do it on virtual hosted Linux server (my plan is to use Ubuntu, but I am flexible) - I am not interested in solutions utilizing OBS or the like as my solution would be headless.
The problem I am facing is how to output the website to a video stream from a command line.
The site I want to capture is https://vscore.ch/home and I would like to render it in a way that I can feed it to ffmpeg where I can composite it with the live game video that is being delivered via RTMP.
You may want to use this puppeteer plugin and stream those screenshots, or parse them into a video and stream that.
Related
I am using the Desktop Duplication API in Windows to obtain images of the screen. I know to obtain the bitmap image of the screen by using the API but I am stuck after this. To stream it to the server I thought of encoding it into H264 and then encoding that again to RTMP and then streaming it to the server. Is there a better and faster way?
I searched many times and most of the answers are using FFmpeg and just finishing the whole task of screen recording to streaming in a single line. Please tell me a way to do this programmatically!!
How do I encode to H264 and then to RTMP? If the video is being double encoded, will this result in a loss of performance in both streaming side and receiving side?
Please point me in the right direction. Any hints or links will be very helpful.
I want to add Live Video streaming (IP Camera set up) in Xamarin Forms. I have found link click here but I don't know how to implement this in Xamarin forms or any other option for implement live video streaming in xamarin forms anyone, please help me.
Check out https://github.com/videolan/libvlcsharp.
It supports playing RTSP out of the box.
First of all, you likely want to convert the IP camera stream to something else. RTSP is going to be a pain to get working cross platform, and i don't know of any library that handles that nicely for Xamarin. RTSP is also hard to get working well across networks with Firewall, NAT etc.
You can convert the RTSP stream to HLS, and have a much easier time. Conversion to HLS has a number of solutions, from hacking something together with ffmpeg to a more streamlined solution like Wowza.
Once the stream is HLS, you should be able to get it working with something like Xamarin Media Manager without too much trouble.
I am wondering if anyone has success with audio record (from microphone on the users browser) and playback from a web based app (Ruby/RoR)?
What I have found so far - I could write a flex/flash app which will record the audio and then have a server side like Red5 or so to receive and convert. This sounds more involved and I also saw different types of hosting issues etc people are having - so I am thinking there may be better/easier solutions out there!! I looked at html5/web-kit too but seems to only works on chrome and is limited to text fields etc.
In my app, i want to record users voice, save it on a aws/s3 as mp3 or similar file format and play it back to user within the app based on users input/choice. While flash based solution is workable for now, non-flash based solution will be preferred as it will support more devices (you know devices I am referring)..
The only options for web based record are Flash, Silverlight or Java. None of these will work on an iPhone or iPad - You will need a native app for that.
You don't need to use Red5 for Flash recording - you can record direct to memory, optionally encode (or zip), and then upload the the data. You might be better doing mp3 encoding server-side using ffmpeg or SoX before moving the file to s3.
There is a way using HTML5 and a server. Just record a video.
Convert the video to audio, then use the audio as you wish.
This implementation takes audio from a video and runs
ffmpeg to extract the audio:
http://goo.gl/A0bya
This is in PHP, but it should not be too
hard to create a Ruby version. Easy peasy.
This isn't clever nor fun but I'm stuck. A client of mine requires the need for a download of a presentation web site where videos can be embedded. Since OGG is a pretty obscure format for clients I ask them to upload MPEG4 encoded videos as either .mov, .mp4 or .m4v. These can be played using the HTML <video> or for browsers that don't support MPEG4 I use a Flash player (since that can play them).
This is fine for online and it works well.
When we go to download the presentation, the <video> element works fine in browsers that support MPEG4 video, even if they're local.
So we then come on to FireFox; this doesn't support MPEG4. Nor can I get Flash to locally play a video (because of security issues, unless we get them to go through the security settings but that isn't very nice).
So we resorted to using the good ol' <embed> tag but this is very buggy with FireFox. It works fine on a server, it even allows me to have custom controls, but locally the videos don't play.
I've had some Googling around and it seems like a security issue but want to get a definite answer. Does anyone know why it's not playing locally? The URL is fine and the file exists. I notice that it's common amongst version 4+ so could it be a codec issue? Is there another way I can get FireFox to play MPEG4s locally?
I plan to open a smaller and more specialised Youtube like site where users can upload their videos in a variety of formats and it will be converted to .FLV, and then posted on the website.
Most of the code I can handle myself, but I wanted to get some feedback on the uploading and converting stage of this. I'm planning to have the converting done on a separate server, independent of the one hosting the site. How would I go about converting the videos?
I checked out ffmpeg, would this be the best option to use? I want the videos in both high and low quality so it would be preferable to choose the bitrate.
Thanks.
Yes, ffmpeg would be the best option. It's simplest and most versatile.
Take a look at videopress.com - the video sharing service for wordpress.com. The entire solution is open source and uses ffmpeg to transcode video into multiple formats for embedding in websites.
You can access the code at http://code.trac.wordpress.org/
You should be able to either use this out of the box or customise if for your particular project.
You might also find something like Panda (http://pandastream.com) useful. It's an open source video encoding service.