Quantcast
Channel: Adobe Community: Message List
Viewing all articles
Browse latest Browse all 150094

Record Live event on FMS

$
0
0

I have same issue by FMS and F4V format.

I want to archive live event at same time and to do that I record live stream in F4V format on the onPublish event.

This is main.asc codes:

[code]

 

//live stream fragments

var liveStream = Stream.get("f4f:" + streamName.name);

liveStream.record();

liveStream.play(streamName,-1,-1);

 

//Create Archive (f4v) for on-demand

var vodFile = Stream.get("mp4:" + StreamName.name + ".f4v");

vodFile.record();

vodFile.play(streamName,-1,-1);

[code]

 

So when I use h264 in my source event when FMS create f4v, F4V file is 320kb (f4v isn't growing) and just record 5 second of my event whoever my live event is more than 1 hour.

But when I don't use h264 in source event my F4V file is correct and record all 1 hour video from live event.

 

I don't know what's a problem

I use FMS 5 extended edition and FFMPEG for stream webcam on to the FMS

 

This is my FFMPEG code:

[code]

ffmpeg -f dshow -i video="A4TECH USB2.0 PC Camera" -vcodec libx264 -b:v 32k -acodec libmp3lame -b:a 64k -ar 44100  -f flv rtmp://12.11.1.3/livepkgr/liveevent?adbe-live-event=liveevent

[code]

 

Please advise me to solve this problem.

Many Thanks.


Viewing all articles
Browse latest Browse all 150094

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>