Icecast Streaming Media Server Forum Index Icecast Streaming Media Server
Icecast is a Xiph Foundation Project
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

add movie to the back of a Video

 
Post new topic   Reply to topic    Icecast Streaming Media Server Forum Index -> Video Streaming
View previous topic :: View next topic  
Author Message
Anonymous
Guest





PostPosted: Mon May 19, 2008 12:56 pm    Post subject: add movie to the back of a Video Reply with quote

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
Code Warrior


Joined: 13 Jun 2005
Posts: 5476
Location: UK

PostPosted: Mon May 19, 2008 3:03 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website
Anonymous
Guest





PostPosted: Wed May 21, 2008 11:38 am    Post subject: Reply with quote

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
Code Warrior


Joined: 13 Jun 2005
Posts: 5476
Location: UK

PostPosted: Wed May 21, 2008 1:44 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website
Anonymous
Guest





PostPosted: Thu May 22, 2008 12:34 am    Post subject: Reply with quote

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
Code Warrior


Joined: 13 Jun 2005
Posts: 5476
Location: UK

PostPosted: Thu May 22, 2008 3:08 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    Icecast Streaming Media Server Forum Index -> Video Streaming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2002 phpBB Group
subRebel style by ktauber