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 

Theora video and fallback

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



Joined: 29 Jan 2010
Posts: 2
Location: Eindhoven, Netherlands

PostPosted: Fri Jan 29, 2010 6:48 am    Post subject: Theora video and fallback Reply with quote

Dear all,

I have the following setup:
- mainstream mount /test_fb.ogv (with fallback-override)
- fallback mount /test_fb.ogv
- two sources (ffmpeg2theora, oggfwd)
- both sources are (apart from the mountname) identical

When i tune in to my mountpoint /test.ogv using vlc or cortado, i get the video. But when i disconnect the mainsource to /test.ogv the video freezes and doesn't start again. After i reload the video, i see the fallback mount. Resumé:

- the streaming is working
- the fallback is working (when i connect after the mainmount is gone)
- the switching from mainmount to fallback goes wrong
- switching back to mainmount after mainsource is back goes wrong (picture freezes)

Any ideas what this problem might be? I have tried using vlc as mainsource, but that didn't change anything. I have also made the bitrate/resolution/etc exactly equal in both sources.
Thanks in advance,

Jeroen Hermans
Back to top
View user's profile Send private message
karlH
Code Warrior
Code Warrior


Joined: 13 Jun 2005
Posts: 5476
Location: UK

PostPosted: Fri Jan 29, 2010 3:01 pm    Post subject: Reply with quote

sounds like they don't handle header updates, you could try mplayer and helix/real as well

karl.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
jhermans



Joined: 29 Jan 2010
Posts: 2
Location: Eindhoven, Netherlands

PostPosted: Sun Feb 07, 2010 2:04 pm    Post subject: Reply with quote

It is still not working. For my application (streaming of a live event) i really want the fallback option. The chance of dropping the live-connection during the three day event is very real. If only for maybe 1 second. Here is my icecast.xml:

Code:

<icecast>
    <limits>
        <clients>101</clients>
        <sources>4</sources>
        <threadpool>5</threadpool>
        <queue-size>102400</queue-size>
        <client-timeout>30</client-timeout>
        <header-timeout>15</header-timeout>
        <source-timeout>10</source-timeout>
        <burst-on-connect>1</burst-on-connect>
        <burst-size>65535</burst-size>
    </limits>

    <authentication>
        <source-password>sourcepassword</source-password>
        <relay-password>replaypassword</relay-password>

        <admin-user>administrator</admin-user>
        <admin-password>password</admin-password>
    </authentication>

    <hostname>hostname.domain.com (the real domainname ofcourse is used here)</hostname>

    <listen-socket>
        <port>80</port>
        <bind-address>IPADDRESS</bind-address>
    </listen-socket>

    <mount>
        <mount-name>/test.ogv</mount-name>
        <username>source</username>
        <password>sourcepassword</password>
        <fallback-mount>/test_fb.ogv</fallback-mount>
        <fallback-override>1</fallback-override>
        <max-listeners>150</max-listeners>
        <hidden>0</hidden>
        <charset>ISO8859-1</charset>
        <burst-size>65536</burst-size>
        <type>application/ogg</type>
        <subtype>theora</subtype>
    </mount>

    <mount>
        <mount-name>/test_fb.ogv</mount-name>
        <password>fbpassword</password>
        <max-listeners>150</max-listeners>
        <hidden>0</hidden>
        <public>0</public>
        <stream-name>Streamname</stream-name>
        <stream-description>Broadcast blahblah</stream-description>
        <stream-url>http://www.domain.com</stream-url>
        <genre>classical</genre>
        <charset>ISO8859-1</charset>
        <burst-size>65536</burst-size>
        <type>application/ogg</type>
        <subtype>theora</subtype>
    </mount>

    <fileserve>1</fileserve>

    <paths>
        <basedir>/home/icecast</basedir>
        <logdir>/var/log</logdir>
        <webroot>/share/icecast/web</webroot>
        <adminroot>/share/icecast/admin</adminroot>
        <pidfile>/var/log/icecast.pid</pidfile>

        <alias source="/" dest="/status.xsl"/>
    </paths>

    <logging>
        <accesslog>icecast_access.log</accesslog>
        <errorlog>icecast_error.log</errorlog>
        <loglevel>3</loglevel> <!-- 4 Debug, 3 Info, 2 Warn, 1 Error -->
    </logging>
    <security>
        <chroot>1</chroot>
        <changeowner>
            <user>icecast</user>
            <group>icecast</group>
        </changeowner>
    </security>
</icecast>



My ezstream.xml:
Code:

<ezstream>
    <url>http://www.domain.com:80/test_fb.ogv</url>
    <sourcepassword>sourcepassword</sourcepassword>
    <format>THEORA</format>
    <filename>/path/playlist.m3u</filename>
    <svrinfoname>My Stream</svrinfoname>
    <svrinfourl>http://www.oddsock.org</svrinfourl>
    <svrinfogenre>Documentary</svrinfogenre>
    <svrinfodescription>This is a stream description</svrinfodescription>
    <svrinfobitrate>150</svrinfobitrate>
    <svrinfochannels>2</svrinfochannels>
    <svrinfosamplerate>22500</svrinfosamplerate>

    <reencode>
        <enable>1</enable>
        <encdec>
            <format>THEORA</format>
            <match>.ogg</match>
            <decode>ffmpeg2theora -x 192 -y 128 -a 0 -v 4 --title "@M@" -o - "@T@"</decode>
        </encdec>
        <encdec>
            <format>THEORA</format>
            <match>.ogv</match>
            <decode>ffmpeg2theora -x 350 -y 250 -a 0 -v 4 -F 15 -H 22500 --title "@M@" -o - "@T@"</decode>
        </encdec>
    </reencode>
</ezstream>


Can someone pleae help me with this problem? Symptoms are:

- connecting to stream works ok
- connecting to stream while mainsource is ok
- while connected to stream (automatically) switching to fallback freezes video
- while connected to stream in fallback (automatically) switching back to mainsource freezes video
Thanks in advance,

Jeroen
Back to top
View user's profile Send private message
karlH
Code Warrior
Code Warrior


Joined: 13 Jun 2005
Posts: 5476
Location: UK

PostPosted: Sun Feb 07, 2010 8:55 pm    Post subject: Reply with quote

Can you clarify whether icecast stops or whether the player stops? when this issue has been mentioned before then problem has always turned out to be down to the player not handling the new headers and stopping playback.

use curl to save to a file, while a fallback occurs then playback the saved file. Also specify which other players you are testing with.

karl.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Chunk2



Joined: 03 May 2010
Posts: 5

PostPosted: Sat May 15, 2010 4:17 am    Post subject: Reply with quote

I have this same question.

Is there any sort of work around for my clients who I don't think I can help through the process of installing anew client? Some way to disable the sending of new headers or something?
Back to top
View user's profile Send private message
karlH
Code Warrior
Code Warrior


Joined: 13 Jun 2005
Posts: 5476
Location: UK

PostPosted: Sat May 15, 2010 1:27 pm    Post subject: Reply with quote

skipping the headers is a really bad idea. 2 logical streams (think files) may not of been made by the same encoder or even settings. Imagine you write a program to expect raw PCM at 44100 stereo 16bit but half way through you suddenly get 22050 samples per second without notification, what would you expect to happen in such cases.

karl.


Last edited by karlH on Sat May 15, 2010 3:55 pm; edited 1 time in total
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Chunk2



Joined: 03 May 2010
Posts: 5

PostPosted: Sat May 15, 2010 2:34 pm    Post subject: Reply with quote

Point taken, though my stream is made up of all files I encoded myself with the same exact settings... I guess I could compost them all into a single file, but I'd still like to be able to loop them without interruption.

I guess the fault in this case rests with the media player authors, huh?
Back to top
View user's profile Send private message
Chunk2



Joined: 03 May 2010
Posts: 5

PostPosted: Sun May 16, 2010 5:44 pm    Post subject: Reply with quote

Does anyone know a media player that doesn't freeze up?
Back to top
View user's profile Send private message
Sankt



Joined: 12 Apr 2006
Posts: 82

PostPosted: Mon May 17, 2010 3:23 am    Post subject: Reply with quote

VLC
_________________
Using NSV with Icecast : www.scvi.net/nsvice.htm
Society of Motion Picture and Television Engineers
Back to top
View user's profile Send private message Visit poster's website
Chunk2



Joined: 03 May 2010
Posts: 5

PostPosted: Mon May 17, 2010 4:19 am    Post subject: Reply with quote

Sankt wrote:
VLC

Hmm... that's the one most of my listeners use, and that doesn't seem to be true.
Back to top
View user's profile Send private message
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