How can I create m3u8 file with using ffmpeg on a server (Convert Server) and send it to another server (Storage Server) and stream from there(Live Stream)?
I want to handle it with asp.net.
How can I do it?
HTTP Live Streaming (HLS) can be easily produced by ffmpeg (official documentation on HLS muxer):
ffmpeg -i input.mp4 out.m3u8
It is possible to specify another live streaming server as output (instead of m3u8 file), see https://trac.ffmpeg.org/wiki/StreamingGuide for more details on this.
From ASP.NET you can execute ffmpeg with System.Diagnostics.Process.
Related
Can someone provide some guidance on ho we can connect mulesoft and a unix server to retrieve files from unix server and send the file or share the location of the file via mulesoft.
Thanks,
MulesSoft Is a company. I'll assume that you mean to use MuleSoft's Mule runtime and create a Mule application to implement the integration described. First determine what protocols the Unix server allows to access files. Usually it would be SFTP but it could be the insecure FTP or even HTTP. Assuming HTTP, you can use the SFTP connector listener to poll periodically for files to appear. Then use the Email connector to send the body of the file read in the previous step as an attachment.
Alternatively you could use the list files operation to read the files names and use that information to just send the locations in the email.
You can find more information about the operations in the documentation.
Documentation:
https://docs.mulesoft.com/sftp-connector/1.4/
https://docs.mulesoft.com/email-connector/1.4/
Using Ant Media Server, I have an mp4 that I would like to stream as an .m3u8 stream via HTTP. Is this possible?
I can't use the FlowPlayer/HTML (which works). I need a native HTTP URL that contains the stream with an extension .m3u8
You can publish your file with RTMP to Ant Media Server. Then you can access m3u8 file from ams_url//streams/.m3u8
Let say you work on local host and use LiveApp as application and steam id be test then you can accsess:
http://localhost:5080/LiveApp/streams/test.m3u8
Also check documentation:
http://docs.antmedia.io/en/latest/Streaming-Protocols.html#hls
I have a question with using commons-vfs2 just like the picture, there is a server between the client and the file server which used to map the file server port from 22 to 10022, how can i use the commons-vfs2 upload or download file from the file server via sftp and ftp protocol?
I tried to use proxy like following code:
SftpFileSystemConfigBuilder.getInstance().setProxyHost(opts, "xxx.6.2.xx");
SftpFileSystemConfigBuilder.getInstance().setProxyPort(opts, 10022);
SftpFileSystemConfigBuilder.getInstance().setProxyType(opts, SftpFileSystemConfigBuilder.PROXY_HTTP);
but it's not work, the picture url is http://ccwuj.img44.wal8.com/img44/507529_20150115150159/143279929037.jpg
Is it possible to write an Apache2 service that can pipe content to the client at is being generated?
I would like to setup a simple http service that triggers a build and immediately starts sending stdout (gcc stuff) to the client while the compiling is going on. The goal is that a client can use e.g. curl to test a build:
curl http://myserver.com/testbuild -F "file=#mypkg.tar.gz"
And immediately get to see stdout from the build process on the server.
I think it would be possible somehow using a cgi script, but the trick is to immediately get the stdout, bypassing the buffering. If you do not really need http as a transport protocol, why not use direct tcp streaming via netcat.
On the build server you run a script like:
#!/bin/bash
while true ; do
nc -l -p 8080 -e /path/to/buildscript
done
and when any client connects via
nc <buildservername or ip> 8080
it gets the build stout immediately.
My recommendation would be something different (using jenkins as ci server, I do this even on a cubietruck), but for a quick and small solution, it should be enough. If you need http, you can even get this adding the http header to your build script.
I am now thinking of encrypting the flv file .
is there any way to do this by flex?
do you have some tutorial of example to do encrypt the flv file.
Found this:
http://forums.digitalpoint.com/showthread.php?t=745336
It is possible to send FLV over the net via SSL, which is what I expect you want to do. You'll need to
enable your webserver to use HTTPS (SSL)
change the http:// to https://
Encrypting the FLV itself, on disk on the web server, means the browser that reads the files cannot read it--there is no point.
I suspect there is more to this question. State why you want to encrypt the FLV and we can answer in more depth.