SMPEG_loop() doesnt work on Linux (Fedora - 2)

I am unable to make a video playback loop (cycle) using SMPEG_loop(m, 1).
Play-back stops after one play. Here is the code outline.

SMPEG *m;

m = SMPEG_new(…);
SMPEG_loop(m, 1);
SMPEG_play(m);

Is there anything more that I have to do?

-Laeeq

I am unable to make a video playback loop (cycle) using SMPEG_loop(m, 1).
Play-back stops after one play. Here is the code outline.

SMPEG *m;

m = SMPEG_new(…);
SMPEG_loop(m, 1);
SMPEG_play(m);

Is there anything more that I have to do?

That should be it. What version of smpeg is this?

I have a feeling most distros are still packaging the final release from
Loki Software, where there’s been some development on the source base
since then at icculus.org. Maybe we should do an official release.

–ryan.

vote++;

ChrisOn 7/27/05, Ryan C. Gordon wrote:

I have a feeling most distros are still packaging the final release from
Loki Software, where there’s been some development on the source base
since then at icculus.org. Maybe we should do an official release.


E-Mail: Chris Nystrom
Business: http://www.shaklee.net/austin
Blog: http://conversazione.blogspot.com/
AIM: nystromchris

Is there anything more that I have to do?

More follow up:

Can you try the “plaympeg” program that comes with smpeg to see if it’s
your code or smpeg that is having problems? “plaympeg --loop myvideo.mpg”

If plaympeg won’t loop it, can you send me a link to the video that
won’t loop?

Thanks,
–ryan.

Laeeq Khan <Laeeq_M_Khan hotmail.com> writes:

I am unable to make a video playback loop (cycle) using SMPEG_loop(m, 1).
Play-back stops after one play. Here is the code outline.

SMPEG *m;

m = SMPEG_new(…);
SMPEG_loop(m, 1);
SMPEG_play(m);

Is there anything more that I have to do?

-Laeeq

You can try this:

SMPEG *m;
SMPEG_Info m_info;
m=SMPEG_new(…);
SMPEG_loop(m,1);
while(1){

SMPEG_Info(m,&m_info);
if (m_info.current_time>=m_info.total_time)
SMPEG_Stop(m);
SMPEG_play(m);
}

I know it isn’t a good manner to do it, but it can work