How to install red5 on heroku server - ruby-on-rails

I am trying to build an audio recorder and have 3 questions:
Is red5 enough for building an audio recorder? No need for a flash recorder or something?
How can I install red5 on heroku server?
Is there a tutorial for audio recorder in rails?

Simple answer - you can't.
The Heroku platform is 'as is' - you can only install gems as specified in your gemfile.

Uff, hard to tell, actually.
1) Is red5 enough for building an audio recorder? No need for a flash recorder or something?
Right, with "Red5" you have the streaming server. Then, you need recorder, in flash or another program that use the RTMP stream protocol. There are several examples in Red5 svn and here
2) How can I install red5 on heroku server?
You can try modifying the Red5 server java srcs (e.g. the ANT build to Maven) and upload it to the Heroku Java Cedar stack. I shouldn't be imposible to port to it.
3) Is there a tutorial for audio recorder in rails?
Don't know of any. Currently, I'm working on a rails app with video recording/playing capabilities using a Red5 server and Red5Recorder. If it works, I can post my experiences somewhere :)
Good luck

Related

how can I replay guacamole replay file by html5

I need to replay guacamole replay file by html5.
But the only thing I can do now is to use guacenc to convert the playback file into a video and play it locally.
I tried to build a demo based on the secondary development of guacamole-example to realize the playback of the screen file.
Although I still don't know the principle of its implementation, it solves my problem very well.
I also tried the official demo, but there is a problem with maven dependencies.

What is the proper way to RTSP stream, transcode and save to file?

While showing the rstp-stream, we are trying to transcode, and record it to file for later use.
VLC 2.1.1 seems to work when using
vlc rtsp-stream :sout=#transcode{vcodec=mp1v,vb=700,scale=1}:duplicate{dst=display,dst=std{access=file,mux=asf,dst="C:\file.mpg"}}"
This seems to be broken on VLC 2.2.4
Documentation on VLC's wiki seems outdated.
Discrepancies with the vcodec/mux pairing as well as using samplerate instead of vb seem to fix it.
vlc rtsp-stream :sout=#transcode{vcodec=mp4v,scale=0.5,samplerate=44100}:duplicate{dst=display,dst=std{access=file,mux=mp4,dst='C:\file.mpg'}}"

Ruby on Rails capture webcam video and audio

Is there any gem out there that can interact with users webcam to capture video and audio and upload it to the server?
Have you heard about navigator.getUserMedia()? That could the trick. More info: http://www.html5rocks.com/en/tutorials/getusermedia/intro/
They talk about it in the Mobile Web Development course in Udacity (lesson 10).
https://www.youtube.com/watch?v=j6mzYt5fJpg
Have you tried headshot ?
I just tried it yesterday, but ran into some trouble with the flash player, not beeing able to set permissions for camera use
try it out, its easy to add to your application, maybe you'll make it work.
and better backup your files before.

red5 1.0.1 : truncated recorded stream .flv.ser : Error -18 truncated box

I've recorded streams using streamPublishStart callback with Red5 streaming server. It works. But a few times, the internet connection fall down in the publisher side. Then, in the streams directory, I have got a .flv.ser file. It's not playable. I've tried to repair/fix it with all software that propose it. No success. I've use flvcheck.exe and the report is : Error -18 truncated box. I've seen discussion on Adobe forums but no interesting things. Could you propose me a technic or a software to solve my problem.
thanks in advance,
Pascal.
Did you get your question answered? The .flv.ser is a temp file, created until Red5 is done processing the stream. When done, there is a new file without the .ser extension. What I had to do was create a ajax script that looks at the directory for a .flv.ser file and prevents closing the page until the conversion is completed. Red5 version one is slow at doing the conversion. I'm testing 1.0.2 RC1 right now, but initial results look like it is even worse. I hear version .8 is the best for recording so I may have to downgrade to that.
I'm late to the party but you simply have to concatenate the files. On Linux this works like this:
cat foo.flv foo.flv.ser > playable_foo.flv
I read that somewhere else but I forgot where it was.

Wowza Stream not Live, why?

i am sending live rtmp stream to wowza server with a live application config but everytime i connect to the stream for watching the live stream, its start from the beginning of the stream. I can see wowza is creating bigger and bigger file in /content directory and this file will everytime be played from the beginning.
How can i say wowza to send it live, like send the last 10 seconds of the file?
Best regards,
Chris
You'll probably have more luck asking this question on the Wowza forums, where their support team regularly addresses these questions. You'll need to provide more information:
What is your input (camera, flash media encoder, file)?
Can you stream VOD?
A large file building in the content directory sounds like you may be recording the stream. Do you have any add-ons such as the live stream recorder installed?
What url are you using to connect?
Well that answer is simple. You set the wrong stream type in the config.
I guess you set rtp-live-record instead of rtp-live that should fix it.
Kind Regards, Sui
Follow these instructions to create a live stream and broadcasting it
Go to the Wowza Media Server Directory. Probably it is /usr/local/WowzaMediaServer
cd applications;mkdir live
Here live is your application name
cd ../conf;mkdir live;cp Application.xml live/
Now edit the Application.xml file
cd live;vim Application.xml
Change the stream type default to live
live
set HTTPStreamers
cupertinostreaming,smoothstreaming,sanjosestreaming
set LiveStreamPacketizers to
cupertinostreamingpacketizer, smoothstreamingpacketizer, sanjosestreamingpacketizer
set Playmethod
none
Now go to your browser and open the player
file:///usr/local/WowzaMediaServer/examples/LiveVideoStreaming/client/live.html
Server : rtmp://;1935/live
Stream :
Note * : For live streaming you have to use an encoder ( Adobe Flash media Live Encoder , etc )

Resources