LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 11-15-2008, 12:46 PM   #1
ncsuapex
Member
 
Registered: Dec 2004
Location: Raleigh, NC
Distribution: CentOS 2.6.18-53.1.4.el5
Posts: 770

Rep: Reputation: 44
mplayer behavior: playing a looping mms feed, stops after each video


So I have a mms stream setup running off vlc and I'm playing the stream in mplayer. The stream has 5 short .avi's that play one after another in a continuous loop. If I play the stream on my laptop with windows media player it plays the loop fine. But when I play the stream in mplayer on my linux box it picks up the video in progress, plays it fine, but then stops at the end of the video and ends mplayer. If I start mplayer up again with the same stream info it picks up the next video, plays it and then shutsdown mplayer at the end of that video. Anyway to make mplayer play the stream continuously?
 
Old 11-21-2008, 08:13 AM   #2
rylan76
Senior Member
 
Registered: Apr 2004
Location: Potchefstroom, South Africa
Distribution: Fedora 17 - 3.3.4-5.fc17.x86_64
Posts: 1,552

Rep: Reputation: 103Reputation: 103
How about two bash scripts - one calls mplayer four times (for each clip), and the fifth line calls another bash script, which calls the first script back, thus setting up an infinite loop?

Something like

script1.sh
Code:
gmplayer -vo xv mms://123123
gmplayer -vo xv mms://123123
gmplayer -vo xv mms://123123
gmplayer -vo xv mms://123123
sh -f restart.sh
restart.sh
Code:
sh -f script1.sh
??
 
Old 11-21-2008, 12:12 PM   #3
ncsuapex
Member
 
Registered: Dec 2004
Location: Raleigh, NC
Distribution: CentOS 2.6.18-53.1.4.el5
Posts: 770

Original Poster
Rep: Reputation: 44
That would probably work except I am streaming the videos with a VLC script that includes all the videos.. So Im using mplayer to play the stream by mplayer mms://iport


There has to be something that can be done within mplayer or even VLC. I have a feeling its disconnecting the stream because it thinks the video is over once one video stops. I believe you can set streams to be gapless but I can't figure out how to stream video with the gapless option in vlc. But since Windows Media Player plays the loop as planned I figured there was an option in mplayer to behave that same way.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Playing video in MPlayer embedded video player and Mozilla fc6_user Linux - Desktop 22 04-02-2007 12:59 PM
mms stream playing in mplayer but not gxine bl0tt0 Slackware 2 10-31-2006 01:25 PM
Mplayer stops playing when I move another window h2gofast Linux - Software 2 08-25-2004 01:34 PM
MPlayer is not playing video File linuxeagle Linux - General 0 03-31-2004 09:14 AM
mplayer not playing video pankajmathur Linux - Software 1 05-12-2003 01:56 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 10:46 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration