View previous topic :: View next topic |
Author |
Message |
Anonymous Guest
|
Posted: Mon May 19, 2008 12:56 pm Post subject: add movie to the back of a Video |
|
|
Hello,
i have an on demand video Stream (actually a lot of them), What i would like to do is when the video is done playing i would like it to play a outro video. kinda like a thank you for watching. i know i could edit the video and add it to the oog, but that take man hours. i just want to be able to upload the video and have the outro automatically play when the video is done.
i was searching out wildcard mount points. would this work if i said any mount with *.ogg fail over to the outro?
Any help you would be greatly appreciated.
Jeremy |
|
Back to top |
|
|
karlH Code Warrior
Joined: 13 Jun 2005 Posts: 5476 Location: UK
|
Posted: Mon May 19, 2008 3:03 pm Post subject: |
|
|
There isn't an actual outro setting currently, in theory the same mechanism that intro files use could be used.
I suppose url auth could be used to give you a dynamically created on-demand stream setup. I suspect this will only work in -kh at the moment
eg
. listener connects on mount /stream. /stream uses url auth.
. listener_add script checks any limits and starts a source client to stream on a generated mountpoint eg /hidden/1234
. script sends back header Mountpoint: /hidden/1234 to icecast
. listener is moved to the new mountpoint for retrieving content
. a fallback to file then plays the outro.
. a listener_remove would terminate the source client if still playing.
karl. |
|
Back to top |
|
|
Anonymous Guest
|
Posted: Wed May 21, 2008 11:38 am Post subject: |
|
|
ok, after some reseach i think i know what you mean... but will this work with wildcard mounts.?
<mount>
<mount-name>*archive.ogg</mount-name>
<authentication type="url">
<option name="listener_remove" value="http://stream.domain.tld:8001/outro.ogg"/>
</authentication>
</mount>
where in my web directory i have files like 1-1-08archive.ogg
and i have a outro.ogg
am i on the right track?
J |
|
Back to top |
|
|
karlH Code Warrior
Joined: 13 Jun 2005 Posts: 5476 Location: UK
|
Posted: Wed May 21, 2008 1:44 pm Post subject: |
|
|
In the example I mentioned you probably want a wildcard mountpoint for the redirected stream so that you can apply a listener_remove so that it calls a script (not an ogg) to make sure the source client is terminated and also specify a fallback-mount for /outro.ogg
karl. |
|
Back to top |
|
|
Anonymous Guest
|
Posted: Thu May 22, 2008 12:34 am Post subject: |
|
|
So if i got you right it would be some thing like
<mount>
<mount-name>*archive.ogg</mount-name>
<authentication type="url">
<<option name="listener_add" value="script_to_start_oggfwd.php"/>
<option name="listener_remove" value="script_to_makesureitstopped_oggfwd.php"/>
<fallback-mount>/outro.ogg</fallback-mount>
</authentication>
</mount>
Like that....
J |
|
Back to top |
|
|
karlH Code Warrior
Joined: 13 Jun 2005 Posts: 5476 Location: UK
|
Posted: Thu May 22, 2008 3:08 am Post subject: |
|
|
The mount-name should be /*archive.ogg but I'm not sure what initial mountpoint you intend to use. If we assume the initial mountpoint is /stream and you request something like
http://host:8000/stream?content=abc
<mount>
<mount-name>/stream</mount-name>
<authentication type="url">
<option name="listener_add" value="http://h:p/start_oggfwd.php"/>
</authentication>
</mount>
http://h:p/start_oggfwd.php starts the contents and returns a header
Mountpoint: /random_archive.ogg
<mount>
<mount-name>*archive.ogg</mount-name>
<authentication type="url">
<option name="listener_remove" value="http://h:p/stop_oggfwd.php"/>
</authentication>
<fallback-mount>/outro.ogg</fallback-mount>
</mount>
karl. |
|
Back to top |
|
|
|