Skip to main content
Participating Frequently
October 30, 2014
Question

how to detect the completion of an .FLV file after audio capture

  • October 30, 2014
  • 1 reply
  • 602 views

We are using livepkgr to capture audio with AMS Standard running on a linux server. When we close an audio capture session with:

   nsPublish.attachAudio(null);

   nsPublish.close();

it takes some time for the server to finish writing all the captured audio to an .FLV file. My question is how to detect the completion of this process. This is important to know because we want to move the FLV file to a more permanent storage as soon as it is complete.

Thank you very much!

This topic has been closed for replies.

1 reply

Conor Brennan
Adobe Employee
Adobe Employee
November 3, 2014

Hi, you could write a batch job to check the folder where the FLVs are being written to on the AMS server checking for last modified time. If that exceeds a certain duration, say 2 minutes then move the FLV.

I am not aware of another way right now.

Thanks

Conor

afukadaAuthor
Participating Frequently
November 10, 2014

Ah, thank you! That sounds like a good solution. I wonder if it's possible to get the FLV file size in bytes upon finishing audio-recording. If that's possible, the batch script can simply wait until that size is reached to proceed, instead of waiting for 2 minutes.