Take a look at this example:
http://www.wowza.com/community/t/-/243
Richard
Wowza normally records with .flv extension, unless you using “mp4:” prefix in the stream name.
I don’t know the answer to the ffmpeg question.
Richard
To record this kind of stream to mp4 container, you would use “mp4:” prefix with the stream name in Stream Manager.
If you don’t use mp4: prefiix Wowza will record to flv container with .flv extension.
It would be better to use the mp4: prefix so Wowza records to mp4 container.
Richard
The Wowza recording will have an .mp4 extension.
JW Player can play videos with mp4 or m4v extension. You should use the mp4: prefix in the “file” Flashvar.
Richard
Here is an example of iterating over the files in the content folder:
http://www.wowza.com/community/t/-/237&page=3#22
The ffmpeg command has to run on the server. So you would have to install ffmpeg on the server.
You could initiate from the client with NetConnection.call(serversideFunctionName), for example:
netconnection.call(“doFiles”);
You have to create an appllcation module with a “doFiles” method that iterates over the files in content folder and runs ffmpeg.
Richard
To call a function from a client with a netconnection, you have to use a Flash application. There is a great working reference for this in the Wowza install-dir example folder: ServerSideModules. This includes a Flash application and server-side module and shows just about every way to communicate and pass data between Flash and Wowza.
To interface with Wowza from an application server like .net using a server page like aspx, you need a HTTProvider. This is a good starting place for that:
http://www.wowza.com/community/t/-/245
There are other HTTProviders that might be useful reference in the same forum section:
http://www.wowza.com/community/c/-/10
Richard
I showed you the example we have for that already, “ModuleVideoNameList” This one:
http://www.wowza.com/community/t/-/237&page=3#22
Richard
This is an AS3 version. If you are using Flex, you an use the Bindable ArrayCollection with a ComboBox. In Flash CS you can change it to an Array
netconnection.call("getVideoNames",new Responder(videoNamesHandler));
[Bindable]
privat var recordedStreamsDP = new ArrayCollection();
private function videoNamesHandler(results:Object):void
{
for( var item:String in results )
{
var obj:ObjectProxy = new ObjectProxy(); // In Flex use ObjectProxy to populate Bindable ArrayCollection.
obj.label = results[item];
obj.value = item;
recordedStreamsDP.addItemAt(obj,0);
}
}
This should work in Flash AS3 or AS2:
var result:Object = new Object();
result.onResult = function(results:Object)
{
for( var item:String in results )
{
trace(results[item]);
trace(item);
}
}
netconnection.call("getVideoNames", result);
Richard
You can’t use an Application module with .net. You can use a HTTProvider or a Web Service. But this code could be made to work in a HTTProvider and output xml instead of returning an object. You would have to tell it what application is involved.
Since you will be passing data in, start with this post:
http://www.wowza.com/community/t/-/245
And since you will be building xml output, you can look at this post for reference:
http://www.wowza.com/forums/showthread.php?t=597
Richard
I really don’t have that exact thing. These are all the pieces, you just have to mix them together. The IDE has a Wizard for creating a new HTTProvider. The code in that module will work in a HTTProvider, except that where the Application is part of the context of a Module you will have to pass in the Application name and get a reference to it, there are examples of that in the HTTProvider examples.
Looks like I pasted in the wrong example for the 2nd link. I meant to give you this one:
http://www.wowza.com/community/t/-/60
Richard
If you mean a snapshot of a stream as in that post, that’s what we have for that purpose.
Richard
You can create an HTTProvider version of this application module.
https://www.wowza.com/docs/http-providers
You need the IDE:
It would take some understanding of Wowza Application module and HTTProviders. There is a pretty good example of an HTTProvider version of an application Module in the LiveStreamRecord addon
Richard
Looking at the code, I think it will, but the output will be one frame flv.
Richard
No, I am pretty sure that is not possible.
Richard
However, on the camera side, try setting key frame interval to 60, and the FPS to 30. Then you will have a key frame every 2 seconds
Richard
You could lower bitrate or higher compression setting (If Axis cam) so you can set fps higher. I don’t know another solution otherwise
Richard
It opens in FFprobe and should be suitable to make a jpg from.
Richard
hi,
this should work for you
ffmpeg -i yourvideo.flv -s 160x120 -ss 00:00:02 -f mjpeg -t 0.001 -y yourthumbnail.jpg
hope this helps
koz
in fact this will work better, giving you better compresison on the JPEG
ffmpeg -i yourvideo.flv -vcodec mjpeg -vframes 1 -an -f rawvideo -s 160x120 -ss 00:00:02 -y yourthumbnail.jpg
this takes an image from two seconds in to the video and creates a 160x120 jpeg
hope this helps,
koz
thx, I’m really stupid. I don’t see it
© 2007–2024 Wowza Media Systems™, LLC. All rights reserved. Security & Privacy PolicyLegalSystem Status