Is there any way to encode videos using XviD for the PSP?

Discuss the development of new homebrew software, tools and libraries.

Moderators: cheriff, TyRaNiD

Post Reply
Bulletproof
Posts: 1
Joined: Tue Apr 05, 2005 2:22 pm

Is there any way to encode videos using XviD for the PSP?

Post by Bulletproof »

I know XviD has simple profile, but it probably will not work directly with the PSP, one of the obvious reasons being that most encoding programs output to AVI and the PSP needs specialized header information (I think). So my question is, is there any way to make an XviD file compliant with the PSP by using some sort of program that adds proper header information and muxes it into MP4 along with the audio track for you? I believe programs like 3gpp and pspvideo9 just use ffmpeg which I think is not the same as XviD?
J.F.
Posts: 2906
Joined: Sun Feb 22, 2004 11:41 am

Post by J.F. »

XviD, DivX, and FFMPEG's MPEG4 encoder all produce the same video stream - an MPEG4 stream. You just have to make sure that you don't use features which aren't supported by the PSP's MPEG4 video decoder. XviD can be multiplexed into an MP4 container just the same as what FFMPEG produces.

First encode the xvid as an avi like normal, then use mp4box to convert the xvid avi to mp4 like this "mp4box -import xvid.avi xvid.mp4"

You can then merge video with audio this way (aac in the example) "mp4box -merge xvid.mp4 aac.mp4 movie.mp4"

There are other ways - google around and you should find lots of info in it.
blackdroid
Posts: 564
Joined: Sat Jan 17, 2004 10:22 am
Location: Sweden
Contact:

Post by blackdroid »

Moved due to its utter irrelevance to any form of psp development discussion. next time I will strap C4 to any similar thread.

Intifada 2005.
Kung VU
Krevnik
Posts: 71
Joined: Wed Mar 09, 2005 12:07 pm

Post by Krevnik »

Not to mention if you use ffmpeg... depending on the platform you can get a build with XviD support built into it. I submitted the patch for XviD support to the ffmpeg/libavcodec guys myself. The quality is pretty good, although I personally wish there was some better pre-processing (filtering, specifically) in ffmpeg. Otherwise ffmpeg is pretty good and outputs some great file sizes with XVid.
Latexxx
Posts: 12
Joined: Thu May 12, 2005 3:01 am

Post by Latexxx »

Both 3gpp converter and pspvideo9 use Xvid through ffmpeg.
Post Reply