PDA

View Full Version : SDL-Based FFmpeg Port?



OVERRiDE_DC
November 22nd, 2008, 20:08
I am posting this asking if any coder is interested in porting an FFmpeg based video player to DC using SDL.
Looking at the tutorial this should be a easy task for a good programmer...

http://ffmpeg.mplayerhq.hu/


ffmpeg is a wonderful library for creating video applications or even general purpose utilities. ffmpeg takes care of all the hard work of video processing by doing all the decoding, encoding, muxing and demuxing for you. This can make media applications much simpler to write. It's simple, written in C, fast, and can decode almost any codec you'll find in use today, as well as encode several other formats.

There is even a tutorial on creating a simple SDL-Based FFmpeg player:
http://www.dranger.com/ffmpeg/

Maybe a very simple GUI w/ file-browser with emphasis on being light-weight.
And just port a few key codecs like DivX, XviD, but exclude most unimportant codecs, etc.
Also only porting the decoding functions, excluding any encoding functions, of course.

I am sure the DC can handle good quality mpeg-4 video, and also a lot of DC fans should appreciate this.

So, anyone up to the challenge?

quzar
November 23rd, 2008, 04:14
I too am sure that the DC can handle some good quality mpeg-4 video. The only problem is that ffmpeg is unlikely to run with any speed on the DC, and demand isn't high enough.

Christuserloeser
November 26th, 2008, 18:03
dcplaya uses ffmpeg:

http://www.dreamcast-scene.com/index.php/Main/DCPlaya
http://sourceforge.net/projects/dcplaya


- For a DCEvolution project I tried to strip down the GUI to a simple file browser but I got no idea what I am doing. It is LUA based.

OVERRiDE_DC
November 30th, 2008, 23:52
Really my idea was that SDL would bring better performance on DC

Although yeah, I have my own modified DCPlaya, named DCPlaya 2.0 Beta 2X
It is released as a self-boot .cdi image, get it here:

http://www.megaupload.com/?d=4TWEZFY8

http://www.underground-gamer.com/imagebucket/b2x_background.jpg

================================================== ==========================================
DCPlaya 2.0 Beta 2X Is my modification of DCPLaya 2.0 Beta 2
Optimised for playback of media using FFMpeg codecs.
================================================== ==========================================

Background.lua - Edited to load background.jpg from CD instead of RamDisc
- Brand new Background

DCPlayaRC.lua - Edited for faster loading, and now skips VMU initialization prompt

Subtitles.lua - Increased buffer from 1024kb to 4096kb

UserConf.lua - Now only codecs loaded into Ram are FFMpeg and OGG ( Better for RAM usage )
- Now only applications being executed are Subtitles and Song-Browser ( Better for CPU usage )

FFMpeg.lez, Jpeg.lez and OGG.lez un-compressed to .lef extension for faster loading

================================================== ==========================================
-OVERRiDE 2008
================================================== ==========================================

I am looking for the source code to DCPlaya, they say it is public but I can not find it. I would be interested in compiling with the newest version of FFMpeg.

quzar
December 2nd, 2008, 02:16
IIRC the way the ffmpeg plugin was made was simply by taking bero's ffmpeg port and wrapping it in a lua plugin (from reading bits of forum posts and cracking open the bin to the plugin).

DCDayDreamer
December 2nd, 2008, 16:43
I have my own modified DCPlaya, named DCPlaya 2.0 Beta 2X
It is released as a self-boot .cdi image

Sounds interesting, and thanks for the CD Image.


I am looking for the source code to DCPlaya, they say it is public but I can not find it.
I believe the sourcecode wasn't released as a standalone package to download, your best bet would be to browse the CVS, take a look here:

DCPlaya CVS at sourceforge (http://dcplaya.cvs.sourceforge.net/viewvc/dcplaya/)

It also looks like some changes were made in 2007, maybe the project isn't dead after all.

OVERRiDE_DC
December 2nd, 2008, 23:17
Quote by Quazar-

the way the ffmpeg plugin was made was simply by taking bero's ffmpeg port and wrapping it in a lua plugin

So, do you think it would be more usefull to try to re-compile Bero's DC Movie Player with the newest version of FFMpeg? Maybe I can look at adding sync code aswell...

Quote by DCDayDreamer:

It also looks like some changes were made in 2007, maybe the project isn't dead after all.

Thanks for the link, dont know how I missed that.
And yeah desktop, gui, keyboard_emu, song_browser.lua have all been updated in 2k7, I will test these out later.

And with all of the source updates in 2k7, including updates to FFMpeg, I am curious why they never compiled these into a newer release?...!

Maturion
December 6th, 2008, 07:25
Was the dcplaya source updated in 2007?

Who did that?

Btw, CE posted this over at DCEmulation.org: http://dcemulation.org/phpBB/viewtopic.php?f=72&t=98174

Basile
December 6th, 2008, 20:52
Was the dcplaya source updated in 2007?
authors i guess .
They are still there !
I`ve recently asked them on sourceforge DCplaya`s forums
http://sourceforge.net/forum/forum.php?thread_id=2107016&forum_id=211453
Benjamin Gérard answered .:)

Guaripolo
December 8th, 2008, 05:01
Really my idea was that SDL would bring better performance on DC

Although yeah, I have my own modified DCPlaya, named DCPlaya 2.0 Beta 2X
It is released as a self-boot .cdi image, get it here:

http://www.megaupload.com/?d=4TWEZFY8

http://www.underground-gamer.com/imagebucket/b2x_background.jpg


I am looking for the source code to DCPlaya, they say it is public but I can not find it. I would be interested in compiling with the newest version of FFMpeg.

i think that here is the source:

http://sashipa.ben.free.fr/dcplaya/Download/download.html

:)

Maturion
December 8th, 2008, 11:40
Just noticed that zigziggy visited DCEmulation.org some days ago. Here's his profile: http://dcemulation.org/phpBB/memberlist.php?mode=viewprofile&u=14548

Great to see they are still around. :)