K-S-V / Scripts

Collection of my scripts
GNU General Public License v3.0
634 stars 226 forks source link

How to stop recording the streaming audio AdobeHDS.php after certain time #3

Closed venkatgig closed 12 years ago

venkatgig commented 12 years ago

I want to record the stream for specified amount of time. But the streaming audio continously sends fragment, So dont know how to stop it.

K-S-V commented 12 years ago

i have just added the duration switch to stop the the recording after specified number of seconds.

venkatgig commented 12 years ago

php AdobeHDS.php --manifest "http://mmalar-f.akamaihd.net/z/madrasstream_1@69913/manifest.f4m?hdcore=2.8.0" --duration "10"

php AdobeHDS.php --manifest "http://mmalar-f.akamaihd.net/z/madrasstream_1@69913/manifest.f4m?hdcore=2.8.0" --duration 10

I tried the above commands, but it does not stop after 10 or 30 seconds :-(

K-S-V commented 12 years ago

i have tested with your url. it wasn't the issue of duration but script wasn't calculating the starting fragment properly in this case. i have fixed the issue. updated script works fine for me.

venkatgig commented 12 years ago

Thanks a lot man. It works