OK I should say its 0.2, but its a vast improvemnt on the last one.
- It can now stream from the internet.. use the command OpenMPEG("http::movie.mpg")
- It can now do fullscreen playback easily. This is after an update to pantson.YUV
- If there are puases in the system, the movie will skip so that sound stays synced.
- Closes movies off properly so it shouldn't eat memory ;-)
- auto detects dimensions and fps of mpeg file
- black and white playback, by setting tmpeg.color to false
- Full command set.. See docs
OpenMPEG(filename)
CloseMPEG(Tmpeg)
DrawMPEG(tpixmap,tmpeg)
StartMPEG(Tmpeg)
MPEGwidth(tmpeg,height)
MPEGheight(tmpeg,width)
I've made some example movies for playback. These are hosted on rapidshare (to save my bandwidth)
There are 4 examples now in the archive. basic, sound, fullscreen and streaming. The do what they say on the tin. ;-)
To obtain a valid MPEG file use the following command lines for FFMPEG
video
sound
There are still problems restarting movies using the StartMPEG command. I'll be fixing this later. In the meantime close the move, and reopen it.
PS I think I might have found a way to play all movie formats... but will require a lot more development. I'll keep people posted.
Once finalised I will release the code.
enjoy
- It can now stream from the internet.. use the command OpenMPEG("http::movie.mpg")
- It can now do fullscreen playback easily. This is after an update to pantson.YUV
- If there are puases in the system, the movie will skip so that sound stays synced.
- Closes movies off properly so it shouldn't eat memory ;-)
- auto detects dimensions and fps of mpeg file
- black and white playback, by setting tmpeg.color to false
- Full command set.. See docs
OpenMPEG(filename)
CloseMPEG(Tmpeg)
DrawMPEG(tpixmap,tmpeg)
StartMPEG(Tmpeg)
MPEGwidth(tmpeg,height)
MPEGheight(tmpeg,width)
I've made some example movies for playback. These are hosted on rapidshare (to save my bandwidth)
There are 4 examples now in the archive. basic, sound, fullscreen and streaming. The do what they say on the tin. ;-)
To obtain a valid MPEG file use the following command lines for FFMPEG
video
ffmpeg -i movie.avi -b 600 -an -vcodec mpegvideo -f mpeg2video test.mpg
sound
ffmpeg -i movie.avi -vn test.ogg
There are still problems restarting movies using the StartMPEG command. I'll be fixing this later. In the meantime close the move, and reopen it.
PS I think I might have found a way to play all movie formats... but will require a lot more development. I'll keep people posted.
Once finalised I will release the code.
enjoy