Wowza Community

Extract Clips from DVR streams

Hi there … I am trying to test the clip extraction of MP4 files, but it’s not working for me

The DVR recording is fine, and I can playback pieces of it using the delegate with no problem.

But when I try to extract a piece of it as a MP4 clip, I only get the last 10 secs of the DVR regardless of the parameters.

If any has experience with it and can shade some light, it’d be great appreciated.

Here’s the process I’m following

a) Clear cache before doing anything

curl -X PUT --header ‘Accept:application/json; charset=utf-8’ --header ‘Content-type:application/json; charset=utf-8’ --header ‘Content-type:application/json; charset=utf-8’ “http://127.0.0.1:8087/v2/servers/defaultServer/vhosts/defaultVHost/applications/live/instances/definst/dvrstores/actions/expire”

b) checking that cache is cleared

curl -X PUT --header ‘Accept:application/json; charset=utf-8’ --header ‘Content-type:application/json; charset=utf-8’ --header ‘Content-type:application/json; charset=utf-8’ “http://127.0.0.1:8087/v2/servers/defaultServer/vhosts/defaultVHost/applications/live/instances/definst/dvrstores/actions/expire”

{“success”:true,“message”:“DvrConverterStore: InActive Converters Expired”,“data”:null}[root@ip-172-30-0-61 ~]-X GET --header ‘Accept:application/xml; charset=utf-8’ --header ‘Content-type:application/xml; charset=utf-8’ http://127.0.0.1:8087/v2/servers/defaultServer/vhosts/defaultVHost/applications/live/instances/definst/dvrstores/a24.stream <?xml version="1.0" encoding="UTF-8" ?>

a24.stream.0

true

true

false

7722956

11443155

3720199

1464888524161

1464892244406

STOPPED

NONE

0

0

0

0

0

0

0

c) Sending an extraction command

curl -X PUT --header ‘Accept:application/json; charset=utf-8’ --header ‘Content-type:application/json; charset=utf-8’ “http://127.0.0.1:8087/v2/servers/defaultServer/vhosts/defaultVHost/applications/live/instances/definst/dvrstores/a24.stream.0/actions/convert?dvrConverterStartTime=1464888600000&dvrConverterEndTime=1464888960000&dvrConverterOutputFilename=test4.mp4”

d) test4.mp4 file is only 10 secs eventhough the request is for 5 mins, and it’s not even and the requested start point

e) Checking of the extraction shows following, which doesn’t match the requirement

<?xml version="1.0" encoding="UTF-8" ?>

a24.stream.0

true

true

false

7933195

11658155

3724960

1464888734494

1464892459526

a24.stream.0

/usr/local/WowzaStreamingEngine/content/test4.mp4

SUCCESSFUL

NONE

1464892438300

1464892440410

2110

693

305

21723441

159979

Hi,

I believe we dealt with this via a ticket. It appeared that the issue was to do with the source. If there is still any issue with this then please update us via the ticket.

Paul

I just put a ticket in for the same thing.

I have another issue. I can record but the start time is not the same frame from the video that I seen. It start 15-30 seconds around later. How can I fix it?

The DVR recording is fine, and I can playback pieces of it using the delegate with no problem.

Are you using your own delegate, or wowza?