Answer by Scott Kellicker · Jul 12, 2012 at 06:49 PM
We are currently integrating the wowza server for a project which requires the implementation of timeshifting features. I know the definition of timeshifting is pretty vague so to make it clear I will describe the actually workflow we wanted to achieve. For example: In the interface of the IPTV middleware we have an application which displays the EPG, The user should be able to select the previous programs on a specific channel from this interface and then play this programs. In addition they should be able to rewind, pause, fastforward and choose to go to live (means the current broadcast). The source of the video/audio is multicast udp.but the output coming from the Wowza Media server can be unicast http or rtsp.
I have been searching through the documentation and so far what I have learned is that we can use the combination of nDVR and Trancoder to implement these features and the client media player can then connect to the Wowza Server using http and with the supplied wowzaplayerstart=?? and wowzaplayduration=??? parameters. for example;
1. we set-up the nDVR to record and transcode the video coming from the multicast source, on the Application.xml we set the <DVR><WindowDuration>10368000<WindowDuration> to buffer the video for 48 hours and <ArchiveStrategy>delete</ArchiveStrategy> to delete the oldest part of the stream.
2. We set the transcoder to transcode the video to 720p.
3. When the user select which programs from the previous EPG they want to play, from the programs starting and endtime, we can then calculate in which part exactly is this program from the recorded stream, then we just tell the client media player to attached this to the url parameters of wowzaplayerstart and wowzaplayerduration.
Would you guys recommend this kind of set-up or do we have to messup with the Wowza API to create our module? Any comment or advise wold be very much appreciated.
Another problem I am encountering is that even if I set all the encoders, except the 720p, in trancoder.xml to <Enable>false</Enable>. I am still having 2 directories in the content directory. for example; mystream.stream.0 and mystream.stream.720p. The mystream.stream.o have bigger file size so i am guessing this would be the recording of the original stream, This occupies a lot of disk space. Is there a way we can configure the appilaction to save only the 720p specified in the transcode.xml?
<Property> <Name>dvrMaximumRecordingLength</Name> <Value>108000</Value> <Type>Long</Type> </Property>
Answer by Jason Hilton · Jul 12, 2012 at 11:08 AM