Message Board
Message Board > Fenix / Bennu / Gemix / DIV > mpeg.dll |
January 8, 2007, 14:39 | |
g105b
None 86 posts |
Hi all, I have tried playing a mpeg video file (with sound) in a fenix program, and failed... The mpeg loads and is displayed on screen, but is at a really slow frame rate, and without any sound. Is my code missing something other than just play_mpeg()? Code: program sha_test; global video; import "mpeg.dll"; begin frame; set_title("SHA TEST PRESENTATION"); set_mode(800,600,16); set_fps(30,30); frame; video=load_mpeg("test_mpg1.mpeg",1,1);frame; graph=play_mpeg(video);frame; x=300;y=300; loop frame; end end ____________ .g105b'' |
# |
January 8, 2007, 14:47 | |
g105b
None 86 posts |
I think fenix needs a specific type of mpeg... do I need to set the frame rate / compression to something before fenix will play it properly?
____________ .g105b'' |
# |
January 8, 2007, 17:05 | |
Rincewind
programmer 1546 posts |
I've never worked with mpeg.dll, but maybe it's because you are setting an insanely high frame leap of 30? So uh, try set_fps(30,0) or set_fps(30,1)? ____________ Personal website: http://www.loijson.com |
# |
January 8, 2007, 17:53 | |
g105b
None 86 posts |
sorry yeah that was a typo. I meant to put 30,10 which is what I use in most games.
____________ .g105b'' |
# |
January 9, 2007, 11:15 | |
Quiest
now with more happynes 142 posts |
Thats still an insanely high frame skip.
____________ Roundhousekick to the face, baby! |
# |
January 10, 2007, 11:49 | |
g105b
None 86 posts |
Am I wrong in thinking that putting set_fps(30,10); will make the FPS 30 if it can, but if it can't draw fast enough, the FPS will go down by a maximum of 10 - effectively being 20 fps ?
____________ .g105b'' |
# |
January 10, 2007, 12:30 | |
DTM
Earthling! 821 posts |
In DIV it meant it would skip up to 10 consecutive frames. So it could be as low as 3 FPS? <-- not sure on this But still try what rincewind said. ____________ :o |
# |
Message Board > Fenix / Bennu / Gemix / DIV > mpeg.dll