seek behavior
Posted: 18 Jun 2008 11:52
I have performed several tests using vlm and control commands.
1) it seems that command pause works, I mean it stops the streaming, but how can we restart the stream where it was paused? not from the beginning.
The workaround that I have found the moment is to send stop command, and then play and seek x, where x is the number of seconds, but only with ts-mpeg2video-mp2a files:
2) it seems that seek works only with ts input streams, am I right? I have tried to stream a file using an mpeg file and a ts file (with the same media streams: mpeg2video and mp2 for audio). The mpeg and the ts files are played correctly on my terminal. The seek command works for the ts file, but not for the mpeg file.
I suppose that ts contains a sort of "timestamps" which ease the slicing of the video, and thus allows the seek command, but I'm not sure.
3) actually, I said that the seek commands works, but when I use "control vod_id seek 26" for example, it goes further than the 26th second of the movie.
I'm using the http interface with telnet-like commands.
In one of the documentation file, I found this:
Thank you,
yohann
1) it seems that command pause works, I mean it stops the streaming, but how can we restart the stream where it was paused? not from the beginning.
The workaround that I have found the moment is to send stop command, and then play and seek x, where x is the number of seconds, but only with ts-mpeg2video-mp2a files:
2) it seems that seek works only with ts input streams, am I right? I have tried to stream a file using an mpeg file and a ts file (with the same media streams: mpeg2video and mp2 for audio). The mpeg and the ts files are played correctly on my terminal. The seek command works for the ts file, but not for the mpeg file.
I suppose that ts contains a sort of "timestamps" which ease the slicing of the video, and thus allows the seek command, but I'm not sure.
3) actually, I said that the seek commands works, but when I use "control vod_id seek 26" for example, it goes further than the 26th second of the movie.
I'm using the http interface with telnet-like commands.
In one of the documentation file, I found this:
I know it applies to http interface, but not to vlm_cmd.xml, but I thought that seconds could be used also in telnet command. Is it only possible to seek using percentage in telnet commands? The main documentation mentions only percents...> seek to <val>:
?command=seek&val=<val>
Allowed values are of the form:
[+ or -][<int><H or h>:][<int><M or m or '>:][<int><nothing or S or s or ">] or [+ or -]<int>%
(value between [ ] are optional, value between < > are mandatory)
examples:
1000 -> seek to the 1000th second
+1H:2M -> seek 1 hour and 2 minutes forward
-10% -> seek 10% back
Any clue is welcome,Control Commands
- play : Stat a broadcast media. The media begins to launch the first item of the input list, then launches the next one and so on. (like a play list)
- pause : Put the broadcast media in paused status.
- stop : Stop the broadcast media.
- seek (percentage) : Seek in the current playing item of the input list.
Thank you,
yohann