View Full Version : x264 and Sony PSP?
Gunhed
16th September 2005, 10: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, 11:47
MobileConvertor for SonPSP.
http://elecard.com/products/mobile_convert.shtml
bob0r
16th September 2005, 12: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, 13: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, 16: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, 19: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, 07: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, 14: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, 21: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, 22: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
20th September 2005, 00:20
we have to use ChangeFPS(29.97) in our avs script.
bob0r
20th September 2005, 00: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, 06:19
Has anyone written a Guide to follow using this method? Especially in the area of using the synth script ?
Doom9
20th September 2005, 09: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, 11: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, 11:27
eww.. duplicating frames? EWWWWWW, evil, bad, nasty, ugly, °@°#§°@#§°#@§
bob0r
20th September 2005, 11:34
eww.. duplicating frames? EWWWWWW, evil, bad, nasty, ugly, °@°#§°@#§°#@§
Welcome to Sony's world :devil:
jonny
20th September 2005, 13: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, 14: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, 17: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, 17: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, 17: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, 22:22
29.97 is what the Framrate needs to be I'm not sure what the ChangeFPS setting would accomplish
jonny
20th September 2005, 22: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, 23: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, 08: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, 17: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, 19: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, 21: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, 22: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
22nd September 2005, 00: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
22nd September 2005, 00: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, 08: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, 08: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, 09: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, 11:25
PM instead of derailing the thread.
bob0r
22nd September 2005, 19: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, 20: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, 21: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, 14: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, 14: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, 14: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, 15: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, 17: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, 15: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, 16:28
yep probably it's only a question of time (and hackers may be faster than sony on unlocking fullres)
qyqgpower
24th September 2005, 17: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, 10: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, 17: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, 11: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, 12: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, 14: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, 14: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, 14: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, 14: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, 14: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, 17: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, 11: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, 23: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, 16: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, 17: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, 20: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, 23: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, 18: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, 19: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, 20: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, 20:47
Your are right
no
no
nothing changed :D
AnimeTheme
14th October 2005, 16: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, 17: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, 17: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, 20: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, 01: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, 04: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, 09: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, 13: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, 22: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, 03: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, 14: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, 01: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, 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"ll give it a shot asap but midterms come first.
now for some much needed sleep...
vzmr82
17th October 2005, 11: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, 12: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, 06: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, 08: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, 19: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
20th October 2005, 00: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, 08: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, 09: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, 11: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, 11: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, 08: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, 08: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, 17: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, 17: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, 13: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, 16: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, 21: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, 22: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, 23: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, 20:17
have a look at my sig for some audio info
damrod
30th April 2006, 11: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, 14: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, 19: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, 21: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, 23: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, 23: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, 03: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, 15: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, 17: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, 20: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, 13: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, 21: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, 22: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, 22: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
6th June 2006, 00: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
6th June 2006, 00: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, 05: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, 10: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, 11: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, 23: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, 21: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, 02:08
what are your x264 settings? are you using the new atomchanger that can handle all the FPS?
|SeNsUi|
9th June 2006, 20: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, 01:22
see my sig, download the atomchanger and try with my profile...
Sudds
11th June 2006, 13: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
12th June 2006, 00: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, 14: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
16th June 2006, 00:44
Where can I get ATOMChanger?
quake74
16th June 2006, 08: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, 11: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, 15: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, 17: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, 21: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, 11: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, 02: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, 16: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!
vBulletin® v3.8.5, Copyright ©2000-2012, Jelsoft Enterprises Ltd.