Linux Command to Convert a Video to PSP’s MP4 Format

Linux command to convert a video file to PSP format using ffmpeg. After converting, copy the OutputFile to the video folder in your PSP.


ffmpeg -i "OriginalFile.avi" -f psp -r 29.97 -b 768k -ar 24000 -ab 64k -s 320x240 "OutputFile.mp4"
Author: Binny V A
A philosopher programmer who specializes in backend development and stoicism.

7 thoughts on “Linux Command to Convert a Video to PSP’s MP4 Format

  1. Hello, i’ve tried that command but it won’t work:

    $ ffmpeg -i /home/mob/Videos/mgo2/SFG_vs_FoxN-1stRound-_-_2vs2_Tournament.avi -f psp -r 29.97 -b 768k -ar 24000 -ab 64k -s 320×240 mgo2vid.mp4
    FFmpeg version r11872+debian_0.svn20080206-17+lenny1, Copyright (c) 2000-2008 Fabrice Bellard, et al.
    configuration: –enable-gpl –enable-libfaad –enable-pp –enable-swscaler –enable-x11grab –prefix=/usr –enable-libgsm –enable-libtheora –enable-libvorbis –enable-pthreads –disable-strip –enable-libdc1394 –disable-armv5te –disable-armv6 –disable-altivec –disable-vis –enable-shared –disable-static
    libavutil version: 49.6.0
    libavcodec version: 51.50.0
    libavformat version: 52.7.0
    libavdevice version: 52.0.0
    built on Apr 28 2009 02:12:01, gcc: 4.3.2
    Input #0, avi, from ‘/home/mob/Videos/mgo2/SFG_vs_FoxN-1stRound-_-_2vs2_Tournament.avi’:
    Duration: 00:10:37.2, start: 0.000000, bitrate: 676 kb/s
    Stream #0.0: Video: mpeg4, yuv420p, 320×238 [PAR 1:1 DAR 160:119], 25.00 tb(r)
    Stream #0.1: Audio: mp3, 22050 Hz, stereo, 48 kb/s
    Output #0, psp, to ‘mgo2vid.mp4’:
    Stream #0.0: Video: 0x0000, yuv420p, 320×240 [PAR 120:119 DAR 160:119], q=2-31, 768 kb/s, 29.97 tb(c)
    Stream #0.1: Audio: 0x0000, 24000 Hz, stereo, 64 kb/s
    Stream mapping:
    Stream #0.0 -> #0.0
    Stream #0.1 -> #0.1
    Unsupported codec for output stream #0.0

    I am using Debian Lenny. Any help appreciated.

  2. Error : Unsupported codec for output stream #0.1
    when i run the following command

    ffmpeg -i “mantra.flv” -f psp -r 29.97 -b 768k -ar 24000 -ab 64k -s 320×240 “M4V00010.mp4”
    FFmpeg version SVN-r19352-4:0.5+svn20090706-2ubuntu2, Copyright (c) 2000-2009 Fabrice Bellard, et al.
    configuration: –extra-version=4:0.5+svn20090706-2ubuntu2 –prefix=/usr –enable-avfilter –enable-avfilter-lavf –enable-vdpau –enable-bzlib –enable-libgsm –enable-libschroedinger –enable-libspeex –enable-libtheora –enable-libvorbis –enable-pthreads –enable-zlib –disable-stripping –disable-vhook –enable-gpl –enable-postproc –enable-swscale –enable-x11grab –enable-libdc1394 –extra-cflags=-I/build/buildd/ffmpeg-0.5+svn20090706/debian/include –enable-shared –disable-static
    libavutil 49.15. 0 / 49.15. 0
    libavcodec 52.20. 0 / 52.20. 0
    libavformat 52.31. 0 / 52.31. 0
    libavdevice 52. 1. 0 / 52. 1. 0
    libavfilter 0. 4. 0 / 0. 4. 0
    libswscale 0. 7. 1 / 0. 7. 1
    libpostproc 51. 2. 0 / 51. 2. 0
    built on Oct 13 2009 22:15:16, gcc: 4.4.1

    Seems stream 0 codec frame rate differs from container frame rate: 2000.00 (2000/1) -> 11.99 (12000/1001)
    Input #0, flv, from ‘mantra.flv’:
    Duration: 00:03:48.49, start: 0.000000, bitrate: 201 kb/s
    Stream #0.0: Video: h264, yuv420p, 320×184 [PAR 1:1 DAR 40:23], 201 kb/s, 11.99 tbr, 1k tbn, 2k tbc
    Stream #0.1: Audio: aac, 22050 Hz, stereo, s16
    File ‘M4V00010.mp4’ already exists. Overwrite ? [y/N] y
    Output #0, psp, to ‘M4V00010.mp4’:
    Stream #0.0: Video: mpeg4, yuv420p, 320×240 [PAR 30:23 DAR 40:23], q=2-31, 768 kb/s, 90k tbn, 29.97 tbc
    Stream #0.1: Audio: 0x0000, 24000 Hz, stereo, s16, 64 kb/s
    Stream mapping:
    Stream #0.0 -> #0.0
    Stream #0.1 -> #0.1
    Unsupported codec for output stream #0.1

    I have followed your tutorial to install all the codecs even then, do you know as why is this happening , if yes please let me know the solution, thanks a TON in advance

Leave a Reply

Your email address will not be published. Required fields are marked *