Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion.

Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules.

 

Go Back   Doom9's Forum > Video Encoding > MPEG-4 AVC / H.264

Reply
 
Thread Tools Search this Thread Display Modes
Old 16th September 2005, 09:51   #1  |  Link
Gunhed
Registered User
 
Join Date: Jan 2002
Posts: 13
x264 and Sony PSP?

is there a way (maybe someone can give guide?) to get a working PSP-AVC from x264 or nero?

What settings should be used?
How to mux audio and video?

thx in advance
Gunhed is offline   Reply With Quote
Old 16th September 2005, 10:47   #2  |  Link
MuTeK
Registered User
 
Join Date: Sep 2004
Location: Russia
Posts: 77
MobileConvertor for SonPSP.
http://elecard.com/products/mobile_convert.shtml
MuTeK is offline   Reply With Quote
Old 16th September 2005, 11:14   #3  |  Link
bob0r
Pain and suffering
 
bob0r's Avatar
 
Join Date: Jul 2002
Posts: 1,337
http://x264.nl/psp/ (this link is really made for browing with your psp)

Grab: http://x264.nl/psp/x264-psp.exe (self extracting 7zip)

You basically just use the Default x264 settings.
But the PSP requires 15fps or 29.97 to run!

These few files allow you to simply encode with your .avs to a PSP compatible file (also the .mp4 file is edited else it won't play, Atomchanger, http://pspvideo9.com, does this)

readme.txt
Quote:
This is experimental version 0.00001 or 0.000001, and encodes with these x264 settings:
--progress --bitrate <bitrate here> --analyse p8x8,b8x8,i4x4 --output video.264 psp.avs (Default profile)


1: place your AAC file as audio.aac into the x264-psp dir
2: modify psp.avs, can be your own .avs <-- JUST READ THE NOTES in psp.avs!
3: place the latest x264.exe in the x264-psp dir
4: edit psp.bat and set the bitrate
5: run psp.bat
6: output file: MAQ00264.MP4 copy to PSP:\MP_ROOT\100ANV01\
psp.avs
Quote:
# ... your normal .avs contents here, just note:
# - AviSource("movie.avi", false, fourCC="XVID") - sample how to re-encode your divx/xvid movie to x264-psp
LanczosResize(368,208) # note the PSP resolution (this is widescreen), 320x240 for fullscreen
ChangeFPS(29.97) # note the FPS change to 29.97, needed for PSP AVC playback (remove when your video is already 29.97 FPS)
psp.bat
Quote:
start /belownormal /b /w x264.exe --progress --bitrate <bitrate> --analyse p8x8,b8x8,i4x4 --output video.264 psp.avs
start /belownormal /b /w MP4Box.exe -fps 29.97 -add video.264 output.mp4
start /belownormal /b /w MP4Box.exe -fps 29.97 -add audio.aac output.mp4
start /belownormal /b /w ATOMChanger.exe output.mp4 MAQ00264.MP4 AtomAVC.ini
This is all very basic, but works fine.
If you have used megui with the latest mp4box to create your AAC file in the .mp4 container, you can just do: MP4Box.exe -fps 29.97 -add video.264 megui_audio.mp4 and remove the add audio part!
bob0r is offline   Reply With Quote
Old 16th September 2005, 12:25   #4  |  Link
Gunhed
Registered User
 
Join Date: Jan 2002
Posts: 13
@MuTeK thx for the link

@bob0r Thx for the very quick answer and for this very fine guide....I am on for testing

Gunhed is offline   Reply With Quote
Old 16th September 2005, 15:01   #5  |  Link
Gunhed
Registered User
 
Join Date: Jan 2002
Posts: 13
hmmm

with every encoding done that way my PSP locks up and I have to push the power button for several seconds...

could someone give me a hint?

I used x264 v291 and v292 ... always the same...
Gunhed is offline   Reply With Quote
Old 16th September 2005, 18:03   #6  |  Link
bob0r
Pain and suffering
 
bob0r's Avatar
 
Join Date: Jul 2002
Posts: 1,337
Quote:
Originally Posted by Gunhed
hmmm

with every encoding done that way my PSP locks up and I have to push the power button for several seconds...

could someone give me a hint?

I used x264 v291 and v292 ... always the same...
What is your PSP Firmware?
Post your .avs file if used
Post your x264.exe settings
Is the video 29.97 FPS?

New to try:
Your audio file, is it AAC LC? <-- i forgot to mention but your PSP AAC LC file MUST BE 48KHz (48000Hz) (sorry will update it in readme.txt and psp.avs later )
bob0r is offline   Reply With Quote
Old 17th September 2005, 06:54   #7  |  Link
Gunhed
Registered User
 
Join Date: Jan 2002
Posts: 13
Thx for your info

you were right.....the audio was my problem...
I used MeGUI before...

I converted the audio again with belightgui ... selected the aac-lc profile and now it works

many thx

Gunhed is offline   Reply With Quote
Old 19th September 2005, 13:57   #8  |  Link
mgillespie
Registered User
 
Join Date: Aug 2005
Posts: 5
Am playing with this now, as there are some DVD's I am trying to convert, that suffer from lipsync issues, when I use my previous tool (PSPVideo9).

I have my VOB files on my HDD, and using MeGUI, and x264 (latest). My avisynth script is as follows:

Quote:
DirectShowSource("I:\Ripped\Pheonix Nights S1\VTS_02_1.VOB")
LanczosResize(368,208)
ChangeFPS(29.97)
ConvertToYV12()
My meGUI profile is as follows:

Quote:
<?xml version="1.0"?>
<VideoProfile xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<Name>PSP2</Name>
<Settings xsi:type="x264Settings">
<EncodingMode>4</EncodingMode>
<BitrateQuantizer>448</BitrateQuantizer>
<KeyframeInterval>700</KeyframeInterval>
<NbBframes>0</NbBframes>
<MinQuantizer>10</MinQuantizer>
<MaxQuantizer>51</MaxQuantizer>
<SARX>4</SARX>
<SARY>3</SARY>
<Turbo>false</Turbo>
<V4MV>false</V4MV>
<QPel>false</QPel>
<Trellis>false</Trellis>
<CreditsQuantizer>40</CreditsQuantizer>
<FourCCs>
<string>VSSH</string>
<string>x264</string>
<string>avc1</string>
</FourCCs>
<Logfile>2pass.log</Logfile>
<CustomEncoderOptions />
<FourCC>0</FourCC>
<Zones />
<NbRefFrames>3</NbRefFrames>
<AlphaDeblock>2</AlphaDeblock>
<BetaDeblock>2</BetaDeblock>
<SubPelRefinement>6</SubPelRefinement>
<MaxQuantDelta>1</MaxQuantDelta>
<TempQuantBlur>0</TempQuantBlur>
<BframePredictionMode>2</BframePredictionMode>
<VBVBufferSize>-1</VBVBufferSize>
<VBVMaxBitrate>-1</VBVMaxBitrate>
<METype>2</METype>
<MERange>16</MERange>
<NbThreads>1</NbThreads>
<MinGOPSize>25</MinGOPSize>
<Profile>1</Profile>
<IPFactor>1.4</IPFactor>
<PBFactor>1.3</PBFactor>
<ChromaQPOffset>0</ChromaQPOffset>
<VBVInitialBuffer>0.9</VBVInitialBuffer>
<BitrateVariance>25.0</BitrateVariance>
<QuantCompression>0.6</QuantCompression>
<TempComplexityBlur>20</TempComplexityBlur>
<TempQuanBlurCC>0.5</TempQuanBlurCC>
<SCDSensitivity>40</SCDSensitivity>
<BframeBias>0</BframeBias>
<Deblock>true</Deblock>
<Cabac>true</Cabac>
<WeightedBPrediction>false</WeightedBPrediction>
<AdaptiveBFrames>false</AdaptiveBFrames>
<BFramePyramid>false</BFramePyramid>
<ChromaME>false</ChromaME>
<P8x8mv>true</P8x8mv>
<B8x8mv>true</B8x8mv>
<I4x4mv>true</I4x4mv>
<I8x8mv>false</I8x8mv>
<P4x4mv>true</P4x4mv>
<AdaptiveDCT>false</AdaptiveDCT>
<Lossless>false</Lossless>
<QuantizerMatrix />
<QuantizerMatrixType>0</QuantizerMatrixType>
</Settings>
</VideoProfile>

I run the resulting file through AtomChanger, and it reports to have changed the atom. The resulting file appears to be unplayable. VideoLAN crashes, Quicktime 7 does not play it, PSP says it's corrupted. I have tried the unAtomchanged version, with the same results (so it's not that).

What is slightly confusing, some peiple seem to be splitting the audio and then encoding the video and audio seperately, and then re-joining, I am not doing this (reading from the VOB), is this my problem???
mgillespie is offline   Reply With Quote
Old 19th September 2005, 20:16   #9  |  Link
Gunhed
Registered User
 
Join Date: Jan 2002
Posts: 13
yes you have to split it.

convert the video with x264 and the audio with besweet...then join them with mp4mux as bob0r said.

I use x264 now to 2pass my Video files... nice quality on the PSP
Gunhed is offline   Reply With Quote
Old 19th September 2005, 21:37   #10  |  Link
Doom9
clueless n00b
 
Join Date: Oct 2001
Location: somewhere over the rainbow
Posts: 10,570
is there a complete set of video and audio specs for the PSP all in one place? I should be getting one by the end of the week so I might add a flag to the settings that disabled non PSP compliant options / enforces them (I'm not fully decided on how to implement it yet) in MeGUI.
Also one thing, what do you guys do with 25fps content if the PSP can only handle 29.97fps?
__________________
For the web's most comprehensive collection of DVD backup guides go to www.doom9.org
Doom9 is offline   Reply With Quote
Old 19th September 2005, 23:20   #11  |  Link
Gunhed
Registered User
 
Join Date: Jan 2002
Posts: 13
we have to use ChangeFPS(29.97) in our avs script.
Gunhed is offline   Reply With Quote
Old 19th September 2005, 23:57   #12  |  Link
bob0r
Pain and suffering
 
bob0r's Avatar
 
Join Date: Jul 2002
Posts: 1,337
Quote:
DirectShowSource("I:\Ripped\Pheonix Nights S1\VTS_02_1.VOB")
LanczosResize(368,208)
ChangeFPS(29.97)
ConvertToYV12()
Why ConvertToYV12() ??? (never used it, for all the samples i tried)
bob0r is offline   Reply With Quote
Old 20th September 2005, 05:19   #13  |  Link
Scarpad
Registered User
 
Join Date: Jan 2003
Posts: 196
Has anyone written a Guide to follow using this method? Especially in the area of using the synth script ?
Scarpad is offline   Reply With Quote
Old 20th September 2005, 08:05   #14  |  Link
Doom9
clueless n00b
 
Join Date: Oct 2001
Location: somewhere over the rainbow
Posts: 10,570
uhh.. but ChangeFPS only takes care of the video so you'll end up having an audio problem, won't you? Wouldn't you have to perform a proper PAL -> NTSC conversion, including slowing down, pulldown and stretching the audio to make it work properly?
__________________
For the web's most comprehensive collection of DVD backup guides go to www.doom9.org
Doom9 is offline   Reply With Quote
Old 20th September 2005, 10:01   #15  |  Link
bill_baroud
Registered User
 
Join Date: Feb 2002
Posts: 407
Quote:
ChangeFPS changes the frame rate by deleting or duplicating frames.
Looks like it doesn't change the video duration, so audio should mostly be in sync, no ?
bill_baroud is offline   Reply With Quote
Old 20th September 2005, 10:27   #16  |  Link
Doom9
clueless n00b
 
Join Date: Oct 2001
Location: somewhere over the rainbow
Posts: 10,570
eww.. duplicating frames? EWWWWWW, evil, bad, nasty, ugly, °@°#§°@#§°#@§
__________________
For the web's most comprehensive collection of DVD backup guides go to www.doom9.org
Doom9 is offline   Reply With Quote
Old 20th September 2005, 10:34   #17  |  Link
bob0r
Pain and suffering
 
bob0r's Avatar
 
Join Date: Jul 2002
Posts: 1,337
Quote:
Originally Posted by Doom9
eww.. duplicating frames? EWWWWWW, evil, bad, nasty, ugly, °@°#§°@#§°#@§
Welcome to Sony's world
bob0r is offline   Reply With Quote
Old 20th September 2005, 12:51   #18  |  Link
jonny
Registered User
 
jonny's Avatar
 
Join Date: Feb 2002
Location: Italy
Posts: 876
there is also ConvertFPS (yuy2 only)
it will blend adjacent video frames, the video is smooth (compared to ChangeFPS), but there is some ghosting and lower compressibility

PSP also support 14.985
jonny is offline   Reply With Quote
Old 20th September 2005, 13:52   #19  |  Link
Doom9
clueless n00b
 
Join Date: Oct 2001
Location: somewhere over the rainbow
Posts: 10,570
so basically the only proper way to do it is a proper format conversion. How do other psp encoders handle this? It might give me a movitational boost if I were the only one to do it right, but if there's plenty of tools already I don't see the point in spending a lot of time for a really small audience.
__________________
For the web's most comprehensive collection of DVD backup guides go to www.doom9.org
Doom9 is offline   Reply With Quote
Old 20th September 2005, 16:13   #20  |  Link
bill_baroud
Registered User
 
Join Date: Feb 2002
Posts: 407
I don't think i'm the most aware (JCVD style ), but seeing all those big company crap or the "total l33t enl4rgement m3gA s0ftW4rE" out there for PSP, i don't think any of them have bothered to deal properly with this.
A clean Doom9 solution would be a Good Thing™ imho.
bill_baroud is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 12:46.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2017, vBulletin Solutions Inc.