View Full Version : x264 and Sony PSP?
Gunhed
16th September 2005, 09:51
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 ;)
MuTeK
16th September 2005, 10:47
MobileConvertor for SonPSP.
http://elecard.com/products/mobile_convert.shtml
bob0r
16th September 2005, 11:14
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
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
# ... 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
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!
Gunhed
16th September 2005, 12:25
@MuTeK thx for the link
@bob0r Thx for the very quick answer and for this very fine guide....I am on for testing ;)
:thanks:
Gunhed
16th September 2005, 15:01
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...
bob0r
16th September 2005, 18:03
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 :o)
Gunhed
17th September 2005, 06:54
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 ;)
:thanks:
mgillespie
19th September 2005, 13:57
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:
DirectShowSource("I:\Ripped\Pheonix Nights S1\VTS_02_1.VOB")
LanczosResize(368,208)
ChangeFPS(29.97)
ConvertToYV12()
My meGUI profile is as follows:
<?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???
Gunhed
19th September 2005, 20:16
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 :devil:
Doom9
19th September 2005, 21:37
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?
Gunhed
19th September 2005, 23:20
we have to use ChangeFPS(29.97) in our avs script.
bob0r
19th September 2005, 23:57
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)
Scarpad
20th September 2005, 05:19
Has anyone written a Guide to follow using this method? Especially in the area of using the synth script ?
Doom9
20th September 2005, 08:05
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?
bill_baroud
20th September 2005, 10:01
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 ?
Doom9
20th September 2005, 10:27
eww.. duplicating frames? EWWWWWW, evil, bad, nasty, ugly, °@°#§°@#§°#@§
bob0r
20th September 2005, 10:34
eww.. duplicating frames? EWWWWWW, evil, bad, nasty, ugly, °@°#§°@#§°#@§
Welcome to Sony's world :devil:
jonny
20th September 2005, 12:51
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 :D
Doom9
20th September 2005, 13:52
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.
bill_baroud
20th September 2005, 16:13
I don't think i'm the most aware (JCVD style :D), 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.
Scarpad
20th September 2005, 16:18
The Locked Framerate is the PSP's main nemesis, even the capped resolution limit of 76000 pixels would look ok on it's screen if it offered 23.97 compatibility. The 29.97 setting causes red colored fringing around the image and a certain ghosting element. This is less noticible in AVC but it's still there. I'm not sure if there's a solution short of a firmware change that removes the limitation. The results are not terrible, but the screen could do better.
jonny
20th September 2005, 16:21
I use ConvertFPS or ChangeFPS via AviSynth.
From what i see PSP Video 9 (and all the other tools based on FFMPEG) let FFMPEG doing the conversion (maybe i'm wrong but seems to me something similar to ChangeFPS).
I'm a noob on framerate conversions, is there a better way to convert progressive 25fps (or 23.976fps) to progressive 29.97fps (so without getting some interlaced frames or blending or duplicated frames)?
Scarpad
20th September 2005, 21:22
29.97 is what the Framrate needs to be I'm not sure what the ChangeFPS setting would accomplish
jonny
20th September 2005, 21:26
little OT
i've tryed PerfectMotion ( http://www.goodervideo.com/index.html )
it generates frames! quite amazing, and seems there are no big artifacts
(but it's not free, slow and pratically not usable without a big HD)
AnimeTheme
20th September 2005, 22:30
I have been using x264 to encode AVC movies for my PSP for long, but this little x264-psp package should still help most starters I suppose, heh.
Note that PSP does support 30fps as well. So there is no need to change 30fps video to 29.97fps.
What a pity that, it seems even by using the latest version of x264 and mp4box, the annoying "sticky frame" problem (2 frames skipped just before an I-frame) still presists. This problem may not be that noticeable sometimes though, depending on the motion nature of the movie, and how often and when an I-frame is used.
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.
The only FREE PSP AVC encoder out there is PSP Video 9. It does a pretty good job on format conversion, since it is FFMPEG-based. However, I suppose using x264 "wrapped" inside FFMPEG should have some limtations, and probably may not work as well as using x264 directly. The most obvious problem is that PSP Video 9 does NOT (and probably will NOT) support AVC 2-pass encoding, simply because FFMPEG itself does not support this feature.
Gunhed
21st September 2005, 07:34
However, I suppose using x264 "wrapped" inside FFMPEG should have some limtations, and probably may not work as well as using x264 directly. The most obvious problem is that PSP Video 9 does NOT (and probably will NOT) support AVC 2-pass encoding, simply because FFMPEG itself does not support this feature.
Thats why I wanted to use x264 directly! ;)
Scarpad
21st September 2005, 16:38
I have been using x264 to encode AVC movies for my PSP for long, but this little x264-psp package should still help most starters I suppose, heh.
Note that PSP does support 30fps as well. So there is no need to change 30fps video to 29.97fps.
What a pity that, it seems even by using the latest version of x264 and mp4box, the annoying "sticky frame" problem (2 frames skipped just before an I-frame) still presists. This problem may not be that noticeable sometimes though, depending on the motion nature of the movie, and how often and when an I-frame is used.
The only FREE PSP AVC encoder out there is PSP Video 9. It does a pretty good job on format conversion, since it is FFMPEG-based. However, I suppose using x264 "wrapped" inside FFMPEG should have some limtations, and probably may not work as well as using x264 directly. The most obvious problem is that PSP Video 9 does NOT (and probably will NOT) support AVC 2-pass encoding, simply because FFMPEG itself does not support this feature.
Anime do have a guide available to walkthru x264 conversions
Doom9
21st September 2005, 18:29
is the video progressive or interlaced?
turning 25fps progressive into 29.97 i with 3:2 pulldown, while annoying, certainly is doable, but 29.97 progressive? sure you could pulldown then deinterlace but that's kinda pointless.
jonny
21st September 2005, 20:51
video must be progressive, interlaced material is show on PSP like on a PC monitor (and i don't think you can set an "interlaced flag" in the mp4 file and expect the PSP doing deinterlacing in realtime)
sure you could pulldown then deinterlace but that's kinda pointless.
yep probably you'll obtain something like ConvertFPS
29.97 is quite annoying :devil:
sony take care of us :sly:
Doom9
21st September 2005, 21:28
I guess I gotta write a pretty destructive review of that device once I get it. Handheld console seen from a video enthusiast's point of view, that ought to be more interesting than the usual raving. With game prices higher than PC prices (even though PC games are harder to develop because they have to work on a gazillion different PCs and not just a simple platform), UMD discs that cannot be copied and are more expensive than DVDs, the company that once sold us MiniDisc recorders as complements for our audio CD now not doing the same for video, there's tons of things that are wrong about this. I know why I like my PC, and why my one and only non portable console was only interesting for about 3 weeks (then I got a PC and I haven't looked back since, and I'll be laughing at people spending money on the new XBox or PS3 as two months later the next gen PC GFX card is going to blow them to pieces).
tintin1001
21st September 2005, 23:10
I guess I gotta write a pretty destructive review of that device once I get it. Handheld console seen from a video enthusiast's point of view, that ought to be more interesting than the usual raving. With game prices higher than PC prices (even though PC games are harder to develop because they have to work on a gazillion different PCs and not just a simple platform), UMD discs that cannot be copied and are more expensive than DVDs, the company that once sold us MiniDisc recorders as complements for our audio CD now not doing the same for video, there's tons of things that are wrong about this. I know why I like my PC, and why my one and only non portable console was only interesting for about 3 weeks (then I got a PC and I haven't looked back since, and I'll be laughing at people spending money on the new XBox or PS3 as two months later the next gen PC GFX card is going to blow them to pieces).
How about testing the device and form an opinion once you get it?
As a handheld device seen from a "video enthusiast's point of view" i can easily say that it's number one, even given the stupid limits and flaws that Sony more or less made by choice. UMD movies looks pretty impressive (no i wouldn't buy one because i can buy a DVD instead and convert it to "almost" UMD quality) but from a pure "video enthusiast's point of view" nothing comes to mind that beats this handheld device when it plays UMD, and i can't think of anything that beats it when it plays it's nerf'd AVC format either.
And your PC vs Console comments are not something i would expect from someone whos insightfull writing and sharp opinions has impressed me constantly since you launched this site. They are so short sighted and one sighted that it reminds me of MPAA and RIAA arguments :-)
The console owns the gaming market for many reasons, but some of the exact reasons you mention as a plus for PC's are the exact reason why people by Consoles. Who wants to pay 500$ for the best graphics card? who wants to constantly upgrade their computer to play 50$ games? And who wants to fight Microsoft software,drivers and copyprotection in order to play a game you BOUGHT, not that many actually, we/they are a rare breed. Console owners insert the disc and plays.
And even today old consoles with 32/64 mb memory still deliveres impressive games that more than often leaves PC games in the dust, i wouldn't live without my PC but i sure as hell couldn't say no to the fantastic games my consoles give me.
And now to the important part, there isn't any really good software solutions for DVD to PSP conversion. PSPVIDEO9 is nice, but not nearly good enough, not enough control over sharpness colors etc, and the DVD conversion sucks. The best seems to be Nero Recode but it doesn't support PSP AVC, and it's expensive.
I've been checking doom9 for the solution ever since i got mine PSP, after all this is the place where video enthusiast's go when they wonna have fun.
Synergy37
21st September 2005, 23:48
Doom9 here are basic specs that need to be filled in order for the movie to play on the PSP.
Resolution pixels < or = to 76800
Resolution must be in multiples of 16
29.97 FPS
AVC can only be played when it goes through atomchanger
That is really it. It is basically a normal AVC that just needs to go through atomchanger.
Gunhed
22nd September 2005, 07:12
I convert with the following avs
AVI-Source
AVISource("file.avi")
Tweak(sat=1.2)
Lanczos4Resize(368,208)
Sharpen(0.3)
ChangeFPS(29.97)
DVD Interlaced
LoadPlugin("dgdecode.dll")
LoadPlugin("decomb.dll")
mpeg2source("video.d2v")
FieldDeinterlace(blend=false)
Tweak(sat=1.2)
Lanczos4Resize(368,208)
Sharpen(0.3)
ChangeFPS(29.97)
DVD Progressive
LoadPlugin("dgdecode.dll")
mpeg2source("video.d2v")
Tweak(sat=1.2)
Lanczos4Resize(368,208)
Sharpen(0.3)
ChangeFPS(29.97)
-------------------------
Tweak(sat=1.2) is for more vivid colors and Sharpen(0.3) to get a bit more details...otherwise the picture is too blurry....in my opinion
any suggestions?
Doom9
22nd September 2005, 07:26
@tintin1001: It's not a smart thing to argue with the admin of a board if your points don't live up to the expectations. For instance, you can play AVC on a pocket PC, without any of the limitations of the PSP. You are also not restricted to use Sony sanctioned memory sticks, Pocket PCs often offer even two means of storage extension, both of them both cheaper than Sony's memory stick, and offering a higher maximum capacity (I'm talking about CF and SD), and that have the additional benefit that you can also use them in most of today's digital cameras (CF used to be pretty much the standard but now I'm seeing some convergence towards SD, probably due to size constraints). The PSP has the capability screen and processor wise to beat everything there is hands down, but Sony crippled it. This is even more frustrating than if the device actually had the limitations they placed upon external content, but I'm quite convinced playing 24 or 25fps content would be no problem, and neither would using the full screen resolution, or using specs compliant container for that matter rather than some perversion of the specs along with filenames that make no sense. Strip away all the nonsense limitations, kick out the stupid memory stick for SD, and you'd have a kickass video player, but as it is now, it's a disgrace.. all that potential going to waste.
And your PC vs Console comments are not something i would expect from someone whos insightfull writing and sharp opinions has impressed me constantly since you launched this site. They are so short sighted and one sighted that it reminds me of MPAA and RIAA arguments :-)Are you trying to get striked? Everything I said is true and has been proven over and over again. Your points about price are well taken and just as true, but the two do not conflict in any way or form.
And who wants to fight Microsoft software,drivers and copyprotection in order to play a game you BOUGHT, not that many actually, we/they are a rare breed. Console owners insert the disc and plays.The Xbox would be Microsoft, too ;) And copy protection? Give me a break.. consoles are protected up the Himalayas and people actually get sentenced to stiff fees for unlocking consoles.. imagine prison for somebody who buys a PC game in the US to play it in Europe (oh wait, you can't that because of region codes). You actually need to open up your console and start soldering in many instances to get around copy protection.. on a PC you fire up CloneCD and that's that.
jonny
22nd September 2005, 08:41
I can add this to the "specs" (i hope is valid for firmware < 2.0 only):
Using mpeg4 sp (i can't check for avc):
witdh = 208 | 336 | 464 gives artifacts and are not usable
height = 272 basically smash the bottom of the picture
i've forgot to mention that the PSP's resizer s***s
we shouldn't forget bugs when we talk about limitations :D
tintin1001
22nd September 2005, 10:25
PM instead of derailing the thread.
bob0r
22nd September 2005, 18:56
It seems PSP can play 25fps just fine, the problem is just you HAVE to set the 29.97fps(or other compatible fps) flag for the .mp4 file(which then causes desynced audio).
if you can set 14.x and 15, 29.x and 30 fps, just like 48000Hz audio, it surely is true the PSP is limited only by cheap number limitations, and not by its contents.
Doom9
22nd September 2005, 19:36
the biggest problem with the PSP imho is that with all the raving reviews, nobody bothered to properly check out the video capabilities and call Sony on their BS. The PSP technically is the Ferrari of pocket fitting portable media players, but Sony artificially crippled it (framerate, resolution, not specs compliant and last but not least picking an expensive and size limited expansion module technology (to use Steve Job's words: this is greedy, they obviously make money off licensing fees with Memory Stick)) and turned it into a Fiat 500 when playback of your own content is concerned. It could do so much better, all the components are there, and Sony already unlocked AVC on memory stick, so it's all corporate policy. Sony, unlock the darned thing, we want our high resolution AVC at proper framerates!! (yes, we, I got mine today)
jonny
22nd September 2005, 20:25
average people will think they need to buy UMDs to tecnically unlock the full power.
a little voice on my left ear keep telling me: buy... buy... buy... buy...
another voice (this is more far) tell me on the right: palladium... (also subtitles! but are not so readable: "?maybe a way to turn your pc to a console?")
sorry, i love to go a little ot ... ;)
Gunhed
23rd September 2005, 13:25
Sony, unlock the darned thing, we want our high resolution AVC at proper framerates!! (yes, we, I got mine today)
Congratulations :p
I love my PSP :D
Sharktooth
23rd September 2005, 13:30
PSP = Portable Shit Player... :D
however sony told us the console capabilities from the beginning and all customers knew them before buying their PSP.
So IMHO we shouldnt blame sony for not giving us what we want, but we should blame ourselves coz we bought a product in the hope it could be what we wanted it to be, but it's obviously not... and we knew it before buying it...
Sirber
23rd September 2005, 13:35
Well, I was more foolish than you and I bought a DS :(
Thank g*d I got rid of it :D
Doom9
23rd September 2005, 14:02
well, Sony already unlocked AVC playback on the memory stick, so those that bought a v1.0 PSP already got more from the getgo, and show me an official Sony spec sheet when it comes to video... third parties had to figure this out.
Sharktooth
23rd September 2005, 16:38
Well they never stated the PSP would have been able to open and playback AVC in standard mp4 container. They also never stated the PSP would had a full and unlimited AVC playback with no restrictions.
Sony, as every major company, have experince in advertising products but what they did was obviously a marketing move.
Customers (including me) should learn to not trust anyone when buying a product but only multiple and unbiased reviews.
AnimeTheme
24th September 2005, 14:17
We all know Sony is losing money on every PSP they sell. Right now they rely solely on the sales of UMDs to cover the cost and earn money. So from their perspective, it is quite understandable why they would impose restrictions on the Memory Stick movie playback. Unrestricted playback of Memory Stick movies will obviously affect the sales of UMD movies, and there will be people who buy PSP mainly (or solely) for the movie playback capabilities, and in such case, their game sales will be affected as well. You want unrestricted AV playback on PSP at the first hand? Sure, but you need to expect a much more expensive PSP, to a point where Sony loses nothing or even earns money for every PSP they sell.
I think eventually the current restrictions on Memory Stick movie playback will be gone. Starting from 2.0, they allow AVC on Memory Stick. The next step will probably be flexible frame rate support. As the cost of manufacturing PSP drops, eventually they may even allow full-resolution AV playback on Memory Stick.
jonny
24th September 2005, 15:28
yep probably it's only a question of time (and hackers may be faster than sony on unlocking fullres)
qyqgpower
24th September 2005, 16:57
the frame skip problem is even more serious on nero avc encoded files(1 ref, all additional option off), only Elecard and SONY IC2+'s file is not sufferd from the problem(and both encoder results low quality pictures), i really curious that why x264 and nero produced MP4 would get frame skip when played on PSP.
azsd
25th September 2005, 09:06
have you tried remux the x264/nero avc files using elecard muxer?
I think Large GOP size can't really solved this problem
- only Main Profile
- only cabac
- max 3 reference frame
- no weighted (bi)prediction
- no reordered frames (b-pyramid)
- no multiple slices
nrx][Natas
25th September 2005, 16:41
Hi,
a few days ago i tried to convert one of my PAL DVDs. I used ChangeFPS in my AviSynth Script. The first pass was encoded with normal speed, 27.xx fps but the second only with 1.xx fps. 14 hours for the second pass is long.:D Is that normal?!? I never had to change the framerate before.
thx
bill_baroud
26th September 2005, 10:40
rofl :D
Encoding speed has nothing to do with the actual speed of the video ;)
X264 is just a slow codec, if you have a not so fast processor (like 2ghz) 14h for the 2nd pass is just standard...
nrx][Natas
26th September 2005, 11:01
Okay...than there is something wrong. :) I have an Athlon XP 3200+. Realtime encoding or even more is no problem with a resolution suitable for the PSP or even PocketPC. But if i change the FPS of the video, it's getting very slow.
I'm not new to this stuff but i never had to change the framerate before, that's why i ask. I was surprised. :D
Scarpad
26th September 2005, 13:23
@tintin1001: It's not a smart thing to argue with the admin of a board if your points don't live up to the expectations. For instance, you can play AVC on a pocket PC, without any of the limitations of the PSP. You are also not restricted to use Sony sanctioned memory sticks, Pocket PCs often offer even two means of storage extension, both of them both cheaper than Sony's memory stick, and offering a higher maximum capacity (I'm talking about CF and SD), and that have the additional benefit that you can also use them in most of today's digital cameras (CF used to be pretty much the standard but now I'm seeing some convergence towards SD, probably due to size constraints). The PSP has the capability screen and processor wise to beat everything there is hands down, but Sony crippled it. This is even more frustrating than if the device actually had the limitations they placed upon external content, but I'm quite convinced playing 24 or 25fps content would be no problem, and neither would using the full screen resolution, or using specs compliant container for that matter rather than some perversion of the specs along with filenames that make no sense. Strip away all the nonsense limitations, kick out the stupid memory stick for SD, and you'd have a kickass video player, but as it is now, it's a disgrace.. all that potential going to waste.
Are you trying to get striked? Everything I said is true and has been proven over and over again. Your points about price are well taken and just as true, but the two do not conflict in any way or form.
The Xbox would be Microsoft, too ;) And copy protection? Give me a break.. consoles are protected up the Himalayas and people actually get sentenced to stiff fees for unlocking consoles.. imagine prison for somebody who buys a PC game in the US to play it in Europe (oh wait, you can't that because of region codes). You actually need to open up your console and start soldering in many instances to get around copy protection.. on a PC you fire up CloneCD and that's that.
I own a Pocket PC and am unaware of a program that plays AVC content, TCMP formally Betaplayer is probably the best PPC Player and it does not support AVC. And even on my Axim 30 with 624 Mhz processor, Playback on Nero's really bad Showtime PPC version of it's AVC format leads to a slideshow like presentation.
Scarpad
26th September 2005, 13:26
the biggest problem with the PSP imho is that with all the raving reviews, nobody bothered to properly check out the video capabilities and call Sony on their BS. The PSP technically is the Ferrari of pocket fitting portable media players, but Sony artificially crippled it (framerate, resolution, not specs compliant and last but not least picking an expensive and size limited expansion module technology (to use Steve Job's words: this is greedy, they obviously make money off licensing fees with Memory Stick)) and turned it into a Fiat 500 when playback of your own content is concerned. It could do so much better, all the components are there, and Sony already unlocked AVC on memory stick, so it's all corporate policy. Sony, unlock the darned thing, we want our high resolution AVC at proper framerates!! (yes, we, I got mine today)
Actually Demand helps to drop prices. Memory stick prices are falling since the PSP came out. Also UMD prices are falling and it's commonplace for a new title to be on sale with it's DVD Counterpart, the Longest Yard was an example on sale last week for $14.95. Also a Used market is croping up. I picked up SWAT this week for $7.50 used.
Scarpad
26th September 2005, 13:32
PSP = Portable Shit Player... :D
however sony told us the console capabilities from the beginning and all customers knew them before buying their PSP.
So IMHO we shouldnt blame sony for not giving us what we want, but we should blame ourselves coz we bought a product in the hope it could be what we wanted it to be, but it's obviously not... and we knew it before buying it...
PMP's are just starting to come into their own so something to pass up the PSP is going to be released. From My reading of the reviews so Far Creative's Zen Vision has a nice albeit Non Widescreen 640x480 screen on it with a 30 meg drive and Xvid and Divx capabilities for $399. And Archos AV500 has a PSP resolution Screen but is more expensive. The PSP if we can get past the Memory stick limitations would be nice if a 4 meg Storage card could come out cheaply. It's still the most inexpensive solution. I dig UMD videos and if Demand can force the Prices under $10 I'm cool with that. Still I own 1200 DVD's and if I could get my own on there with good results I would love it.
THe problem with most encoders out there right now is that there's not a "Gordian Knot" of the PSP world that allows more control. Also most of the encoders User FFmpeg with less than steller results. I'd like an encoder built around X264, especially built for the tweaker.
nrx][Natas
26th September 2005, 13:45
I own a Pocket PC and am unaware of a program that plays AVC content, TCMP formally Betaplayer is probably the best PPC Player and it does not support AVC. And even on my Axim 30 with 624 Mhz processor, Playback on Nero's really bad Showtime PPC version of it's AVC format leads to a slideshow like presentation.
It works with my Axim X30 an TCPMP but you need the AAC plugin from RareWares, too. But as you said, it's like a slideshow and the processor is working at 624 Mhz.
nrx][Natas
26th September 2005, 13:48
[Natas']Okay...than there is something wrong...
I'm encoding Scrubs S01E01 PAL right now .It starts with 30 fps and now after 30% it's encoding with 14.7 fps and it's getting slower and slower... :confused:
AnimeTheme
28th September 2005, 16:03
have you tried remux the x264/nero avc files using elecard muxer?
I think Large GOP size can't really solved this problem
Large GOP size definitely doesn't solve the problem. You just see sticky frames less often.
Elecard muxer doesn't work on my PC as I don't have enough components to run it. If someone has this muxer working, please try and let us know if this will help solve the sticky frame problem.
azsd
29th September 2005, 10:33
install Elecard Mobile Converter 1.0 then connect like this:
http://my1993.com/PpsDES/Cap/pspencode/remux_nero_256c.png
AnimeTheme
29th September 2005, 22:49
install Elecard Mobile Converter 1.0 then connect like this:
I use your suggested setup... but it doesn't solve the frame skip problem. I use a x264-encoded file (muxed with MP4BOX) as source, and then remuxed with Elecard muxer. The resulting file plays on PSP at like HALF frame rate (choppy), and the frame skip problem is still there at all I-frame.
Did you try remuxing movies for PSP using Elecard muxer? What was your result?
nrx][Natas
5th October 2005, 15:58
Hi,
i still have the framerate problem. So I tryed the same thing with DivX6. With DivX6 I have no problem with encoding speed of the second pass. 20 - 30 fps. But x264 is getting slower and slower during the second pass. Any idea?
thx
ChronoCross
5th October 2005, 16:39
[Natas']Hi,
i still have the framerate problem. So I tryed the same thing with DivX6. With DivX6 I have no problem with encoding speed of the second pass. 20 - 30 fps. But x264 is getting slower and slower during the second pass. Any idea?
thx
your computer is slow. x164 encoding s slow because the settings are much more complex than divx6 or xvid. Therefore the encoding will naturally be slower.
encoding speed has nothing to do with framerate(although increasing the framerate increases the number of frames processed requiring more time but doesn't change the fps of the encoding process.) The speed should be unaffected whether the clip is 23fps or 120fps.
nrx][Natas
5th October 2005, 19:57
your computer is slow. x164 encoding s slow because the settings are much more complex than divx6 or xvid. Therefore the encoding will naturally be slower.
encoding speed has nothing to do with framerate(although increasing the framerate increases the number of frames processed requiring more time but doesn't change the fps of the encoding process.) The speed should be unaffected whether the clip is 23fps or 120fps.
To make it short - my computer is not slow. :) I have an Athlon XP 3200+ 1GB Ram, should by enough.
I know that x264 encoding is slow but not with resolution suitable for PSP. Without frameconversion i can encode with 20-30 fps in both passes. With conversion it starts with 20-30 fps and ends after hours with 1 or less fps. That's the problem. If it would be constantly slow, ok. But it is not. I use Animatrix - Final Flight of the Osiris (16 min PAL, 25 FPS) for my tests.
As i said, DivX6 works and i know DivX not an MPEG4-AVC codec. :)
I'm german. Perhaps i have some problems to explain my what i want. :)
DeathTheSheep
5th October 2005, 22:18
A lot of PPC talk here.
It works with my Axim X30 an TCPMP but you need the AAC plugin from RareWares, too. But as you said, it's like a slideshow and the processor is working at 624 Mhz.
Do not judge the PPC's AVC decoding potential based on this!!
TCPMP is currently not optimized for AVC playback. The ffmpeg plugin as a whole is also not optimized nearly to the extent that is the ASP decoder. Work is in progress on a decent AVC decoder, but if you don't have a GPU, you might still be lagging slightly at full resolution, full framerate AVC playback.
Ever try to play XviD files with Qpel/GMC on a PPC? Compare it to the decoding speed of the same file without Qpel or GMC. It's over twice as fast without them--even more of a difference if you are using a PPC with a GPU. Why? TCPMP resorts to the ffmpeg's ASP decoder for content with Qpel and GMC, so this tremednous speed difference is just a taste of the optimization likely to come out of a real AVC decoder plugin. Over twice as fast in a new release? Maybe ;)
That is all.
AnimeTheme
13th October 2005, 17:54
If you play/encode H.264/AVC movies for PSP, you should update your PSP to 2.50.
If you have experience in encoding AVC movies, you should know that there is a "sticky frame" problem (2 frames skipped before every key frame) for any movies encoded with PSPVideo 9 and any encoder other than the official IC2+. Out of surprise, I notice that this sticky-frame problem is GONE in PSP 2.50! I have tried all my previous movies encoded in x264, and they all play PERFECTLY! If you are serious about quality and smoothness of your AVC movies, upgrade now!
nrx][Natas
13th October 2005, 18:15
I updated to 2.50 a few minutes ago and i hope it now supports 25fps, too. But i don't think so :D .
Anyway, right now i'm encoding without ChangeFPS and encoding speed for the second pass is 30 fps. ;)
You can read about my problem with ChangeFSP a few posts above.
@AnimeTheme:
Do you use ChangeFSP? What programs/settings do you use? I use MeGUI.
thx
jonny
13th October 2005, 19:20
are the resolution restrictions gone on 2.5?
and interested on fps too :)
...
probably the answers will be
no
no
:D
nrx][Natas
13th October 2005, 19:47
Your are right
no
no
nothing changed :D
AnimeTheme
14th October 2005, 15:39
[Natas']@AnimeTheme:
Do you use ChangeFSP? What programs/settings do you use? I use MeGUI.
I use x264 + MeGUI. If I have to change the frame rate of the source, I use ChangeFPS as well.
DryFire
14th October 2005, 16:16
I'm using Megui aswell to encode movie for the psp, but I"m having issues playing them back.
From what I understand the psp supports main profile but not high profile.
But does it support B-frames? The deblocking filter?
Every video i seem to put in the psp, even if it doesn't play when i press information it tells me it's 768kbps video and 128 kbps audio. Does that mean i have to use those settings or will lower bitrates play fine?
I'm using what bob0r linked to but reomving the encoding command from the .bat scrip.
nrx][Natas
14th October 2005, 16:47
Hmm okay. Than one of my settings causes my speed problem.
When I use this
start /belownormal /b /w x264.exe --progress --bitrate <bitrate> --analyse p8x8,b8x8,i4x4 --output video.264 psp.avs
it works greate with ChangeFPS, normal speed!! :D
Now i add some parameters to check what works an what does not :)
Every video i seem to put in the psp, even if it doesn't play when i press information it tells me it's 768kbps video and 128 kbps audio. Does that mean i have to use those settings or will lower bitrates play fine?
Nope, it tells me the same and i encoded with 200kbs video and 64kbps audio and it plays well.
thx
DryFire
14th October 2005, 19:32
[Natas']Hmm okay. Than one of my settings causes my speed problem.
When I use this
start /belownormal /b /w x264.exe --progress --bitrate <bitrate> --analyse p8x8,b8x8,i4x4 --output video.264 psp.avs
it works greate with ChangeFPS, normal speed!! :D
Now i add some parameters to check what works an what does not :)
Yeah I know those are the options psp.bat has chosen by default. I thought, perhaps, you may know what other options are usable.
Though I've never used the cli encoder without a GUI, it would seem that max ref frames are not set, no b-frames, sub pixel refinment is not chosen, same goes for motion estimation. What are the defaults? (yes i searched)
DoC hEx
15th October 2005, 00:54
Imho the best way to get video onto a PSP is with a v1.50 and a homebrew decoder. Currently under development is PSP Media Player v0.0.5. While it is still very early days it looks promising, it plays back AVI/OGG/WMA/MP3/XviD/DivX. While not perfect, as there are sync problems (for the higher res clips) it does remove the Sony limits. Hopefully it can do the decoding of normal XivD encodes with a resize to the pixel display on the unit. I’d put my money on something like this before a Sony authorise player, also with a 4GB hard disk in the works as an add on it could become very tempting.
qyqgpower
15th October 2005, 03:27
I'm using Megui aswell to encode movie for the psp, but I"m having issues playing them back.
From what I understand the psp supports main profile but not high profile.
But does it support B-frames? The deblocking filter?
Every video i seem to put in the psp, even if it doesn't play when i press information it tells me it's 768kbps video and 128 kbps audio. Does that mean i have to use those settings or will lower bitrates play fine?
I'm using what bob0r linked to but reomving the encoding command from the .bat scrip.
2 ref
2 B-frames (seems no limitation)
most of the tools are supported, like CABAC, weighted b, deblocking etc.(although many of them are not used in the official tool encoded AVC MP4.)
and with firmware 2.5, the GOP problem is solved, so there's no need to set a large GOP now.
the displayed information is read from the uuid head in the MP4 which is not related to the real bitrate.
Modified
I've tested 2 ref and 4 b-frames Nero AVC. it can be played without any problem on psp(FW2.5). 3 ref will cause "unable to play" so I think 2 ref is the limitation.
nrx][Natas
15th October 2005, 08:16
Yeah I know those are the options psp.bat has chosen by default. I thought, perhaps, you may know what other options are usable.
Hi,
here are my latest cli settings that works :D
start /belownormal /b /w x264.exe --bitrate 200 --keyint 300 --bframes 2 --subme 6 --analyse p8x8,b8x8,i4x4,p4x4 --qpstep 1 --me umh --zones 196815,206208,q=40 --progress --no-psnr --output BeCool29.264 BeCool29.avs
Now I'll try it with MeGUI and 2 pass encoding. :)
UPDATE:
Ok, when i use the same settings with MeGUI 2Pass Encoding, my problem with the slowing down second pass is back :(
I'll test a few more settings.
UPDATE 2:
No matter what settings for b-frames, weighted prediction or things like that i use, in combination with 2pass encoding and changing the framerate from 25 to 29.97, results in a second pass which is getting slower and slower. From 30 fps at the beginning to 1 fps or even lower at the end.
Can someone confirm this? Is it normal?
Synergy37
15th October 2005, 12:19
Hey I'm having some strange problems with MeGUI, but not AutoAC or other apps. Can someone look at my profile to see what I accidently changed. http://forum.doom9.org/showthread.php?t=101382
DryFire
15th October 2005, 21:03
nrx][Natas-
I got an encode using me gui to work but I basically disabled everything. I don't reacall it ever dipping to less then 10 fps (avg framerate was 34.73). I"m using an A64 @ 2.4ghz.
I"ll try another encode later today to if i get the same thing.
Synergy37
16th October 2005, 02:40
Someone please upload there profile.xml for me. You have to upload the file itselft though not just copy the text. If you read two or so posts up you'll see my problem.
nrx][Natas
16th October 2005, 13:33
Someone please upload there profile.xml for me. You have to upload the file itselft though not just copy the text. If you read two or so posts up you'll see my problem.
Hi, here is my xml file. You will see that I enabled all options except b-Frames pyramid. But as I said, in combination with ChangeFPS the second pass doesn'to work. :-/
I got an encode using me gui to work but I basically disabled everything. I don't reacall it ever dipping to less then 10 fps (avg framerate was 34.73). I"m using an A64 @ 2.4ghz.
I'm using an AthlonXP 3200+ (2.21 Ghz). When i don't change the framerate I have an avg speed of 30 fps in both passes. All options enabled except b-Frames pyramid.
Perhaps you can use my video profil, too.
UPDATE:
At 30% to 35% of the second pass my problem starts. It's getting 0,03 to 0,10 fps slower each second. :(
Synergy37
17th October 2005, 00:32
Still not working so it must be something with MeGui. This time it froze and the icons were somewhat visible.
DryFire
17th October 2005, 04:24
[Natas']
UPDATE:
At 30% to 35% of the second pass my problem starts. It's getting 0,03 to 0,10 fps slower each second. :(
I"ll give it a shot asap but midterms come first.
now for some much needed sleep...
vzmr82
17th October 2005, 10:05
Well, I had created an independent thread but I think it is better understood inside this one... I will close the other one.
I used the X264 PSP instructions, everything seems to work correctly using the command line bat until the 100% is reached but then it doesn't finish (hangs)...
The x264 output is as follows:
E:\DOWNLO~1\DVD2DVD\x264\x264-psp>start /belownormal /b /w x264.exe --progress -
-bitrate 800 --analyse p8x8,b8x8,i4x4 --output video.264 psp.avs
avis [info]: 368x208 @ 29.97 fps (6235 frames)
x264 [info]: using cpu capabilities MMX MMXEXT SSE SSE2 3DNow!
x264 [info]: slice I:35 Avg QP:15.97 size: 22094 PSNR Mean Y:48.65 U:48.69
V:49.23 Avg:48.51 Global:46.92
x264 [info]: slice P:6200 Avg QP:18.72 size: 3105 PSNR Mean Y:44.47 U:45.28
V:46.23 Avg:44.73 Global:43.20
x264 [info]: mb I I16..4: 25.9% 0.0% 74.1%
x264 [info]: mb P I16..4: 1.6% 0.0% 1.4% P16..4: 43.2% 12.7% 6.8% 0.0% 0
.0% skip:34.3%
x264 [info]: PSNR Mean Y:44.489 U:45.297 V:46.250 Avg:44.751 Global:43.211 kb/s:
770.03
encoded 6235 frames, 35.19 fps, 5407042.02 kb/s
I am trying to encode a DVD into MP4 AVC with burned subtitles and my AVS script is the following (the Trim is just to process 4m:30s of the file):
DirectShowSource("E:\DVDs\Panic Room movie only\MPEG_Video_0xE0.m2v")
LoadPlugin("VSFilter.dll")
TextSub("E:\DVDs\Panic Room movie only\Panic Room v1.2.srt")
Tweak(sat=1.2)
Trim(0,5200)
LanczosResize(368,208)
Sharpen(0.3)
ChangeFPS(29.97)
ConvertToYV12()
I can only continuing by killing the process. What is happening?
Thnks in advance
RS
nrx][Natas
18th October 2005, 11:48
Hi,
i'll test your command line and avs settings later.
UPDATE:
Sorry, i cannot reproduce it as i thought. :(
DryFire
19th October 2005, 05:24
[Natas']
UPDATE:
At 30% to 35% of the second pass my problem starts. It's getting 0,03 to 0,10 fps slower each second. :(
I used your profile and I did not notice a slow down at all. Oddly enough the 2nd pass ran faster then the first pass (42.19 fps avg for pass 1 and 46.46 fps avg pass two).
I am using rev 333C though, are you still having the problem even with the newer revisions?
nrx][Natas
19th October 2005, 07:04
I used your profile and I did not notice a slow down at all. Oddly enough the 2nd pass ran faster then the first pass (42.19 fps avg for pass 1 and 46.46 fps avg pass two).
I am using rev 333C though, are you still having the problem even with the newer revisions?
:thanks: But that's strange. The last version i used was 330 i think. I'll test it later with 333c. If it doesn't work i try disabling some baground programms.
At first i thought ChangeFPS would be the problem so i tryed the same thing with DivX 6 and it works as it should. So it looks like it's x264 + one of my programms causes this strange problem.
AnimeTheme
19th October 2005, 18:56
Imho the best way to get video onto a PSP is with a v1.50 and a homebrew decoder. Currently under development is PSP Media Player v0.0.5. While it is still very early days it looks promising, it plays back AVI/OGG/WMA/MP3/XviD/DivX. While not perfect, as there are sync problems (for the higher res clips) it does remove the Sony limits. Hopefully it can do the decoding of normal XivD encodes with a resize to the pixel display on the unit. I’d put my money on something like this before a Sony authorise player, also with a 4GB hard disk in the works as an add on it could become very tempting.
Forget about ever seeing a homebrew player that can play SMOOTH full-screen movies. PSP's CPU is NOT as powerful as you may think. It simply CANNOT handle pure-software full-screen decoding. AVC playback is smooth on PSP simply because it is hardware-accelerated, something which practically CAN'T be used by homebrew for technical reasons.
I've tested 2 ref and 4 b-frames Nero AVC. it can be played without any problem on psp(FW2.5). 3 ref will cause "unable to play" so I think 2 ref is the limitation.
You can use 3 ref. You just can't use any b-frames at the same time.
DryFire
19th October 2005, 23:18
It would be nice if they somehow hacked 2.5 so that it wouldn't require 48khz audio and 29.97 fps. Maybe even some vorbis support....
nrx][Natas
20th October 2005, 07:38
I am using rev 333C though, are you still having the problem even with the newer revisions?
Ok, here we go again. Nothing changed with rev 333c. I disabled all background programms, nothing.
Could AviSynth be the problem? Because without ChangeFPS it works. What version do you use? I use 2.5.5. I think i should reinstall all encoding tools :D .
jonny
20th October 2005, 08:45
Forget about ever seeing a homebrew player that can play SMOOTH full-screen movies. PSP's CPU is NOT as powerful as you may think. It simply CANNOT handle pure-software full-screen decoding. AVC playback is smooth on PSP simply because it is hardware-accelerated, something which practically CAN'T be used by homebrew for technical reasons.
I disagree, while this is probably true for avc (atm), imho smooth 480x272 xvid @24-25 fps is already possible. The CPU alone can't do this, but using the second CPU (the ME) some chunks of code can be pushed to 2x (things are moving fast, ME & VFPU are already *in some ways* usable ^^).
I think optimizing the color space conversion and the idct could be enough for a really big speed improvement on PSP Media Player (experimenting i've already got yv12 to rgb working in this way).
AnimeTheme
20th October 2005, 10:18
I disagree, while this is probably true for avc (atm), imho smooth 480x272 xvid @24-25 fps is already possible. The CPU alone can't do this, but using the second CPU (the ME) some chunks of code can be pushed to 2x (things are moving fast, ME & VFPU are already *in some ways* usable ^^).
I think optimizing the color space conversion and the idct could be enough for a really big speed improvement on PSP Media Player (experimenting i've already got yv12 to rgb working in this way).
As far as I know, the average FPS the existing homebrew players can achieve is below 15. Some movies with high bitrate and complex motions are even slower. You may overclock the CPU to yield better results, but what's the point if the battery will run out in like 2 hours?
jonny
20th October 2005, 10:40
i'm testing video only atm, 480x272 mpeg4 sp @ ~800-900 kpbs, with the current player should give 17-19 fps.
with optimization i think can be pushed up to 30-35 fps
All of this with the cpu @ 333 mhz
You may overclock the CPU to yield better results, but what's the point if the battery will run out in like 2 hours?
testing on battery life should go *after* all the optimizations are here (there is no point talking on this without having real numbers/real tests).
nrx][Natas
21st October 2005, 07:49
I am using rev 333C though, are you still having the problem even with the newer revisions?
Hi,
i reinstalled all tools but nothing changed. Than I tried to compress with VirtualDub (latest version) and it works!! But i don't have all the settings i want.
Any idea why it works with VDub and not with MeGui?
UPDATE:
Here is my avs script, perhaps it helps.
# Created with Gordian Knot
#
# http://gknot.doom9.org
# PLUGINS
LoadPlugin("I:\Programme\DivX\DGMPG\DGDecode.dll")
#LoadPlugin("D:\PROGRA~1\GORDIA~1\AviSynthPlugins\decomb.dll")
#LoadPlugin("D:\PROGRA~1\GORDIA~1\AviSynthPlugins\KernelDeInt.dll")
LoadPlugin("D:\PROGRA~1\GORDIA~1\AviSynthPlugins\UnDot.dll")
#LoadPlugin("D:\PROGRA~1\GORDIA~1\AviSynthPlugins\dgbob.dll")
#LoadPlugin("D:\PROGRA~1\GORDIA~1\AviSynthPlugins\Convolution3d.dll")
#LoadPlugin("D:\PROGRA~1\GORDIA~1\AviSynthPlugins\FluxSmooth.dll")
#LoadPlugin("D:\PROGRA~1\GORDIA~1\AviSynthPlugins\TomsMoComp.dll")
#LoadPlugin("D:\PROGRA~1\GORDIA~1\AviSynthPlugins\VSFilter.dll")
#LoadPlugin("D:\PROGRA~1\GORDIA~1\AviSynthPlugins\SimpleResize.dll")
# SOURCE
mpeg2source("F:\DVD\Programm.d2v")
# CROPPING
crop(0,0,720,576)
# RESIZING
Lanczos4Resize(368,208)
ChangeFPS(29.97)
# DENOISING: choose one combination (or none)
Undot()
qyqgpower
21st October 2005, 07:57
You can use 3 ref. You just can't use any b-frames at the same time.
I made a Nero AVC clip with 3 ref and no b-frames, it can't be played on my 2.5 PSP.
DryFire
21st October 2005, 16:22
[Natas']Hi,
i reinstalled all tools but nothing changed. Than I tried to compress with VirtualDub (latest version) and it works!! But i don't have all the settings i want.
Any idea why it works with VDub and not with MeGui?
I'm not quite sure. I'm using avisynth 2.5.5 but my script is very simple:
Avisource(".../GunXsword.avi")
BilinearResize(368,208)
ChangeFPS(29.97)
It's something like that I can copy the exact script when I'm back home.
Have you tried filtering in vdub and outputing it as an uncompressed file then running it through megui? Or did you use the VFW codec?
AnimeTheme
21st October 2005, 16:37
I made a Nero AVC clip with 3 ref and no b-frames, it can't be played on my 2.5 PSP.
I use x264 with 3 ref, and the movies do play on my PSP 2.50.
nrx][Natas
22nd October 2005, 12:20
I'm not quite sure. I'm using avisynth 2.5.5 but my script is very simple:
I updated to 2.5.6 nothing changed...again :)
Avisource(".../GunXsword.avi")
BilinearResize(368,208)
ChangeFPS(29.97)
It's something like that I can copy the exact script when I'm back home.
Have you tried filtering in vdub and outputing it as an uncompressed file then running it through megui? Or did you use the VFW codec?
I used the VFW codec. I will try to compress an avi, too.
CEC
23rd October 2005, 15:38
Hi! I am using the x264-psp pack and I have some questions! Is there any problem if I make a 2 pass encode instead of 1? Can I use a resolution that is not 368x208 and 320x240? Can I use reference frames and b-frames?
Thanks!
DryFire
23rd October 2005, 20:05
2 pass will work fine. As for the resolutions, you can go smaller however, I don't think full resolution is supported.
as for reference frames 2 is the max with 1 b frame or 3 w/o a b frame (according to the posts above).
CEC
23rd October 2005, 21:12
2 pass will work fine. As for the resolutions, you can go smaller however, I don't think full resolution is supported.
as for reference frames 2 is the max with 1 b frame or 3 w/o a b frame (according to the posts above).
Thanks!!! :)
JimmyZ
21st November 2005, 16:46
wow, great post, d**n s**ting f**king sony...
Wishbringer
21st November 2005, 19:18
I invested some hours of encoding and found following settings working:
x264.exe --progress --bitrate 384 --ref 2 --mixed-refs --bframes 16 --subme 7 --b-rdo --weightb --trellis 2 --analyse p8x8,b8x8,i4x4,p4x4 --me esa --merange 64 --no-psnr --output c:\psp\video.264 c:\psp\psp.avs
IMHO it's the highest possible setting.
and sloooow...
remove "-me esa --merange 64" for faster encodes
PSP can't handle more than 2 ref-frames and can't handle pyramid-b-frames.
High Profile isn't useable too.
Gimpi
8th December 2005, 19:08
I was having fits trying to figure out what I was doing wrong with this. I ended up figuring out that my PSP is very picky on the AAC encoder used. It finally worked when I used BeLight to convert the ripped audio track via AAC FAAC encoder engine with output sampling rate of 48000, and options of wrap aac stream in MP4 and profile LC. Hopefully this insight will help anyone with files that were locking up thier PSPs. My PSP firmware is 2.60 and it works fine.
I used this psp.bat:
start /belownormal /b /w x264.exe --progress --bitrate 384 --ref 2 --mixed-refs --bframes 16 --subme 7 --b-rdo --weightb --trellis 2 --analyse p8x8,b8x8,i4x4,p4x4 --me esa --merange 64 --no-psnr --output video.264 psp.avs
start /belownormal /b /w MP4Box.exe -fps 29.97 -add video.264 audio.mp4
start /belownormal /b /w ATOMChanger.exe audio.mp4 MAQ10001.MP4 AtomAVC.ini
bond
8th December 2005, 20:21
start /belownormal /b /w MP4Box.exe -fps 29.97 -add video.264 audio.mp4why dont you encode directly to .mp4?
Gimpi
8th December 2005, 21:10
why dont you encode directly to .mp4?
Because I'm new to all this stuff and that was what finally worked for me? :) Any suggestions for improvement are welcomed. I'm still just learning.
quake74
12th December 2005, 10:15
I used this psp.bat:
start /belownormal /b /w x264.exe --progress --bitrate 384 --ref 2 --mixed-refs --bframes 16 --subme 7 --b-rdo --weightb --trellis 2 --analyse p8x8,b8x8,i4x4,p4x4 --me esa --merange 64 --no-psnr --output video.264 psp.avs
start /belownormal /b /w MP4Box.exe -fps 29.97 -add video.264 audio.mp4
start /belownormal /b /w ATOMChanger.exe audio.mp4 MAQ10001.MP4 AtomAVC.ini
The one problem I see is that --bframes 16, try put 2 or 3. Actually, I tried with 4 and it works too, but seeing 4 bframes in a row is a rarity, and 16... well...
You could use the sharktooth profies, at least to start experimenting, for megui (which gives you an integrated gui) at http://forum.doom9.org/showthread.php?t=101813
damrod
13th December 2005, 23:57
btw add this last line
ffmpeg.exe -an -y -t 0:0:0.005 -i psp.avs -f image2 -s 160x120 MAQ10001.THM
for a psp thumbnail ;-)))
make sure to choose the rigth frame to export ... (-t 0:0:0.005 is timeset... ) ...
for me i follow these steps :
- make avs with resizing (16/9 - 4/3 - 2.35)
- extract audio as wave
- encode wave to lc-aac via faac (not sure he-aac is supported)
- encode video to mp4 via x264.exe
- mux aac and mp4 into new mp4 via mp4muxer.exe
- change header of mp4 with atomchanger.exe
- generate thumbnails
i make a little soft to use it since i want to make also mpeg4-asp mp4 ;)
ffmpeg can directly make audio/video mp4 files with lc-aac and xvid as codec...and can resize also so i wonder if it can encode using h264 codec...there's still the problem to update h264 encoder when using fffmpeg ;-)
Chris Benoit
15th December 2005, 18:13
Ok guys i will need your help in this one.I'm new to avc encoding.I have a psp and i'm not satisfied with tha asp mp4 so i guess i'll have to start tsting some avc ones.
What programms will i need,and what settings to get me started?
Sharktooth
15th December 2005, 18:30
:search:
Chris Benoit
15th December 2005, 18:35
Well there are a lot of things written here in this topic which i do not comprehend so i would like someone to give some more specific instructions,in baby steps so do speak.
EDIT:I did a little searching.Is MEGUI the one i should use?What bitrate do you guys use for avc,and is there a way to put subtitles?
Hyper Shinchan
16th December 2005, 17:52
Well, you need Atom changer (included in this link http://www.x264.nl/psp/x264-psp.exe) and then you have to hack your MP4 with this tool (you can use it with commandline or editing the batch, I prefer to use it with command line).
About the settings I use almost all the Main Profile L3 features excluding Pyramid B-frame and I set 2 B and 2 Reference frames (but you can rise B frames lowering Reference and viceversa, but I'm not sure about it). For the bitrate I suggest something like 300kbps or 400kbps but AVC is really powerful and with anime contents you can use really low bitrate (I don't know about movies because I watch only anime).
Anyway that .exe include a batch with low settings that you can modife as you wish, i think that it's good for a newbbie.Or you can use 3GPP Converter, but it's not so good, imo, also if it uses X264 libraries with FFMPEG.
C'ya.
EDIT: keep in mind that your AAC must be 48 khz and your video frame rate 29.97 fps, but maybe you've noticed it.
damrod
17th December 2005, 08:50
if the aac is not 48khz (44,1 for exemple) can i have problems with audio sync??
because i have probleme of a/v sync ;-)
i will check the freq of my vids....
Chris Benoit
17th December 2005, 13:12
What do the options "me esa --merange 64" that have been mentioned do?
qyqgpower
17th December 2005, 13:59
with 2.6 firmware you can play 24fps(and 23.98 etc.) AVC now. just use x264 bundled ffmpeg to encode a 24fps clip and give a try.
if you use x264 or ND to create a 24fps clip and go through psp video 9's atomchanger to get a psp-playable AVC, you need edit 0x00A0~0x00A7 to 00 17 F9 DC 00 17 F9 DC to get a sync clip.
so I have compiled an atomchanger which won't fix FPS to 29.97 but depends on the input file's FPS.
Use this INI file with this atomchanger:
[Config]
Title=PSP/AVC:FPS Depends on Input File
MQV=2
[DeleteAtom]
Item0=ftyp
Item1=udta
Item2=free
Item3=drm%20
[InsertAtom]
Item0=ftypMSNV%01%00%07%86MSNVmp42isom
Item1=/moov/trak/edts%00%00%00%1Celst%00%00%00%00%00%00%00%01%00%7E%31%B6%00%00%00%00%00%01%00%00
Chris Benoit
17th December 2005, 18:09
What settings do you use for audio guys?CBR or VBR,and what bitrate?
zshadow
17th December 2005, 18:23
edit: got it working
a3217055
19th December 2005, 09:15
I have been reading through this discussion for some time and I have had some problems.
#All this happened under Linux #
I have been able to make PSP videos using ffmpeg on my PSP Fimware 1.51. But after upgrading to Firmware 2.0 I have not been able to do any of that. How do i encode videoes under ffmpeg or anyother application under Linux to play on my PSP with firmware 2.00.
I have been playing around with ffmpeg and I compiled as such.
./configure --enable-mp3lame --enable-faac --enable-faad --enable-amr_nb --enable-amr_wb --disable-ffplay --enable-small --enable-memalign-hack --enable-gpl --enable-xvid --enable-dts --enable-a52 --disable-vhook --enable-x264 --enable-pthreads
And when I encode a video in h264 format
fmpeg -i SOME.avi -b 384 -vcodec h264 -acodec aac -ac 2 -ar 48000 -ab 48 -vol 256 -f psp -r 29.97 -s 320x240 -bufsize 256 -g 250 -coder 1 ~/M4V00022.MP4
#Please note I got this cmd line from the pspvideo9 debug console output.
The psp cannot read it. It says the file cannot be played.
Is there anyway to make video into PSP format with out running on PSPvideo9 under windows?
I personally think the PSP firmware is being very picky in looking at the files and seeing if it is not compliant it will drop the file.
So in short does anyone have any ideas how to convert an xvid avi file into a PSP MP4; with AVC encoding ; under linux. Or do I just need to upgrade my firmware?
Doom9
19th December 2005, 12:51
with 2.6 firmware you can play 24fps(and 23.98 etc.) AVC now. just use x264 bundled ffmpeg to encode a 24fps clip and give a try.What about 25 fps? Rather important for us PAL folks.
quake74
19th December 2005, 15:16
I have been reading through this discussion for some time and I have had some problems.
#All this happened under Linux #
I have been able to make PSP videos using ffmpeg on my PSP Fimware 1.51. But after upgrading to Firmware 2.0 I have not been able to do any of that. How do i encode videoes under ffmpeg or anyother application under Linux to play on my PSP with firmware 2.00.
It seems that with 2.0 the format changed slightly. I have a link http://article.gmane.org/gmane.comp.video.ffmpeg.devel/25043/
I checked last week and this patch was not in CVS yet, but don't know anything else. Good luck!
Clown shoes
19th December 2005, 16:31
What about 25 fps? Rather important for us PAL folks.
Ah, this is great news though, because at least we can use slow down and no nasty duplicated frames. Hurrah!
Has anyone else tested this yet?
damrod
19th December 2005, 20:45
M4V00022.MP4
the h264 mp4 files for psp are named MAQ00022.MP4
M4V is for mpeg4 asp
more : you can't put them in the same directory
some help (in french sorry)
http://geekitude.over-blog.com/
btw i have some problem : when i encode the same file with ffmpeg and x264 in h264 format @500kbits i get different files : ffdshow says x264 file has abr=500...ffmpeg abr is around 1000-1200...it's weird because the files are not of the same size so it must be true...
for info : my psp has 2.5 firmware...
nrx][Natas
20th December 2005, 15:47
What about 25 fps? Rather important for us PAL folks.
Good question. I encoded an episode of scrubs at 25 fps with x264 MeGUI and used the modified AtomChanger and the movie is out of sync. Perhaps I did something wrong or it doesn't work with 25 fps videos.
Clown shoes
20th December 2005, 15:51
@nrx][Natas
How is your speed issue going? I know you were having the same problems I was?
I think the modified atomchanger is only for 23.976. Has anyone seen it working yet?
nrx][Natas
20th December 2005, 16:13
@nrx][Natas
How is your speed issue going? I know you were having the same problems I was?
The speed issue is solved. A complete reinstallation of MeGui and x264 was the solution. :)
@nrx][Natas
I think the modified atomchanger is only for 23.976. Has anyone seen it working yet?
Now I want to test the "slow down" thing you mentioned. I never used it before. Can I use ChangeFPS as well or is there another Avisynth filter?
Clown shoes
20th December 2005, 16:21
[Natas']The speed issue is solved. A complete reinstallation of MeGui and x264 was the solution. :) .
Really?? I have tried reinstalling several times with several builds of MeGUI and X264! Can you confirm you are encoding large feature length files to .MP4 and not .264. There is an entire thread covering this right now.
http://forum.doom9.org/showthread.php?t=104262
Can you tell me which versions of things you are using, also any scripts you are using? If you have the time that is. Thanks
nrx][Natas
20th December 2005, 17:44
Really?? I have tried reinstalling several times with several builds of MeGUI and X264! Can you confirm you are encoding large feature length files to .MP4 and not .264. There is an entire thread covering this right now.
http://forum.doom9.org/showthread.php?t=104262
Can you tell me which versions of things you are using, also any scripts you are using? If you have the time that is. Thanks
Yes, everytime before I update I uninstall MeGUI and x264. I only convert PAL 25 FPS DVDs (mpeg2source) to MP4/264. Normaly I encode directly to 264. If i forget to switch and i get an MP4 file, i extract the video. In the end i always have an 264 file.
I uses this line to demux the video "mp4box.exe -raw 1 Video.mp4"
Versions:
GKnot: latest available to create an avs file
AviSynth: 2.5.6
MeGUI: latest version
x264: latest version
Before i encode a new movie i always look if there is a new build of Sharktooths Full x264 package.
Cleaned GKnot avs:
# PLUGINS
LoadPlugin("D:\PROGRA~1\GORDIA~1\DGMPGDec\DGDecode.dll")
LoadPlugin("D:\PROGRA~1\GORDIA~1\AviSynthPlugins\UnDot.dll")
# SOURCE
mpeg2source("E:\Movies\DVD\video.d2v")
# CROPPING
crop(10,2,702,568)
# RESIZING
LanczosResize(368,208)
ChangeFPS(29.97)
# DENOISING: choose one combination (or none)
Undot()
MeGUI Commandline
"x264.exe" --pass 2 --bitrate 220 --stats ".stats" --ref 2 --mixed-refs --bframes 4 --subme 7 --b-rdo --weightb --trellis 1 --analyse p8x8,b8x8,i4x4,p4x4 --me esa --progress --no-psnr --output "" ""
demux.cmd
mp4box.exe -raw 1 Sound.mp4
mp4box.exe -raw 1 Video.mp4
mux.cmd
start /belownormal /b /w MP4Box.exe -fps 29.97 -add video.264 "Scrubs.-.S01E01.mp4"
start /belownormal /b /w MP4Box.exe -add "sound.aac" "Scrubs.-.S01E01.mp4"
start /belownormal /b /w ATOMChanger.exe "Scrubs.-.S01E01.mp4" MAQ30008.MP4 AtomAVC.ini
AtomAVC.ini
[Config]
Title=PSP MPEG-4 AVC
MQV=2
CODEC=2
[DeleteAtom]
Item0=ftyp
Item1=free
[InsertAtom]
Item0=ftypMSNV%01%00%07%86MSNVmp42isom
Item1=/moov/trak/edts%00%00%00%1Celst%00%00%00%00%00%00%00%01%00%7E%31%B6%00%00%00%00%00%01%00%00
I hope it helps :)
bond
20th December 2005, 18:01
the slow down happens with strange framerates (normally used in .avi sources)
pal dvd sources have nice 25 fps, so they dont cause a problem
Clown shoes
20th December 2005, 18:16
The reason I asked him was several days ago he mentioned the same problem of progressivly slower encodes on the second pass!
Sharktooth
20th December 2005, 18:30
let's talk about PSP and keep the slowdown in the proper thread please.
damrod
20th December 2005, 21:58
i think as usual sony doesn't care about europe users :-(...always ntsc for japan and usa....
Clown shoes
21st December 2005, 01:20
I have tested the new atom changer and it works perfectly on 2.60. We can now play 23.976 progressive video. This is a real breakthrough! Proper smooth movies at last. Hooray. :)
qyqgpower
21st December 2005, 02:43
[Natas']Good question. I encoded an episode of scrubs at 25 fps with x264 MeGUI and used the modified AtomChanger and the movie is out of sync. Perhaps I did something wrong or it doesn't work with 25 fps videos.
this atomchanger will write the fps flag according to the input file, so it will work with any file in any fps. but since 2.6 psp only supports 15, 24, 23.98, 23.976, 29.97 and 30 fps, of course you can not get a sync 25 fps playback.
nrx][Natas
21st December 2005, 10:57
this atomchanger will write the fps flag according to the input file, so it will work with any file in any fps. but since 2.6 psp only supports 15, 24, 23.98, 23.976, 29.97 and 30 fps, of course you can not get a sync 25 fps playback.
Ok i have 2.60 but didn't know what framerates are supported now. I can life with 24 fps, too. Better than 29.97. Can i use ChangeFPS for this or is there are different/better Avisynth filter?
:thanks:
Clown shoes
21st December 2005, 13:15
I am having a strange new error playing .avcs on my PSP. If I exit to the main screen or allow the PSP to go into stand by mode. I am unable to contine playing the .avc. All I get is a black screen. The only way to play it again is to reset the PSP and fast forward to where I was last watching! Also if i try using the go to function, it completely freezes the PSP and once again I must reset. I used to encode .avcs with PSPVideo9 and they did not have this problem. My current process is avi-MeGui-MP4Box-Atomchanger. Any ideas what the problem might be?
I am running PSP software version 2.60
Doom9
21st December 2005, 14:42
Bah, first it's "can't play AVC from memorystick", then it's "only plays AVC at a limited framerate", now it's "only plays AVC at NTSC framerates", but the PSP has no problem playing full resolution AVC at higher bitrates (http://www.engadget.com/2005/11/30/psps-2-60-firmware-does-480-x-270-video/#comments) and I suspect that supporting 25 fps is also only a political question, but what do you expect from a company that takes over your computer?
nrx][Natas
21st December 2005, 15:36
@Clown shoes: I'll test it when I'm home. But for now I only have "old" 29.97 FPS Atomchanger movies :)
@Doom9: Hehe, you are right but i think there is still hope :D
Clown shoes
21st December 2005, 16:55
To be fair it is getting better. 23.976fps is a god send. The problem I'm having right now isn't resolution dependant though! Any avc's I am putting on the PSP are reacting in the same way. This is definately a new thing though and I don't know whether the problem is with the new firmware 2.60, or with the encoding process. When I get home I will try encoding an avc with PSPVideo9 and see what happens. In the meantime, could someone who has the 2.60 firmware just check whether they are able to come out of the movie and then back in to it succesfully?
nrx][Natas
21st December 2005, 19:09
@Clown shoes: Your are right. There is a new problem. I have 7 Chappelles Show and one Futurama episode on my PSP. This is what i did:
1. Starting Futurama
2. Exit with O
3. Start again
= Futurama starts from last position
------
1. Starting Futurama
2. Exit with O
3. Selecting an Chappelle Episode (not playing!)
4. Switching back to Futurama
5. Start again
= Futurama doesn't start (black screen)
--------
1. Starting Chappelle
2. Exit with O
3. Start again
= Futurama doesn't start (black screen)
--------
1. Starting Chappelle
2. Exit with O
3. Selecting and stating another Chappelle Episode
= New Chappelle Episode starts
4. Switching back to last episode
= Starts again from the beginning
Futurama filename: MAQ30001.MP4
Chappelle Filename: MAQ40001.MP4 - MAQ40007.MP4
Perhaps the behavior (starting or not starting) has something to do with the filename? My encodes are a little older. Tomorrow i'll encode a new movie.
Clown shoes
21st December 2005, 19:15
Hmm, interesting. Some times they did, some times they didn't. Did you say you were running 2.60? And could you tell me your encoding process?
nrx][Natas
21st December 2005, 21:12
Yes, and i'm running 2.60.
Right now i'm preparing The movie Wasabi for tomorrow.
1. encoding audio with "original" MeGUI" NAAC 80 kbps CBR
2. encoding movie to raw with sharktooth latest build of his x264 Fullpackage (x264 MeGUI)
"x264.exe" --pass 2 --bitrate 220 --stats ".stats" --ref 2 --mixed-refs --bframes 3 --subme 7 --b-rdo --weightb --trellis 1 --analyse p8x8,b8x8,i4x4,p4x4 --me esa --progress --no-psnr --output "" ""
3. creating a raw audio file (aac) from my mp4 file
4. mux video and audio
5. atomchanger
And this will be my fist 24 FPS movie...i hope *g*
Doom9
21st December 2005, 21:16
May I ask what this step is for: 3. creating a raw audio file (aac) from my mp4 file ? It's no problem muxing an MP4 containing AAC with an MP4 file containing AVC video (or ASP)
nrx][Natas
21st December 2005, 21:26
May I ask what this step is for: ? It's no problem muxing an MP4 containing AAC with an MP4 file containing AVC video (or ASP)
Oh okay. Wasn't sure about it and during my first PSP experiments it didn't always work as planed. So someday I ended with this, muxing only raw files. :)
I'll change it. :)
qyqgpower
22nd December 2005, 02:53
to the "can't resume/jump to problem":
it only happens on 2.6 psp,use only these settings for ref and bframe:
1ref + 1bframe
2ref without bframe
3ref without bframe
all other settings will cause "can't resume/jump to problem".
the reason is 2.6 have changed some methods in these function. in previuos version you can only resume/jump-to at the nearest I frame, but in 2.6 you can resume/jump-to at any frame. so a new bug in decoding multiple bframes clip have occured. hope will fix it in future version.
nrx][Natas
22nd December 2005, 07:30
That makes sense. But how do you know all that stuff? Weren't you the one how reported the 24 FPS thing? ;) Anyway, good to know.
I have tested the new atom changer and it works perfectly on 2.60. We can now play 23.976 progressive video. This is a real breakthrough! Proper smooth movies at last. Hooray. :)
Yes it works. But how do I get it smooth? I used ChangeFPS to get it from 25 fps to 23.976 fps. I have ghost effects an it isn't smooth. :(
deets
24th December 2005, 00:55
hmm, i am having no joy when i use the x264 PSP profile and meGUI.
I mux my 264 video and mp4 audio into an mp4, do the atomchanger thing, upload and yet the psp says the video cannot be displayed.
if i do the same process, but use my cli one pass created video then all works just fine.
has anyone had any success with the psp profile in x264?
Clown shoes
24th December 2005, 14:51
check your PMs Deets
@Nrx][Natas
I do my slow down in VDub when I extract my audio.
I think you can do assumefps(23.976) instead of changefps(). Someone correct me if I'm wrong though.
nrx][Natas
25th December 2005, 16:15
@Clown shoes: Thanks! I'll test it.
qyqgpower
25th December 2005, 16:57
assumefps will change playback speed, and of course will out of sync.
i think changefps won't cause ghost effects(convertfps does), it only deletes or duplicates frames, it is recommended for anime. convertfps is recommended for real life footages.
Clown shoes
26th December 2005, 02:31
The best way to go from 25fps to 23.976fps is by slowing down as you do not make any alteration to the frames themselves. Both Besweet and Belight have a simple tick box to convert audio from 25fps to 23.976fps. If you are genuinely into upmost picture quality (and who isn't) then this has to be the only option. Try it. I don't think you will be dissapointed.
nrx][Natas
26th December 2005, 10:28
Hi,
that's exactly what I do right now. AssumeFPS and BeSweet for Audio. Yesterday I tested ChangeFPS and ConvertFPS. Ghost effect or not, the video doesn't play smooth. :)
:thanks:
deets
27th December 2005, 20:21
weird locking up problem....
i dont just get videos that say cant be played, i get some that dont give the message and the screen goes black and the only way to get the psp back is to tak out the battery...
heres the megui log of a test i just did:
"C:\Program Files\x264\x264.exe" --bitrate 220 --keyint 300 --ref 2 --bframes 3 --subme 7 --weightb --analyse p8x8,b8x8,i4x4,p4x4 --qpstep 1 --me esa --threads 2 --progress --no-psnr --output "C:\psp\psp.264" "C:\psp\psp.avs"
mux it using the same mux bat i use for all other clips, but the clip causes a hard lock up...
also, i say 1 thread in megui but it always puts 2 anyway
Doom9
27th December 2005, 20:29
also, i say 1 thread in megui but it always puts 2 anywayIf you go to the settings, is "Automatically set number of threads" checked? If it is, then you either have an X2, Pentium D or HyperThreadig capable CPU.
--me esaPlease don't use that unless you're running a contest of which AVC encoder is the slowest.
And why the low bitrate? the PSP ought to be able to handle higher bitrates, does it not?
Even though I have a PSP (recently flashed to the 2.60 firmware even.. but that's the only thing I've done with it since the day I got it) I can't help with your problems.
deets
27th December 2005, 20:38
yep, thats sorted the threads thing, thanks :)
i am just testing things at the moment, but i actually found the stuff wasnt too bad at all at around 200 as im going more for quanitity than quality. have a lot of flight from london to dallas/sf and wanted to make sure i had plenty of stuff to keep me going for the long flights.
oh, and i shall make sure --me esa is taken off, thanks
deets
27th December 2005, 23:55
with 2.6 firmware you can play 24fps(and 23.98 etc.) AVC now. just use x264 bundled ffmpeg to encode a 24fps clip and give a try.
if you use x264 or ND to create a 24fps clip and go through psp video 9's atomchanger to get a psp-playable AVC, you need edit 0x00A0~0x00A7 to 00 17 F9 DC 00 17 F9 DC to get a sync clip.
so I have compiled an atomchanger which won't fix FPS to 29.97 but depends on the input file's FPS.
Use this INI file with this atomchanger:
this is good news and i have made my first 23.97 clip which played, but suffered from audio out of sync. could you tell me what you mean by this:
you need edit 0x00A0~0x00A7 to 00 17 F9 DC 00 17 F9 DC to get a sync clip.
i guess as it means nothing to me, its probably out of my limited scope :D but i am willing to learn :)
Clown shoes
28th December 2005, 04:38
Hey Deets, should I presume your sources are 25fps? If so, all you need to do is slow the audio in Besweet. There is a very simple 25 to 23.976 tickbox you can use.
All my PSP material is now 23.976 and it looks great! All we need now is for them to unlock the full resolution for us, which is definately do-able as Doom9 pointed out earlier in this thread (http://www.engadget.com/2005/11/30/...video/#comments)
Clown shoes
28th December 2005, 04:45
weird locking up problem....
i dont just get videos that say cant be played, i get some that dont give the message and the screen goes black and the only way to get the psp back is to tak out the battery...
heres the megui log of a test i just did:
"C:\Program Files\x264\x264.exe" --bitrate 220 --keyint 300 --ref 2 --bframes 3 --subme 7 --weightb --analyse p8x8,b8x8,i4x4,p4x4 --qpstep 1 --me esa --threads 2 --progress --no-psnr --output "C:\psp\psp.264" "C:\psp\psp.avs"
mux it using the same mux bat i use for all other clips, but the clip causes a hard lock up...
also, i say 1 thread in megui but it always puts 2 anyway
I was just looking at your MeGUI log and I noticed you have 2 refs and 3 bframes. That could well be one of your problems. It was definately causing problems for me such as crashing when using the seek and no way to resume once stopped without restarting the PSP. Qyqgpower mentioned earlier;
on 2.6 psp,use only these settings for ref and bframe:
1ref + 1bframe
2ref without bframe
3ref without bframe
Hope this is of some help mate.
deets
28th December 2005, 04:49
Oh, i remember seeing that, i shall give it a try, thanks :)
Clown shoes
28th December 2005, 04:51
LOL. Another night owl. ;)
Sharktooth
28th December 2005, 04:59
I made the MeGUI video profiles to make the life easier, but still people play with settings they should not touch...
deets
28th December 2005, 05:10
LOL. Another night owl. ;)
indeed, the psp is keeping me up ;) i have since found out my computer doesnt like x264 with 2 threads and that was the main issue, all encodes now work just fine. although your right, i did get the seek issue for messing with the b frames, i was just trying all options as i didnt know it was the 2 threads causing me grief!
and sharktooth, I did try your profile first but it crashed, but I only just worked out its my setup and not megui or the profiles :) thanks for them though, ill just stick to yours from now on, make my life much easier ;)
damrod
30th December 2005, 19:45
if i remember well ;-)
sound is in atrack3+DRM
video is in avc i think...
all in a dkjdfkjfkjfgkklksdfsdf sony format
so good luck to create one...i don't think sony will help you : they want to sell dvd AND umd to you...when you steal money...try at least to steal ALL the money ;-)
deets
2nd January 2006, 17:28
hmm, so i crop out the black bars from my 2.35:1 dvd's, but i cannnot find a resolution that doesnt squash things.
anyone got any idea?
jonny
3rd January 2006, 13:29
since i've talked about it in this thread on the end of october... i've got mpeg4 ~asp @480x272 working at full speed ( http://jonny.leffe.dnsalias.com )
too bad for the ones that can't downgrade to 1.5 :p :)
damrod
3rd January 2006, 19:30
extract of my code
if strAspectRatio = '16/9' then
// 16/9 1.77:1
strList.Add('v=AVISource("' + strFileName + '").BicubicResize(368,208)')
else if strAspectRatio = '4/3' then
// 4/3 1.33:1
strList.Add('v=AVISource("' + strFileName + '").BicubicResize(320,240)')
else if strAspectRatio = '2.35' then
// 16/9 2.35:1
strList.Add('v=AVISource("' + strFileName + '").BicubicResize(416,176)')
else
// 4/3 1.33:1
strList.Add('v=AVISource("' + strFileName + '").BicubicResize(320,240)');
but in pspenc software it seems the author add black borders in order to use
classical 16/9 resolution (ie : 368,208)
looks the same for me...except that the black borders are less black that no borders lol
damrod
3rd January 2006, 19:32
since i've talked about it in this thread on the end of october... i've got mpeg4 sp @480x272 working at full speed ( http://jonny.leffe.dnsalias.com )
too bad for the ones that can't downgrade to 1.5
euhhhh arggggg
it works?? i wonder it i can play it with firmware 2.5...
but i can play avc !! :p
jonny
3rd January 2006, 21:59
"but i can play avc !!"
i could kill you telling that i can play avc too (now fw 2.0 can be launched over 1.5), but i'll not do this :)
Hyper Shinchan
4th January 2006, 03:40
"but i can play avc !!"
i could kill you telling that i can play avc too (now fw 2.0 can be launched over 1.5), but i'll not do this :)
Argh!!!! God damn my hands!!!! I've 2.60!!! Dammit!
damrod
4th January 2006, 19:07
jonny is a bad guy :p
i will try to play mpeg4 sp @480x272 on my psp
you add this res in pspenc?
Hyper Shinchan
5th January 2006, 03:57
anyway, what does John mean with "now fw 2.0 can be launched over 1.5".
I was able to make a downgrade to 1.50 from 2.00, but it's this that you were saying, or something else???
jonny
5th January 2006, 10:21
you add this res in pspenc?
ffmpeg will kick me badly if i do this :) (seriously, a bit sad that i can trash 60% of pspenc after getting psp media player to work at fullspeed)
@Hyper Shinchan:
google "MPH Firmware launcher"
willie1
5th January 2006, 19:18
I have followed this thread for a while now. I am having trouble with the last step of a 23.976fps AVC file. When I used the atomchanger.ini posted on page 6 of the thread, the PSP (FW 2.60) would say "corrupd data" or something similar. Comparing the original ini with the new one, I added the line codec=2 to the new ini (leaving all other lines the same) and the files now play, but are out of sinc severely. They play fine on the computer. The files are Nero Digital AVC with 48Khz audio. Other than needing to use the extra line "codec=2". I can see no difference to what others are doing.
Any suggestions?
deets
5th January 2006, 19:26
did you use the atomchanger in the zip in the post as well as the new ini?
nrx][Natas
5th January 2006, 19:26
For me it works without the extra line but, did you change the audio framerate, too?
willie1
5th January 2006, 19:42
I tried several combinations of atomchanger and the ini. Maybe I will clear the folder and use the atomchanger from the link with the ini provided and see if that works. I did not change anything from the Nero Digital file in the audio. It is playing about 25% too slow. It does not appear that the video plays too fast, but that the audio is slowed down. I'll post back if clearing the folder works.
willie1
5th January 2006, 20:03
The ini now works without the extra line, but the audio is still out of sinc grossly. What app do I use to edit the audio in as per the post on page 6? :
"with 2.6 firmware you can play 24fps(and 23.98 etc.) AVC now. just use x264 bundled ffmpeg to encode a 24fps clip and give a try.
if you use x264 or ND to create a 24fps clip and go through psp video 9's atomchanger to get a psp-playable AVC, you need edit 0x00A0~0x00A7 to 00 17 F9 DC 00 17 F9 DC to get a sync clip.
so I have compiled an atomchanger which won't fix FPS to 29.97 but depends on the input file's FPS.
Use this INI file with this atomchanger:"
I am not sure where I can edit this line.
willie1
5th January 2006, 20:19
Here's the file properties before the atomchanger:
* Movie Info *
Timescale 1000 - Duration 02:20:06.272
Fragmented File no - 4 track(s)
File Brand MSNV - version 16779142
File has root IOD
Scene PL 0x01 - Graphics PL 0xfe - OD PL 0xfe
Visual PL: No visual capability required (0xff)
Audio PL: Main Audio Profile @ Level 2 (0x02)
Track # 1 Info - TrackID 1 - TimeScale 1000 - Duration 00:00:00.001
Track is present in Root OD
Media Info: Language "eng" - Type "odsm" - Sub Type "mp4s" - 1 samples
MPEG-4 Config: ObjectDescriptor Stream - ObjectTypeIndication 0x01
Self-synchronized
Track # 2 Info - TrackID 2 - TimeScale 1000 - Duration 00:00:00.001
Track is present in Root OD
Media Info: Language "eng" - Type "sdsm" - Sub Type "mp4s" - 1 samples
MPEG-4 Config: SceneDescription Stream - ObjectTypeIndication 0x01
Synchronized on stream 1
Track # 3 Info - TrackID 3 - TimeScale 24000 - Duration 02:20:06.272
Media Info: Language "eng" - Type "vide" - Sub Type "avc1" - 201549 samples
MPEG-4 Config: Visual Stream - ObjectTypeIndication 0x21
AVC/H264 Video - Visual Size 368 x 208
Synchronized on stream 1
Track # 4 Info - TrackID 4 - TimeScale 48000 - Duration 02:20:06.208
Media Info: Language "und" - Type "soun" - Sub Type "mp4a" - 394041 samples
MPEG-4 Config: Audio Stream - ObjectTypeIndication 0x40
MPEG-4 Audio AAC LC - 2 Channel(s) - SampleRate 48000
Synchronized on stream 1
And after:
* Movie Info *
Timescale 1000 - Duration 02:20:06.272
Fragmented File no - 4 track(s)
File Brand MSNV - version 16779142
File has root IOD
Scene PL 0x01 - Graphics PL 0xfe - OD PL 0xfe
Visual PL: No visual capability required (0xff)
Audio PL: Main Audio Profile @ Level 2 (0x02)
Track # 1 Info - TrackID 1 - TimeScale 1000 - Duration 00:00:00.001
Track is present in Root OD
Media Info: Language "eng" - Type "odsm" - Sub Type "mp4s" - 1 samples
MPEG-4 Config: ObjectDescriptor Stream - ObjectTypeIndication 0x01
Self-synchronized
Track # 2 Info - TrackID 2 - TimeScale 1000 - Duration 00:00:00.001
Track is present in Root OD
Media Info: Language "eng" - Type "sdsm" - Sub Type "mp4s" - 1 samples
MPEG-4 Config: SceneDescription Stream - ObjectTypeIndication 0x01
Synchronized on stream 1
Track # 3 Info - TrackID 3 - TimeScale 24000 - Duration 02:20:06.272
Media Info: Language "eng" - Type "vide" - Sub Type "avc1" - 201549 samples
MPEG-4 Config: Visual Stream - ObjectTypeIndication 0x21
AVC/H264 Video - Visual Size 368 x 208
Synchronized on stream 1
Track # 4 Info - TrackID 4 - TimeScale 48000 - Duration 02:20:06.208
Media Info: Language "und" - Type "soun" - Sub Type "mp4a" - 394041 samples
MPEG-4 Config: Audio Stream - ObjectTypeIndication 0x40
MPEG-4 Audio AAC LC - 2 Channel(s) - SampleRate 48000
Synchronized on stream 1
There's no difference, but is the time sclale of 24000 and 48000 causing the problem I am experiencing?
deets
5th January 2006, 20:33
whats the original fps, 23.97?
try using besweet/belight to convert your audio to aac
willie1
5th January 2006, 20:52
Thanx for the suggestion, but I have done that with the same problem. I used belight with the NAAC settings. The original file is SW episode III- legally purchased dvd- and 23.976 fps.
Problem fixed: I used YAMB1.4 and remuxed the video with the video set at 23.976fps, and the audio set at 29.97fps. Perfect sinc and stutter free playback. This must be a peculiarity of the Nero Digital muxing since others aren't posting the same problem with the MeGUI encodes.
Thanx for all the suggestions.
deets
5th January 2006, 20:58
yeah thats very weird...
i use besweet beta 8 with the nero digital encoder engine and then mux using megui, works like a charm :D
sevEren^^
6th January 2006, 23:43
Would it be possible for megui's bitrate calculator and muxer (YAMB frontend) to take the framerate/length of the clip from the avisynth script rather than the actual avi file being used? Whenever I use the "assumefps()" command, and open the avs, the length in the bitrate calculator needs manually adjusting, and also it's necessary to mux using the raw .264 video and manually specify framerate, otherewise the resulting mp4 file has the original avi framerate instead of the one specified in the avs file, and there is a sync issue. I normally open the avs in virtualdub and check the file properties which gives the correct length/framerate.
Encoding avi files without doing anything to change the framerate works fine obviously.
Other than this tiny point, I think megui/x264/naac is the best psp video solution around, and the results with 2 or 3 pass encoding are fantastic. Well worth the little extra time spent tweaking to get a "perfect" encode, than use a single-click solution (e.g. PSPVideo9) which lacks the more advanced features. Thanks very much to all the devs who might be reading. :) Great tools.
willie1
7th January 2006, 04:58
I agree, this is a great set of tools, but it takes a little bit of tweaking to get things to work right. (I just noticed the "new" limitation on b- and reference frames with 2.60fw.) I still like the Nero Digital AVC image a bit better, but x264 is very good.
Hyper Shinchan
7th January 2006, 05:07
I personally prefer X264, I don't knwo it looks better at lower bitrate for me. Anyway what do you use (PAL users) to conver fps from 25>24? I've tried convert fps but it looks bad, at least with anime source, generally I use change fps, but you will lost frames.... Sony's shit.....
P.S.: But I don't have any problem with audio/video sync.
EDIT: @Hyper Shinchan:
google "MPH Firmware launcher"
I've used it, but now I've upgrade it to 2.60, as I said.
willie1
7th January 2006, 08:30
Have you assume fps then slow the audio in besweet with the OTA track adjustments? This will leave you with all original frames and no playback problems. The disserence in speed is not significant enough to be a distraction, and is actually how film is converted to PAL.
Doom9
7th January 2006, 13:22
Would it be possible for megui's bitrate calculator and muxer (YAMB frontend) to take the framerate/length of the clip from the avisynth script rather than the actual avi file being used?Umm.. MeGUI takes it from the script. And what is your beef with the AVI? There are no AVIs in MeGUI unless you decide to output some.
Here's a little experiment I ran: my usual codec comparison matrix clip at 23.976 fps. I open the avs in MeGUI, then open the bitrate calculator. Number of frames: 196159
FPS: 23.976
Length: 2:16:21
Then I edit the script and add assumefps(25.00), open it again and go to the bitrate calculator again. Now it shows:
Number of frames: 196159
Framerate: 25
Length: 2:10:46
So, as you can see, making the change in the script is picked up by MeGUI.. the number of frames is obviously the same, but changing the fps also changes the movie's length.
The same goes for muxing.. in automated mode MeGUI takes the fps from the source (so 25fps once I added assumefps) and plugs that into the muxer.
deets
7th January 2006, 15:53
edit: oops, missed willie1 reply saying the same thing!
as others said earlier in this thread, i use assumefps(24.000) and then in besweet i slow the audio down from 25 to 24 in the advanced settings section.
as said, it doenst mess around with any of the frames so is the smoothest option and the change in speed wont be noticeable :)
looks great :D
i converted my memento dvd the other day, 190mb for the 2 hour film! looks great, sounds okay
sevEren^^
7th January 2006, 22:33
So, as you can see, making the change in the script is picked up by MeGUI.. the number of frames is obviously the same, but changing the fps also changes the movie's length.
The same goes for muxing.. in automated mode MeGUI takes the fps from the source (so 25fps once I added assumefps) and plugs that into the muxer.
Hmm, this must be something I'm doing wrong then, as the bitrate calculator is picking up the original file's framerate rather than the value I enter after the AssumeFPS command in the avs. I'm using the AssumeFrameBased command. Could this be messing it up perhaps? My apologies anyway, I assumed it was megui causing this, but it's obviously something unique to my setup. I'll try and find out what is causing it. Thanks for your help. :)
edit: This is only happening when I specify 23.976 as my framerate in the avs file. If I specify AssumeFPS(30), (25), or (24), megui's bitrate calculator picks it up fine as the correect value. When I use AssumeFPS(23.976) though, it always shows up as 25fps in the calculator. If I open the avs file in VirtualDub, and go to "File Information", it shows up as 23.976 with the correct time. My fault for not using 24fps I guess.
Hyper Shinchan
8th January 2006, 01:05
Have you assume fps then slow the audio in besweet with the OTA track adjustments? This will leave you with all original frames and no playback problems. The disserence in speed is not significant enough to be a distraction, and is actually how film is converted to PAL.
I was thinking about it and I'll try it now, blending frame really mess up things with animes (maybe also with movie, but who cares about movie???).
willie1
8th January 2006, 02:40
The new psp profile (sharktooth) has 2 reference frames and no b-frames as default. Someone posted previously that they could get 1-b and 1-ref frame to work with FW2.60. I have been unable to do so. Are there any other changes that need to be made to the profile to get it to work with b and ref frames? It seems to me using b-frames would greatly help the compressibility.
quake74
9th January 2006, 10:22
The new psp profile (sharktooth) has 2 reference frames and no b-frames as default. Someone posted previously that they could get 1-b and 1-ref frame to work with FW2.60. I have been unable to do so. Are there any other changes that need to be made to the profile to get it to work with b and ref frames? It seems to me using b-frames would greatly help the compressibility.
Well, I have a 2.0 psp and I can play videos with 2 refs and as many bframes as I want (I have been able to play a video with 7 consecutive bframes). I am not sure if the bframes cause dropped frames or whatever (I will eventually try), but I think that bframes were removed because they were causing problems with the seek/resume functions in 2.6 (I have no seek resume problems with 2.0).
willie1
10th January 2006, 07:32
I don't think its something to do with the b-frames anymore- None of my x264 encodes work. I have tried no b-frames and they still don't play. My Nero Digital avc's are fine Its not audio related as I'm using the same audio settings for all of my encodes, x264 or Nero. The default profile isn't working and the default minus b-frames and even 1 reference frame isn't working. I disabled p4x4 which is enabled by default, no help. The only options I'm using are CABAC,I4x4, P8x9, B8x8 deblocking, and 1 reference frame. I've got main profile, and unrestricted level selected. The PSP recognizes the files, but locks up as soon as they are played. My muxing options should be fine as the Nero AVC is muxed the same way- Yamb1.4 and MP4Box.
Here is the command line:
"x264.exe" --pass 2 --bitrate 250 --stats ".stats" --ref 2 --analyse p8x8,b8x8,i4x4 --direct none --progress --no-psnr --output "D:\x264-psp\test1.mp4" "D:\x264-psp\test1.avs"
Any thoughts?????
quake74
10th January 2006, 12:31
Dear Willie1, try to upgrade to the latest x264 build and use the included psp profile with the megui-x264. Or maybe you changed something in the audio? Or maybe you passed something strange to mp4box? Good luck!
bond
10th January 2006, 12:57
willie1, you do know that you need special framerates, resolutions, filenames and also need to fuck the mp4 up with these atomchanger tools for making things to work on the psp?
willie1
10th January 2006, 16:30
As I posted, I have working files from Nero Digital AVC with belight encoded audio, muxed with Yamb. I know the correct framerates,filenames, and framesizes. I have working files(ND AVC), and even recognized x264 files, but they lock up. I am using x264 396D, downloaded this last Saturday.
bond
10th January 2006, 16:34
...and also need to fuck the mp4 up with these atomchanger tools for making things to work on the psp?.....
quake74
10th January 2006, 17:03
As I posted, I have working files from Nero Digital AVC with belight encoded audio, muxed with Yamb. I know the correct framerates,filenames, and framesizes. I have working files(ND AVC), and even recognized x264 files, but they lock up. I am using x264 396D, downloaded this last Saturday.
Could you share the x264 command lines you are using, or better yet, try the megui with the standard psp profile and post the log (that is, if the video still doesn't work)? (and maybe also post the avs file, the mp4box command, and so on)
willie1
11th January 2006, 01:15
Here's the meGui log:
Next job job1-1 is a video job. encoder commandline:
"C:\Program Files\x264\x264.exe" --pass 1 --bitrate 250 --stats "D:\x264-psp\test1.stats" --subme 1 --analyse none --direct none --me dia --threads 2 --progress --no-psnr --output NUL "D:\x264-psp\test1.avs"
successfully set up video encoder and callbacks for job job1-1
----------------------------------------------------------------------------------------------------------
Log for job job1-1
avis [info]: 368x160 @ 23.98 fps (2956 frames)
x264 [info]: using cpu capabilities MMX MMXEXT SSE SSE2
x264 [info]: slice I:17 Avg QP:20.76 size: 6748
x264 [info]: slice P:2939 Avg QP:23.08 size: 1270
x264 [info]: mb I I16..4: 33.1% 0.0% 66.9%
x264 [info]: mb P I16..4: 9.0% 0.0% 0.0% P16..4: 68.5% 0.0% 0.0% 0.0% 0.0% skip:22.5%
x264 [info]: final ratefactor: 24.58
x264 [info]: kb/s:249.6
Actual bitrate after encoding without container overhead: 250.59
----------------------------------------------------------------------------------------------------------
job job1-1 has been processed. This job is linked to the next job: job1-2
Next job job1-2 is a video job. encoder commandline:
"C:\Program Files\x264\x264.exe" --pass 2 --bitrate 250 --stats "D:\x264-psp\test1.stats" --ref 2 --analyse p8x8,b8x8 --direct none --threads 2 --progress --no-psnr --output "D:\x264-psp\test1.mp4" "D:\x264-psp\test1.avs"
successfully set up video encoder and callbacks for job job1-2
----------------------------------------------------------------------------------------------------------
Log for job job1-2
avis [info]: 368x160 @ 23.98 fps (2956 frames)
x264 [info]: using cpu capabilities MMX MMXEXT SSE SSE2
mp4 [info]: initial delay 0 (scale 2997)
x264 [info]: slice I:17 Avg QP:20.65 size: 6456
x264 [info]: slice P:2939 Avg QP:22.68 size: 1273
x264 [info]: mb I I16..4: 35.7% 0.0% 64.3%
x264 [info]: mb P I16..4: 8.1% 0.0% 0.0% P16..4: 48.4% 15.1% 4.5% 0.0% 0.0% skip:23.9%
x264 [info]: ref P 78.0% 22.0%
x264 [info]: kb/s:249.8
Actual bitrate after encoding without container overhead: 250.82
desired video bitrate of this job: 250 kbit/s - obtained video bitrate: 251.687005575101 kbit/s
Here's the avs script:
# Created with Gordian Knot
#
# http://gknot.doom9.org
# PLUGINS
LoadPlugin("C:\PROGRA~1\GORDIA~1\DGMPGDec\DGDecode.dll")
#LoadPlugin("C:\PROGRA~1\GORDIA~1\AviSynthPlugins\decomb.dll")
#LoadPlugin("C:\PROGRA~1\GORDIA~1\AviSynthPlugins\KernelDeInt.dll")
LoadPlugin("C:\PROGRA~1\GORDIA~1\AviSynthPlugins\UnDot.dll")
#LoadPlugin("C:\PROGRA~1\GORDIA~1\AviSynthPlugins\dgbob.dll")
#LoadPlugin("C:\PROGRA~1\GORDIA~1\AviSynthPlugins\Convolution3d.dll")
#LoadPlugin("C:\PROGRA~1\GORDIA~1\AviSynthPlugins\FluxSmooth.dll")
#LoadPlugin("C:\PROGRA~1\GORDIA~1\AviSynthPlugins\TomsMoComp.dll")
#LoadPlugin("C:\PROGRA~1\GORDIA~1\AviSynthPlugins\VSFilter.dll")
#LoadPlugin("C:\PROGRA~1\GORDIA~1\AviSynthPlugins\SimpleResize.dll")
# SOURCE
avisource("D:\x264-psp\test1.avi")
# TRIM
#trim(startframe,endframe)
# IVTC
#Telecide(order=1,guide=1).Decimate()
# or use
#IVTC(44,11,95)
#GreedyHMA(1,0,4,0,0,0,0,0)
# DEINTERLACING (1)
#FieldDeinterlace()
#FieldDeinterlace(blend=false)
#TomsMoComp(1,5,1)
# DEINTERLACING (2)
#KernelDeInt(order=1,sharp=true)
# or maybe
#DGBob(order=1,mode=0)
# DEINTERLACING (3) - special requests
#GreedyHMA(1,0,0,0,0,0,0,0)
#Telecide()
#SeparateFields()
# CROPPING
crop(0,0,640,272)
# SUBTITLES
#VobSub("FileName")
# RESIZING
LanczosResize(368,160)
# DENOISING: choose one combination (or none)
Undot()
# 1) little noise
#Temporalsoften(2,3,3,mode=2,scenechange=6)
#mergechroma(blur(1.3))
#FluxSmoothST(5,7)
# 2) medium noise
#Temporalsoften(3,5,5,mode=2,scenechange=10)
#Convolution3d("moviehq")
#FluxSmoothST(7,7)
# 3) heavy noise
#Temporalsoften(4,8,8,mode=2,scenechange=10)
#Convolution3d("movielq")
#FluxSmoothST(10,15)
# BORDERS
#AddBorders(left,top,right,bottom)
# COMPRESSIBILITY CHECK
# !!!!Snip Size now has to be 20 for use in GKnot!
#SelectRangeEvery(400,20)
# FOOL CCEnc
#empty = BlankClip()
#AudioDub(last,empty)
I already posted the command line.
@Bond: I have working AVS files on the psp so I do know how to do the atomchanger thing. To get a working Nero digital, I encode the avs in Nero, encode the audio with belight, mux the audio/video with Yamb(mp4box), then atomchanger, and finally copy to PSP with the appropriate file structure. I have both 23.976fps and 29.97fps Nero AVC/ belight/ Yamb(mp4box)/ atomchanger files working. The MeGui files are recognized by the psp, but in the properties it sees th4e video at 768kbps, and if selected, the PSP locks up.
deets
11th January 2006, 01:24
try changing --threads 2 to --threads 1
i know it sounds weird, try it with a short clip and see if it works. my psp locked up when i used 2 threads in x264 even though the file played fine on the pc etc.
in megui goto tools-settings and untick "automatically set number of threads" as this puts in 2 automatically if you have a HT or dual core cpu
willie1
11th January 2006, 02:29
I'm only using 1 thread. Thanx anyway.
deets
11th January 2006, 02:32
I'm only using 1 thread. Thanx anyway.
not according to that log you posted...
"C:\Program Files\x264\x264.exe" --pass 2 --bitrate 250 --stats "D:\x264-psp\test1.stats" --ref 2 --analyse p8x8,b8x8 --direct none --threads 2 --progress --no-psnr --output "D:\x264-psp\test1.mp4" "D:\x264-psp\test1.avs"
you may only be putting one thread in x264, but megui will change that to two if it detects a HT or multi core CPU, you need to manually turn that off as i suggested.
just try it on a 1 minute clip...
willie1
11th January 2006, 04:08
Thanx Deets, I had previously unchecked that box (at least I remember doing that) and setting it to one thread, but when I went back, it was set again to auto. (probably when I reinstalled everything.) The file you provided worked, so that's probably the problem. I am going to try a test encode of my own now. Thanx again.
willie1
11th January 2006, 04:38
That was the problem. Thanx Deets!
Doom9
11th January 2006, 09:36
@sevEren^^: I've made the same findings regarding the framerate reported.. no idea though why this happens.. I'm still using AVIFile to read the framerate. I'll have to step through the debugger once.. I'm having some nasty thoughs why this is happening.. I suspect the framerate returned isn't 29700/1000 and 23976/1000 (which would be properly mapped) but something in that range only, and so it will not be picked up because I look at an exact match in the dropdown.. not some kind of closest match. If there's none found, the calculator defaults to the default fps which is 25.
sevEren^^
12th January 2006, 18:43
@sevEren^^: I've made the same findings regarding the framerate reported.. no idea though why this happens.. I'm still using AVIFile to read the framerate. I'll have to step through the debugger once.. I'm having some nasty thoughs why this is happening.. I suspect the framerate returned isn't 29700/1000 and 23976/1000 (which would be properly mapped) but something in that range only, and so it will not be picked up because I look at an exact match in the dropdown.. not some kind of closest match. If there's none found, the calculator defaults to the default fps which is 25.
Glad you were able to recreate this problem, as I was beginning to suspect it was a software component on my machine that was to blame. I look forward to a fix in a future build of megui. I didn't realise that 25fps was the default value that is used when an exact match isn't found, I thought it was picking up that number from the original avi file somehow (which was from PAL source 25fps). doh. :) Tbh though, it's a tiny bug and it's fairly simple to workaround anyway. :)
quomp
22nd January 2006, 21:30
Hi there all,
Could somebody tell me if there is any Mac way to get a ripped PAL DVD .vob file onto the PSP at 23.98fps which is now supported. I want to buy a PSP but won't until I know this is possible as I can't stand the sticky/duplicated frames seen when I use iPSP, PSPware, ffmpegX to convert movies.
Really frustrating. No-one seems to have written any updates for any of these programs which will allow playback at this framerate. Anyone kind enough to help?
damrod
30th January 2006, 04:26
@jonny
your psp mediaplayer works on firmware 2.5 ?
seems interesting..
jonny
30th January 2006, 09:50
only on 1.5
i use the second psp cpu to optimize stuffs, and this can be done on 1.5 only (kernel mode is needed)
damrod
30th January 2006, 13:09
bad luck ;-))
robwicks
11th February 2006, 09:03
The audio seems to give me the most trouble. I put this in my psp.bat:
x264.exe --pass 1 --bitrate %2 --stats ".stats" --ref 2 --mixed-refs --bframes 3 --b-rdo --weightb --subme 6 --trellis 1 --analyse p8x8,b8x8,i4x4,p4x4 --threads 2 --progress --no-psnr --output %1.mp4 %1.avs
x264.exe --pass 2 --bitrate %2 --stats ".stats" --ref 2 --mixed-refs --bframes 3 --b-rdo --weightb --subme 6 --trellis 1 --analyse p8x8,b8x8,i4x4,p4x4 --threads 2 --progress --no-psnr --output %1.mp4 %1.avs
This allows me to type psp.bat <filename> <bitrate>, and the script will then run against <filename>.avs, creating <filename.mp4> at <bitrate> Kbps. Originally, I had the batch file do everything to get me the MAQ00264.MP4 file, but I kept getting bad files. Sometimes, they would yield "unsupported format," others, the PSP would freeze. I finally converted the WAV file I had (which was 44100) to 48000 using Besweet. I deleted the original wav file. First, I tried belight, and still got the lockup. Then I tried the same settings on dbpoweramp using Nero AAC (which is what I had been using with Belight) (LC, High Quality, Radio VBR). dbpoweramp worked, and Besweet did not. I had been working on this thing for 3 hours before I finally got a working file onto the PSP, and the problem seems to be the audio. I think this could be an area which could use some serious work.
robwicks
11th February 2006, 09:11
I spoke too soon. The clip played once. I stopped it before it was finished and tried to play it again, and it doesn't play. It also doesn't lock up my PSP, though.
The audio seems to give me the most trouble. I put this in my psp.bat:
x264.exe --pass 1 --bitrate %2 --stats ".stats" --ref 2 --mixed-refs --bframes 3 --b-rdo --weightb --subme 6 --trellis 1 --analyse p8x8,b8x8,i4x4,p4x4 --threads 2 --progress --no-psnr --output %1.mp4 %1.avs
x264.exe --pass 2 --bitrate %2 --stats ".stats" --ref 2 --mixed-refs --bframes 3 --b-rdo --weightb --subme 6 --trellis 1 --analyse p8x8,b8x8,i4x4,p4x4 --threads 2 --progress --no-psnr --output %1.mp4 %1.avs
This allows me to type psp.bat <filename> <bitrate>, and the script will then run against <filename>.avs, creating <filename.mp4> at <bitrate> Kbps. Originally, I had the batch file do everything to get me the MAQ00264.MP4 file, but I kept getting bad files. Sometimes, they would yield "unsupported format," others, the PSP would freeze. I finally converted the WAV file I had (which was 44100) to 48000 using Besweet. I deleted the original wav file. First, I tried belight, and still got the lockup. Then I tried the same settings on dbpoweramp using Nero AAC (which is what I had been using with Belight) (LC, High Quality, Radio VBR). dbpoweramp worked, and Besweet did not. I had been working on this thing for 3 hours before I finally got a working file onto the PSP, and the problem seems to be the audio. I think this could be an area which could use some serious work.
damrod
11th February 2006, 10:22
i use aacenc.exe for audio
cbr, lc, 48khz
seems my psp2.5 don't support 44.1khz only 48khz
and with cbr no audio/video desync or pb
lc profile of course :-(
for anime 64kbits
for music or better quality 128kbits -- no more since i listen via headphones..
style have pb sometimes with jh264 when i don't put the maxbitate at 768kbits and you?
robwicks
11th February 2006, 17:31
Okay, I've been hacking around with this thing for a while now. Here are my program versions:
x264 core:44 svn-429
MP4Box - GPAC version 0.4.1-DEV
GPAC Copyright: (c) Jean Le Feuvre 2000-2005
(c) ENST 2005-200X
NAACEnc 1.20 - (C) 2004 Michael Schubert
Nero AAC encoder frontend based on NEncode (C) 2003 DPeshev.
My AtomAVC.ini contains the following:
C:\Program Files\x264>type AtomAVC.ini
[Config]
Title=PSP MPEG-4 AVC
MQV=2
CODEC=2
[DeleteAtom]
Item0=ftyp
Item1=free
[InsertAtom]
Item0=ftypMSNV%01%00%07%86MSNVmp42isom
Item1=/moov/trak/edts%00%00%00%1Celst%00%00%00%00%00%00%00%01%00%7E%31%B6%00%00%00%00%00%01%00%00
My psp-encode.bat script contains the following:
x264.exe --pass 1 --bitrate %2 --stats ".stats" --ref 2 --mixed-refs --bframes 0 --b-rdo --weightb --subme 6 --trellis 1 --analyse p8x8,b8x8,i4x4,p4x4 --threads 1 --progress --no-psnr --output %1.264 %1.avs
x264.exe --pass 2 --bitrate %2 --stats ".stats" --ref 2 --mixed-refs --bframes 0 --b-rdo --weightb --subme 6 --trellis 1 --analyse p8x8,b8x8,i4x4,p4x4 --threads 1 --progress --no-psnr --output %1.264 %1.avs
naacenc -tape -lc %1.wav %1-audio.mp4
start /belownormal /b /w MP4Box.exe -fps 29.97 -add %1-audio.mp4 %1.mp4
start /belownormal /b /w MP4Box.exe -fps 29.97 -add %1.264 %1.mp4
start /belownormal /b /w ATOMChanger.exe %1.mp4 MAQ00264.MP4 "C:\Program Files\x264\AtomAVC.ini"
Before I encode, I demux the audio from my AVI or AViSynth script using VobSubMod. I then use besweet to convert whatever the audio to a 48000Hz wav file. Once I have crafted my avs file, using psp.avs as a template, I name it something without spaces, let's say, in this case SW_EpIII.avs. I name the wav file above SW_EpIII.wav. Then I run
psp-encode.bat SW_EpIII 256
The script runs against the avs file to create the video, and converts a .wav file of the same name (which you created in the manner above).
I put \program files\x264 into my path, and put atomchanger, naacenc and any other command line tools I use into that directory. The resulting file played multiple times on my psp. I just pulled a short clip so I could verify settings. I will experiment with other quality settings now that I have a basic setting which works. I hope this helps someone out there who was a frustrated as I was. I found naacenc.exe at rarewares.org, BTW.
deets
11th February 2006, 20:14
i found megui to be the best tool to mess around with PSP encodes for video and besweet using my nero dll's to encode the audio.
then i mux with megui and batch it through atomchanger.
my sig contains a basic page with all the info gleamed off this long topic from all the geniuses on here :)
neonix
16th February 2006, 18:04
i found megui to be the best tool to mess around with PSP encodes for video and besweet using my nero dll's to encode the audio.
then i mux with megui and batch it through atomchanger.
my sig contains a basic page with all the info gleamed off this long topic from all the geniuses on here :)
Nice guide you have setup on that site in your signature. I followed it and got beatiful results from my encodes (256kbps video bitraite, nero aac radio vbr profile for audio (75-80kbps)). I was just wondering how one would do this with VOB files instead of transcoding AVI's?
I guess i should use dvd decrypter to stream copy the main movie and audio soundtrack i want, and turn off the file-splitting option so that i get only 1 vob file? Then use DGIndex to demux the audio and create a .d2v, open this in the avisynth creator in MeGUI and choose deinterlacing if the dvd has that, add the avisynth options i want myself, then just encode as usual? After that use BeLight to transcode the .ac3 and then mux the files to a MP4?
Does this sound about right, or am i missing something?
EDIT: Decided to use Gordian Knot to create the avisynth script file, cut away the credits and such. Then just opened the avisynth in notepad, added the options i wanted myself (resize to 368,208, Tweak(sat=1.2), Sharpen(0.3) and assumefps(24.000) (since this is a 25fps pal dvd)). and it seems like its going good (megui-x264 started on second pass now, although it seems like it's going a bit slower than when i transcode avi's, but i guess that's normal, since this dvd needs to be deinterlaced).
EDIT 2: And it worked perfectly :) Although i have to re-encode it, since i tirmmed off the credits in the movie, but i didn't consider that the audio would be totally untouched, so... hehe.
handtruck
28th April 2006, 22:32
I've started to attempt this venture with one problem: Audio! The video plays perfectly. When I use faac (whether via besweet or faac.exe bia megui), the audio plays about half as fast as it should. If I use Nero or the Winamp AAC plugins (via besweet), the PSP freezes as soon as the video starts.. I've read up and down the threads and was looking for some help.
Edit:
Let me give some specifics
The video is 23.976 FPS
I use BeLight to convert the audio to AAC (always at 64 kbps) and make the output sample rate 48000.
deets
29th April 2006, 19:17
have a look at my sig for some audio info
damrod
30th April 2006, 10:22
have the same problem...was thinking too high bitrate for video
(x264@500 but the max bitrate is around 2000) + audio faac 64kb 48khz)
firmware 2.5
handtruck
1st May 2006, 13:44
Thanks, deets.. Actually used your site as a guideline before you responded but I still have the same problem.. Used a trial of one of those "all-in-one" converters (which I think used ffmpeg for video) and still the audio is too slow.. Is this a firmware issue?
It's weird because
-the file plays perfectly on the computer
-the video plays perfectly on the PSP
-the audio plays on the PSP, but at about half the speed.
It may be important to note that even though the audio is 64kbps, if you look at the information on the PSP, it says 128kpbs. I also tried 128kbps audio with the same problem.
handtruck
1st May 2006, 18:16
Ok, some more information.
I sped up the audio in besweet to be double the original (which incidentally makes the file half as large obviously and half the duration). And this actually works on the PSP. The audio and video match up. However, scrolling and resuming put the audio out of sync (for obvious reasons). This proves that the audio is playing at EXACTLY half the speed. Does this have to do with the 48000 Hz the audio MUST be at for AVC? Is there a way to make the file "LOOK" like it's at 48000 but actually be 24000, the speed it's apparently being played at?
whats the fps of the video?
i personally use nero dll's via besweet and belight and all works great
handtruck
1st May 2006, 20:14
This has happened for both 23.976 video and 29.97 video. I would rather try to use the open source (and free) faac to make this happen if possible, but I'll see if I can make it work with Nero (if I can somehow "obtain" the .dll's)
But this audio issue is just driving me nuts!!!
handtruck
1st May 2006, 22:49
OK, just tried my files on a firmware 2.5 psp a friend has, and they ALL work. This is clearly a firmware issue (I have 2.7). Any ideas?
damrod
11th May 2006, 22:58
maybe a problem with container of audio before final muxing?
i have a strange thing on my pc...
audio encoded in he-aac with winamp codec...property in mpc give 24khz same source with latest neroaudio codec...48khz....both he-aac in 64kb so maybe the psp have the same problem and bug....
presonally i prefer x264@500 than xvid@768kb for my psp since i have only one 1GB MSPro :)
unmei
12th May 2006, 02:26
an AAC decoder that doesn't understand the SBR part of a HE-AAC will only see the "nomally" encoded part, that happens to be at half the samplerate (thus it sees 24kHz for a 48kHz file). I don't have a PSP but from this behaviour and also because other posters mentioned LC i suspect the PSP, or a particular firmware version, cannot decode the SBR part, so don't use HE-AAC but LC-AAC and look if that fixes your problems.
Clown shoes
12th May 2006, 14:13
To the best of my knowledge the PSP will only accept aac as LC. I thought that had always been the case. I am supprised to hear HE worked on any firmware!
|SeNsUi|
4th June 2006, 16:09
hey i jsut got a psp and i have alwyas liked using x264 but for some reason any movie i encode using it for psp it plays for 4 secs then says video cannot played why is this anyone know why??..
i ust the latest x264 codec and use the command line interface encoder.. then use bewseet for audio and mux using mp4mux then run it throught atomchanger.. althought the atomchanger confused me abit cuz i keep reading about these long commands ppl type with 29 fps when mines are 23fps :(..
deets
4th June 2006, 19:11
hi, have a look at my sig, its got all the info collated from this thread and the atomchanger which can handle any input FPS file.
also, whats your firmware?
MarcParis
5th June 2006, 12:17
Hello All,
I'm new on this board as a writer (because I often read this forum and it's very cool!)
I'm currently trying to convert my .mp4 (x264, AAC, 25fps) to psp mp4 (firmware 2.71).
I've tried Deets method on his site, but my psp keeps to say me that my video is not compatible.
In fact I'm asking for help...:):) (thank you in advance)
Here is my method :
VIDEO : Compression through AVS (29.97fps) and command line x264 (last update, no particular option at 768 kps and size of 320*240)
AUDIO : I extract wav from my mp4 original file, then I use Nero digital CLI (free one). I encode with lc at 64000 kps.
I'm muxing with mp4box.
At the end, I'm using atomchanger.
Thanks a lot for your help.
MarcParis
5th June 2006, 20:17
In order to help, here are my parameters : based on what I've found in this thread...thanks to their author!!
psp.avs :
DirectShowSource(Source,audio=false)
LanczosResize(320,240)
ChangeFPS(29.97)
x264 version : 531
psp.bat
start /belownormal /b /w x264.exe --threads 2 --thread-input --progress --bitrate 768 --level 1.3 --analyse p8x8,b8x8,i4x4 --output video.264 psp.avs
start /belownormal /b /w neroAacEnc.exe -cbr 128000 -lc -if audio.wav -of audio.mp4
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.mp4 output.mp4
start /belownormal /b /w ATOMChanger.exe output.mp4 M4V80021.mp4 AtomAVC.ini
The result is perfect on my computer, but unreadeable on my psp (firmware 2.71).
Moreover the sound, alone, is readable on psp.
Thank you for your help!
deets
5th June 2006, 21:07
Hello All,
I'm new on this board as a writer (because I often read this forum and it's very cool!)
I'm currently trying to convert my .mp4 (x264, AAC, 25fps) to psp mp4 (firmware 2.71).
I've tried Deets method on his site, but my psp keeps to say me that my video is not compatible.
In fact I'm asking for help...:):) (thank you in advance)
Here is my method :
VIDEO : Compression through AVS (29.97fps) and command line x264 (last update, no particular option at 768 kps and size of 320*240)
AUDIO : I extract wav from my mp4 original file, then I use Nero digital CLI (free one). I encode with lc at 64000 kps.
I'm muxing with mp4box.
At the end, I'm using atomchanger.
Thanks a lot for your help.
is the audio at 48khz? if your using megui, did you make sure its not automatically setting the threads to 2?
deets
5th June 2006, 21:08
In order to help, here are my parameters : based on what I've found in this thread...thanks to their author!!
psp.avs :
DirectShowSource(Source,audio=false)
LanczosResize(320,240)
ChangeFPS(29.97)
x264 version : 531
psp.bat
start /belownormal /b /w x264.exe --threads 2 --thread-input --progress --bitrate 768 --level 1.3 --analyse p8x8,b8x8,i4x4 --output video.264 psp.avs
start /belownormal /b /w neroAacEnc.exe -cbr 128000 -lc -if audio.wav -of audio.mp4
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.mp4 output.mp4
start /belownormal /b /w ATOMChanger.exe output.mp4 M4V80021.mp4 AtomAVC.ini
The result is perfect on my computer, but unreadeable on my psp (firmware 2.71).
Moreover the sound, alone, is readable on psp.
Thank you for your help!
AVC needs a specific file name following this format:
MAQ00419.MP4
m4v is for ASP
MarcParis
5th June 2006, 23:35
Ok thank you for your answer Deets.
1- You're right about MeGui. I've always put 2 threads. I'll compress using command line directly.
2-About the name of the file. When I rename it MAQ00419.MP4, I can't see it any more on my psp. I put this file to the following folder : J:\MP_ROOT\100MNV01
Is it a different folder?
Thank you a lot for your precious help Deets!
MarcParis
5th June 2006, 23:55
Ok I've found the correct folder 100ANV01.
With only 1 thread at compression it works perfectly!!
Thank you a lot again!!!
That's great!!!
Long live Doom9 forums and x264!!
deets
6th June 2006, 04:55
http://www.bontragerphotography.com/psp/meguithreads.php
use megui, its great and can also do your aac using the nero CLI. just change the settings as per the page above about the threads
MarcParis
6th June 2006, 09:05
Ok thank you for the tip!
It would be easier in fact...:)
Otherwise, do you know the simpliest way to convert audio from my original .mp4 file to AAC LC?
Currently I'm using an avs script to open my mp4 file in virtualdubmod and there I extract a wav file that I convert to AAC lc with nero cli...:):) I'm sure there a quicker way to do it...:)
Thanks for your help again.
foxyshadis
6th June 2006, 10:00
Pipe the output of nerodec into neroenc? Or use belight and have it do all the piping for you? =p
MarcParis
6th June 2006, 22:45
Ok thank you!
I've also find another way : Extraction of audio track from original file, and decode mp4 to wave with nero decoder...:)
|SeNsUi|
8th June 2006, 20:14
im on 2.6 firmware and it allows 23fps and the ones im encoding are all 23 fps ju wondering why it stops playback after around 5 secs.. and that site helped me alot i seen it before but i duno what im doing u think i should upload my 500mb file and see if it works on ur psp like i shall send file and u guyz put it through atomchanger and test on psp then i will know if im doing something wrong with atomchanger :(..
deets
9th June 2006, 01:08
what are your x264 settings? are you using the new atomchanger that can handle all the FPS?
|SeNsUi|
9th June 2006, 19:38
hmm dunno it should allow all fps i got it from here this forum dunno theres more then one version anyone have latest version so i can check it out... x264 settings is all good pd psp defaults played with the ref frames and bframes but to avail all the same results on my psp :(..
deets
10th June 2006, 00:22
see my sig, download the atomchanger and try with my profile...
Sudds
11th June 2006, 12:43
I,ve read most of this thread and decided to convert to 24fps.
loadplugin("C:\Documents and Settings\pc-user\My Documents\Useful Shit\DGINDEX\DGDecode.dll")
loadplugin("C:\Program Files\avisynth 2.5\plugins\NicAudio.dll")
video = mpeg2source("C:\Documents and Settings\pc-user\My Documents\My Videos\Episode 1.d2v")
audio = wavSource("C:\Documents and Settings\pc-user\My Documents\My Videos\Episode 1 T01 2_0ch 256Kbps 48KHz.wav")
AudioDub(video, audio)
AmplifydB(17,17)
Sharpen(0.3)
AssumeFPS(24)
ConvertToYV12()
Tweak(sat=1.7, bright=17, cont=1.1)
Lanczos4Resize(368,208)
BESWEET
BeSweet.exe -core( -input "C:\Documents and Settings\pc-user\My Documents\My Videos\
Episode 1 TO1 2_0ch 256kbps 48KHz.wav" -output "C:\Documents and Settings\pc-user\My Documents\My Videos\
Episode 1 TO1 2_0ch 256kbps 48KHz.mp4") -bsn( -2ch -cbr 128 -accprofile_lc ) -ota( -g max ) -soundtouch( -r 25000 24000 )
Then muxed with YAMB, and converted with ATOMCHANGER.
Plays fine on the PC with QT but when placed on the PSP its out of sync, i,am not sure what i have done wrong, as i have been using this for awhile now with FPS as 29.97 and had no problems.
Anyone got an idea whats going on? Thanks.
This is really pi**ing me off now...29.97fps is out of sync now as well.
CruNcher
11th June 2006, 23:16
:thanks: to Jonny and magiK! for PMP Mod AVC :)
http://jonny.leffe.dnsalias.com/pmp_mod_avc/index.htm at least we have 480x272 now, still some hurdles to take before we reach full UMD res tough but it progresses nice to see :)
btw did one of yeah heared something about the Author of another ffmpeg decoder based Player called PSPlayer MT, seems he vanished ?
Jonny the PSP optimized ffmpeg h.264 decoder how fast is it compared to Sony's (is it optimized @ all or only ported ? )
BetaBoy allready said that Picard is working on porting CoreAVC to the PSP this could be very interesting in the Future too :)
heres my first test 480x272x24p 788 kbps
http://www.filefactory.com/get/v3/f2.php?f=c411ee
Playback is smooth no problems but the combo 788 kbps avc (deblocking) + 320 kbps mp3 seems to suck on the battery alot
Some chat about the patches with the X264 Devs
(pengvado): x264-info_file.diff: no, I won't allow extra output files. if there isn't any good way to get that info, then write a 10 line C program to grab it directly from avisynth.
(Jarod): how does that help changing .mp4 output?
(pengvado): not at all
(pengvado): I don't see why that patch was written in the first place
(Jarod): to play on the psp?
(Jarod): or should the muxer do it you mean?
(pengvado): x264-info_file.diff doesn't change muxing at all
(Jarod): hmm
(Jarod): so, its useless?
(pengvado): yes
(pengvado): the main patch, x264-pictiming-magik.diff makes the following unacceptable changes:
(pengvado): sets IDR-frames to "low priority" (should be "highest", like it was before)
(pengvado): removes x264's identifacion and settings userdata-sei
(pengvado): and the following errors:
(pengvado): writes low_delay_hrd_flag unconditionally (should appear only when hrd_settings is present)
(CruNcher): pengvado im not sure but maybe that's the way Sony want's the bitstream to be to work on the PSP ?
(Jarod): i doubt that
(pengvado): 4th error: I have to flame the author for calling it x264 v1.0
Bug Reports:
B-frames doesn't work couseing a "avc_get: sceMpegAvcDecode failed" error, but only if --ref is <1 else the decoding of b-frames is out of order seems it displays the encoding order instead of the displaying order (warping)
example = http://www.filefactory.com/?5e25b6
jonny
12th June 2006, 13:11
we are using the psp avc decoding api (the only libavcodec part used is the mp3 decoding now)
at 222mhz, the psp can decode 480x272 @ ~180fps!
(on the player the speed is around 67fps, software mp3 decoding slow down stuffs alot)
probably in successive versions i'll downclock the psp to 111mhz
ffmpeg h264 goes really slow on psp atm (a lot of work would be required to get full speed in software)
interesting infos about bframes (i was assuming bframes totally not working)
about the x264 modifications, my info_file patch is used by my pmp muxer (so it's useful for me and for everyone using the muxer)
the pictiming patch is done by magiK, i don't know 100% the details, but the psp don't decode the stream (or crash) without it (this patch was made analyzing the avc stream inside pmf files and streams produced with the elecard codec)
EDIT:
if some x264 developer is interested, this is the thread where all it's started:
http://forums.ps2dev.org/viewtopic.php?t=5820
(as you can see, at the start, only the elecard codec was working)
rootkit
15th June 2006, 23:44
Where can I get ATOMChanger?
quake74
16th June 2006, 07:40
Where can I get ATOMChanger?
:search: and look at the site in the signature of deets
http://www.bontragerphotography.com/psp/
Hyper Shinchan
16th June 2006, 10:03
I was looking at deet's website and I've noticed that he says
sadly I dont know who the original author was, but of course many thanks to them and also thanks to qyqgpower a kind user over on doom9 who recompiled atomachanger to remove the 29fps settings.
Well, the authors of AtomChanger are "Mobile Hackerz", they are Japanese and their own page is only in Japanese (sadly). AtomChanger is published under the LGPL.
http://www.nurs.or.jp/~calcium/3gpp/
rootkit
17th June 2006, 14:45
Hi,
i can do the same only with ffmpeg (firmware 2.71).
This is my script
#!/bin/sh -e
[ "$#" -ne 3 ] && exec echo "usage: $0 <input.avi> <output.mp4> <Titolo del film>"
ffmpeg -y -i "$1" -title "$3" -vcodec h264 -s 368x208 -coder 1 -b 300 -g 250 -f h264 -an -qcomp 1 -subq 6 -qns 3 -trell 2 -pass 1 /dev/null
ffmpeg -y -i "$1" -title "$3" -vcodec h264 -s 368x208 -coder 1 -b 300 -g 250 -f psp -acodec aac -ac 2 -ar 48000 -aq 80 -qcomp 1 -subq 6 -qns 3 -trell 2 -pass 2 "$2"
rm -f x264_2pass.log
Hyper Shinchan
27th June 2006, 16:43
Hi,
i can do the same only with ffmpeg (firmware 2.71).
This is my script
#!/bin/sh -e
[ "$#" -ne 3 ] && exec echo "usage: $0 <input.avi> <output.mp4> <Titolo del film>"
ffmpeg -y -i "$1" -title "$3" -vcodec h264 -s 368x208 -coder 1 -b 300 -g 250 -f h264 -an -qcomp 1 -subq 6 -qns 3 -trell 2 -pass 1 /dev/null
ffmpeg -y -i "$1" -title "$3" -vcodec h264 -s 368x208 -coder 1 -b 300 -g 250 -f psp -acodec aac -ac 2 -ar 48000 -aq 80 -qcomp 1 -subq 6 -qns 3 -trell 2 -pass 2 "$2"
rm -f x264_2pass.log
What build are you using? Is it possible to use all the x264 option in it? Like the rdo or the motion search quality?
deets
28th June 2006, 20:56
I was looking at deet's website and I've noticed that he says
Well, the authors of AtomChanger are "Mobile Hackerz", they are Japanese and their own page is only in Japanese (sadly). AtomChanger is published under the LGPL.
http://www.nurs.or.jp/~calcium/3gpp/
just seen this. so is it ok to have the recompiled file on my site then?
Hyper Shinchan
30th June 2006, 10:11
just seen this. so is it ok to have the recompiled file on my site then?
I guess so, but I'm not expert with this license... anyway you've just re-build it and patched it, right? If I'm not wrong the LGPL don't allow you to take portion of code and include them in your own program (but I repeat, I don't have confidence with these stuffs).
foxyshadis
1st July 2006, 01:01
GPL => can only be incorporated into other GPL software, any other license must be switched to GPL first.
LGPL => can be incorporated into any software. Technically, it also has to be backward-compatible with itself, to keep apps from breaking if a library is upgraded.
Either way you must supply the source if someone asks (an offsite link is sufficient, or you can just package it too), and the license has to be included with the binary. But that's about it afaik.
JOCKYW
1st July 2006, 15:57
I've developed a vlc client called "PMP VLC" for Sony PSP.
(http://forums.ps2dev.org/viewtopic.php?t=6053)
With the app PSP users can view video streams via wlan. The transcoding is done in real-time by vlc 0.8.5 on a PC.
Currently a good quality can be achieved with following transcode params:
Code:
:sout=#transcode{vcodec=DIV3,vb=700,width=360,height=272,fps=25,acodec=mp3,ab=48,channels=2}:duplicate{dst=std{access=http,mux=ogg,url=0.0.0.0:1234}}
Since the PSP can do H264 decoding with dsp hw, I have started doing experiments with x264 (vcodec=h264). However, I have 2 problems:
1. it pushes my AMD 2400 cpu to 100% and the pc is not responsive anymore
2. the only http stream container for h264+mp3 which works seems to be .ts
My questions are therefore:
1. what x264 video encode settings can you recommend to reach a decent quality similar to DIV3@700kbs (360x272, 25fps) and a cpu load well under 100% (e.g. like with DIV3 around 60%)
2. can the ogg container work for http streaming? if not now perhaps in the future? is there another container which may work?
Thx in advance!
===========================
EDIT:
After a long search I found the answers in this thread:
http://forum.doom9.org/showthread.php?t=111925
:sout=#transcode{vcodec=h264,vb=600,width=360,height=272,fps=25,venc=x264{me=dia,subme=1,analyse=none,bframes=1,b-adapt=none,chroma-me=none,merange=12},acodec=mp3,ab=48,channels=2}:duplicate{dst=std{access=http,mux=asf,url=0.0.0.0:1234}}
Quality is way beyond my expectation, x264 is cool!
Hyper Shinchan
4th July 2006, 10:02
What do you mean with "http streaming"? I'm not an expert, but I think that you mean progressive download... as long as I know it's not possible to stream over http, you have to use rtsp or something else.
Anyway it's an interesting software, but I canot use it unfortunaltely... you have to use 1.50 firmware, right? and I don't have a wi-fi connection with my PC....
JOCKYW
4th July 2006, 10:03
What do you mean with "http streaming"? I'm not an expert, but I think that you mean progressive download...
not progressive download, http streaming protocol
Sudds
8th July 2006, 16:33
Just would to say :thanks: to jonny and co for PMPMOD AVC.
Recently just downgraded my PSP, and its the best app going.
One question though, would it be possible to implement the PMP container into MeGUI?
rootkit
9th July 2006, 14:50
What differs from:
mencoder -ovc x264
and:
mencoder -ovc lavc -lavcopts vcodec=h264
?
yawoo
27th July 2006, 11:04
I have tried to use mencoder to encode to PSP/AVC format. The patched MP4 by atomchanger (psp video version) can be played by PSP (firmware 2.6) successfully. But when I seek after 90 seconds of the movie, or fast forward beynond 90 seconds. The playing video cannot be stopped, or cannot play properly.
I have tried additional encoding parameters, such as
bframes=1:frameref=1
bframes=0:frameref=2
The seeking problem is still existing.
mencoder.exe -dvd-device "e:" dvd://2 -chapter 1-22 -sid 2 -aid 128 -af volnorm -srate 48000 -vf-add scale=368:208,harddup -ofps 30000/1001 -oac faac -faacopts br=96:mpeg=4:object=1 -ovc x264 -ffourcc H264 -x264encopts bitrate=400:level_idc=13:bframes=0 -spuaa 18 -spualign 2 -o "c:\\DVD.2.1-22.x264.avi" 2> 2.txt
Ghim
27th July 2006, 20:18
I have updated my PSP firmware to 2.80 today (I know, I probably shouldn't have ;-)).
I have tested the video support with the updated version and I found the following:
- Videos can now be placed directly under the "VIDEO" directory of the Memory stick root. (I know, this is part of the official changelog but it's still worth mentioning).
- Videos in the "VIDEO" directory can have any naming you want !!! (no more MAQ*.mp4 naming required !!). However, the title of the video that appears on the PSP is now based on the file name and not on the information inside the file anymore and the thumbnail (.thm file) didn't work anymore in the "VIDEO" directory.
- Atomchanger is not required anymore !! I've been able to create valid files using only megui and avisynth. I've tested with 2 videos (25fps 320x240 with 48kHz sound and 25fps 368x208 with 44kHz sound) and they both worked fine.
- The PSP seems to do a check on the reported Profile/Level. I've found that "Main Profile - Level 2.1" and "Baseline Profile - Level 1.3" worked but I haven't had any success with anything else. By example, "Main Profile - Level 1.3", "Baseline Profile - Level 2.1" or "Main Profile - Unrestricted Level" didn't work.
EDIT: I've done some further testing and it seems some cases that didn't work were because of a problem in my x264 settings at the time of the test. Actually, for the Main Profile, any level set <= 2.1 seems to work. I've tried exactly the same settings (PD-PSP profile from megui) with level set a 1.3, 2, 2.1, 2.2 and Unrestricted. Files with level set at 1.3, 2 and 2.1 worked.
WARNING: These are only my personal findings and if someone could confirm them, it would be good. Since I haven't spent too much time testing, I may have missed some new things and the removed limits may not work in 100% case.
NOTE: I've only tested with files placed in the "VIDEO" directory. I don't know what happens with files in the old directories.
bond
27th July 2006, 20:27
would be a revolution if sony doesnt require hacking the mp4 files anymore :D
deets
27th July 2006, 21:08
no way!! this is fantastic news :D ill get testing :)
edit: oh the irony, im in the US now and dont have any 25fps stuff to test!
CruNcher
28th July 2006, 17:08
but still im sure they don't allow full UMD resolution ? or is it possible now ?, could you please check Ghim thx
Varium
28th July 2006, 18:28
I tried it but unfortunately it still doesnt work, you're pretty much stuck with the resolutions you use now.
Ghim
28th July 2006, 18:54
I've tried as well and, as Varium said it, we are still limited to the same resolutions as before.
Ghim
28th July 2006, 20:56
I've done some more testing and I've found another small "hidden" feature:
- Files with .m4v extension works. It seems that files can use either .mp4 or m4v extension.
This may not look very interesting, but the way I found it is much more interesting:
- I've downloaded a few Movie Trailers encoded for the iPod from QuickTime website. I've renamed them .mp4 and simply copied the files on my PSP and they played fine (correct audio/video synchronisation, correct aspect ratio, ...) !!! I then simply tried to keep the original .m4v extension and they worked as well.
Here are some examples I've tried to play on my PSP:
- "Ratatouille" Teaser, 320x132 AVC @ 23.976fps Video, 44100kHz AAC Audio
- "A Scanner Darkly" Trailer, 320x172 AVC @ 24.000fps Video, 44100kHz AAC Audio
You can get both trailers directly from QuickTime website.
It wouldn't surprise me if the compatibility with videos encoded for the iPod was the main reason Sony implemented these new features...
EDIT: Just a note explaining why Sony may have implemented these features: by supporting videos encoded for iPod (as well as removing the file name limits and adding video file saving from RSS... ) this allows the PSP to use most of the already existing video podcasts.
deets
28th July 2006, 22:17
interesting stuff ghim, im gonna keep messing about with stuff and update my site!
can any psp owners with a dual core cpu get files to play when they select more than one thread? i originally thought it might be my old cpu, p4 3.2HT that was the problem. Sadly, i get the same problem on my dual core centrino, which is a shame as i get much faster speeds with 2 threads.
if anyone could test their dual core setup with their psp, that would be great :)
adrianmak
29th July 2006, 02:00
How about PMP-AVC ?
There is a guy, developed a PMP (portable media player) for psp which can play .pmp video. The advatanges of PMP is the video can use full psp resolution 480x272
how to I create such .pmp files ?
CruNcher
29th July 2006, 03:22
480x272 is not full PSP resolution Display Yes but not full content resolution Studio UMD's are encoded @ DVD Resolution with 1500 kbps, the guy who develops PMP is long time Doom9 Member Jonny hmm you could use XviD4PSP or Mediacoder for easy encoding :)
Ghim
29th July 2006, 09:34
interesting stuff ghim, im gonna keep messing about with stuff and update my site!
can any psp owners with a dual core cpu get files to play when they select more than one thread? i originally thought it might be my old cpu, p4 3.2HT that was the problem. Sadly, i get the same problem on my dual core centrino, which is a shame as i get much faster speeds with 2 threads.
if anyone could test their dual core setup with their psp, that would be great :)
You don't need a dual core CPU to try the multithread encoding. I've encoded a few files using 2 threads (on my single core CPU) and the PSP can't decode those files.
Files encoded with multiple thread are quite different from files encoded using a single thread (multiple slices per frame if I'm not mistaken).
I know quite a few cases where such files are not supported so it does surprise me that the PSP decoder doesn't support them either.
Ghim
29th July 2006, 11:23
As I mentioned in a previous post, the new 2.80 firmware performs a check on the H.264 Level reported in the H.264 bitstream. For Main Profile, all levels > 2.1 are rejected.
This new limitation is not a problem for reading newly encoded videos or videos that were aready using a correct level.
However, I've just found out that the PSP videos that can be downloaded from "Google Video" website reports a level of 5.1 and are rejected by the PSP.
NOTE: I've only tried with videos in the "VIDEO" directory of the root. I haven't used the old file naming (old directories and file naming) since I've updated to 2.80 so I don't know if videos using the old naming are affected by these changes.
qyqgpower
30th July 2006, 03:36
old directories work as same as previous version, so no strict level limitation there
AnimeTheme
2nd August 2006, 19:27
I have some AVC files encoded by myself which work under the MP_ROOT folder. I have installed 2.80, and now when I put them under the "VIDEO" folder, they don't play anymore. I guess the H.264 level reported by my AVC files is unsupported by PSP under the "VIDEO" folder... as mentioned by Ghim.
Is there any way to edit the header of an AVC file to change the reported H.264 level....? I want to make my old AVC files work under the "VIDEO" folder, since I want to include them in my RSS Channel... and they have to be in the "VIDEO" folder.
conkeroo
5th August 2006, 10:13
Hello all,
Just wondering if anyone else has the same problem.
Ive updated to v2.80 and have encoded some PAL video (am in Ireland) but although it plays ok, the video is kind of jerky.
Its as if it plays ok for 20 frames of the 25 but the last 5 frames kind of speed up.
Some im thinking, is it the psp hardware actually decodes the video framerate, as in its in built, but the firmware merely tries to correct the hardware on a software level. Anybody have any thoughts??
Ghim
5th August 2006, 15:04
Is there any way to edit the header of an AVC file to change the reported H.264 level....? I want to make my old AVC files work under the "VIDEO" folder, since I want to include them in my RSS Channel... and they have to be in the "VIDEO" folder.
I've read the H.264 standard and it should be possible to do. However, I don't know any tool available at the moment to do it.
Ive updated to v2.80 and have encoded some PAL video (am in Ireland) but although it plays ok, the video is kind of jerky.
Its as if it plays ok for 20 frames of the 25 but the last 5 frames kind of speed up.
Most of the videos I'm encoding are PAL as well but I've never had such a problem. I've encoded quite a few fast and slow motion videos and the videos are all playing smoothly.
What software and settings do you use to create your videos ?
conkeroo
7th August 2006, 11:16
How you doin Ghim.
Im using psp video 9. Ive changed the settings to the correct framerate so it should be ok.
Maybe its just the software because it seems most people dont particularly like it. I just recently got the psp so ive only used this software cos it seems the easiest to use. What software would you recommend?
Cheers.
Sudds
7th August 2006, 11:24
MeGUI and X264, you,ll get brilliant results with it, i used to use PSPvideo9 but once i got MeGUI i never went back.:p
Ghim
7th August 2006, 18:02
I'm the same as Sudds... Once I got MeGUI + x264, I never went back to PSPVideo9...
At first, MeGUI + x264 can look a bit hard to use (compared to PSPVideo9)...
But if you really take some time to understand it and to set it up, you will get great results !
Sudds
7th August 2006, 18:18
I currently now use Xvid4PSP as am encoding PMP,s, but oddly enough MeGUI and X264 encodes look better (not res wise) most if all the ghosting have been cut out as well as the halo you get from red colours.
If only the PMP container was added to MeGUI, along with Jonnys modified version of x264, you would be making truly remarkable encodes.
foxyshadis
7th August 2006, 20:26
I'd like a little more information on this:
1. What is PMP exactly, and how does it compare to MP4? Or is it based on another container?
2. What can you mux from to get PMP? MP4? Raw? With what tools?
3. What modifications were made to x264? MeGUI will never package an x264 that breaks something, but if it's just a PMP output module, you could probably send to sharktooth for inclusion in his builds.
Sudds
7th August 2006, 20:54
Am surprised Foxy your not in the know of this :confused: Jonny of this very site along with others created this app.
PMP format was devloped by Jonny.
The PMPMOD AVC Muxer accepts .AVI .X264 and RAW as inputs, Audio is encoded to MP3 44100HKz.
More info can be found here mate http://jonny.leffe.dnsalias.com/pmp_mod_avc/index.htm
foxyshadis
7th August 2006, 23:25
Well, I have no PSP so I never paid attention, but now that I'm working on MeGUI I am. :p Thanks for the link, that's the kind of thing I had a hard time finding.
Sudds
7th August 2006, 23:31
No problem at all Foxy, if MeGUI ever did include the PMP container...it would just be excellent, i mean the encodes i got before i downgraded my 2.60 to 1.50 where fantastic, but to be able to use MeGUI , X264 and 480x272 RES in a PMP container...i,am drooling at the thought of it!
AnimeTheme
8th August 2006, 14:35
I've read the H.264 standard and it should be possible to do. However, I don't know any tool available at the moment to do it.
I have finally figured out a way to modify the AVC level so that PSP can recognize it under the "VIDEO" folder :D
After some searchings on the Interent, I know that the AVC profile/level information is stored in something called "profile-level-id", a 3-byte header which stores the information in the format of
profile(1 byte):constraint flags(1 byte):level(1 byte)
I don't know much about "constraint flags", but it appears to be usually "00". So for a AVC Main Profile Level 5.1 file (encoded with x264), the "profile-level-id" should be
4D0033
What you need to do is search for this hex value and replace them with
4D0015
which changes the level from 5.1 to 2.1.
I tried this on some of my previously encoded (x264) AVC videos, as well as a few Google AVC vidoes, and after the changes, they all played in "Video" folder on PSP.
Note that this header is either at the beginning or at the end of the AVC file, and it appears TWICE nearby (I change both).
CruNcher
8th August 2006, 15:58
its not hard to integrate into Megui you can do it by yourselves by useing profiles and the custom command in Megui very easy stuff but you have to keep the x264 patched all the time and with the rapid development of x264 the patch becomes fast invalid and needs to be reworked also pengvado doesn't like what it does with the stream he allready said in its current state he wont bring it in the rep.
Ghim
8th August 2006, 17:52
I forgot to mention something:
With 2.80, it is not only possible to put videos in the "VIDEO" folder but also in any sub-folder of "VIDEO" !
AnimeTheme
8th August 2006, 21:28
I forgot to mention something:
With 2.80, it is not only possible to put videos in the "VIDEO" folder but also in any sub-folder of "VIDEO" !
Thats exactly what this folder is for in fact... since all the RSS videos are put inside subfolders :P
conkeroo
9th August 2006, 21:29
Would anyone have an idea the best place to start to try and understand megui and x264.
Ive been researching the last couple of days and still no better off!! :sly:
Sudds
9th August 2006, 21:43
Try this link mate: http://www.bontragerphotography.com/psp/index.php
foxyshadis
10th August 2006, 02:13
http://www.project357.com/MeGUIwiki/index.php?title=Main_Page
conkeroo
10th August 2006, 12:18
Thanks Sudds, foxyshadis. Very helpful. :thanks:
Shadowfax3000
10th August 2006, 21:19
I have read this entire thread, tried numerous settings on my own, and have finally given up hope of doing this without help. Every video I create with x264 that is listed correctly in the PSP displays the message "This video cannot be played." when I try to play it.
1. In firmware 2.80, I make a folder called "VIDEO" in:
a.) the root of the memory stick?
b.) the MP_ROOT directory of the memory stick?
c.) or the PSP directory of the memory stick?
2. A file name like "Invader Zim.mp4" is allowed in that folder, right?
3. What is the maximum total bitrate (video + audio) allowed for an x264 created video on the PSP with firmware 2.80?
*3. Could someone please post their entire PD-PSP profile that has been CONFIRMED to work in firmware 2.80?
Thank you guys sooo much!
*Extremely important, because the latest PD-PSP profile has a few settings set that are confimed not to work on the PSP. God knows what other settings are incorrect.
Varium
10th August 2006, 21:30
I have read this entire thread, tried numerous settings on my own, and have finally given up hope of doing this without help. Every video I create with x264 that is listed correctly in the PSP displays the message "This video cannot be played." when I try to play it.
1. In firmware 2.80, I make a folder called "VIDEO" in:
a.) the root of the memory stick?
b.) the MP_ROOT directory of the memory stick?
c.) or the PSP directory of the memory stick?
2. A file name like "Invader Zim.mp4" is allowed in that folder, right?
3. What is the maximum total bitrate (video + audio) allowed for an x264 created video on the PSP with firmware 2.80?
*3. Could someone please post their entire PD-PSP profile that has been CONFIRMED to work in firmware 2.80?
Thank you guys sooo much!
*Extremely important, because the latest PD-PSP profile has a few settings set that are confimed not to work on the PSP. God knows what other settings are incorrect.
To answer your questions:
1.)
a)Yes, you do create the VIDEO folder in the root of your memory stick
2.) That filename should be allowed, yes.
3.) Videos in the VIDEO folder must be no more than Level 2.1@Main profile or the PSP will not play them. I don't think there is an audio bitrate limitation, however.
Here are the x264 two profiles I use along with two nero aac profiles:
http://rapidshare.de/files/28932286/My_Working_Profiles.zip.html
If this doesn't help i'm sure someone else can help you out.
Ghim
10th August 2006, 22:01
According to Sony's official specifications for the VIDEO folder, the maximum video bitrate is 768kbps and the maximum audio bitrate is 128kbps (I haven't tested however so I don't know if higher bitrates are rejected or not).
If you can read Japanese, here is the link describing the exact features:
http://www.jp.playstation.com/psp/pdf/RSSChannel-J_2.80.pdf (The Appendix is the most interesting part for the supported Video and Audio)
For my x264 profile, I use the PD-PSP with only 3 modifications compared to the default version:
- level set to 2.1 (instead of Unrestricted)
- B-frames set to 1
- Number of Reference Frames set to 1
Varium
10th August 2006, 22:22
I did a quick test now using x264 ABR 768 Kb/s & nero aac at q=1 (~400+ Kb/s), and it played fine on my psp, so i guess there isn't an audio bitrate limitation.
Shadowfax3000
11th August 2006, 00:13
To answer your questions:
Here are the x264 two profiles I use along with two nero aac profiles:
http://rapidshare.de/files/28932286/My_Working_Profiles.zip.html
The zip file seems to be corrupt. The audio profiles extract fine, but the video profiles do not.
For my x264 profile, I use the PD-PSP with only 3 modifications compared to the default version:
- level set to 2.1 (instead of Unrestricted)
- B-frames set to 1
- Number of Reference Frames set to 1
I closed MeGUI completely, downloaded the profiles from http://mirror05.x264.nl/Sharktooth/?dir=./MeGUI/profiles, overwrited the PD-PSP profile to get back to the defaults, changed to level 2.1, B-frames to 1, reference frames to 1, Bitrate to 384, and VBV Maximum Bitrate to 768.
Here is my AVISynth script:
DGDecode_mpeg2source("blah blah blah.d2v",info=3)
ColorMatrix(hints=true)
tfm().tdecimate(mode=1,hybrid=3)
Crop(6,0,-6,0)
Undot()
LanczosResize(320,240)
Here are my Nero Digital AAC settings:
_ Force Decoding via DirectShow
Output Channels: Keep Original Channels
X Increase Volume Automatically
X Improve Accuracy using 32bit & Float computations
_ Delay Correction
X Constant Bitrate @ 128kbit/s
AAC Profile: AAC-LC
_ Create hint track (for streaming server)
I hit AutoEncode, select Average Bitrate to 384 kbit/s, click Queue, then start the queue. The video ends up being 320x240 at 23.98fps with 48000Hz Stereo.
"This video cannot be played."
Varium
11th August 2006, 00:30
..This might be a dumb question, but how many audio channels have you encoded? (ie Stereo, 4 Channel etc..)
Shadowfax3000
11th August 2006, 03:39
..This might be a dumb question, but how many audio channels have you encoded? (ie Stereo, 4 Channel etc..)
The source AC3 is stereo. To make sure, I selected "Downmix multichannel to Stereo." Still the same error message.
Ghim
11th August 2006, 07:11
The source AC3 is stereo. To make sure, I selected "Downmix multichannel to Stereo." Still the same error message.
I don't see a problem with your settings. Can you post a small video (1 or 2 minutes of video) you have encoded so that we can see what is wrong ?
Clown shoes
11th August 2006, 17:38
Umm, just a thought but how many threads is your Megui set to use? If your machine is dual processor/multi core/hyperthreaded the encode will not work. You must set Megui to use only one thread. Good luck mate.
Shadowfax3000
11th August 2006, 22:48
I don't see a problem with your settings. Can you post a small video (1 or 2 minutes of video) you have encoded so that we can see what is wrong ?
This includes my video and audio profiles as well as a sample clip:
http://moose.he.net/~mtlmrch/test.zip
Umm, just a thought but how many threads is your Megui set to use? If your machine is dual processor/multi core/hyperthreaded the encode will not work. You must set Megui to use only one thread. Good luck mate.
I have a hyperthreaded processor (Pentium 4 2.4GHz Northwood) and have only been using 1 thread in my settings.
Golgot13
12th August 2006, 01:22
Hi everybody,
(Clown shoes no news about HD DVD...)
I have a PSP and a LocationFree Box. The last firmware, 2.8, of PSP
can play AVC but with some restrictions.
I test lot of options, there is a big restriction no more than one "Slice".
The resolution is locked at 320x240 :mad:
The bitrate can be ABR, VBR and CBR ( up to 4000Kbps !!! :eek: ).
PSP support all bitrate between 50kbps to 4000kbps
All Google video for PSP are encoded by x264 with VLC program !!!!!
And the manual hex patch (4D0033 replace by 4D0015) work fine on PSP :p
Nobody know how I can read the LocationFree video stream
with other player than Sony software player on PSP or on PC
(LocationFree Box is a realtime hardware video stream
in Xvid, ???, -> I see TV channel from my home DVB receiver on my PSP
in my home or in my work via web connection with Wifi :D ).
Golgot13
deets
12th August 2006, 03:18
This includes my video and audio profiles as well as a sample clip:
http://moose.he.net/~mtlmrch/test.zip
I have a hyperthreaded processor (Pentium 4 2.4GHz Northwood) and have only been using 1 thread in my settings.
does megui have "automatically set number of threads" ticked in settings? if so, it will over ride your selection of 1 thread and will make the video not work.
Shadowfax3000
12th August 2006, 03:36
does megui have "automatically set number of threads" ticked in settings? if so, it will over ride your selection of 1 thread and will make the video not work.
WOW! I suppose someone had to make that mistake some time. Plays fine now. Thanks everyone for their help!
Clown shoes
12th August 2006, 13:05
LOL. Let there be light. ;)
conkeroo
13th August 2006, 20:51
Ghim, can i pick your brains mate?
I did what you said about using the default PD-PSP profile and then changing the three settings, ie the restriction level to 2.1, b-frames set to 1 and ref frames set to 1.
Except when the video is encoded, the bitrate is too high. Roughly about 1300kbps. Ive changed the bitrate to 384 and the vbv max bitrate to 768 but still its too high. Did you have any problems with this?
Id appreciate your help cos im close to pulling my hair out!! :angry:
Ghim
13th August 2006, 21:06
I've never had such a problem.
For the VBV Max Bitrate, I'm using the default setting of the PD-PSP profile (4000) and for the bitrate I'm using 500kbps.
After encoding, I get exactly what I asked for (500kbps).
How do you start your encoding ?
Do you use the "AutoEncode" button ? If that's the case, make sure you set the "Size and Bitrate" setting to "No Target Size".
conkeroo
13th August 2006, 21:59
Any chance you could post that profile Ghim?
Ive tried that and still getting to high a bitrate. Ive changed the bitrate to 768 which is what i want and the strange thing is the video will play if i put it in the VIDEO folder but i dont want so high a bitrate. It still exports the video at about 50meg for a three minute clip!! What the heck am i doing wrong?!!
Ghim
14th August 2006, 07:16
Here is the video profile I am using:
http://myweb.tiscali.co.uk/misambart/PD-PSP.xml
conkeroo
14th August 2006, 09:43
Thanks Ghim.
I tried that profile and it worked fine. Cheers.
I placed the video in the old folder and it wouldnt work but when i placed it in the video folder it was fine. Fickle piece of hardware altogether!!
Why Sony cant make it straight forward, I dont know.:sly:
Anyway though, thanks again.
Golgot13
14th August 2006, 18:10
PSP accept video with multiple audio and subtitle tracks,
but it is not possible to change the audio track and to have access
at subtilte.
PSP can read AMR, AAC LC and AAC HE audio (on MP4 or 3GP container)
Lot of options of H264 are accepted:
Weighed Prediction, Half Pixel, Chroma ME, Quarter Pixel, Partitions.
GOP up to 30 frames (I don't test more)
25fps and 29.97fps are accepted (not 23.976 ???)
CBR, ABR and VBR (1 or 2 pass) are accepted up to 4000kbps
Golgot13
deets
14th August 2006, 23:27
yeah the psp video can now handle HE AAC...
not that i really know if thats a good thing :P
conkeroo
15th August 2006, 11:34
Is the ghosting you get on the video just part and parcel of encoding with x264 because it seems to be quite bad on any of the vids ive done.
Is it just the psp?
Sudds
15th August 2006, 21:51
Copy and paste this into your script Conkeroo
.............................................................
Tweak(sat=1.7, bright=17, cont=1.1)
.............................................................
Golgot13
15th August 2006, 22:42
PSP don't play AVC video files without audio track.
It do not use the SAR information (in MP4 header or in H264 header)
:( :( :( (not possible to make good video play in full screen with 1MB/min )
It accept lot of resolution up to 320x240 (160x240, 320x120, 160x120,... accepted)
Golgot13
AnimeTheme
16th August 2006, 09:59
It accept lot of resolution up to 320x240 (160x240, 320x120, 160x120,... accepted)
Basically, as long as the resolution uses less than 320x240 pixels (eg. 368x208 16:9), PSP can still play it.
Golgot13
16th August 2006, 11:20
Basically, as long as the resolution uses less than 320x240 pixels (eg. 368x208 16:9), PSP can still play it.
Yes, you are right. I make some test and I understand
that there is not a locked resolution size but there is a lock
in the number of pixel.
74000 ( ~ ) is the maximum for PSP, so PSP can play:
380x194, 390x189, 400x185, 450x162,....
Golgot13
Golgot13
16th August 2006, 11:58
PSP don't accept:
CAVL (only CABC)
No more than 1 B frame (with no more than 1 reference)
No Interlaced mode
No MBAFF
No PAFF
No more than one Slice
Golgot13
CruNcher
16th August 2006, 16:45
74000 ( ~ ) is the maximum for PSP, so PSP can play:
380x194, 390x189, 400x185, 450x162,....
Thats not correct you have to say it's Restricted by Sony for normal users to this pixel count the PSP is technicaly capable of playing full Res DVD 355200 pixel (UMD Film Mode) with upto 1.5 mbit and thx to all the PSP hackers we are able to use 130560 (full display res aka Game Video Mode) Pixel of that now :)
Golgot13
16th August 2006, 16:52
Yes CruNcher, I talk only of PSP with 2.8 firmware.
I can not put a hacked firmware because it is not possible
to have LocationFree software (see TV on PSP in realtime with
remote control)..... :D
Golgot13
CruNcher
16th August 2006, 16:58
i have the Location Free Player on my 2.71 firmware aside of my 1.5 firmware, but it would be problematic for you to downgrade from 2.80 now to 1.50 you would need the Modchip for that. It would be possible to stream in realtime useing your pc with VLC and remote with Girder now that VLC supports ASP/H.264 streaming in .mp4 flawlessly, even more realiable ;)
Golgot13
16th August 2006, 19:57
i have the Location Free Player on my 2.71 firmware aside of my 1.5 firmware
Yes, but I had lot of problem with remote control (specific DVB receiver
and Divx player in Hard Disc= nice to make channel stream ;) )
but it would be problematic for you to downgrade from 2.80 now to 1.50 you would need the Modchip for that.
Can you give more information about this in PM
It would be possible to stream in realtime useing your pc with VLC and remote with Girder now that VLC supports ASP/H.264 streaming in .mp4 flawlessly, even more realiable ;)
Yes, but you need to have a PC online every time ...
I use the protocol X10 to put on my LocationFree Box (with web connection
I have a "Web-X10" buy in USA= I can put on or off 16 hardware :D ).
Do you know how we can catch the video stream from LocationFree Box???
The quality of video is nice (and there is now LCD TV with LocationFree
inside : LF X1, LF X5, LF X11,...).
Golgot13
lchiu7
18th August 2006, 00:04
I only purchased a PSP recently, primarily to play videos. I am not a gamer. Firmeware is 2.0.
Searching around the first choice to convert videos I found was PSPVideo9. It's pretty much plug and play and getting TV shows or DVD's onto the PSP was pretty easy. I am encoding in AVC format.
But I am finding that the shows I encode (versus the one UMD I have) have annoying red blotches occuring in dark areas (like in the open mouth of somebody) plus some smearing. I think the smearing is a hardware limitation but the red blotches are probably not.
I have gone through this entire thread and while I understand most of it, I am wondering does the use of X264 plus various audio encoding techniques (which are of course not relevant to the video problem) create an improved picture? Can you get rid of those red blotches?
Sorry if these questions seem simple but I just could not find an answer reading the thread.
As as aside I tried to use belite to encode audio and it failed looking for a coupole of aac DLL's which I cannot find. I presume they are the Nero AAC pack which you have to purchase? I did find an AAC plugin for Adobe Audition (which I do have) and while that's not a CLI solution, at least I can take the extracted wav file from the video and encode that in PSP compliant AAC format (I hope!)
Thanks for any assistance
deets
18th August 2006, 00:53
yep sadly you will suffer ghosting in dark areas. sudds earlier suggested adding this to your avisynth script :)
Copy and paste this into your script Conkeroo
.............................................................
Tweak(sat=1.7, bright=17, cont=1.1)
.............................................................
use megui with the free nero aac command line encoder and this will make your audio very simple, you just use the same avisynth script for both now :)
lchiu7
18th August 2006, 15:08
yep sadly you will suffer ghosting in dark areas. sudds earlier suggested adding this to your avisynth script :)
use megui with the free nero aac command line encoder and this will make your audio very simple, you just use the same avisynth script for both now :)
Thanks. Tried megui but it wanted .net 2.0 and this machine is a bit flaky so don't want to do that.
But managed to encode the audio using faac. And checked in Adobe Audition and it has the following properties
Filename: big.aac
File Type: 48000Hz, 16-bit, Stereo
Uncompressed Size: 43.69 MB (45,821,952 bytes)
File Format: MPEG4-AAC
MPEG4 - 72752 bps ADTS AAC LC (Low Complexity)
Size on Disk: 2.07 MB (2,175,981.00 bytes)
Last Written (local): 8/19/2006 01:37:45.921
Length: 3:58.656 11,455,488 samples
This looks right to me for PSP audio.
But I have another problem. After running x264 and then the mp4box and atomchanger (which looks like they work okay) I get an unplayable mp4 file
This is the log I get
encoded 7153 frames, 27.33 fps, 256.83 kb/s
C:\Program Files\x264>start /belownormal /b /w MP4Box.exe -fps 29.97 -add big.264 output.mp4
Adjusting AVC SizeLength to 16 bits
AVC-H264 import - frame size 320 x 240 at 29.970 FPS
Import results: 7153 samples - Slices: 70 I 7083 P 0 B - 1 SEI - 70 IDR
Saving to output.mp4: 0.500 secs Interleaving
C:\Program Files\x264>start /belownormal /b /w MP4Box.exe -fps 29.97 -add big.aac output.mp4
AAC import - sample rate 48000 - MPEG-2 audio - 2 channels
Saving output.mp4: 0.500 secs Interleaving
C:\Program Files\x264>start /belownormal /b /w ATOMChanger.exe output.mp4 MAQ00264.MP4 AtomAVC.ini
ATOMChanger for PSP Video 9
By MobileHackerz and Sajeeth Cherian
http://www.pspvideo9.com
PSP MPEG-4 AVC
VideoTrack : 1 320 x 240 29.97fps 1bps
AudioTrack : 2 48000Hz 2ch 70304bps
What I don't understand is the message that notes the VideoTrack is 1bps even though it was coded for 256kbs
The video won't even play on the PC with Quicktime.
Any ideas?
Thanks
lchiu7
20th August 2006, 09:19
Thanks. Tried megui but it wanted .net 2.0 and this machine is a bit flaky so don't want to do that.
But managed to encode the audio using faac. And checked in Adobe Audition and it has the following properties
Filename: big.aac
File Type: 48000Hz, 16-bit, Stereo
Uncompressed Size: 43.69 MB (45,821,952 bytes)
File Format: MPEG4-AAC
MPEG4 - 72752 bps ADTS AAC LC (Low Complexity)
Size on Disk: 2.07 MB (2,175,981.00 bytes)
Last Written (local): 8/19/2006 01:37:45.921
Length: 3:58.656 11,455,488 samples
This looks right to me for PSP audio.
But I have another problem. After running x264 and then the mp4box and atomchanger (which looks like they work okay) I get an unplayable mp4 file
This is the log I get
encoded 7153 frames, 27.33 fps, 256.83 kb/s
C:\Program Files\x264>start /belownormal /b /w MP4Box.exe -fps 29.97 -add big.264 output.mp4
Adjusting AVC SizeLength to 16 bits
AVC-H264 import - frame size 320 x 240 at 29.970 FPS
Import results: 7153 samples - Slices: 70 I 7083 P 0 B - 1 SEI - 70 IDR
Saving to output.mp4: 0.500 secs Interleaving
C:\Program Files\x264>start /belownormal /b /w MP4Box.exe -fps 29.97 -add big.aac output.mp4
AAC import - sample rate 48000 - MPEG-2 audio - 2 channels
Saving output.mp4: 0.500 secs Interleaving
C:\Program Files\x264>start /belownormal /b /w ATOMChanger.exe output.mp4 MAQ00264.MP4 AtomAVC.ini
ATOMChanger for PSP Video 9
By MobileHackerz and Sajeeth Cherian
http://www.pspvideo9.com
PSP MPEG-4 AVC
VideoTrack : 1 320 x 240 29.97fps 1bps
AudioTrack : 2 48000Hz 2ch 70304bps
What I don't understand is the message that notes the VideoTrack is 1bps even though it was coded for 256kbs
The video won't even play on the PC with Quicktime.
Any ideas?
Thanks
Well nobody replied but I managed to solve the problem myself :)
As usual it was the audio which was the problem. I had tried faac, belight and even neraacenc but for some reason could not generate a compatible audio file. In the end used the plugin for Adobe Audition and created an aac file that was compatible and when muxed with the video created with x264 made playable mp4 files. The additional avisynth filter also has removed the red splotches which is godsend. The additional effort over using PSPVideo9 is worth the removal of those things which were quite distracting.
Having to use Audition means it can't all be done in batch but at least it works
If somebody can provide a command line sequence for neroaacenc that works or even faac I would be grateful
lchiu7
21st August 2006, 23:28
Making good progress on using x264 and mp4box to create video for the PSP. Have gotten to the point where I can convert divx and DVD fine. And thanks to a hint from Deeks, have reduced the red splotch problem.
In an earlier post somebody talked about the problem where there are sticky frames - 2 frames skipped just before an I-frame. I think I see this manifest itself as jumpy video every now and then. Interestingly it occurs both on converted PAL DVD and NTSC divx.
Reading through this thread it seems the only way to fix this is to upgrade to 2.8 firmware which allows different framerates to be played? Is this correct? I am on 2.0 but would happily upgrade to 2.8 if that fixed the problem.
Thanks
Larry
conkeroo
22nd August 2006, 09:36
Hows things Ichiu7.
Just going back to what you were saying about the ghosting.
I had the same problem too but apparently, according to sony, the ghosting will occurr when the psp just starts up and you have to give the components a chance to heat up in order for the video to play ok.
I tried this and it does work. I let the video play for about 45 minutes and it seemed fine.
Anyway just to let you know in case you continue to pull your hair out trying to figure it out, like me!! :D
lchiu7
22nd August 2006, 11:10
Hows things Ichiu7.
Just going back to what you were saying about the ghosting.
I had the same problem too but apparently, according to sony, the ghosting will occurr when the psp just starts up and you have to give the components a chance to heat up in order for the video to play ok.
I tried this and it does work. I let the video play for about 45 minutes and it seemed fine.
Anyway just to let you know in case you continue to pull your hair out trying to figure it out, like me!! :D
Hi
The ghosting is pretty minimal now and I really happy with applying the avisynth filter that the red blotches are also gone.
When I get the chance I plan to upgrade to firmware 2.8 and see if that can get rid of the sticky frame problem
deets
22nd August 2006, 17:16
2.8 is a must if your a big video user, it makes it so much easier!
no atomchanger, no specific file or folder name 25fps suppport and a few others!
Clown shoes
22nd August 2006, 19:42
Just so you know Ichiu7, the sticky frame problem was fixed in versions above 2.5 I think. It is definatley fixed though.
@Conkeroo
really interesting news that, about the ghosting. I will have to go and test it out.
lchiu7
23rd August 2006, 06:31
2.8 is a must if your a big video user, it makes it so much easier!
no atomchanger, no specific file or folder name 25fps suppport and a few others!
Before I take that step (I have downloaded the firmware) will it screw up all the movies I have encoded so far?
Also to take advantage of the change can I just remove -fps 29.97 from the mp4box command line?
Thanks
Ghim
23rd August 2006, 07:23
It is possible that some of the videos you have encoded so far won't work in the new "VIDEO" folder.
However, those videos should still work in the old folder.
cast42
23rd August 2006, 09:32
Before I take that step (I have downloaded the firmware) will it screw up all the movies I have encoded so far?
Also to take advantage of the change can I just remove -fps 29.97 from the mp4box command line?
Thanks
No, all x264 movies that worked for firmware 2.6 also work under 2.8.
lchiu7
24th August 2006, 09:14
No, all x264 movies that worked for firmware 2.6 also work under 2.8.
What about movies encoded for 2.0?
I had a shot at encoding a movie at 23.98. Source is NTSC xvid. Changed the mp4box command to -fps 23.98 and removed the ChangeFPS(29.97) in the avisynth script. Movie encoded okay and plays fine in QT which shows the rate as being 23.98. Of course, can't check if it will play in the PSP until I upgrade the firmware :)
Larry
AnimeTheme
24th August 2006, 12:05
What about movies encoded for 2.0?
Anything that plays on 2.0 will surely play on 2.8 as well, as long as you put the movies in the old folder structure.
If you want to put them in the new "VIDEO" folder, you may need some simple header changes.
cast42
24th August 2006, 17:01
With PSP fimrware 2.8 I can nicely play standard .mp4 files encoded with megui (25fps video and 44KHz audio LC-AAC). So indeed no need anymore for ATOMchanger. Does anybody now how to make a thumbnail for mp4 video in the VIDEO directory on the PSP ?
Thx
Sudds
24th August 2006, 17:59
Try this mate: http://blindraven.net/index.php?option=com_smf&Itemid=26&topic=5.0
cast42
25th August 2006, 07:30
Try this mate: http://blindraven.net/index.php?option=com_smf&Itemid=26&topic=5.0
Thx, but that works for videos in the MPROOT/ directories. I have another problem. I put standard .mp4 files in the root [VIDEO] directory (new possibility of firmware 2.8). The megui encoded video work fine but I'm searching for the trick to tell the PSP there's a thumnail associated with VIDEO/video.mp4. I tried with a 160x120 jpeg file (e.g. VIDEO/video.jpg) with the same name as the .mp4 but no succes.
If I run atomchanger on the standard .mp4, I can have thumnails but some bug makes that the video stops a few seconds before the end while audio continues (for long videos and when no fast forward/backward is performed, just playback) :( . The standard .mp4 in [VIDEO] works fine.
lchiu7
26th August 2006, 07:09
Still on firmware 2.0 since I want to make sure all is well before upgrading. Can't use megui since this requires .net 2.0 and the machine is a bit flaky for that.
Anyway have been successfully converting files fine using x264 and Adobe Audition with aac plugin.
Decided to get belight a whirl since it looked less of a hassle. So the process is
1. encode video with x264
2. create wav file from original video
3. encode wav file in MP4 file (AAC on the container) using belight and Nero Digital
4. Mux the files together with mp4box
The resulting mp4 file plays fine using QT. But to get it to a compatible PSP format I have to run atomchanger.
This works well for files created in my usual process, but once the MP4 created from mp4box is processed by atomchanger, the resulting file loses audio after about 1 minute (both on QT and in the PSP) and eventually the PSP notes the file is invalid.
This is all that's in my atomavc.ini file
[Config]
Title=PSP MPEG-4 AVC
MQV=2
CODEC=2
[DeleteAtom]
Item0=ftyp
Item1=free
[InsertAtom]
Item0=ftypMSNV%01%00%07%86MSNVmp42isom
Item1=/moov/trak/edts%00%00%00%1Celst%00%00%00%00%00%00%00%01%00%7E%31%B6%00%00%00%00%00%01%00%00
Any idea what might be going wrong?
Thanks
Larry
deets
26th August 2006, 07:54
you using the recompiled atomchanger from my site?
why not just make your life so much easier and upgrade to 2.80 :) i personally would strongly reccomend it if your going to be using video, AAC HE+ps is ideal for the PSP when file size is so important. and somehow get net 2.0 working, megui is the PSP owners best friend :P
Sudds
26th August 2006, 10:55
I wouldnt upgrade, i would downgrade, currently i,am playing 480x272 AVC movies on my 1.50, (which i downgraded from 2.60) and i can tell you this, you,ll not get better on 2.80, infact you,ll not get better until Sony takes the res restrictions off its player.
cast42
26th August 2006, 10:59
I used Atomchanger from http://www.bontragerphotography.com/psp/ for processing 25fps video and 44KHz audio encoding. A small video of five minutes plays fine (if number of ref frames = 1 and number of B-frames = 1) under firmware 2.8. The strange thing I encountered is with longer sequences (15 and 25 minutes). The video freezes just before the end while the audio continues. I also tried with PSPvideo9 Atomchanger and the same bug (??) happened. Remark that when during playback, the movie is fast forwarded, backwinded or paused, the movie plays correctly until the end. As a result, I now put the megui standard mp4 file in the VIDEO directory where they play fine. Therefore I suspect some bug is triggered in playback on PSP with firmware 2.8 is current Atomchanger if used. I will try 48KHz instead of 44KHz aac-lc, maybe that will circumvent the bug?
lchiu7
26th August 2006, 21:26
you using the recompiled atomchanger from my site?
why not just make your life so much easier and upgrade to 2.80 :) i personally would strongly reccomend it if your going to be using video, AAC HE+ps is ideal for the PSP when file size is so important. and somehow get net 2.0 working, megui is the PSP owners best friend :P
I am using the unrestricted atomchanger. Can't work out why the process of applying atomchanger breaks the audio since the file after muxing is fine. I should upgrade to 2.8 at some time. I just want to find out why this process is not working.
As for .net 2.0 - well might have to bite that bullet also :(
lchiu7
26th August 2006, 21:28
I wouldnt upgrade, i would downgrade, currently i,am playing 480x272 AVC movies on my 1.50, (which i downgraded from 2.60) and i can tell you this, you,ll not get better on 2.80, infact you,ll not get better until Sony takes the res restrictions off its player.
How do play 480x272 movies? Sounds like you have to use a different player? I am reasonably happy with PQ on the PSP. It's not my main video platform or course - just for when I am in the mall waiting for the wife or waiting for the kids during their various lessons :) Also for when I travel on planes (assuming these days I could take it on the plane!)
But would like the sticky frame problem fixed which I understand was fixed in 2.5?
cast42
26th August 2006, 21:32
I used Atomchanger from http://www.bontragerphotography.com/psp/ ...I will try 48KHz instead of 44KHz aac-lc, maybe that will circumvent the bug?
I muxed in 48KHz mono audio (aac-lc at 64 Kbps) to the 25fps video.
Running ATOMChanger:
C:\psp2\PSP_48>start /belownormal /b /w ATOMChanger.exe "Welkom.mp4" c:\psp2\PSP_48\MAQ00431.MP4 AtomAVC.ini
ATOMChanger for 3GP_Converter Version 0.21
http://www.nurs.or.jp/~calcium/
Modified by qyqgpower
PSP/AVC:FPS Depends on Input File
VideoTrack : 1 368 x 208 25,00fps 1bps
AudioTrack : 2 48000Hz 1ch 64120bps
Unfortunately the video still freezes before the end of the audio on PSP with firmware 2.8 (lower firmware has no support for 25fps)!
Sudds
26th August 2006, 21:56
How do play 480x272 movies? Sounds like you have to use a different player?
Thats right mate, its a third party player for a 1.50 PSP called PMPMOD AVC http://jonny.leffe.dnsalias.com/pmp_mod_avc/index.htm
The native player on the PSP has restrictions on the resolution, no more than 76000 pixels (around that), now with PMPMOD AVC you can play 480x272 res movies which works out at 130560 pixels and looks super sharp.
I did use MeGUI but when i downgraded it was of no use, as you need a modified version of X264 to encode which is also available from the same site.
So which would you rather? 76000 or 130560...not much of a contest is it? :)
lchiu7
26th August 2006, 22:43
I am using the unrestricted atomchanger. Can't work out why the process of applying atomchanger breaks the audio since the file after muxing is fine. I should upgrade to 2.8 at some time. I just want to find out why this process is not working.
As for .net 2.0 - well might have to bite that bullet also :(
Well solved the problem sort of. Encoded the mp4 file using neroaacenc instead of belight and the Nero DLL's and the audio is fine on the PSP. The only annoying factor is, the wav file that neroaacenc needs to be processed has to be completely uncompressed - it won't read a wav file with MP3 or other internal formats. So that's another step in the process.
2.8 is looking more attractive :)
Sudds
26th August 2006, 23:56
2.8 is looking more attractive :)
Are you mad??:scared:
Dude, try PMPMOD AVC first, if you dont like it then upgrade to 2.80.
CruNcher
27th August 2006, 04:55
Nothing goes over Irshell 2.0 with integrated PMP Mod and PMP Mod AVC :P
http://www.phpbber.com/phpbb/viewtopic.php?t=512
lchiu7
27th August 2006, 09:44
Are you mad??:scared:
Dude, try PMPMOD AVC first, if you dont like it then upgrade to 2.80.
From what I have read downgrading from 2.0 to 1.5 if not done properly can render your PSP a brick (is that the term?). I guess I don't quite have the nerve to do that quite yet :(
Sudds
27th August 2006, 11:29
Upgrade to 2.50 or 2.60 mate, then downgrade, its safe ave done about 20 PSP,s so far and not a brick so far. http://blindraven.net/index.php?option=com_remository&Itemid=49&func=download&id=7&chk=7effdc7e0183fac1aad39cbd44e1456c
Dont worry bout what it says before you download, its just an excluder.
conkeroo
31st August 2006, 13:08
Looks like a usable exploit has been found for ALL firmwares, inc. 2.80, to run homebrew software.
Theres still work to be done but this could mean in the near future that the full res. media player will be available to all (inc. me (2.80 firm.)).
Sweet is all i can say!! :D
Sudds
31st August 2006, 20:17
Yeah its excellent news! You cant stop them Sony! :D :D
gabbon
4th September 2006, 15:29
HI, I just downgraded from 2.71 and first thing to try was PMP AVC. I have to admit its really nice piece of homebrew and it works fine. I would like to ask, what possible features of h264 can be set for this. I just tried my ordinary profiles in Megui (using modified x264 of course) and it didnt work, then tried the examples on the homepage and they expextedly did work. But they are pretty simple...I was wondering if it wouldnt be able to cope with other features of x264 (at least some of them). I would like to know which ones....the example megui profile would be the best. Thanks a lot and also my big thaks to the creators of PMP AVC.
Sudds
4th September 2006, 19:42
@Gabbon, ave asked Sharktooth about this mate, but i dont think he likes the idea of modifing MeGUI just for this container.
It would be awesome though...
jonny
6th September 2006, 09:55
@gabbon:
Main profile, level 3, no bframes.
Every option trigging an higher profile will not work.
Also using more than one encoding thread break compatibility (in this case frames are divided in slices and this is not supported).
We are using the internal psp decoder and there are no rooms for improvements (the only thing that could be still added is a limited bframes support)
gabbon
6th September 2006, 16:28
@Jonny
Doesnt really matter anymore, I tried 2-pass 768kBit/s with few sample anime episodes and it looks absolutelly marveluos even without other features - nothing to improve :). Compared to my old encodes in 368*208 its much sharper (well that was to be expected) but even more importantly no "fucked up edges of red/crimson objects" (probably present thanks to "ingenius" PSP resizing filter)!!! So I am more than satisfied now.
Thx a lot for this very useful program :thanks:
CruNcher
7th September 2006, 08:25
jonny whats about CAVLC usage ? it's a little strange that the Internal Player (Media Engine) doesn't support it, as it is a Main Profile feature, especialy if you look on the fact that you could save alot of Power with it ? and what's going on about UMD Mode no one is trying to get that working @ the moment ?
jonny
8th September 2006, 17:04
it's a little strange that the Internal Player (Media Engine) doesn't support it, as it is a Main Profile feature
it doesn't look so strange to me :)
you should also think that the stream is already "basterdized" to be decodable
and what's going on about UMD Mode no one is trying to get that working @ the moment ?
afaik no
i guess the main reason is lack of motivation
the latest tries/api exposed is at the end of this thread:
http://forums.ps2dev.org/viewtopic.php?t=5820
conkeroo
16th September 2006, 16:31
Dows anyone know the best way to encode animation with subtitles?
Is there a command in the aviscript to encode subtitles??
foxyshadis
16th September 2006, 19:43
VobSub() and TextSub(), both part of VSFilter, which can be loaded into avisynth as a plugin.
conkeroo
17th September 2006, 11:45
Ive used vsfilter.dll having extracted the subs to .srt but
when it comes to encoding, i get
"avis [error]: unsupported input format (DIB )
x264 [error]: could not open input file 'C:\Documents and Settings\Owner\My Documents\widesubtitles.avs'".
I dont know what the problem is because when i open the
aviscript, the preview window opens with the subtitles
showing and all seems well.
My aviscript looks like this:
global MeGUI_darx = 0
global MeGUI_dary = 0
DGDecode_mpeg2source("C:\Documents and Settings\Owner\Desktop\VTS_01_1.d2v",cpu=4,info=3)
ColorMatrix(hints=true)
#Not doing anything because the source is progressive
crop( 0, 0, 0, 0)
LanczosResize(368,208) # Lanczos (Sharp)
Undot() # Minimal Noise
Tweak(sat=1.7, bright=17, cont=1.1)
LoadPlugin("VSfilter.dll")
TextSub("C:\Documents and Settings\Owner\Desktop\Subs.srt")
Anyone have any ideas?
bond
17th September 2006, 11:47
wrong colorspace
add converttoyv12() at the end of your .avs script
conkeroo
17th September 2006, 12:16
Thanks for the tip Bond but still no go.
Any other ideas cos im at a complete loss. :sly:
Cheers.
conkeroo
17th September 2006, 13:57
No worries. All sorted!!
Plugin path wasnt right but i fixed that and worked perfectly.
:rolleyes:
foxyshadis
17th September 2006, 17:24
DIB is not wrong colorspace, it's the avisynth error colorspace. Changing the colorspace won't help. You always have to load it into virtualdub and see what error shows up, until x264 gets avisynth error handling. (On the todo list.)
shido
27th October 2006, 07:48
I'm kinda late to this thread, but I've been having some issues encoding in AVC for my PSP. I've used the PD-PSP profile and made the necessary changes to it to make it compatible with the PSP. (main profile 2.1, 1 bframe, 1 reference frame) I've also unchecked the option to have megui automatically control the amount of threads during encode. Now here's my problem. I'm able to make an encode of a 5 minute video clip work on the PSP. But when using the exact same settings, an encode of an hour-long video gives me the "unsupported format" message, and is unplayable on the PSP. I'm using firmware 2.81 and have been placing the videos in a "VIDEO" folder on the root of the memory stick. Like I said, shorter video clips seem to work, while longer ones fail, even at the same settings.
deets
28th October 2006, 04:18
whats your audio settings?
try my profiles from my sig
shido
28th October 2006, 07:38
whats your audio settings?
try my profiles from my sig
Hmm, I don't think it's the audio settings, cause I can play the audio if I put it in the music folder. But I use Besweet with the Nero AAC encoder, using LC AAC at 96kbps. The weird thing is, a short 5 minute video clip will work, while a longer 1 hour video clip won't even be recognized as a playable format by the PSP, using the same settings. It will only show that "broken" thumbnail, saying it is an unrecognized format. That's really what's bothering me.
Oh, and by the way, how would I go about making an Xvid file compliant for the PSP. I tried making one, and while the PSP would show it in the video tab, it would tell me that the file couldn't be played when I select it. I'm suspecting that I need to set the profile to simple in the config settings, but I can't find where to do that in megui.
conkeroo
28th October 2006, 16:19
Hows Things Shido.
Download this http://www.ertzumedia.com/PD-PSP.xml and just change the bitrate to whatever you want. Let me know how you get on. Should be ok!!
shido
28th October 2006, 18:34
Hows Things Shido.
Download this http://www.ertzumedia.com/PD-PSP.xml and just change the bitrate to whatever you want. Let me know how you get on. Should be ok!!
Not really sure how this profile was different from my last one, but it worked! Thanks a lot.
ilovejedd
25th November 2006, 07:14
Question, has support for higher resolutions been added to newer firmware (2.80+)?
Aside from homebrew programs, has anyone been able to create full resolution video playable on the PSP using x264?
This might be a bit off-topic but still of interest.
My brother has a Japanese PSP and I was able to use the P-TV service to download a couple of free (albeit DRMed) clips. It was saved in \MPE_ROOT\100AEV01\ with a .MGV extension and is accompanied by a license file. File naming is the same as for AVC pre-fw 2.80 (e.g. MAQ12345).
Here are the details for one of the clips.
* Movie Info *
Timescale 90000 - Duration 00:23:18.272
Fragmented File no - 4 track(s)
File Brand MSSV - version 18089859
Created: GMT Thu Nov 09 11:01:34 2006
File has root IOD
Scene PL 0xff - Graphics PL 0xff - OD PL 0xfe
Visual PL: ISO Reserved Profile (0x30)
Audio PL: ISO Reserved / User Private (0x32)
Track # 1 Info - TrackID 1 - TimeScale 30000 - Duration 00:23:18.196
Media Info: Language "Undetermined" - Type "vide" - Sub Type "avc1" - 41904 samples
MPEG-4 Config: Visual Stream - ObjectTypeIndication 0x21
AVC/H264 Video - Visual Size 480 x 270 - Profile Main @ Level 2.1
Pixel Aspect Ratio 3:4 - Indicated track size 480 x 270
Synchronized on stream 4
Track # 2 Info - TrackID 2 - TimeScale 48000 - Duration 00:23:18.272
Media Info: Language "Japanese" - Type "soun" - Sub Type "mp4a" - 65544 samples
MPEG-4 Config: Audio Stream - ObjectTypeIndication 0x40
MPEG-4 Audio AAC LC - 2 Channel(s) - SampleRate 48000
Synchronized on stream 4
Track # 3 Info - TrackID 3 - TimeScale 30000 - Duration 00:23:18.192
Media Info: Language "Undetermined" - Type "vide" - Sub Type "mp4v" - 1 samples
MPEG-4 Config: Visual Stream - ObjectTypeIndication 0x6c
Visual Size 160 x 120
Synchronized on stream 4
Track # 4 Info - TrackID 4 - TimeScale 90000 - Duration 00:23:18.272
Track is present in Root OD
Media Info: Language "Undetermined" - Type "odsm" - Sub Type "mp4s" - 1 samples
MPEG-4 Config: ObjectDescriptor Stream - ObjectTypeIndication 0x01
Self-synchronizedIt would seem that the thumbnail is embedded the clip. I wasn't able to play the video nor audio, although I was able to extract both using Yamb. Playing both the original and extracted clips with MPC and ffdshow just gave me an error. With VLC, it shows the time and the bar moves but I don't see or hear anything.
While the clip is reported as 480x270, I'm not sure if it's all that accurate. Although, assuming a macroblock size of 16x16, it would still fall well within the boundaries of Main Profile @ Level 2.1. The PSP reported it to have a video bitrate of 1000kbps and an audio bitrate of 128kbps. It might be interesting to note that the video also played on my US PSP when I put in my brother's memory stick, although it did ask me to set the time using "Set via internet" option. I haven't yet tried transferring the clip to a different memory stick and playing it from there.
qyqgpower
25th November 2006, 14:57
full res video is available since 2.8 with
Video: MJPEG
Audio:LPCM or μ-Law
in standard avi container.
no fps, sample rate, bitrate limitations so far.
place the file in VIDEO folder and you can play it from video menu.
also notice that VIDEO folder can accept standard MP4 files, no need to change the header, or rename the file to some special name anymore.
full res video in SP and AVC might be open to user in future according to software development director.
Sudds
25th November 2006, 15:38
Compression wise MJPEG isnt great.
nahpxela
18th December 2006, 21:53
How do you encode MPEG-4 SP instead of AVC with x264? Or better yet, are there any megui profiles for SP that works on the PSP? I know Sharktooth created the PD-PSP profile and that works GREAT for me, but I can't seem to figure out a way to create a proper SP encode w/o the PSP telling me it's unsupported.
If you guys have any profiles I could grab, I'd really appreciate it:)
P.S. It's for anime...
Sudds
18th December 2006, 23:07
Why do you want to encode to MPEG4-SP?
MPEG4-AVC is a much better codec, quality and compression wise.
foxyshadis
18th December 2006, 23:38
If you want SP, you'd use an (A)SP codec! Xvid, nero digital, divx, take your pick, but not x264 and not this forum.
I'd also assume you'd want to use the best codec that works. Is it a battery life issue, or something?
nahpxela
19th December 2006, 01:04
Well, I'm just encoding for someone else and they don't want the high quality. In this case though, the main reason is that the source is at 24000hz, and when *I* tried to convert it to 48000hz (I don't know anything technical so I tried it), the sound was all sped up. I'm assuming I can't do that so I'm forced to stick with 24000hz.
From what I read, SP and AVC requires 24000hz and 48000hz audio, respectively. Feel free to correct me if I'm wrong:) The source isn't all that great anyways, but people can't really complain about quality when it's free for them:p
And no, not necessarily has to be the best codec, but knowing which one is (isn't asking for the "best" on here not allowed? :p) wouldn't hurt. Whichever one that will encode SP (PSP doesn't support ASP does it?) that will work on the PSP and ipods will do.
Thanks for the info so far!
Edit: Trying out PSPenc...but if there's any additional sources I should read up on, please let me know:p
deets
19th December 2006, 01:56
i thought the 48khz requirement wasnt needed for later firmwares?
molpurgo
26th December 2006, 11:40
greetings to everyone, i am new in the forum and... a little newbie
I've read the whole thread but I couldn't find any satisfying anwer to my questions.
The movie, which I made with Megui AVC, profile PD-PSP Sharkthoot, runs properly on the Pc,
but after having transferred it on the PSP I noticed a disturbing audio delay.
I can speed up "Tempo" with BeLight's soundtouch option, but when seeking everything goes out of sync.
Any suggestions?
deets
26th December 2006, 15:18
whats your firmware?
try using the nero cli to make your aac mp4 before muxing, see if that does the same.
molpurgo
27th December 2006, 13:36
whats your firmware?
try using the nero cli to make your aac mp4 before muxing, see if that does the same.
thanks for the answer
the command line which I have used is this: NeroAacEnc.exe -lc -if D:\test.wav -of D:\test.mp4
but delay still remains :(
my FW is 2.71 (and I can't change it)
it is to underline that the conversion of the same file to PMP/AVC works properly
thankZ
deets
27th December 2006, 22:07
well 2.71 cant handle 25fps, only 2.80 onwards.
so if your source material is pal DVD then you will either need to change the fps of your audio and video or update to a newer firmware.
if your source is 23.97 or 29 then try a profile from my site and see what that does.
ChrisBensch
28th December 2006, 01:09
I've read this thread in it's entirety and I'm still having trouble. The only way I've gotten video to work on my PSP is by using PSPVideo9 (uses ffmpeg). I would prefer to use MeGui like I do for everything else. I keep getting "Unsupported Data" errors. I used the PD-PSP profile (even tried with Threads=1 instead of auto) and used nero cli to create my audio (naac.exe -he -q 0.15 -if "POTC T01 3_2ch 448Kbps DELAY -227ms.wav" -of POTC.mp4), still no luck. I keep seeing that people are getting their stuff to work but no go for me. I have a PSP that cannot be homebrewed (TA-082 or whatever) and I have fw 3.02. Is there a page that lists some common "gotchas" or something for me to start with?
ChrisBensch
28th December 2006, 02:16
Maybe I should add more...I have been taking my DVD->MKV Avisynth script which looks like this:
MPEG2Source("POTC.d2v", info=3)
ColorMatrix(hints=true)
Crop(0,60,0,-66)
LanczosResize(720,288)
and just use the "convert.bat" that I found in this thread (modified a bit). I pass this avisynth script in and it does the rest creating a new AVS, then I feed this into avisynth, I've even done the command line stuff from the batch file but no luck.
deets
28th December 2006, 02:25
see my site for info.
the psp only handles mp4 video, your size is way too much for a start. either 320x240 for 4:3 stuff or 368x208 for 16:9 material.
ChrisBensch
28th December 2006, 02:29
I've read your site, which is great by the way, but I somehow missed that...thanks, I'll try again.
ChrisBensch
28th December 2006, 02:47
Wow, all that testing (three weeks on same movie) and finally it works...Video is the whole reason I bought the PSP to begin with...now my $200 isn't a complete waste. The 368x208 is max resolution, my encode of The Passion of the Christ is 368x144 after it's been cropped. Thanks so much!
deets
28th December 2006, 05:30
glad you got it working :) i know how you feel, took me eons to get the darn thing to play at the start until i realised the 2 threads used to cause a prob for the psp.
its actually a very good little media player!
ChrisBensch
28th December 2006, 16:12
Exactly! Yes, this little black box is a very nice little media player indeed. I ordered a 4GB memory stick for it (my 1GB is too small) and since I fly a lot, it keeps me from getting bored. My laptop batteries don't last for a coast to coast flight, but this should do just fine!
deets
28th December 2006, 16:19
Exactly! Yes, this little black box is a very nice little media player indeed. I ordered a 4GB memory stick for it (my 1GB is too small) and since I fly a lot, it keeps me from getting bored. My laptop batteries don't last for a coast to coast flight, but this should do just fine!
yeah exactly why i got one as well, the transatlantic flights now nip by :) i have a couple of spare batteries as well, just to make sure i make the full flight!
molpurgo
30th December 2006, 15:25
well 2.71 cant handle 25fps, only 2.80 onwards.
so if your source material is pal DVD then you will either need to change the fps of your audio and video or update to a newer firmware.
if your source is 23.97 or 29 then try a profile from my site and see what that does.
unfortunately not work for me.I have try also 29.970 fps, but not work.My source is Avi/Divx 25fps.
I have also followed your guide,(assume 24fps etc.) but not work.
Only soundtouch/Tempo correction with Belight work, but during the seeking all go outsync
anyway thanks...
and happy new year for all :)
pseprodux
31st December 2006, 07:28
hmm, i can't get my psp to detect any videos at all in my 'VIDEO' folder, with my psp saying "There are no videos." i'm not sure if that's because of an encoding issue, or something else.
i've tried encoding videos at various bitrates from 300 to 700, trying different fourcc codes, turning turbo on/off, multithreading on/off..but no luck. i've also tried using deets' profiles, as well as modifying the regular PD-PSP profile.
currently, my encoded video is at 320x240, 23.976 fps, ~300 kbps, with aac-lc audio at 48 khz and ~107 kbps. as far as i know, with firmwares 2.80+ (i'm on 3.03), the filename does not matter, and all you need is to place it in a 'VIDEO' folder within the 'PSP' folder.
any help would be greatly appreciated.
qyqgpower
31st December 2006, 16:07
and all you need is to place it in a 'VIDEO' folder within the 'PSP' folder.
read the psp's online help carefully:sly:
the "VIDEO" folder should be at root, not in the "PSP" folder
pseprodux
31st December 2006, 19:59
..man, i feel stupid for not catching that..but it works now, thanks.
dssgorila
3rd January 2007, 00:51
Sure wish i could use megui with pmp.
@Johny
What settings did you use on the i-robot and madagascar trailer HERE (http://forums.ps2dev.org/viewtopic.php?t=4528&start=0&postdays=0&postorder=asc&highlight=)
I have yet to encode with such sharpness. I've tried a number of apps mediacoder, xvid4psp, the hacked x264 cli. I can't seem to come up with the quality and sharpness of those samples.
If anyone has any tips for me i would really appreciate it.
Thanks and Happy New Years to all.
Schrade
5th January 2007, 00:52
Here's an interesting post on PSP Fanboy: Downloading free hi-res videos from P-TV (http://www.pspfanboy.com/2007/01/04/downloading-free-hi-res-videos-from-p-tv/)
Apparently there's a Japanese site (P-TV (http://www.p-tv.jp/genre.cgi?genre=ct11)) where you can download videos for the PSP and they use the full resolution.
Perhaps there's a way someone can try to download one or some of the free 16x9 videos (they have ones you can pay for and ones you can buy) and try to figure out how they're encoding them or what magic bits they're adding.
It sounds like they're DRM'd though as the videos expire after 7 days.
Edit: OK I tried it out. Not only does it do fullscreen video but there's also video thumbnails! Here's a MediaInfo dump from the video file:
General #0
Complete name : C:\Documents and Settings\Schrade\Desktop\MAQ00001.mp4
File size : 16.4 MiB
PlayTime : 2mn 234ms
Bit rate : 1146 Kbps
StreamSize : 69.1 KiB
Encoded date : UTC 2006-10-04 12:09:25
Tagged date : UTC 2006-10-04 12:09:25
Video #0
Codec : H.264
Codec/Info : H.264 (3GPP)
PlayTime : 2mn 153ms
Bit rate : 1004 Kbps
Width : 480 pixels
Height : 270 pixels
Aspect ratio : 16/9
Frame rate : 29.970 fps
StreamSize : 14.4 MiB
Encoded date : UTC 2006-10-04 12:09:25
Tagged date : UTC 2006-10-04 12:09:25
Video #1
Codec : M-JPEG
Codec/Family : M-JPEG
Codec/Info : JPEG compressed
PlayTime : 2mn 152ms
Bit rate : 431 bps
Width : 160 pixels
Height : 120 pixels
Aspect ratio : 4/3
Frame rate : 0.008 fps
StreamSize : 6.33 KiB
Encoded date : UTC 2006-10-04 12:09:25
Tagged date : UTC 2006-10-04 12:09:25
Audio #0
Codec : AAC
Codec/Family : AAC
PlayTime : 2mn 234ms
Bit rate : 137 Kbps
Bit rate mode : CBR
Channel(s) : 2 channels
Sampling rate : 48 KHz
Resolution : 16 bits
StreamSize : 1.97 MiB
Language : Japanese
Encoded date : UTC 2006-10-04 12:09:25
Tagged date : UTC 2006-10-04 12:09:25
Here's some pictures...
File Structure picture 01
http://i13.tinypic.com/4humxvt.png
File Structure picture 02
http://i16.tinypic.com/2upe6h4.png
Thumbnail View
http://i1.tinypic.com/4975r8j.jpg
Viewing the Information 01
http://i14.tinypic.com/34pb41x.jpg
Viewing the Information 02
http://i1.tinypic.com/3ywbrlg.jpg
Schrade
5th January 2007, 01:41
Hmm maybe we can add thumbnails to the video by adding an MJPEG stream with proper dimensions into the MP4 container? This is looking exciting :)
CruNcher
5th January 2007, 06:12
Jep that could work (excited) but the other question is will the Sony Parser accept it in .mp4 as it does for .mgv and also from the normal VIDEO dir or only MPE_ROOT, if yes this has a very good chance to work (without firmware modification) the video thumbnail part at least, still we have to find out where the mechanisms inside the PSP firmware are that controll the 320x240/368x208 (pixel limit and final bitrate restriction) for the XMB, but also that is just a matter of time, thx Schrade for that really interesting info on the Online Content we all slowly get behind how Sony restricted the PSP for their own good :)
Schrade
5th January 2007, 08:56
Incidentally, they have a site set up on P-TV specifically for the PSP. Rather than using IE to download the file, I just loaded up their PSP website (http://www.p-tv.jp/psp/) and downloaded via that. The menus were switched to dropdown menus but studying the characters in the pictures it was easy to match them up and download the content directly via the PSP's web browser.
I've downloaded both 16:9 and 4:3 videos from that site now and ran MediaInfo on them. I've put the 16:9 video dump above, so here's the 4:3 video here:
General #0
Complete name : G:\MPE_ROOT\100AEV01\MAQ00003.MGV
File size : 123 MiB
PlayTime : 14mn 59s
Bit rate : 1146 Kbps
StreamSize : 509 KiB
Encoded date : UTC 2006-12-05 10:43:39
Tagged date : UTC 2006-12-05 10:43:39
Video #0
Codec : H.264
Codec/Info : H.264 (3GPP)
PlayTime : 14mn 59s
Bit rate : 1004 Kbps
Width : 480 pixels
Height : 270 pixels
Aspect ratio : 16/9
Frame rate : 29.970 fps
StreamSize : 108 MiB
Language : Japanese
Encoded date : UTC 2006-12-05 10:43:39
Tagged date : UTC 2006-12-05 10:43:39
Video #1
Codec : M-JPEG
Codec/Family : M-JPEG
Codec/Info : JPEG compressed
PlayTime : 13mn 53s
Bit rate : 57 bps
Width : 160 pixels
Height : 120 pixels
Aspect ratio : 4/3
Frame rate : 0.001 fps
StreamSize : 5.81 KiB
Language : Japanese
Encoded date : UTC 2006-12-05 10:43:39
Tagged date : UTC 2006-12-05 10:43:39
Audio #0
Codec : AAC
Codec/Family : AAC
PlayTime : 14mn 59s
Bit rate : 138 Kbps
Bit rate mode : CBR
Channel(s) : 2 channels
Sampling rate : 48 KHz
Resolution : 16 bits
StreamSize : 14.8 MiB
Language : Japanese
Encoded date : UTC 2006-12-05 10:43:39
Tagged date : UTC 2006-12-05 10:43:39
Notice how they're keeping the aspect ratio at 16/9 and using black bars for the 4:3 content? Also take note that all vertical resolutions are 270. (3 out of the 3 videos I downloaded had this..)
So I wonder if just making a video with 480x270 dimensions will work? Just guessing though.. I don't know much about how the PSP's firmware is restricting it.
quake74
5th January 2007, 09:42
I am sorry, but isn't it known already that you can go full res on a PSP using MJPEG? http://pspupdates.qj.net/2-80-plays-480x272-if-it-s-Motion-JPEG/pg/49/aid/72373
Edit: Or http://forum.doom9.org/showthread.php?p=906603#post906603
Schrade
5th January 2007, 11:44
I am sorry, but isn't it known already that you can go full res on a PSP using MJPEG? http://pspupdates.qj.net/2-80-plays-480x272-if-it-s-Motion-JPEG/pg/49/aid/72373
Edit: Or http://forum.doom9.org/showthread.php?p=906603#post906603
Yes, it's very well known. We're talking about full res AVC though, as this is in the MPEG-4 AVC forum in a thread about the same thing for PSP. The MJPEG referenced in my posts are for the thumbnail that shows up in the Video Cross Media Bar menu.
CruNcher
5th January 2007, 20:34
Some tip if you wan't to have thumbnails for folders in the Music dir you can just use a normal thumbnail as for videos just put it in the dir of the Album, but the dimensions have to be a little smaller i think (not sure tough) im searching for alot of such stuff, gonna publish everything soon what i found, im not @ home currently. Their are actually 3 pictures you can use 1. The Folder Picture (smallest) 2. The Properties Info Picture (little bigger) and 3rd the Cover in the Player Picture.
ChrisBensch
6th January 2007, 19:42
I've downloaded one of those video files from the www.p-tv.jp site. One of the things I noticed right after the file finished was a screen that said "downloading license file". So it seems to me that a license is required to play the file...I've attached the file, it's binary with a few strings that you can recognize...I'll play with it and see what I can make happen.
superx
7th January 2007, 22:55
Hi guys
I am trying to use MeGUI to encode the video but when I lode teh d2v to to create a avs it gives me an error saying there is a problem with my avssynth but I checked everything and it looks fine, any help would be appreciated
Bajunid
8th January 2007, 08:44
@superx,
umm....can u give us any details on your script?
superx
8th January 2007, 14:24
I first use MEGUI to crate a d2v file from a VOB then I go and try and create a AVS file from the d3v file in MeGUI and then it give me an error stating that I don't have AViSYNTH installed properly or YU10 codec, and I have all the necesary stuff install.
But it still doens't want to work.
Thanks for the help.
dssgorila
8th January 2007, 19:59
I first use MEGUI to crate a d2v file from a VOB then I go and try and create a AVS file from the d3v file in MeGUI and then it give me an error stating that I don't have AViSYNTH installed properly or YU10 codec, and I have all the necesary stuff install.
But it still doens't want to work.
Thanks for the help.
Do you have media player classic? if so try playing your avs in it. If it doesn't play you might be missing a codec.
Sudds
10th January 2007, 21:20
Some good news guys for those running DA custom firmware..3.03 OE-B will be able to play 480x272 resolution from its native player!
Happy Days are here! (soon) :D
quake74
11th January 2007, 00:55
Some good news guys for those running DA custom firmware..3.03 OE-B will be able to play 480x272 resolution from its native player!
Happy Days are here! (soon) :D
Ok, I just got it and I cannot play the new 480x272 files I created. I used the same x264 options I used for the regular 368x208 but no cigar... I will try to lower the number of bframes and ref frames next...
Edit: Still no success using x264, but the files produced by the 3gp converted (using the profiles of the readme 303oeb) do work! Too bad they only have these settings
x264 - core 41 svn-380M - H.264/MPEG-4 AVC codec - Copyleft 2005 - http://www.videolan.org/x264.html - options: cabac=1 ref=1 deblock=1:0:0 analyse=0x1:0x1 me=hex subme=5 brdo=0 mixed_ref=0 me_range=16 chroma_me=1 trellis=0 8x8dct=0 cqm=0 chroma_qp_offset=0 slices=1 bframes=0 keyint=250 keyint_min=100 scenecut=40 pass=1 bitrate=768 ratetol=1.0 rceq='blurCplx^(1-qComp)' qcomp=0.60 qpmin=2 qpmax=31 qpstep=3 ip_ratio=1.40
Bajunid
11th January 2007, 03:17
Well I managed to get it WORKING.
Use the regular options for 368*208.
Here's me settings copied from MeGUI,
--crf 20 --level 2.1 --ref 2 --mixed-refs --no-fast-pskip --bframes 1 --b-rdo --bime --weightb --direct auto --filter -1,-1 --subme 7 --trellis 2 --analyse p8x8,b8x8,i4x4,p4x4 --me umh --threads auto --thread-input --progress --no-psnr --no-ssim --output "E:\Video\Movies\English\Clerks.2[2006]DvDrip[Eng]-aXXo\scriptv.mp4" "E:\Video\Movies\English\Clerks.2[2006]DvDrip[Eng]-aXXo\script.avs"
But the audio needs to be AAC LC (like those in Firmware 2.71).
LASTLY, the resulting file needs to be atomchanged then renamed to MAQXXXXX.MP4. You have to use the atomchanger that supports all fps....Atomchange will automatically renamed it to MAQXXXXX.MP4
Then put in the previous (2.71 and below) folder structure MS:\MP_ROOT\101ANV01.
You can also use the .THM thumbnail file this time.
I tried with 29.90 fps and 23.976 fps video...I'll try a 25 fps video later.
Well, Thanks D_A.....if he ever reads this post is...
Hope this helps all the 3.03 OE-B out there...
Sharktooth
11th January 2007, 03:43
So the 3.03 firmware restores the pain...
Bajunid
11th January 2007, 04:18
Well Shark...Not really,
This is the 3.03 OE-B...a sort of hacked firmware for PSP.
Schrade
11th January 2007, 06:47
Well Shark...Not really,
This is the 3.03 OE-B...a sort of hacked firmware for PSP.
I think what he meant was the pain of the stupid atom changing, filename naming and thumbnail generating.
I'm currently trying to track down how P-TV does their thing.
Apparently, they are using Sony Image Converter 2 Plus to create 480x270 MPEG4-AVC videos and then adding DRM to them (and also the MJPEG thumbnail contained in the .mp4 container)
Notice that the videos from P-TV match the specs listed here:
http://www.memorystick.com/en/ms/variety1.html#avc
(768kbps/1000kbps, 480x270, 30fps)
Anyone have a Sony VAIO Computer? It seems some of them shipped with Image Converter 2 on their discs so you could give it a try.
Bajunid
11th January 2007, 07:05
I think what he meant was the pain of the stupid atom changing, filename naming and thumbnail generating.
Anyone have a Sony VAIO Computer? It seems some of them shipped with Image Converter 2 on their discs so you could give it a try.
Well...now I understand..hehehe :o
Anyway..I don't have a VAIO...so sorry can't help you there.
quake74
11th January 2007, 08:27
So the 3.03 firmware restores the pain...
Well, you can still read the 368x208 not-atomchanged files in the VIDEO folder (with 5 bframes and 3 mixed refs too). It gives you a nice bonus in resolution when you pine for the good old atomchange days...
CruNcher
11th January 2007, 08:48
@daisy0627
:readrule:
your software is nothing special just a gui based on open source software nothing inovative there (like many other video encoding soft out there you just wan't to make bucks fast with others work) not worth the 30 $ so stop advertising here or get banned (and you surely also don't give back anything to the projects you take from, because you can't with crapy gui development)
Bajunid
11th January 2007, 09:12
Hmm...5 bframes and 3 mixed frames....why is that my files aren't readable by PSP if I were to do that?
quake74
11th January 2007, 09:35
Hmm...5 bframes and 3 mixed frames....why is that my files aren't readable by PSP if I were to do that?
Well, I've used the options in http://forum.doom9.org/showpost.php?p=916791&postcount=520 for about 20 files and they are all playable on >=3.02 firmware.
Schrade
11th January 2007, 12:33
Dark_Alex's 3.03 OE-B firmware has been released. You can see the release thread here: http://forums.maxconsole.net/showthread.php?t=43870
You can download it from pspupdates.qj.net here: http://dl.qj.net/index.php?pg=12&fid=12202
Also someone took the specs and made an .ini file and packaged it in the 3GP Converter drag'n'drop GUI package. You can download it here:
http://dl.qj.net/Custom-.ini-for-3GP-Converter-v0.34-PSP-Tools-Utilities-%2028on-PC%2029/pg/12/fid/12203/catid/193
Just updated and tested it. Only plays from the \MP_ROOT\101ANV01\ folder and you have to use the crappy MAQxxxxx.MP4/MAQxxxxx.THM again. Oh well.. cool deal to be able to do it at least.
One more thing.. madruscoe has released a modified PMP Mod AVC that has lots of additional features and tweaks to it.
http://forums.qj.net/f-psp-development-forum-11/t-release-pmp-mod-avc-v102m-d-subtitle-mod-fw15oe-tuned-89273.html
conkeroo
11th January 2007, 22:11
Just wondering, what would be the best way to encode from .wmv to .mp4? Is it possible with x264 and megui??
dthpsc
11th January 2007, 23:45
LASTLY, the resulting file needs to be atomchanged then renamed to MAQXXXXX.MP4. You have to use the atomchanger that supports all fps....Atomchange will automatically renamed it to MAQXXXXX.MP4
Where can I find this version of ATOMChanger? I looked all over the place but can't find one that works properly for this purpose.
deets
11th January 2007, 23:47
Just wondering, what would be the best way to encode from .wmv to .mp4? Is it possible with x264 and megui??
yeah, use directshow source and test it works in mpc first, then you can convert easily
Bajunid
11th January 2007, 23:54
Well, you can still read the 368x208 not-atomchanged files in the VIDEO folder (with 5 bframes and 3 mixed refs too). It gives you a nice bonus in resolution when you pine for the good old atomchange days...
Where can I find this version of ATOMChanger? I looked all over the place but can't find one that works properly for this purpose.
Here you go....
Make sure you change the prog path to your liking in the atom.bat file
conkeroo
12th January 2007, 16:53
Cheers Deets.
Takuto
17th January 2007, 14:37
Im sucessefully encoded 480x272 mp4 files, which are playable at 3.03 OE-B firmware, thanks to info in this thread. But when Im trying to encode some 4:3 AR videos into 368x272 files, they played on PSP stretched out to 16:9 (however, on PC its all right). And AR switching into PSP doing nothing at all.
Am I totally wrong with 368x272 resolution? Or maybe final AR depends on some headers, which PSP reads differently from PC?
Does Atomchanger write videoAR flags?
(Im encoding clips with x264 into MP4, muxing with MP4Box then Atomchange. All resizing done inside AVS script.)
sl1pkn07
18th January 2007, 16:08
http://sl1pkn07.no-ip.com/imagenes/PSP/videos/screen1.png
http://sl1pkn07.no-ip.com/imagenes/PSP/videos/screen2.png
http://sl1pkn07.no-ip.com/imagenes/PSP/videos/screen3.png
:(
uses ffmpeg and x264 SVN 12-01-2007 version in Fedora Core 5
videos working in pc, but no in psp (3.03-OEB)
any ideas?
ilovejedd
18th January 2007, 18:12
The AVC profile supported by PSP requires 48kHz audio, I believe.
sl1pkn07
18th January 2007, 19:30
http://sl1pkn07.no-ip.com/imagenes/PSP/videos/screen4.png
http://sl1pkn07.no-ip.com/imagenes/PSP/videos/screen5.png
ffmpeg -y -title "ese" -i teaser8000k1280_720.wmv -vcodec h264 -s 480x272 -r 29.97 -b 736kb -acodec aac -ac 2 -ab 128 -ar 48000 -f psp MAQ10001.MP4
Clown shoes
20th January 2007, 02:01
How many threads are you using to encode? The PSP is still sensitive to multi thread encoded video. Anything more than one just will not work.
Good luck.
sl1pkn07
20th January 2007, 13:20
ffmpeg -y -i source.avi -acodec aac -ab 128 -vcodec h264 -b 1200 -ar 48000 -coder 1 -aic 2 -bufsize 128 -g 250 -s 480x272 -r 29.97 -ac 2 -title "Title" -f psp MAQ10001.MP4
Working!!
Source: http://forums.maxconsole.net/showthread.php?t=44727
Sgt_Strider
23rd January 2007, 09:01
Dark_Alex's 3.03 OE-B firmware has been released. You can see the release thread here: http://forums.maxconsole.net/showthread.php?t=43870
You can download it from pspupdates.qj.net here: http://dl.qj.net/index.php?pg=12&fid=12202
Also someone took the specs and made an .ini file and packaged it in the 3GP Converter drag'n'drop GUI package. You can download it here:
http://dl.qj.net/Custom-.ini-for-3GP-Converter-v0.34-PSP-Tools-Utilities-%2028on-PC%2029/pg/12/fid/12203/catid/193
Just updated and tested it. Only plays from the \MP_ROOT\101ANV01\ folder and you have to use the crappy MAQxxxxx.MP4/MAQxxxxx.THM again. Oh well.. cool deal to be able to do it at least.
One more thing.. madruscoe has released a modified PMP Mod AVC that has lots of additional features and tweaks to it.
http://forums.qj.net/f-psp-development-forum-11/t-release-pmp-mod-avc-v102m-d-subtitle-mod-fw15oe-tuned-89273.html
So I have to name my file like that in order for the file to play? If not, can I get a different player to play the media files? Does it only support AVC at full resolution? Or Xvid will work as well?
ilovejedd
23rd January 2007, 21:21
Yes, files would need to use the old naming pattern. Yes, you can use a different player provided your PSP is homebrew-capable. It only supports MPEG4 AVC at full res, Dark_Alex didn't bother modifying the MPEG4 SP profile since "AVC is better", from the readme, not mine.
Schrade
26th January 2007, 00:03
Dark_AleX does it again. He has released another version of his custom firmware, 3.03 OE-C.
This time he's unlocked the bitrate of the videos. He's raised the max bitrate to 16384 Kbps. That's just what he set it to as the max and it goes along well with his previous 3.03 OE-B release of unlocking the resolution of videos.
Release thread here: http://forums.maxconsole.net/showthread.php?t=46034
You can download it from here: http://pspupdates.qj.net/Dark-AleX-s-3-03-OE-C-Released-/pg/49/aid/80540
(Nice overview of what's new in the firmware there)
Does anyone have a nice meGUI profile that will support all the new changes? The current ones are a bit outdated.
pzw
5th February 2007, 07:07
AR not use the encoding
Directly Resize(368x272)
Then when the playback Adjusted original mode Can
After test,3.03oec 64x64 from the Minimum To 480x272 maximum,Middle original mode can be used as long as mod16
(For example : 352x64,64x144,……)
If the output encoding into 480x272 adding "--sar 1:1 "
Will be playback shielding zoom, fullscreen, normal, Only original 4:3 two mode
However, I have some doubts, which in the end can do anamorphic psp playback???
Have done precise 320x240 to 426x240, it can playback on the psp, But there has been no adjustment to the primitive 426x240
Sgt_Strider
8th February 2007, 05:22
What are some ideal settings to encode AVC at full PSP resolution?
steven_m64
11th February 2007, 09:06
i'm using the custom unrestricted firmware also, i have tried to change settings but whenever i encode full res 480x272 it will work but will always start playing the video skewed to 4:3 aspect ratio and have to always change modes to full screen mode to view it correctly.
Sgt_Strider
13th February 2007, 23:59
Maybe more people can help us out.
jackosman85
15th February 2007, 17:04
DirectShowSource("C:\Documents and Settings\Osman Yetistirici\Desktop\yolla\dmt-perfume-sample.avi",fps=25,audio=false)
#deinterlace
crop( 0, 0, -2, -2)
Lanczos4Resize(368,208) # Lanczo4 (Sharp)
#denoise
ChangeFPS(29.97) # note the FPS change to 29.97, needed for PSP AVC playback (remove when your video is already 29.97 FPS)
http://img113.imageshack.us/img113/6962/52880545cx9.jpg
http://img79.imageshack.us/img79/263/42727826vs2.jpg
http://img113.imageshack.us/img113/5026/27566860dr5.jpg
why is differance the samplerate ? Anyway... i go on.
http://img413.imageshack.us/img413/9163/11660951uu9.jpg
http://img413.imageshack.us/img413/7233/15107473au0.jpg
http://img413.imageshack.us/img413/7335/41897828om4.jpg
http://img413.imageshack.us/img413/9515/26302600mo1.jpg
http://img413.imageshack.us/img413/5916/28867262lb0.jpg
http://img113.imageshack.us/img113/6843/93860629fj8.jpg
http://img113.imageshack.us/img113/5146/10pv7.jpg
Looking for job processor for job...
Processor found!
Starting job job1-1 at 07:13:22
Starting preprocessing of job...
Preprocessing finished!
encoder commandline:
--pass 1 --bitrate 300 --stats "C:\Documents and Settings\Osman Yetistirici\Desktop\yolla\DMT.stats" --level 2.1 --bframes 3 --direct auto --subme 1 --analyse none --vbv-maxrate 4000 --me dia --thread-input --progress --no-psnr --no-ssim --output NUL "C:\Documents and Settings\Osman Yetistirici\Desktop\yolla\DMT.avs"
successfully started encoding
Processing ended at 07:13:57
----------------------------------------------------------------------------------------------------------
Log for job job1-1
avis [info]: 368x208 @ 29.97 fps (2336 frames)
x264 [info]: using cpu capabilities MMX MMXEXT SSE SSE2
x264 [warning]: VBV maxrate specified, but no bufsize.
x264 [info]: slice I:16 Avg QP:25.94 size: 6286
x264 [info]: slice P:1362 Avg QP:28.60 size: 1552
x264 [info]: slice B:958 Avg QP:27.95 size: 505
x264 [info]: mb I I16..4: 28.2% 0.0% 71.8%
x264 [info]: mb P I16..4: 8.7% 0.0% 0.0% P16..4: 55.9% 0.0% 0.0% 0.0% 0.0% skip:35.4%
x264 [info]: mb B I16..4: 0.6% 0.0% 0.0% B16..8: 22.6% 0.0% 0.0% direct: 7.9% skip:68.9%
x264 [info]: final ratefactor: 28.07
x264 [info]: direct mvs spatial:75.4% temporal:24.6%
x264 [info]: kb/s:276.9
encoded 2336 frames, 69.47 fps, 277.06 kb/s
----------------------------------------------------------------------------------------------------------
Starting postprocessing of job...
Job completed successfully and deletion of intermediate files is activated
Postprocessing finished!
Looking for job processor for job...
Processor found!
Starting job job1-2 at 07:13:57
Starting preprocessing of job...
Preprocessing finished!
encoder commandline:
--pass 2 --bitrate 300 --stats "C:\Documents and Settings\Osman Yetistirici\Desktop\yolla\DMT.stats" --level 2.1 --ref 2 --mixed-refs --bframes 3 --b-rdo --bime --weightb --direct auto --subme 6 --trellis 1 --analyse p8x8,b8x8,i4x4,p4x4 --vbv-maxrate 4000 --me umh --thread-input --progress --no-psnr --no-ssim --output "C:\Documents and Settings\Osman Yetistirici\Desktop\yolla\DMT.mp4" "C:\Documents and Settings\Osman Yetistirici\Desktop\yolla\DMT.avs"
successfully started encoding
Processing ended at 07:15:35
----------------------------------------------------------------------------------------------------------
Log for job job1-2
avis [info]: 368x208 @ 29.97 fps (2336 frames)
x264 [info]: using cpu capabilities MMX MMXEXT SSE SSE2
x264 [warning]: VBV maxrate specified, but no bufsize.
mp4 [info]: initial delay 524288 (scale 15712911)
x264 [info]: slice I:16 Avg QP:23.19 size: 7759
x264 [info]: slice P:1362 Avg QP:26.45 size: 1696
x264 [info]: slice B:958 Avg QP:26.49 size: 509
x264 [info]: mb I I16..4: 32.2% 0.0% 67.8%
x264 [info]: mb P I16..4: 4.5% 0.0% 5.4% P16..4: 32.6% 15.3% 6.0% 1.1% 0.4% skip:34.6%
x264 [info]: mb B I16..4: 0.3% 0.0% 0.5% B16..8: 34.2% 2.3% 4.3% direct: 0.7% skip:57.7%
x264 [info]: direct mvs spatial:59.1% temporal:40.9%
x264 [info]: ref P 89.6% 10.4%
x264 [info]: ref B 90.5% 9.5%
x264 [info]: kb/s:299.9
encoded 2336 frames, 24.11 fps, 300.03 kb/s
desired video bitrate of this job: 300 kbit/s - obtained video bitrate (approximate): 301 kbit/s
----------------------------------------------------------------------------------------------------------
Starting postprocessing of job...
Job completed successfully and deletion of intermediate files is activated
Found intermediate output file 'C:\Documents and Settings\Osman Yetistirici\Desktop\yolla\DMT.stats', deleting...
Deletion succeeded.Postprocessing finished!
Looking for job processor for job...
Processor found!
Starting job job2 at 07:15:35
Starting preprocessing of job...
Preprocessing finished!
encoder commandline:
successfully started encoding
Processing ended at 07:15:47
----------------------------------------------------------------------------------------------------------
Log for job job2
Channels=2, BitsPerSample=16, SampleRate=48000Hz
C:\Program Files\MeGUI.NET\tools\encaacplus\enc_aacPlus.exe - "C:\Documents and Settings\Osman Yetistirici\Desktop\yolla\dmt-perfume-sample.aac" --rawpcm 48000 2 16 --cbr 64000 --lc********************************************************************
* AACPlus v2 Encoder (using Winamp 5.2 enc_aacplus.dll)
* Source timestamp Mon May 15 17:24:26 2006
* Build May 15 2006, 17:24:35
********************************************************************
* NOTE! enc_aacplus.dll must be into executable directory
* get it from Winamp 5.2 plugins directory
* tested on Winamp 5.2 Release Feb 23 2006 Full (Not Pro) version)
********************************************************************
Input file: -
Output file: C:\Documents and Settings\Osman Yetistirici\Desktop\yolla\dmt-perfume-sample.aac
SampleRate: 48000
ChannelCount: 2
BitsPerSample: 16
Bitrate: 64000
ChannelMode: Stereo
Encoder: AAC-LC
Done
----------------------------------------------------------------------------------------------------------
Starting postprocessing of job...
Job completed successfully and deletion of intermediate files is activated
Postprocessing finished!
but doesn't working whatever i do ....try again , try again .no play video . now tell me where are my mistake ? and what am i gonna do ?thanks (by the way my english is bad. i am sorry)
ilovejedd
15th February 2007, 17:46
I'm guessing the problem is with the audio. For some reason, your output file has a sample rate of 32000. MPEG4 AVC profile for PSP requires 48000. Maybe you can try a different audio encoder such as Nero or even iTunes?
jackosman85
16th February 2007, 04:33
if you have firmware 280 and plus this settings are working...
you can download it here (http://rapidshare.com/files/16675869/profil_and_avs.rar.html)
Sgt_Strider
20th February 2007, 07:37
I'm a newbie at this. Is x264 the "best" AVC codec to encode with right now? Which GUI can I pair with x264 to encode to 480x272 which is the native resolution of the PSP.
Since DVD's natural resolution is 720x480, can I just downsize the DVD's resolution to 480x272 with no loss in aspect ratio? Or I'm going to have to use a different resolution and not achieve a full screen playback? Thanks!
ilovejedd
20th February 2007, 13:54
What other free AVC encoders are available? Even ffmpeg uses x264. I haven't used any GUIs for x264 as I find ffmpeg much easier for this job (built-in atomchanger) but I think MeGUI's recommended by most.
It really depends on your DVD. Even if the resolution for the VOB files is 720x480, actual content can be different aspect ratios. Some examples:
Package Label: Widescreen 1.85
VOB resolution: 720x480, letterboxed
AR signal: 4:3
Package Label: Enhanced Widescreen 1.85
VOB resolution: 720x480
AR signal: 16:9
Package Label: Widescreen 2.35
VOB resolution: 720x480, letterboxed
AR signal: 16:9
For the first example, you have to crop the black bars first then resize to 480x272. For the second example, you can go straight ahead to resizing to 480x272. For the third example, you can also go straight ahead to resizing to 480x272 but encoding the black bars is a waste so you might want to crop it first then resize (480x204) or resize (480x272) then crop (480x204).
Schrade
20th February 2007, 20:53
What other free AVC encoders are available? Even ffmpeg uses x264. I haven't used any GUIs for x264 as I find ffmpeg much easier for this job (built-in atomchanger) but I think MeGUI's recommended by most.
I like using the latest builds of AVIDemux 2.4.0 (latest build is r2826):
http://forum.doom9.org/showthread.php?t=108784
It has built-in PSP 480x272 support now and after tweaking the x264 settings in the profile you can get some pretty damn nice quality encodes.
If I can figure out how to automate things a bit more it'd be perfect.
Sgt_Strider
21st February 2007, 03:43
What other free AVC encoders are available? Even ffmpeg uses x264. I haven't used any GUIs for x264 as I find ffmpeg much easier for this job (built-in atomchanger) but I think MeGUI's recommended by most.
It really depends on your DVD. Even if the resolution for the VOB files is 720x480, actual content can be different aspect ratios. Some examples:
Package Label: Widescreen 1.85
VOB resolution: 720x480, letterboxed
AR signal: 4:3
Package Label: Enhanced Widescreen 1.85
VOB resolution: 720x480
AR signal: 16:9
Package Label: Widescreen 2.35
VOB resolution: 720x480, letterboxed
AR signal: 16:9
For the first example, you have to crop the black bars first then resize to 480x272. For the second example, you can go straight ahead to resizing to 480x272. For the third example, you can also go straight ahead to resizing to 480x272 but encoding the black bars is a waste so you might want to crop it first then resize (480x204) or resize (480x272) then crop (480x204).
Why would it be a waste to encode the blackbars? I want to make things easy for myself. I understand from the examples that you're giving, but if I were to take those files and just simply encode it to 480x272, then I'll still maintain the movie's original aspect ratio right? Meaning everything will look fine just in a lower resolution for the PSP?
Sgt_Strider
21st February 2007, 03:44
I like using the latest builds of AVIDemux 2.4.0 (latest build is r2826):
http://forum.doom9.org/showthread.php?t=108784
It has built-in PSP 480x272 support now and after tweaking the x264 settings in the profile you can get some pretty damn nice quality encodes.
If I can figure out how to automate things a bit more it'd be perfect.
Is there a way to set VBR for the video as well as the audio?
Schrade
21st February 2007, 05:56
Is there a way to set VBR for the video as well as the audio?
Er.. use 2-pass encoding?
Sgt_Strider
22nd February 2007, 09:53
Is there a guide for encoding content for the PSP? I need a little bit of guidance here.
Sgt_Strider
22nd February 2007, 10:22
ffmpeg -y -i source.avi -acodec aac -ab 128 -vcodec h264 -b 1200 -ar 48000 -coder 1 -aic 2 -bufsize 128 -g 250 -s 480x272 -r 29.97 -ac 2 -title "Title" -f psp MAQ10001.MP4
Working!!
Source: http://forums.maxconsole.net/showthread.php?t=44727
Is this the "best" setting for to obtain the "best" video quality for MP4 downloads? I have a 4GB memory stick duo pro and my PSP is flashed with Dark Alex's custom firmware. My goal right now is to find the ideal settings for the best encodes. File sizes are obviously important too and I want a right balance with a tilt towards video quality.
nm
22nd February 2007, 10:40
Certainly not the best (closer to worst) since ffmpeg's default x264 settings are bad for this purpose. There is a good ffmpeg-x264 encoding guide by Robert Swain here: http://rob.opendot.cl/index.php/useful-stuff/ffmpeg-x264-encoding-guide/ (and more discussion about it on a doom9 thread (http://forum.doom9.org/showthread.php?t=121429)).
The PSP part of the guide is not yet finished, but you should be able to find out about the restrictions elsewhere (like the MeGUI profile) and apply them to the parameters.
Sgt_Strider
26th February 2007, 00:10
Certainly not the best (closer to worst) since ffmpeg's default x264 settings are bad for this purpose. There is a good ffmpeg-x264 encoding guide by Robert Swain here: http://rob.opendot.cl/index.php/useful-stuff/ffmpeg-x264-encoding-guide/ (and more discussion about it on a doom9 thread (http://forum.doom9.org/showthread.php?t=121429)).
The PSP part of the guide is not yet finished, but you should be able to find out about the restrictions elsewhere (like the MeGUI profile) and apply them to the parameters.
Some of the restrictions that he cited are no longer relevant with the newer hacked PSP firmwares.
ilovejedd
26th February 2007, 01:03
Bitrate and resolution might be hacked but the rest still applies. Also, I'm not sure if the PSP can work with VBR audio. I think I read somewhere that it doesn't, or at the very least, it's problematic.
There are already several HQ PSP profiles available. All you have to do is change the resolution in the profiles to 480x272 and bitrate to whatever you want and you're set. Keep in mind that the additional options are there to compensate for limitations in bitrate so if you throw enough bitrate at it, even the base x264 settings of ffmpeg will be suffice.
Not everyone is comfortable using hacked firmware. Most will still use official firmware from Sony (although, imho, they're missing out a lot with regards to the PS1 emu ;)) so you can't expect the guide to cater solely to those using hacked firmware. Besides, you can still use the options detailed in the guide, you just don't have the same limitations when it comes to resolution, bitrate and x264 profile level.
For better control use x264, a separate AAC encoder, mp4box and AtomChanger. There are numerous guides on this thread alone. I just use ffmpeg because its built-in AtomChanger for encoding PSP videos is just so darned convenient. Not to mention it's akin to a SwissKnife for media transcoding.
Joe Fenton
28th February 2007, 01:47
Currently, I prefer PMPModAVC to the Sony player. I can use x264 level 3 encoding at any bitrate, and VBR mp3 for the audio.
http://jonny.leffe.dnsalias.com/pmp_mod_avc/index.htm
General HowTo:
rip DVD with DVDDecrypter (or other ripper)
Use GordianKnot to make d2v and avs files (hint, use TomsMoComp for deinterlacing). use the following for output resolutions:
4:3 = 368x272
16:9 = 480x272
2.35:1 = 480x208
Use BeLight to transcode ac3 audio to mp3.
Use x264 to transcode avs to h.264. Here's the commands I use for two pass:
x264.exe --pass 1 --bitrate 750 -A all --level 3 --pictiming --aud --no-psnr --thread-input --progress --output NUL ep6.avs
x264.exe --pass 2 --bitrate 750 -A all --level 3 --pictiming --aud --no-psnr --thread-input --progress --output ep6.264 ep6.avs
Finally, use pmpmodavc_muxer to make the pmp file. This makes excellent looking and sounding videos.
My AMD X2 4600+ gets about 62 FPS while encoding using the above settings (61 FPS on pass 1, and 63 FPS on pass 2). :)
Schrade
28th February 2007, 06:12
Currently, I prefer PMPModAVC to the Sony player. I can use x264 level 3 encoding at any bitrate, and VBR mp3 for the audio.
In Dark_Alex's 3.10 OE-A' (AKA OE-A2) he has unlocked the bitrate as well so there's no worry in that.
I prefer having AAC as the audio too vs. MP3.
Currently the only reason I can see to use PMPModAVC is if you want Subtitles, want more battery conservation or if you already have pre-encoded movies.
Joe Fenton
1st March 2007, 04:12
In Dark_Alex's 3.10 OE-A' (AKA OE-A2) he has unlocked the bitrate as well so there's no worry in that.
I prefer having AAC as the audio too vs. MP3.
Currently the only reason I can see to use PMPModAVC is if you want Subtitles, want more battery conservation or if you already have pre-encoded movies.
Well, one issue is that even though you are now allowed to use full resolution, if you do, it won't start in full-screen mode. Second, it's a pain doing multiple audio tracks with most PSP MP4 converters. PMPMod(AVC) starts in full-screen mode, and multiple audio tracks are as simple as just adding more mp3s in the muxer. Also, I think that VBR MP3 sounds better than CBR AAC.
But, everyone has their own preference, which is why the lastest custom firmware is so nice - you can make full resolution videos with >768 kbps for the XMB now, whereas before you were STUCK with PMPMod(AVC) if you wanted that, whether you liked it or not.
steven_m64
1st March 2007, 04:41
i figured out if you force sar 1:1 in the config of x264 for example it will start fullscreen like normal as other normal files do.
Joe Fenton
2nd March 2007, 01:19
i figured out if you force sar 1:1 in the config of x264 for example it will start fullscreen like normal as other normal files do.
Cool! I'll have to try that. Thanks for the tip. :D
stanleyhuang
2nd March 2007, 16:10
MediaCoder now supports producing both PSP and PMP MOD files with x264. Instead of using AVS, MediaCoder retrieves yv12 data from MPlayer via a pipe and feed x264 via stdin. Besides encoding, MediaCoder generates thumbnail and can automatically transfer encoded files to PSP.
http://mediacoder.sourceforge.net/screenshots/mc-psp.png
Get MediaCoder (http://mediacoder.sourceforge.net/dlfull.htm)
steven_m64
2nd March 2007, 19:19
Thanks for the really useful advertisement.
anyways...Are thumbnails actually supported for videos (in the video folder or original folder method).
i attempted to get it working but it never showed, or was thumbnail support added in one of the latest firmwares.
Schrade
2nd March 2007, 19:54
Thanks for the really useful advertisement.
I couldn't tell if you were being sarcastic or not but I thought his mentioning that MediaCoder now has extensive PSP support was very useful.
anyways...Are thumbnails actually supported for videos (in the video folder or original folder method).
i attempted to get it working but it never showed, or was thumbnail support added in one of the latest firmwares.
There has got to be a way to get it working. If you go back several posts in this thread you'll see me talking about P-TV and how the videos there have their thumbnails embedded in their MP4 container as a JPEG image. I muxed a JPEG image into a plain mp4 video but it wasn't picked up in the Video folder. It might just be an Atom thing though and we just have to find out if it needs a specific Atom on it for it to show up as a thumbnail.
ilovejedd
2nd March 2007, 20:10
Thumbnails are 160x120 JPEG files with a .THM extension. It's usable with the original folder method. The thumbnail must be in the same folder as the video and must have the same (base) filename.
Hmm, regarding embedded thumbs, don't P-TV videos follow the old naming conventions? I downloaded one from my brother's PSP (JP)
From an earlier post (http://forum.doom9.org/showthread.php?p=906537#post906537) I made:
* Movie Info *
Timescale 90000 - Duration 00:23:18.272
Fragmented File no - 4 track(s)
File Brand MSSV - version 18089859
Created: GMT Thu Nov 09 11:01:34 2006
File has root IOD
Scene PL 0xff - Graphics PL 0xff - OD PL 0xfe
Visual PL: ISO Reserved Profile (0x30)
Audio PL: ISO Reserved / User Private (0x32)
Track # 1 Info - TrackID 1 - TimeScale 30000 - Duration 00:23:18.196
Media Info: Language "Undetermined" - Type "vide" - Sub Type "avc1" - 41904 samples
MPEG-4 Config: Visual Stream - ObjectTypeIndication 0x21
AVC/H264 Video - Visual Size 480 x 270 - Profile Main @ Level 2.1
Pixel Aspect Ratio 3:4 - Indicated track size 480 x 270
Synchronized on stream 4
Track # 2 Info - TrackID 2 - TimeScale 48000 - Duration 00:23:18.272
Media Info: Language "Japanese" - Type "soun" - Sub Type "mp4a" - 65544 samples
MPEG-4 Config: Audio Stream - ObjectTypeIndication 0x40
MPEG-4 Audio AAC LC - 2 Channel(s) - SampleRate 48000
Synchronized on stream 4
Track # 3 Info - TrackID 3 - TimeScale 30000 - Duration 00:23:18.192
Media Info: Language "Undetermined" - Type "vide" - Sub Type "mp4v" - 1 samples
MPEG-4 Config: Visual Stream - ObjectTypeIndication 0x6c
Visual Size 160 x 120
Synchronized on stream 4
Track # 4 Info - TrackID 4 - TimeScale 90000 - Duration 00:23:18.272
Track is present in Root OD
Media Info: Language "Undetermined" - Type "odsm" - Sub Type "mp4s" - 1 samples
MPEG-4 Config: ObjectDescriptor Stream - ObjectTypeIndication 0x01
Self-synchronized
Schrade
3rd March 2007, 00:42
Hmm, regarding embedded thumbs, don't P-TV videos follow the old naming conventions? I downloaded one from my brother's PSP (JP)
From an earlier post (http://forum.doom9.org/showthread.php?p=906537#post906537) I made:
What are you using to get the file info you posted? MediaInfo doesn't go into as much detail as that :(
ilovejedd
3rd March 2007, 00:51
Yamb which is yet another mp4box gui. It was mentioned in the post. I was tried to extract the individual streams but all I get is garbage. I would reckon to say that stream 4 determines playback and might contain encryption/decryption information for the file. But as I'm not all that advanced tech-wise, I really couldn't hack it or anything. Refer to earlier post (http://forum.doom9.org/showthread.php?p=906537#post906537) for more info.
stanleyhuang
3rd March 2007, 04:09
Thanks for the really useful advertisement.
anyways...Are thumbnails actually supported for videos (in the video folder or original folder method).
i attempted to get it working but it never showed, or was thumbnail support added in one of the latest firmwares.
Sorry for posting an "advertisement", but it's a free software I made and I don't charge anything for it, so maybe this should be better called "information".
I reply your question in another post (http://forum.doom9.org/showthread.php?p=965081#post965081).
Sgt_Strider
3rd March 2007, 04:14
Currently, I prefer PMPModAVC to the Sony player. I can use x264 level 3 encoding at any bitrate, and VBR mp3 for the audio.
http://jonny.leffe.dnsalias.com/pmp_mod_avc/index.htm
General HowTo:
rip DVD with DVDDecrypter (or other ripper)
Use GordianKnot to make d2v and avs files (hint, use TomsMoComp for deinterlacing). use the following for output resolutions:
4:3 = 368x272
16:9 = 480x272
2.35:1 = 480x208
Use BeLight to transcode ac3 audio to mp3.
Use x264 to transcode avs to h.264. Here's the commands I use for two pass:
x264.exe --pass 1 --bitrate 750 -A all --level 3 --pictiming --aud --no-psnr --thread-input --progress --output NUL ep6.avs
x264.exe --pass 2 --bitrate 750 -A all --level 3 --pictiming --aud --no-psnr --thread-input --progress --output ep6.264 ep6.avs
Finally, use pmpmodavc_muxer to make the pmp file. This makes excellent looking and sounding videos.
My AMD X2 4600+ gets about 62 FPS while encoding using the above settings (61 FPS on pass 1, and 63 FPS on pass 2). :)
What's the disadvantage of using PMP Mod? I heard something about restarting the PSP? I'm not sure how that works and if you can explain that to me that would be great.
Also, are your settings high quality settings? Why are you not using AAC? If I want to add subtitles, does it "burn" the subtitles on to the video frame or it's like a DVD in which the subtitles itself is on a separate file and not "burned" on to the movie?
Is there a demuxer for the PMP format? For example in the future, I might want to switch to another format. Thanks!
stanleyhuang
3rd March 2007, 05:05
PMP MOD only plays MP3 audio. The demuxer and source code for PMP can be downloaded from jonny's website. There is also player for PMP on PC as well as a splitter. You can get some info here (http://forums.ps2dev.org/viewforum.php?f=14).
Joe Fenton
3rd March 2007, 20:59
What's the disadvantage of using PMP Mod? I heard something about restarting the PSP? I'm not sure how that works and if you can explain that to me that would be great.
Also, are your settings high quality settings? Why are you not using AAC? If I want to add subtitles, does it "burn" the subtitles on to the video frame or it's like a DVD in which the subtitles itself is on a separate file and not "burned" on to the movie?
Is there a demuxer for the PMP format? For example in the future, I might want to switch to another format. Thanks!
The main PMPMod site is here (http://jonny.leffe.dnsalias.com/). The thread link under PMPMod leads to a ps2dev forum thread where PMPMod and PMPModAVC are discussed. They are just about to release a new version of all the different PMP software from the look of things. From posts at ps2dev, it looks like the new version will support aac.
You can get a version of PMPMod(AVC) that supports subtitles here (http://www.fx-world.org/wordpress/?cat=2). MicroDVD and SubRip format are supported. These are softsubs, not hardsubs.
PMPMod(AVC) works like other homebrew - you run it from the games menu in the xmb. When it runs, it gives you a list of all the .pmp files found in ms0:\PSP\VIDEO\. Press X or O to play the selected file, and triangle to exit back to the xmb.
I use BeLight to encode the audio as 192kbps ABR MP3 at 44.1kHz (high quality for a PSP). Like I said, the new version they're testing now looks to play aac. The x264 settings are high quality... probably overkill on the bitrate, but that bitrate guarantees me high quality episodes with the whole series fitting on one DVD-R. 750kbps video and 192kbps audio yields a 24m38s episode of 168MB. They look and sound awesome.
There is a demuxer at the main site in case you ever wish to redo the files as something else.
Sgt_Strider
7th March 2007, 03:41
The main PMPMod site is here (http://jonny.leffe.dnsalias.com/). The thread link under PMPMod leads to a ps2dev forum thread where PMPMod and PMPModAVC are discussed. They are just about to release a new version of all the different PMP software from the look of things. From posts at ps2dev, it looks like the new version will support aac.
You can get a version of PMPMod(AVC) that supports subtitles here (http://www.fx-world.org/wordpress/?cat=2). MicroDVD and SubRip format are supported. These are softsubs, not hardsubs.
PMPMod(AVC) works like other homebrew - you run it from the games menu in the xmb. When it runs, it gives you a list of all the .pmp files found in ms0:\PSP\VIDEO\. Press X or O to play the selected file, and triangle to exit back to the xmb.
I use BeLight to encode the audio as 192kbps ABR MP3 at 44.1kHz (high quality for a PSP). Like I said, the new version they're testing now looks to play aac. The x264 settings are high quality... probably overkill on the bitrate, but that bitrate guarantees me high quality episodes with the whole series fitting on one DVD-R. 750kbps video and 192kbps audio yields a 24m38s episode of 168MB. They look and sound awesome.
There is a demuxer at the main site in case you ever wish to redo the files as something else.
Thanks for the information, but I have some more questions right now.
Does the PSP support VBR though? I rather do a 2-pass VBR and let the encoding programs determine the approriate bitrate for both the video and audio. I don't have a problem using MP3 for the audio since it's a 2-channel solution anyways.
So the muxing will not "damage" the video and audio files at all? If I demux it in the future, the video and audio will still be the same?
Which subtitle format do you recommend? Which one is the most commonly used? What do you by soft sub and hard sub?
I thought someone said that using the PMP mod will require the PSP to restart or something like that?
ilovejedd
7th March 2007, 06:40
If you do a 2-pass, video is VBR. What you have specified is average bitrate so complex parts are allotted more bitrate and simple ones less. You don't need PMPMod for that as it's supported by original firmware.
Do you mean you want to do a quality-based encode? You can do that, too, especially now that the resolution and bitrate limits have been lifted from custom firmware.
Muxing does not damage audio and video. Yes, the demuxed video and audio will still be the same.
I'm not sure what subtitle formats PMPMod uses. Most likely .srt or .ssa. I've never used the SUB version as when I first tried the original iteration, the native video player was much better interface-wise. Since I'm re-encoding videos either way, and I won't be viewing the encodes on anything other than my PSP, it was easier to just convert videos to the format PSP natively supports, even with hard subs.
hard subs = subtitles are written directly on to the video and cannot be removed without damage to video
soft subs = subtitles are not part of video stream and can be turned on or off at will
Hmm, think:
hard subs = text written with MS Paint (replaces pixels in orig pic)
soft subs = text added with PhotoShop (separate layer independent of orig pic)
PMP is homebrew and runs like any regular homebrew application. There's no reason why you'd need to turn off your PSP to run it if you don't need to do the same for, say, File Assistant.
Joe Fenton
7th March 2007, 08:08
Thanks for the information, but I have some more questions right now.
Does the PSP support VBR though? I rather do a 2-pass VBR and let the encoding programs determine the approriate bitrate for both the video and audio. I don't have a problem using MP3 for the audio since it's a 2-channel solution anyways.
Two pass video is VBR. I also encode the audio as ABR, which is VBR that tries to make the overall average about the same as the rate you select. PMPModAVC handles VBR video and audio just fine.
So the muxing will not "damage" the video and audio files at all? If I demux it in the future, the video and audio will still be the same?
Yes. Muxing is simply a way of mixing all the data streams together into a single file. None of the streams are altered.
Which subtitle format do you recommend? Which one is the most commonly used? What do you by soft sub and hard sub?
When I do subtitles, I do soft-subs in SRT format. SRT is probably most common.
Soft-subs - a separate text file with the subtitles, and timing info. Requires an OCR program that converts the VOB subtitles into text (like SubRipper). Pros: small text file makes it easy to store and edit. Player program can use high-quality fonts to display the subtitles, making them easy to read. Cons: player program must support soft-subs, and it takes time to draw subtitles over the video frames.
Hard-subs - the subtitles are rendered into the frame before it's encoded. Pros: works with any player, no slow down to display subtitles. No OCRing needed. Cons: makes frames harder to encode, thus decreasing quality just slightly. Stuck with font used when encoding the frame (and some subbing groups use LOUSY fonts at stupid sizes).
I thought someone said that using the PMP mod will require the PSP to restart or something like that?
Not anymore than any other game causes the PSP to "restart". After watching the vid, you exit PMPModAVC and you're back at the XMB like after exiting any other game or program.
Joe Fenton
7th March 2007, 08:19
The best way to answer questions about how PMPModAVC works is to simply try it out. Go here (http://forums.ps2dev.org/viewtopic.php?p=51637#51637) and you will find the latest PMPModAVC, a DShow filter to allow Windows to play PMP files, and a couple sample PMP files. Put PMPModAVC into the GAME150 folder, the samples into PSP\VIDEO\ and run the sucker. :D
Sgt_Strider
8th March 2007, 08:57
Two pass video is VBR. I also encode the audio as ABR, which is VBR that tries to make the overall average about the same as the rate you select. PMPModAVC handles VBR video and audio just fine.
Maybe my understanding of VBR isn't good. I just want to make sure I get you right. You didn't enter any numbers for the bitrate right? You just use VBR function which let the program determine the appropriate bitrate for the video file?
ilovejedd
8th March 2007, 09:07
From my earlier post:
Do you mean you want to do a quality-based encode? You can do that, too, especially now that the resolution and bitrate limits have been lifted from custom firmware.
Not so sure about PMPModAVC, though...
Joe Fenton
9th March 2007, 05:22
Maybe my understanding of VBR isn't good. I just want to make sure I get you right. You didn't enter any numbers for the bitrate right? You just use VBR function which let the program determine the appropriate bitrate for the video file?
No, that's constant quality, another form of VBR. Multi-pass VBR tends to be called ABR (Average Bit Rate) because it tries to make the work as a whole have an average bitrate close to what the user specified. In the case of the example command lines I gave, I specified an average bitrate for the whole clip of 750 kbps.
CBR - Constant bitrate. The media encodes at a constant bitrate, giving a fixed size, but a constantly changing quality. For constant bitrate with x264, use the "--bitrate" option (for example, --bitrate 512 ) without using the "--pass" option.
VBR - Variable bitrate. Has two main variants:
CQ - Constant quality. The media encodes at a set quality level, giving a completely variable bitrate and size. For constant quality with x264, specify the "--crf" option (for example, --crf 25). The higher the number, the higher the quality. Another way is to specify a constant quantizer using the "--qp" option (for example, --qp 18).
ABR - Average bitrate. Bits are shuffled from parts of the clip that don't need them to other parts that do. This gives a fairly fixed size and a fairly constant quality, but the bitrate changes constantly. ABR can be done with a single pass, but isn't nearly as good as multiple passes. For average bitrate with x264, use the "--bitrate" option along with the "--pass" option as shown in my examples several posts up.
Sgt_Strider
10th March 2007, 02:09
No, that's constant quality, another form of VBR. Multi-pass VBR tends to be called ABR (Average Bit Rate) because it tries to make the work as a whole have an average bitrate close to what the user specified. In the case of the example command lines I gave, I specified an average bitrate for the whole clip of 750 kbps.
CBR - Constant bitrate. The media encodes at a constant bitrate, giving a fixed size, but a constantly changing quality. For constant bitrate with x264, use the "--bitrate" option (for example, --bitrate 512 ) without using the "--pass" option.
VBR - Variable bitrate. Has two main variants:
CQ - Constant quality. The media encodes at a set quality level, giving a completely variable bitrate and size. For constant quality with x264, specify the "--crf" option (for example, --crf 25). The higher the number, the higher the quality. Another way is to specify a constant quantizer using the "--qp" option (for example, --qp 18).
ABR - Average bitrate. Bits are shuffled from parts of the clip that don't need them to other parts that do. This gives a fairly fixed size and a fairly constant quality, but the bitrate changes constantly. ABR can be done with a single pass, but isn't nearly as good as multiple passes. For average bitrate with x264, use the "--bitrate" option along with the "--pass" option as shown in my examples several posts up.
Does Autonot Gordian have an option to determine the best VBR or ABR bitrate for the encode?
Also, how can I determine which bitrate to use for VBR to ensure that it has a reasonably quality to size ratio? How did you come to the conclusion that 750kb/s is too much for PSP resolution?
ilovejedd
10th March 2007, 04:08
Does Autonot Gordian have an option to determine the best VBR or ABR bitrate for the encode?
Also, how can I determine which bitrate to use for VBR to ensure that it has a reasonably quality to size ratio? How did you come to the conclusion that 750kb/s is too much for PSP resolution?
Autonot Gordian - haven't heard of. AutoGordianKnot, I believe, has options for Constant Quality or ABR (given target size) encodes.
How do you define "reasonable quality to size ratio"? For my encodes, I use x264 2-pass 300kbps for video (anime eps, 320x240). One episode usually falls around 60MB so I can cram two 26-episode anime series on my 4GB stick with room for some music. Videos are not perfect but they're good enough for me. In my case, I opted for size rather than quality and I consider the trade-off reasonable. For live action, I usually use 400-500kbps. For the rare titles that I want in near perfect video (in my eyes), I use a bitrate of 768kbps.
Regarding 750kbps being overkill given the PSP's screen resolution, it really depends on you (and your eyes) whether the quality is acceptable or not. I suggest converting a couple of short clips to PSP format using various bitrates and/or quantizers and watch them on your PSP.
deets
10th March 2007, 21:46
yeah for your average TV stuff, 200kbs is fine, in my opinion anyway :)
300 if im pushing it ;)
Sgt_Strider
14th March 2007, 07:37
Autonot Gordian - haven't heard of. AutoGordianKnot, I believe, has options for Constant Quality or ABR (given target size) encodes.
How do you define "reasonable quality to size ratio"? For my encodes, I use x264 2-pass 300kbps for video (anime eps, 320x240). One episode usually falls around 60MB so I can cram two 26-episode anime series on my 4GB stick with room for some music. Videos are not perfect but they're good enough for me. In my case, I opted for size rather than quality and I consider the trade-off reasonable. For live action, I usually use 400-500kbps. For the rare titles that I want in near perfect video (in my eyes), I use a bitrate of 768kbps.
Regarding 750kbps being overkill given the PSP's screen resolution, it really depends on you (and your eyes) whether the quality is acceptable or not. I suggest converting a couple of short clips to PSP format using various bitrates and/or quantizers and watch them on your PSP.
Isn't there a bitrate calculator for h.264 content? I remember there was a bitrate calculator for xvid.
Basically I just want to let the programs determine the ideal bitrate to use to encode. Is that possible or I need to determine that myself?
ilovejedd
14th March 2007, 16:25
Bitrate calculator for either is the same as what bitrate calculators do is just ask you how long your video is and how big you want your file to be. You can do the calculations manually:
video bitrate = target filesize/total time - audio bitrate
*target file size in kilobits, e.g. 4gb is 4*1024*1024*8
**total time in seconds
but thankfully, bitrate calculators are there to make your life easier.
Ideal bitrate for what? Quality? Encoders won't know if the quality of a certain video is good enough for you. File size of encode? That they do, and that's what they're made for. So if you want to cram all three Lord of the Rings movies onto say a 2GB memory stick, a bitrate calculator will tell you what bitrate you should use. However, it is questionable whether the encodes will look good (although I reckon they'd probably be passable, maybe VCD quality or so).
Joe Fenton
15th March 2007, 03:53
Does Autonot Gordian have an option to determine the best VBR or ABR bitrate for the encode?
Also, how can I determine which bitrate to use for VBR to ensure that it has a reasonably quality to size ratio? How did you come to the conclusion that 750kb/s is too much for PSP resolution?
(Auto)Gordian Knot has settings for bitrate and quality, but I never worry about them as I just use GK to generate the avs file. I do the encoding via command line (as shown earlier) which specifies the bitrate.
The best way to know what bitrates to use is experience. Encode different material at different rates and see how they turn out. Do 5 to 10 minute clips so that it doesn't take too long. You can tell when you're getting close to the proper bitrate - you start getting block noise in the dark parts of scenes. Dark scenes normally have the most bits stolen in multi-pass encoding since the eye isn't as discriminating at low light levels. When too many bits are stolen, you start to see blocks in the darkest part.
For example, most of the episodes of Cowboy Bebop I encoded at 750 kbps show little to no noise. However, a couple episodes are harder to encode and require a higher bitrate. A perfect example is the episode "Brain Scratch" - if you're familiar with the series, you'd remember that this episode has a LOT of scenes that feature effects that simulate a TV image... white noise, scan lines, retrace lines, focus issues, etc.. Even at 750 kbps, this episode has some noticable block noise in the dark scenes, indicating that it could actually require a slightly higher bitrate.
So in the end, just play with it. See what looks good to you. You're the one that will be watching it after all.
ilovejedd
28th March 2007, 17:22
Has anyone here installed the latest firmware 3.30 on their PSP? It supposedly added support for MPEG-4 AVC Main Profile 720x480, 352x480 and 480x272. Anyone tested some videos yet?
I'm still on 3.03 OE-A. Xenogears works with it quite well and there's been no compelling reason to upgrade so far so I haven't changed the firmware yet...
deets
28th March 2007, 18:09
Has anyone here installed the latest firmware 3.30 on their PSP? It supposedly added support for MPEG-4 AVC Main Profile 720x480, 352x480 and 480x272. Anyone tested some videos yet?
I'm still on 3.03 OE-A. Xenogears works with it quite well and there's been no compelling reason to upgrade so far so I haven't changed the firmware yet...
nope didnt know there was one, but ill have a look right now, once i have updates :)
edit: would make sense though, with the ps3 functions, now you can encode for one and play on both...
update: 480x272 works, although it doesnt fill the screen unless you manually select it. odd... and the firmware said about thumbnails now working in the video folder, i havent tried it though
update2: 720x480 shows up, but says video cant be played. this could just be me rush testing though...
deets
28th March 2007, 20:09
hmm i also think the psp can handle more b frames now? ive just tested with 3 and it worked... i thought it might as it would need to play the same stuff as the ps3. ill keep testing
Ghim
28th March 2007, 21:38
I have just tested 720x480 with the new 3.30 firmware and it works.
For 720x480 to work, the H.264 level has to be set to 3.0 (instead of 2.1).
CruNcher
28th March 2007, 23:37
Hehe it was only a matter of time after Apple opened 640x480 on the Ipods but Sony could have allready allowed it after UMD's dead so even before Apple released the higher res because of TV Series and Apple TV, but better late then never.
But this Firmware Restriction stuff still has a big influence on me in terms of missusage for higher profit makeing, im very skeptic about this new way it's being handled @ the CE companies and content providers (they want so deep into your pocket for every itzy tiny thing that was just normal before and now is being controled in every way and the customer is blocked from it's usage i find this to be a very big moral problem if you know what i mean so im happy we have all the new generation of firmware hackers being born and not only the .NET generation that doesn't know anymore what MOV or EAX means ;) ).
pspvideo9
28th March 2007, 23:48
Yup both 480x272 and 720x480 work fine for us too.
We have released a beta version of PSP Video 9 that supports these resolutions: http://www.pspvideo9.com
From our testing, it looks like the PSP will only playback video at those specific resolutions (480x272, 352x480, 720x480) and nothing in between (like 640x480 or 512x384).
Can anyone else confirm?
qyqgpower
29th March 2007, 00:32
@pspvideo9
no, psp will play between resolution(like 368x272), but keeping stretched and the scaler (zoom, normal, original) won't work
qyqgpower
29th March 2007, 05:30
it seems that just add --sar 1:1 and PSP would play 480x272 correctly, results two scaling options: original, 4:3
vzmr82
30th March 2007, 01:23
The UMD format allowed subtitles... those these new formats allow them? Can we create an MP4 with subtitles and PSP will show them?
Scarpad
30th March 2007, 04:35
So what happens to 4:3 vids, If I encode at 480 the other res would not be 272 so does that mean it will not play? And are we sure 640x480 won't work?
Atak_Snajpera
30th March 2007, 18:38
If you want 4:3 you have few options:
1) resize to 368x272 , add borders (56,0,56,0),add --sar 1:1 to cli. You will get 480x272 but with black borders
2) resize to 480x272 and then add --sar 4:3 to command line
3) resize to old 320x240
Personally I use first method because it gives better quality compared to rest.
qyqgpower
1st April 2007, 09:38
there's a serious bug with this version.
when you playback 480x272 video, the button two pixels are cut. simply add two pixel white border to button and you can check this issue on PSP.
hope SCE would fix it in next update.
ilovejedd
1st April 2007, 11:09
Actually, I don't think it's a bug. PSP video downloads from the Japanese P-TV site have a resolution of 480x270. That's exactly 16:9 aspect ratio. And its been like that since... hmm... forgot when I downloaded exactly but I think November '06 at the latest.
Sgt_Strider
2nd April 2007, 07:18
I have just tested 720x480 with the new 3.30 firmware and it works.
For 720x480 to work, the H.264 level has to be set to 3.0 (instead of 2.1).
What do you mean by level 3.0 instead of 2.1?
ilovejedd
2nd April 2007, 16:13
What do you mean by level 3.0 instead of 2.1?
http://en.wikipedia.org/wiki/H.264#Levels
Hmm, question, I have old encodes that are at Level 4 (ffmpeg default). They work fine if placed in the \MP_ROOT\100ANV01\ folder but are reported as unsupported video if placed in \VIDEO\. Would those work now in the new firmware?
deets
2nd April 2007, 20:29
What do you mean by level 3.0 instead of 2.1?
AVC level set on the first page (main) of the x264 config if you use megui :)
Sgt_Strider
4th April 2007, 06:45
AVC level set on the first page (main) of the x264 config if you use megui :)
So all other settings work and that it's only 3.0 that is required to be set in order to play?
Does Sony still require the weird naming scheme to get the video file to play at 480x272?
deets
4th April 2007, 19:21
So all other settings work and that it's only 3.0 that is required to be set in order to play?
Does Sony still require the weird naming scheme to get the video file to play at 480x272?
i dont know about 720 as i dont bother with it, but 480x272 works just like normal, you just change the size in your avs :)
oh and set sar 1:1 if you want it to auto expand :)
Schrade
16th April 2007, 04:15
Dark_AleX has updated his custom firmware to 3.30 OE-A. It now has all the features of Official Firmware 3.30 plus the ability to run homebrew and all the other nice stuff he's added to his firmware.
http://pspupdates.qj.net/Dark-AleX-releases-3-30-Open-Edition-Revision-A/pg/49/aid/89527
Time to start testing the new MPEG-4 AVC formats in ms0:/VIDEO!
lchiu7
17th April 2007, 06:12
i dont know about 720 as i dont bother with it, but 480x272 works just like normal, you just change the size in your avs :)
oh and set sar 1:1 if you want it to auto expand :)
So what is the compelling reason to upgrade to 3.3? I run 2.6 I think, encode using x264 and the results are fine for TV shows and DVD's. Will 3.3 allow higher quality resolution and/or take advantage of the full resolution of the PSP display without scaling?
Thanks
Larry
Atak_Snajpera
17th April 2007, 13:27
If you are happy with 368x208 (16:9) don't upgrade but if you want native resolution (480x272) you need firmware 3.30. For me the choice is very simple :)
lchiu7
17th April 2007, 20:22
If you are happy with 368x208 (16:9) don't upgrade but if you want native resolution (480x272) you need firmware 3.30. For me the choice is very simple :)
I get 16:9 with 368x208 but that involves scaling the image. I am guessing with 480x272 the image does not need scaling which equates to improved resolution? Given that Memory sticks are so cheap these days, might be worth doing
deets
17th April 2007, 20:52
i didnt personally notice too much difference in quality between the 2 resolutions. granted i dont encode for pure quality anyway.
is a nice option of course :)
Atak_Snajpera
18th April 2007, 00:43
You must use higher bitrate to see difference. I suggest at least 384 kbps for movies.
lchiu7
18th April 2007, 03:29
You must use higher bitrate to see difference. I suggest at least 384 kbps for movies.
Might give it a shot then. I don't run homebrew so 3.3 should be a straightforward update. And all it seems I have to do to create the higher resolution video is a scale option in the Avisynth script and increase the bitrate in x264 (I don't use MeGui).
What is the advantage of 720x480 which I think exceeds the resolution of the PSP display?
qyqgpower
18th April 2007, 03:49
What is the advantage of 720x480 which I think exceeds the resolution of the PSP display?
the video decoder on PSP do low quality upsamling in UV planar, so when you play 480x272 on PSP, you would notice some jaggies on the edge of blue and red color.
720x480 have higher resolution in UV planar so the edge would be much more smooth.
here's a compareshot made by cyrax.(I don't use CFW so I can't do screen capture on PSP:p or I would provide a much obvious compareshot.)
http://img401.imageshack.us/img401/6320/1326231376641666aldikicas0.th.jpg (http://img401.imageshack.us/my.php?image=1326231376641666aldikicas0.jpg)
deets
18th April 2007, 17:04
interesting, thanks for sharing that pic.
of course 720 also gives you greater scope for playing back through other devices such as your TV via PS3. I hope the encodes would work on the ps3, no reason to think they wouldn't.
ilovejedd
18th April 2007, 17:47
Isn't being able to use just one file/encode for PSP and PS3 playback the whole point of adding support for 720x480 resolution? Albeit, you'll need much higher bitrate ergo, high capacity memory sticks for this. Since I backup my DVDs to MP4 for PC viewing, saving time and effort on encoding videos specifically for the PSP is definitely a good thing. I've got a couple of 4GB sticks anyways, and some spare 2GB and 1GB ones, too. :D
CruNcher
18th April 2007, 21:00
@ ilovejedd
exactly that's what SCEI archived here as the first company on a Mobile Device with AVC :) and now it's available for the Public (after the Death of UMD), but i think it would be availabe anyways from the Custom Firmware Hackers
Sony knew that so they opened it before the Scene did and now try to force people back into their protected firmware enviroment, but it's to late ;).
Most probably it was Sonys initial plan to make UMD playable directly on the PS3 or via remote to have even their own SD format established so Blue-Ray for HD content and UMD for SD (Home,Mobile) it had the potential to become that but Sony made alot of mistakes in the process but that is goodfor us now the Public has the mastering capabilities that before the day of the 3.30 firmware only SCEI Licensed Companies had with the UMD Stream Composer (Confidential .NET Based Encoding Application useing Sony's AVC Base/Main Profile Encoder and Motion Adaptive Deinterlaceing Technology).
qyqgpower
19th April 2007, 04:57
Isn't being able to use just one file/encode for PSP and PS3 playback the whole point of adding support for 720x480 resolution?
of course it is
try this setting
--crf 18.0 --level 3 --ref 2 --no-fast-pskip --bframes 3 --b-rdo --bime --weightb --direct temporal --subme 6 --analyse p8x8,b8x8,i4x4 --me umh --threads auto --thread-input --progress --no-psnr --no-ssim --sar 1:1
in a previous post I stated that 480x272 would be cropped 2 at bottom, and might have a quality loss in 480x270->480x272.
the truth is
cropping is applied, but PSP actually display 480x270 centered on the screen, so this isn't a problem at all:p
thus when you encode 480x272, you should put AddBorders(0,0,0,2) after resize to 480x270.
another auto cropping is applied when play 720x480 too: 8 pixels each at left and right.
just like what you did to maintain right AR when ripping NTSC DVD.
thus when encode directly from NTSC DVD, no cropping is needed.
when encode from "AR corrected" clips or HD source, first resize to 704x480, than AddBorders(8,0,8,0)
lchiu7
19th April 2007, 09:28
the video decoder on PSP do low quality upsamling in UV planar, so when you play 480x272 on PSP, you would notice some jaggies on the edge of blue and red color.
720x480 have higher resolution in UV planar so the edge would be much more smooth.
here's a compareshot made by cyrax.(I don't use CFW so I can't do screen capture on PSP:p or I would provide a much obvious compareshot.)
http://img401.imageshack.us/img401/6320/1326231376641666aldikicas0.th.jpg (http://img401.imageshack.us/my.php?image=1326231376641666aldikicas0.jpg)
I just upgraded my fw to 3.3 and encoded a TV show (16:9) at 480x272 with bitrate of 768. The picture is quite nice. I like how when you play it, the default resolution (full screen) has no scaling.
I also tried 720x480 but I couldn't see any improvements in that size
deets
19th April 2007, 14:34
of course it is
try this setting
--crf 18.0 --level 3 --ref 2 --no-fast-pskip --bframes 3 --b-rdo --bime --weightb --direct temporal --subme 6 --analyse p8x8,b8x8,i4x4 --me umh --threads auto --thread-input --progress --no-psnr --no-ssim --sar 1:1
so the psp can now play more than one ref and b frame, as long as you dont use --b-pyramid...
interesting...
qyqgpower
19th April 2007, 15:11
I just upgraded my fw to 3.3 and encoded a TV show (16:9) at 480x272 with bitrate of 768. The picture is quite nice. I like how when you play it, the default resolution (full screen) has no scaling.
I also tried 720x480 but I couldn't see any improvements in that size
pure color on edge would be much more distinct, especially in anime contents. in real life footages the jaggies may not be very noticeable.
deets
19th April 2007, 17:23
so im right in thinking that using 2 refs and 3 b frames should improve quality and compression, but will take longer to encode?
im currently doing some testing :)
lchiu7
21st April 2007, 11:54
Yup both 480x272 and 720x480 work fine for us too.
We have released a beta version of PSP Video 9 that supports these resolutions: http://www.pspvideo9.com
From our testing, it looks like the PSP will only playback video at those specific resolutions (480x272, 352x480, 720x480) and nothing in between (like 640x480 or 512x384).
Can anyone else confirm?
Just tried out this version. It doesn't seem to support avisynth scripts which is a showstopper for me. When profile (with avisynth) is selected, it ignores the content of the genericfile.avs file in the avs directory.
Joe Fenton
23rd April 2007, 23:13
Just tried out this version. It doesn't seem to support avisynth scripts which is a showstopper for me. When profile (with avisynth) is selected, it ignores the content of the genericfile.avs file in the avs directory.
I use PSPVideo9 with avs all the time. Try playing the avs in MPC first - I've found that if you make an error in the avs, PSPVideo9 bombs out rather than tell you an error occured. I've gotten in the habit of playing the avs in MPC before going into PV9 just to be sure.
lchiu7
24th April 2007, 10:10
I use PSPVideo9 with avs all the time. Try playing the avs in MPC first - I've found that if you make an error in the avs, PSPVideo9 bombs out rather than tell you an error occured. I've gotten in the habit of playing the avs in MPC before going into PV9 just to be sure.
This is the beta 3.3 version which supports the higher resolution. There is no option that I can see to invoke an avisynth. I have gone back to the CLI which I use and also MeGui
lchiu7
24th April 2007, 23:19
Getting in MeGui which looks like a good one step method of encoding lots of videos for the PSP. But am having a problem with audio I can't resolve.
Most of the videos I encode have AVI files with VBR MP3 audio. Up till now I have extracted the audio as a wav file which I input to neroaanenc to encode to MP4. Then of course x264 to encode the video and MP4Box to mux the two files.
This works fine in MeGui so long as I extract the audio first (I use Avidemux2) and input that to MeGui. But that defeats the one step process. So taking a tip from Deets I pass the avisynth script to the audio encoding part of MeGui. MeGui opens the file okay, seems to process the audio but ends up only creating a 1M file. Playing that file with QT indicates that the length is right (about 42" for a TV show) but of course with a 1M size, there is no audio.
For the audio encoding I am using NDAAC and choosing the PSP-LC-96 profile
Just wondering what I could be doing wrong here. Any pointers would be helpful
Thanks
Larry
foxyshadis
25th April 2007, 06:01
In the avisynth script's source, there wouldn't happen to be an audio=false, would there? Avisource and Directshowsource will normally load audio if it isn't disabled.
(42" is 42 seconds, 42' is 42 minutes. :p)
lchiu7
25th April 2007, 07:57
No I actually have audio=true in the directshowsource command
Update:
I have tried a number of different ways:
1. feeding into MeGui compressed wav files (select Nero Digital as the MP4 encoder)
2. Feeding the Avisynth script into MeGui
More often than not, I only get a MP4 file which is about 1.5Mb in size
I also tried feeding in a compressed wav file and didn't turn on the Always use DirectShow option and MeGui dies with an error in AviSynth
I am sure most users of MeGui are doing this in one step with no external programs to extract audio - just wondering how they did it?
Larry
Joe Fenton
29th April 2007, 01:17
This is the beta 3.3 version which supports the higher resolution. There is no option that I can see to invoke an avisynth. I have gone back to the CLI which I use and also MeGui
Here's a common AVS script I use with PSPVideo9... just load the avs instead of an AVI.
loadplugin("C:\DGMPGDec\DGDecode.dll")
loadplugin("C:\Program Files\AviSynth 2.5\plugins\Decomb.dll")
mpeg2source("C:\temp\rips\DVDNAME\name.d2v",cpu=6)
fielddeinterlace()
audio = WAVSource("C:\temp\rips\DVDNAME\track.wav")
AudioDub(last,audio)
The last version of PSPVideo9 I used didn't take ac3 audio, so I ripped the audio to wav and reinserted it into the avs as shown in the script.
ilovejedd
30th April 2007, 04:08
There's actually an AC3 filter for AviSynth. You can download it from the AviSynth Filter Collection page (http://avisynth.org/warpenterprises/), just search for NicAudio. It also contains a filter for DTS.
billou2k
1st May 2007, 22:46
Any chance that we get 720x576 for us PAL users? Anybody heard about anything? I guess that technically if it can decode 720x480@30fps there should be no problem doing 720x576@25fps but I dont know if the hardware scaler could handle different res...
Joe Fenton
3rd May 2007, 07:12
There's actually an AC3 filter for AviSynth. You can download it from the AviSynth Filter Collection page (http://avisynth.org/warpenterprises/), just search for NicAudio. It also contains a filter for DTS.
Thanks! That should simplfy things quite a bit on the audio side. :)
@billou2k: Sony is rather notorious for being slow on PAL support. It took a number of updates to pops before they finally supported PAL PS1 games decently. I imagine in another few updates, they'll have 720x576.
handtruck
3rd May 2007, 17:39
Do I have to add borders to make the file 480x272 with avisynth?
I am currently encoding a movie at 480x256, will I encounter a problem with viewing it on the PSP?
Do I have to add borders to make the file 480x272 with avisynth?
I am currently encoding a movie at 480x256, will I encounter a problem with viewing it on the PSP?
you could always make a very short test of the clip.
just add trim(300,1800) and test it that way :)
let us know if the unusual res works.
Atak_Snajpera
3rd May 2007, 18:05
I am currently encoding a movie at 480x256, will I encounter a problem with viewing it on the PSP?
Why do you use 480x256? (aspect ratio - 1.875?). Movie encoded in this resolution will be stretched vertically on PSP. I use following values to maintain correct aspect ratio.
16:9 - LanczosResize(480,270).AddBorders(0,0,0,2)
4:3 - LanczosResize(360,270).AddBorders(60,0,60,2)
2,35:1 - LanczosResize(480,204).AddBorders(0,34,0,34)
handtruck
3rd May 2007, 23:29
Why do you use 480x256? (aspect ratio - 1.875?). Movie encoded in this resolution will be stretched vertically on PSP. I use following values to maintain correct aspect ratio.
16:9 - LanczosResize(480,270).AddBorders(0,0,0,2)
4:3 - LanczosResize(360,270).AddBorders(60,0,60,2)
2,35:1 - LanczosResize(480,204).AddBorders(0,34,0,34)
Trying to keep the same aspect ratio as the source if possible. And trying to avoid "AddBorders", using the oneclick function in megui
Atak_Snajpera
3rd May 2007, 23:48
handtruck: Did you check your movie on PSP. Stretched or not stretched? Some time ago I checked 480x208 and it was stretched. You have two choices:Addborders or wait till Sony fixes this issue.
terrypku
4th May 2007, 05:58
Which resize filter do you guys use when encoding mp4(720*480) for psp? It looks a little too sharp with lanczosresize.
ilovejedd
4th May 2007, 16:06
I'm assuming your original source aren't NTSC DVDs, maybe HDTV caps or PAL? Anyway, I use BilinearResize. It's really fast.
terrypku
5th May 2007, 05:29
I use BD or HD-DVD as source. Bilinear? I'll try this one! Thank you!
Barker
10th May 2007, 15:40
Sorry if this has been answered before, I couldn't find the answer in the forum search.
How do you add the SAR setting in MEGUI? I don't see a DAR or SAR setting in the config screen for MEGUI, only in x264 vfw config, but that is already set to 1:1. My command line in MEGUI does not have the sar setting, and cannot be edited, so I am restricted to what the options in the config screen are. As a result, the output ar on the PSP is incorrect (L/R borders). I'm, using MEGUI 0.2.4.1039.
Thanks!
deets
11th May 2007, 00:05
go to the second tab in x264 config and go to custom command line to add --sar 1:1
Barker
11th May 2007, 05:57
go to the second tab in x264 config and go to custom command line to add --sar 1:1
Thanks, that solved my issue!
I actually came across the guides on that site (http://www.bontragerphotography.com/psp/) and it inspired me to get a PSP, now that full res is supported!!!
Sony owes that site some marketing fees ;-)
Sonstwer
11th May 2007, 13:03
Just as a notice for the archives, in case someone stumbles upon the same problem as I did (I didn't find any mentions of this anywhere):
The PSP (tested on 3.40 OE-A) doesn't like it if the timescale of the video track multiplied by its length in seconds exceeds 2^32 and just shows "Unsupported data". Usually this should not be a problem (unless you're going for incredibly long movies) but in my case the input file had 23,976023fps which x264 dutifully converted to a time scale of 23976023 which resulted in an overflow after just below 3 minutes.
deets
11th May 2007, 16:07
Thanks, that solved my issue!
I actually came across the guides on that site (http://www.bontragerphotography.com/psp/) and it inspired me to get a PSP, now that full res is supported!!!
Sony owes that site some marketing fees ;-)
hehe dont they just :P
well im glad you found my site useful :)
i really should update it with some new profiles and ps3 info
lchiu7
17th May 2007, 09:53
Has the problem with encoding with a dual core processor (--threads 2) been fixed with any recent PSP firmware release. Having just gotten a dual core Intel, I am keen to use both cores but the only test I did made a file that would not play on 3.3 firmware while it played okay in QT
Thanks
Larry
deets
17th May 2007, 16:10
if your using megui for your x264, use threads=0 and that will set things to auto threads, which works well here.
it hasnt been fixed as slices wont work, but the different way x264 now use threads will work on the PSP just fine
Sgt_Strider
22nd May 2007, 01:10
Just as a notice for the archives, in case someone stumbles upon the same problem as I did (I didn't find any mentions of this anywhere):
The PSP (tested on 3.40 OE-A) doesn't like it if the timescale of the video track multiplied by its length in seconds exceeds 2^32 and just shows "Unsupported data". Usually this should not be a problem (unless you're going for incredibly long movies) but in my case the input file had 23,976023fps which x264 dutifully converted to a time scale of 23976023 which resulted in an overflow after just below 3 minutes.
What are you trying to say? I don't understand.
foxyshadis
22nd May 2007, 07:12
It means use AssumeFPS(24000/1001), or NiceFPS or (only if you have 2.57+) AssumeFPS(23.976) at some point in your avisynth script, or it might break playback.
lchiu7
26th May 2007, 20:13
Have a new box with a clean installationof Visa Home Premium on it. Built a faster machine so I could encode more quickly. After some travails got x264 to work okay (got my single pass encodes of xvid into h.264 up 60fps on a AMD X2 3600).
But can't get mp4box to run. Whenever I try to combine the .264 file and the .mp4 file (created by the Vista compatible version of neroencaac) get the error
cannot open destination file xxx.mp4: I/O error
Yet strangely if I move the .264 and .mp4 files created on Vista to a XP box, mp4box works fine.
And files which combine okay on my XP box generate the same error as above.
Anybody out there using Vista as a platform for encoding video for the PSP and have struck this problem?
Thanks
[Update]
This is getting really weird. I ran mp4box on a XP box but on the Vista drive mapped over the network. Get the I/O error again so it's not a Vista problem.
Then ran mp4box on the Vista box but using the files on a mapped drive on my XP box and it worked also.
So it's some strange problem with the drive on the Vista box. But this is a brand new installation of Vista on a brand new Hitachi 250G SATA drive so can't think what the problem could be. The MP4 files play fine on the Vista box with QT so it can't be bad sectors or hardware issues like that
Larry
CruNcher
26th May 2007, 22:36
Hmm could be Mp4box not so optimal temp system on win32 try the same with mp4creator same problem ?
lchiu7
26th May 2007, 22:42
I have no idea what's going on. Connected a USB drive to my Vista box and can run mp4box on that. Just can't run it on my main boot drive. This is the strangest thing
Larry
[Update]
Move the USB drive to the Vista box as an internal drive and mp4box works fine on that drive. Just doesn't work on the boot drive. This is really strange.
mp4box uses root directory of a drive which working files exist as temporary directory by default on Windows System.
So if no permisson to write on root directory, mp4box can't make mp4 file.
The solutions in 3 ways.
1. Work at a drive which you have permission to write on root directory.
2. Run mp4box as administrator.
3. Run mp4box with an argument `-tmp some_directory_which_you_have_permission_to_write_on'.
lchiu7
28th May 2007, 11:08
Thanks. For another reason I turned off UAC in Vista since I was getting annoyed with access control coming on all the time. This also fixed the problem. Certainly a trap for unwary players
Sgt_Strider
9th June 2007, 09:27
For simplicity's sake, would Nero make for some easy MP4 AVC recording at 480x272 for the PSP? Would it be easy to put subtitles in with Nero?
plonk420
3rd January 2009, 11:10
so .. is 720x576@25fps working? the only thing *i* care to encode in a while, and it's a PAL TV series. trying to maximize compatibility (not sure what my 5 b-frames will do, tho .. as well as PAL resolutions).
Deinorius
5th January 2009, 12:28
Why not resize to 480x272? You will get no quality boost by using full resolution. 25 fps should be running, but I'm not sure, if I tried with such a file already.
plonk420
6th January 2009, 04:16
i'm trying to do a "one encode for all" .. targeting highest quality playback (so no resizing outside of the player doing it via --sar x:y), but also being PSP compatible. in this case the video is widescreen so i dont' have to worry about forcing fullscreen (on the PSP).
Deinorius
6th January 2009, 11:37
Ah, I got it. But IIRC PSP is just supporting up to 720x480. Of course the best way to test, is to try it yourself.
teddg
6th January 2009, 19:01
i'm trying to do a "one encode for all" .. targeting highest quality playback (so no resizing outside of the player doing it via --sar x:y), but also being PSP compatible. in this case the video is widescreen so i dont' have to worry about forcing fullscreen (on the PSP).
Ah, I got it. But IIRC PSP is just supporting up to 720x480. Of course the best way to test, is to try it yourself.
psp now supports 640x480 in addition to 720x480 since the last update.
Don't crop letterboxing, if you do you'll loose one of the zoom/fullscreen options on the psp (I forget in which particular case).
I also do a "one encode for all". Unfortunately, psp can't do 8x8dct (and i8x8) or more than 3 refs. It can handle huge bitrates though.
Atak_Snajpera
6th January 2009, 19:03
psp now supports 640x480 since the last update.
Good to know! Thanks
fachman
7th January 2009, 22:35
Hello
I have the problemm of compatibility. I have converted video using MEGUI PSP settings. I received the following statistics:
--[NoImage] Job commandline: "C:\Program Files (x86)\megui\tools\x264\x264.exe" --pass 2 --bitrate 300 --stats "01.stats" --level 3 --ref 3 --mixed-refs --bframes 2 --weightb --direct auto --trellis 1 --partitions p8x8,b8x8,i4x4 --vbv-bufsize 200 --vbv-maxrate 2000 --me umh --threads auto --thread-input --sar 136:135 --aud --progress --no-psnr --no-ssim --output "01.mp4" "01.avs"
--[Information] [2009-01-07 13:26:43] Encoding started
--[NoImage] Standard output stream:
--[NoImage] Standard error stream
---[NoImage] avis [info]: 480x272 @ 23.98 fps (67123 frames)
---[NoImage] x264 [info]: using SAR=136/135
---[NoImage] x264 [info]: using cpu capabilities: MMX2 SSE2Fast SSSE3 Cache64
---[NoImage] x264 [warning]: VBV buffer size too small, using 250 kbit
---[NoImage] x264 [info]: profile Main, level 3.0
---[NoImage] mp4 [info]: initial delay 208541 (scale 5000000)
---[NoImage]
---[NoImage] x264 [info]: slice I:1108 Avg QP:22.44 size: 9243
---[NoImage] x264 [info]: slice P:33284 Avg QP:25.82 size: 2320
---[NoImage] x264 [info]: slice B:32731 Avg QP:26.55 size: 535
---[NoImage] x264 [info]: consecutive B-frames: 17.6% 32.1% 50.3%
---[NoImage] x264 [info]: mb I I16..4: 29.3% 0.0% 70.7%
---[NoImage] x264 [info]: mb P I16..4: 3.7% 0.0% 4.9% P16..4: 41.6% 13.2% 8.3% 0.0% 0.0% skip:28.2%
---[NoImage] x264 [info]: mb B I16..4: 1.1% 0.0% 0.0% B16..8: 19.4% 1.6% 0.9% direct: 3.5% skip:73.6% L0:32.6% L1:49.7% BI:17.7%
---[NoImage] x264 [info]: direct mvs spatial:62.7% temporal:37.3%
---[NoImage] x264 [info]: ref P L0 81.8% 11.0% 7.2%
---[NoImage] x264 [info]: ref B L0 86.7% 13.3%
---[NoImage] x264 [info]: kb/s:300.0
---[NoImage] encoded 67123 frames, 27.36 fps, 301.23 kb/s
--[Information] Final statistics
---[NoImage] Video Bitrate Desired: 300 kbit/s
---[NoImage] Video Bitrate Obtained (approximate): 301 kbit/s
And MY PSP with latest firmware 5.02 says that such video is not supported....
Anyone knows why???
lexor
7th January 2009, 22:53
Anyone knows why???
Yes, it's because of:
put the [mp4] header at the end instead of the start. That's the method x264 uses for outputting an mp4 to stdout.
you have to remux or use qt-faststart for many devices and for web playback when using either x264's or ffmpeg's muxer. This is by design.
Basically, demux the mp4 file to raw streams and mux again with megui to mp4.
For the future, it's easier to just encode to raw, and then mux (this way you don't have to demux after encode)
fachman
7th January 2009, 23:49
Thank you very much Luxor.
I wonder why x264 is using by default the settings which breaks compatibility???
Anyway I have tried to demux the file with mp4box and it quits with an error or says that is can not find js32.dll
I have VISTA64....
After a while I have found it would work with older MP4box build from October...
Your solution worked flawlessly :thanks:
Sharktooth
8th January 2009, 04:20
coz x264 cant fill the header with data it doesnt yet know.
it has to finish the encoding and then write the header at the end.
fachman
8th January 2009, 23:44
Sharktooth:
Thank you very much for the response and great programm MEGUI :)
Would it be possible to make the logs not to disappear when for some reason MEGUI quits by accident. (I have many problemms with stability of AVS script with FFT3dGPU filter and lost a lot of precious statistics)
As for the header when I have compared two files the only difference at the begining was AVC1 which was not produced directly by x264.
Of course I assume there are also more informations, but I think MP4BOX should write the correct header when muxing such mp4 file with sound. Is it possible???
Best Regards
Sharktooth
9th January 2009, 14:34
look inside the logs directory. if the log is incomplete then megui crashed for some reason.
yes, mp4box writes the header on the beginning. so whenever you remux the mp4s produced by x264 with mp4box, the header is placed where it is supposed to be.
fachman
9th January 2009, 20:37
Hello
THe logs are written when you leave the MEGUI normally, if the programm is terminated by windows all statistics is lost. I think Megui should save the statistics as soon as it will end the single coding, so when the FFT3DGPU hangs the system with the next file, the statistics wont be lost.
MP4box writes the header correctly only if you use raw stream. If you use MP4 produced by x264 it does not.
Greetings
HolyRoses
10th January 2009, 06:33
The easiest way to encode for psp if you own a Linux pc or Mac OS pc is encode-handheld.pl. The latest revision is 3.1. It will build you flawless 480 width files that will play on any iPod, Zune, or PSP. It is very simple to use. Google it, currently only available via torrent.
-HR
b66pak
15th January 2009, 20:30
b pyramid is supported by psp?
Rumbah
15th January 2009, 22:56
No, files encoded with b pyramid do not work.
teddg
17th January 2009, 06:46
b pyramid is supported by psp?
No, files encoded with b pyramid do not work.
Yes, b pyramid works on my psp.
Rumbah
17th January 2009, 11:56
Ok, the last time I tested it it did not work. Seems like Sony changed it in a new firmware. Are there any restrictions in the number of b frames with b pyramid on the PSP?
CruNcher
17th January 2009, 12:19
does 8x8dct works now eg High Profile ?
lexor
17th January 2009, 16:32
Yes, b pyramid works on my psp.
When you say "works" do you mean it just plays or that it plays smoothly? Files with b-pyramid always played, but they exhibited heavy tearing artifacts, especially in pans.
teddg
17th January 2009, 17:05
Ok, the last time I tested it it did not work. Seems like Sony changed it in a new firmware. Are there any restrictions in the number of b frames with b pyramid on the PSP?
*firmware 5.01 (Sept, I think). This update added 640x480 support, in addition to the 720x480.
*Never tried more than 3 bframes.
*Things that break psp 5.01 (that I've tried); dct8x8, 5 refs
*A test ffmpeg command that works on 5.01;
ffmpeg -i "C:\movie.VOB" -f psp -r 29.97 -vcodec libx264 -s 720x480 -aspect 1.778 -threads 0 -deblockalpha 0 -deblockbeta 0 -crf 26 -refs 3 -bf 3 -b_strategy 2 -bidir_refine 1 -directpred auto -coder 1 -flags +loop -cmp +chroma -me_method umh -me_range 16 -subq 7 -trellis 2 -partitions +parti4x4+partp8x8+partb8x8 -flags2 +mixed_refs+wpred+bpyramid -g 250 -keyint_min 25 -sc_threshold 40 -i_qfactor 0.71 -qcomp 0.6 -qmin 10 -qmax 51 -qdiff 4 -nr 600 -vol 512 -acodec libfaac -ab 64k -ar 48000 -ac 2 "C:\movie.mp4"
*Anyone know what the -f psp switch does? My encodes work with or without it. It throws an error if there is not one video stream and one audio stream. Other than that, it doesn't seem to be needed.
*Just double checked with megui, the following works too;
--crf 26 --level 3 --ref 3 --mixed-refs --bframes 3 --b-adapt 2 --b-pyramid --weightb --direct auto --subme 7 --trellis 1 --partitions p8x8,b8x8,i4x4 --vbv-bufsize 10000 --vbv-maxrate 10000 --me umh --threads auto --thread-input --progress --no-psnr --no-ssim --output "output" "input"
Sagekilla
17th January 2009, 17:12
Tearing artifacts sounds more like an issue with the screen and how it's being updated. On my LCD, some videos (regardless of how they're encoded) always show tearing artifacts during panning scenes.
Atak_Snajpera
17th January 2009, 17:25
*Things that break psp 5.01 (that I've tried); dct8x8, 5 refs
PSP supports ONLY main profile \. dct8x8 belongs to HIGH PROFILE!!! No wonder that it doesn't work.
Comatose
17th January 2009, 17:28
When I used b-pyramid I saw blocky artifacts. I haven't tried since, so who knows...
teddg
17th January 2009, 18:19
When you say "works" do you mean it just plays or that it plays smoothly? Files with b-pyramid always played, but they exhibited heavy tearing artifacts, especially in pans.
I usually watch my psp thought the AV cable on my TV and haven't noticed any problem with smoothness or tearing artifacts. I'll load up some files and look for. Thanks for the info.
lexor
17th January 2009, 22:45
I usually watch my psp thought the AV cable on my TV and haven't noticed any problem with smoothness or tearing artifacts. I'll load up some files and look for. Thanks for the info.
Maybe tearing wasn't the right word. What was happening is more like part of the picture would get stuck for a moment and the spot (usually fairly small, but there are several of them) where it should have moved becomes black, like it doesn't know what to put there.
This is different from screen update issues Sagekilla is talking about (and that you would see in media players on PC). These artifacts can be turned on/off by switching the b-pyramid option.
b66pak
18th January 2009, 20:35
ok...i did a few tests today with a clip (i have i slim 2004 PSP model with 5.02 firmware):
- megui PSP profile + trellis always, 16 bframes - plays OK
- megui PSP profile + trellis always, 16 bframes + b pyramid - plays with a lot of artefacts
_
HolyRoses
18th January 2009, 20:46
b pyramid will cause problems on playback. You can use 16 b frames if you wanted, but only 3 refs. I don't advise using b frames because your video wont play on iPod.
I have updated my encode-handheld.pl to v3.2
Added ratings for US TV & Movies. Google it if you want to download it. Will give you flawless PSP movies that will work on iPod also.
-HR
HolyRoses
19th January 2009, 01:50
teddg:
the -f psp option adds the special PSP title atom that the psp reads for the title if you have it in the /MP_ROOT folder.
-HR
Comatose
19th January 2009, 15:33
Will give you flawless PSP movies that will work on iPod also.
Wouldn't call them flawless, since flawlessness is usually measured with quality & compression...
Besides, if you have either an iPod or a PSP, you likely don't have the other. They serve the same purpose.
HolyRoses
19th January 2009, 19:53
Hmm, I have both. One plays games, one doesn't.
-HR
b66pak
20th January 2009, 19:20
ok...i did new tests today with some .vobs (i have i slim 2004 PSP model with 5.02 firmware):
720x480-ws-anamorphic@29.97fps - it work but it displays as 4:3 and you have to select widescreen manually
720x576-ws-anamorphic@25fps - it did not work!!!
_
b66pak
22nd January 2009, 17:52
tested 720x480-ws-anamorphic@23.976fps - it work but it displays as 4:3 and you have to select widescreen manually
_
vBulletin® v3.8.11, Copyright ©2000-2026, vBulletin Solutions Inc.