[MPlayer-users] Restarting mplayer after Network Trouble
Reimar.Doeffinger at gmx.de
Mon Mar 21 23:22:23 CET 2016
On Fri, Mar 11, 2016 at 04:24:33PM -0600, Martin McCormick wrote:
> Is there a way to get mplayer to keep re-trying a session
> that chokes up due to network trouble?
Actually, MPlayer does retry, but only a limited number of
times and that is currently not configurable.
Does that retrying not work, or would you just need
to be able to set it to "retry forever"?
> mplayer -noconsolecontrols -nolirc -really-quiet -dumpstream -playlist
> followed by the link to the program source.
> If a run-out produces a distinctive exit status, I could
> probably write some shell script that saves the stream fragment
> to a temporary file and then restarts mplayer again until the
> time for the show has passed.
Given your command-line, and that this kind of resuming would
only work with a live stream, isn't a network issue the
only reason that could cause it to exit?
So what would you need the exit code for?
> I am certainly not complaining as mplayer works
> beautifully when the network does. I simply want to devise the
> best and most direct method for trying a restart when there is a
> break in the stream. Normally, the stream never ends.
Just change the MAX_RECONNECT_RETRIES define to some crazy large
value or if you're comfortable with basic C completely remove
the check for it?
More information about the MPlayer-users