PSP preset doesn't work

Bug #365514 reported by Daniel G. Taylor
52
This bug affects 9 people
Affects Status Importance Assigned to Milestone
Arista Transcoder
Confirmed
Medium
Daniel G. Taylor
arista (Ubuntu)
Triaged
Medium
Alessio Treglia

Bug Description

The PSP preset is unable to be played on a PSP, making it worthless. The PSP says it is not a supported format and gives no other information.

Changed in arista:
assignee: nobody → danielgtaylor
importance: Undecided → Medium
status: New → Confirmed
Revision history for this message
Bastien Nocera (hadess-deactivatedaccount) wrote :

mencoder needs a special flag to encode in a way the PSP would understand:
http://www.mplayerhq.hu/DOCS/HTML/en/menc-feat-handheld-psp.html

This is probably a qtmux GStreamer problem. Easiest would be to create a pipeline as simple as possible to create an invalid file for the PSP, and file the appropriate bug for GStreamer.

Revision history for this message
Jim Padel (jim-1-6regulars) wrote :

The same can be said about the PS3 Normal preset. It also produces an "Unsupported Data" file.

Revision history for this message
Pau Iranzo (paugnu) wrote :

Same problem here. Sometimes it does work and my PSP can read the files, but sometimes cannot. I don't know what happens: all the videos are more or less the same (same source encoding) but Arista sometimes produce a usable file and sometimes does not.

affects: ubuntu → arista (Ubuntu)
Changed in arista (Ubuntu):
status: New → Triaged
importance: Undecided → Medium
Revision history for this message
Marcelo Torres da Costa (marcelo-torresdacosta) wrote :

Same here. The PSP doesn't recognize the video files.

Revision history for this message
Robin van Leeuwen (robinvanleeuwen) wrote :

I can verify this bug, when i try to convert a series of files same source encoding, same approx length (all 45 min series) i end up with about half the files "Unsupported Data" and the other half working. Very frustrating, and time consuming....

Revision history for this message
Micah Cowan (micahcowan) wrote :

I was unable to ever get the presets to work for me. I had to do a lot of digging to find anything remotely, and I still don't see anything official, but this page seems to have very helpful advice on resolution and frame rate: <http://www.pqdvd.com/support/psp_settings_video.html>.

I tweaked the psp.xml (attached) file and got something that seems to be working for me so far (only five conversions done, all with just the "Widescreen" format). Note that in addition to the resolution, the framerate needed adjusting before it started working. I used 15, mainly because I was converting animations; 30 is also a possible (and for some needs, perhaps more appropriate) value. I don't know whether <rate> allows specifying two distinct values that aren't a range (I don't know the xml format specifics; was just hacking around).

Revision history for this message
Rich (richiethom) wrote :

No luck with the psp.xml provided by Micah Cowan either. Old preset generated unreadable files, new preset generates files half the size where the length can be ascertained by PSP, but still can't play them.

Revision history for this message
Micah Cowan (micahcowan) wrote :

Really? Hm. I've had huge success (finally) with this (now including the "Four by three" option). And yes, they'd be much smaller, due to lower framerate (which you may want to adjust to 30 in some circumstances), and lower resolution (to one supported by PSP).

I'm running the latest firmware on my PSP 3000, if that makes a difference...

Revision history for this message
Daniel G. Taylor (danielgtaylor) wrote :

When I was first researching the PSP options I noticed that each firmware version is a crapshoot about what formats, resolutions and features are supported. When testing video conversions please always update to the latest available firmware for your PSP and you'll have the best luck of getting it working.

I recently borrowed a PSP from a friend with a bunch of custom stuff on it and nothing seemed to work for me either. I don't know what the deal is but if someone figures out what works for most people I'll update the profiles (I don't actually own or care all too much about PSPs, so help is appreciated).

Revision history for this message
Micah Cowan (micahcowan) wrote : Re: [Bug 365514] Re: PSP preset doesn't work

Daniel G. Taylor wrote:
> When I was first researching the PSP options I noticed that each
> firmware version is a crapshoot about what formats, resolutions and
> features are supported. When testing video conversions please always
> update to the latest available firmware for your PSP and you'll have the
> best luck of getting it working.
>
> I recently borrowed a PSP from a friend with a bunch of custom stuff on
> it and nothing seemed to work for me either. I don't know what the deal
> is but if someone figures out what works for most people I'll update the
> profiles (I don't actually own or care all too much about PSPs, so help
> is appreciated).

I'm pretty sure 320x240 should work on all of them. Of course, that's
not particularly helpful when you have widescreen content. I don't know
if there's a widescreen geometry that works for most. I sure wish Sony
published this stuff in an easy-to-locate doc.

--
Micah J. Cowan
http://micah.cowan.name/

Revision history for this message
filsd (filsdd) wrote :

Hi Daniel,

I use HandBrake to make my encodings to PSP. The HandBrake profile attached is working great and does not bug (about 10 encodingd made, from various files). Maybe if you duplicate the settings you can solve this. I'm asking because HandBrake doenst "bake" .srt subtitles into the file, Arista does that nicely. =)

Can you look into it?

I have a fully updated PSP and can test this to help you out. =)

Thanks.

Revision history for this message
Daniel G. Taylor (danielgtaylor) wrote :

Can you please try to change 'ffmux_mp4' to 'ffmux_psp' in the PSP preset file and restart Arista? If the file produced by that fixes this issue I'd like to update the preset. It's hard for me to test as I no longer have a PSP.

Revision history for this message
filsd (filsdd) wrote :

I would like to. But where is the preset file? (I looked on .arista on the home and did not find it)
Thanks. =)

Revision history for this message
Daniel G. Taylor (danielgtaylor) wrote :

If installed system-wide it should be in /usr/share/arista/presets

Revision history for this message
filsd (filsdd) wrote :

Sorry for the delay.

I changed the preset and now Arista does nothing. It doesn't show the preview image, checking the system monitor shows that Arista is doing nothing (not consuming even one percent of CPU).

I have attached the preset I changed to see if its right.

Revision history for this message
Daniel G. Taylor (danielgtaylor) wrote :

Now I remember why I didn't use ffmux_psp... it dies with a floating point exception for whatever reason. I just tested GStreamer's latest release and their own internal libavcode/libavformat and we get the same issue. I'm not sure if Arista can output for the PSP until this gets fixed, unless there is a way to do it with the normal ffmux_mp4 or qtmux elements.

To see if this is even a viable path to take, could you try this:

ffmpeg -i myfile.foo -f psp test.mp4

You'd need to apt-get ffmpeg and run that, then see if it plays on your psp. It seems to force MPEG4 and AAC instead of H.264, so maybe there is hope yet of making this work using ffmux_mp4, faac, and xvidenc.

Revision history for this message
filsd (filsdd) wrote :

I can try that later Daniel.

Just to note: Handbrake uses "x264" as his main encoder and the PSP profile uses it as well. That must be why it works on HandBrake. See the release notes: http://handbrake.fr/ (as opposed to what they say, the PSP profile works well, I use it).

You probably already saw this, but just to be sure here is a link to the PSP manual: http://manuals.playstation.net/document/en/psp/current/video/filetypes.html > There they say that MP4 Simple profile (ACC) works and H.264/MPEG-4 AVC Main Profile (CABAC) (AAC) and Baseline Profile (AAC) works to.

Thanks.

Revision history for this message
Daniel G. Taylor (danielgtaylor) wrote :

Yeah, I've seen that before and I looked into ffmux_psp - in ffmpeg itself it does let you use libx264, it's just GStreamer that's wrong here. About the official docs: we _are_ doing exactly what it says. They don't specify exactly what features, sizes, rates, etc they support but we are definitely outputting H.264 Main (using CABAC) and AAC, just like the computer preset, the ipod preset, and a bunch of other ones.

I'm not sure what I can do to help here. Is there any chance you can go upstream to GStreamer and find out the exact elements they would use to transcode for your PSP?

Revision history for this message
DARKEASC (eascdrb) wrote :

Hi, i have the same error with arista so i used winff, and it didn't work until i recompile the x264 like here describes http://ubuntuforums.org/showthread.php?t=786095 and it works fine now.
There is the settings from winff that works for me, there is a way to make it works with arista?

PSP WIDESCREEN

ffmpeg -f mp4 -r 29.97 -vcodec libx264 -s 480x272 -aspect 16:9 -b 1250k -maxrate 4M -bufsize 4M -flags +loop -cmp +chroma -partitions +parti4x4+partp8x8+partb8x8 -me_method umh -subq 6 -trellis 1 -refs 2 -bf 1 -coder 1 -me_range 16 -g 300 -keyint_min 25 -sc_threshold 40 -i_qfactor 0.71 -bt 1250k -qcomp 0.6 -qmin 10 -qmax 51 -qdiff 4 -level 21 -acodec libfaac -ab 128k -ar 48000 -ac 2

PSP FULLSCREEN

ffmpeg -f mp4 -r 29.97 -vcodec libx264 -s 640x480 -aspect 4:3 -b 1250k -maxrate 4M -bufsize 4M -flags +loop -cmp +chroma -partitions +parti4x4+partp8x8+partb8x8 -me_method umh -subq 6 -trellis 1 -refs 2 -bf 1 -coder 1 -me_range 16 -g 300 -keyint_min 25 -sc_threshold 40 -i_qfactor 0.71 -bt 1250k -qcomp 0.6 -qmin 10 -qmax 51 -qdiff 4 -level 21 -acodec libfaac -ab 128k -ar 48000 -ac 2

Revision history for this message
cristianfere (cristianfere) wrote :

After many trials. I won!
Please try this preset and comment...

Or only changes the qtmux for ffmux_mp4 in psp.json...(ffmux_psp not work)

PSP-3000 firmware 5.03.

Changed in arista (Ubuntu):
assignee: nobody → Alessio Treglia (quadrispro)
Revision history for this message
Laurent Dinclaux (dreadlox) wrote :

It doesn't work on latest firmware, ffmux_psp gives an error when starting conversion

Revision history for this message
cristianfere (cristianfere) wrote :

@Lox try ffmux_mp4, or replace ~/.arista/presets/psp.json by the my previous post.

Revision history for this message
Laurent Dinclaux (dreadlox) wrote :

With ffmux_mp4, it says: imossible to read

Revision history for this message
cristianfere (cristianfere) wrote :

Gstreamer of maverick deprecated the muxer ffmux_mp4....in Lucid it works.
But on maverick has not found any solution yet

Revision history for this message
Alexander Thole (a.t) wrote :

Isn't there a possibility to use ffmpeg with the setting at #19 instead of ffmux_mp4?

Revision history for this message
Blas Castro (bcfernandez) wrote :

Hi all,

The previous psp.json file didn't work on my PSP slim when generating mp4 files from Ubuntu 10.10.
However I modified it a little bit and now it is working.

Take a look to the attached psp.json and let me know if it works for you also.

Revision history for this message
filsd (filsdd) wrote :

Huge thanks Blas Castro! Your "path" on the configuration file of the PSP works GREAT. I'm also running Ubuntu 10.10 64bits and my PSP is the 3000 with the latest firmware. =D
Thanks man!

Revision history for this message
H.R. ter Veer (legeregel) wrote :

Confirmed! The psp.tar.bz2 Blas Castro posted on #26 works for me too on Ubuntu 10.10

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.