Encoding PSP video using non-standard resolutions

Discuss the development of new homebrew software, tools and libraries.

Moderators: cheriff, TyRaNiD

jayroc2200
Posts: 3
Joined: Sun Mar 27, 2005 2:48 am

thanks

Post by jayroc2200 »

thanks now i got another question. how come the videos on connect.com work on my psp but not the ones i convert to mp4 format w/3gpp. sorry to be such a pain but can u help me out?
jayroc2200
Posts: 3
Joined: Sun Mar 27, 2005 2:48 am

yess!!!

Post by jayroc2200 »

thanks i figured it out!!!
rprince
Posts: 3
Joined: Sun Mar 13, 2005 5:29 am

PSP Video Converter

Post by rprince »

Hi guys,

I've been working on a GUI for ffmpeg since I started using 3GPP and found it was a pain to slightly alter settings, as they have to be edited in the .ini file. Therefore my plan was to create a bit of software that lets you line up a list of movies to convert, edit the settings for each file individually, then hit Encode!

It's taken a bit longer than I thought to get it working and to get a website online for it, but here it is, in case anyone is interested in using it:

http://www.pspvid.co.uk

If you find any bugs (pretty likely!) or have any feature requests, please e-mail them to rprince@pspvid.co.uk.

Cheers,
Rikki
cocco
Posts: 17
Joined: Sat Feb 12, 2005 10:38 am

Vers 0.2 of custom transcoding ini generator for 3GP conver

Post by cocco »

http://mitico.no-ip.com/inifilemp4/videocPSP/form.php

This page will create the perfect compressionsettings for you PSP using 3GP_converter031

-Choose between 14 different resolutions
-Ntsc 15fps - Ntsc 29.97fps
-Single pass or 2pass (NEW)
-Constant Bitrate or Variable Bitrate
-Choose Between 7 compressiongroups suddivided in 32-192,192-320......
-Audio stereo or mono
-Audio VOLUME BOOST (NEW)
-13 different audiocompressions between 8 and 224
-Final Dimension calculator (based on 10min video),BPB calculator

for better final size calculation go to
http://mitico.no-ip.com/inifilemp4/crea.php

BPB = BITS PER BLOCK
this is usefull number that shows you how good is this compressionrate for this (resolution/Framerate)
if you stay under 40 you will have an image full of squares....
if you go over 40 you will have acceptable quality
over 60-70 it's waste of bandwitch ........


i'm always here for errors,questions or some new implements reguarding ffmpeg the editor and the script.

ps.i read in a forum about lumimasks and darkmasks to use (they help to compress better the low qul vids) .... if someone knows more about this masks i can implement it in the script

hope you enjoy this editor.
Starman
Posts: 15
Joined: Sat Mar 05, 2005 2:44 pm

Post by Starman »

Anyone know if it's possible to match UMD-type quality when running from the memory stick? It would be interesting to know what the limits of what we can do are.

Mike
brianstk
Posts: 1
Joined: Thu Mar 31, 2005 2:24 pm

Post by brianstk »

What do you guys suggest for 1.85:1 aspect ratio's? If I do 368x208 it comes out really stretched.
Yus
Posts: 1
Joined: Tue Apr 05, 2005 6:15 am

Post by Yus »

Hmm, I can't get the INI files created by http://mitico.no-ip.com/inifilemp4/crea.php? to work on my PSP.

Any idea why this wont work on my PSP?
[Item5]
Title=368x208/29.97/432kbps Stereo/96kbps 2pass good compression (1min=3.87mb; 5min=19.34mb; 15min=58.01mb; 1h=232.03mb; 1h30min=348.05mb)
TitleE=368x208/29.97/432kbps Stereo/96kbps 2pass good compression (1min=3.87mb; 5min=19.34mb; 15min=58.01mb; 1h=232.03mb; 1h30min=348.05mb)
Command0=""<%AppPath%>\cores\ffmpeg" -y -i "<%InputFile%>" -pass 1 -passlogfile "<%TemporaryFile%>" -title "<%Title%>" -bitexact -vcodec xvid -s 368x208 -r 29.97 -b 432 -maxrate 486 -minrate 135 -bt 16 -lumi_mask 0.03 -dark_mask 0.03 -acodec aac -ac 2 -ar 24000 -ab 96 -f 3gp -muxvb 486 "<%TemporaryFile%>.3gp""
Command1=""<%AppPath%>\cores\ffmpeg" -y -i "<%InputFile%>" -pass 2 -passlogfile "<%TemporaryFile%>" -title "<%Title%>" -bitexact -vcodec xvid -s 368x208 -r 29.97 -b 432 -maxrate 486 -minrate 135 -bt 16 -lumi_mask 0.03 -dark_mask 0.03 -acodec aac -ac 2 -ar 24000 -ab 96 -f 3gp -muxvb 486 "<%TemporaryFile%>.3gp""
Command2=""<%AppPath%>\cores\QT3GPPFlatten" "<%TemporaryFile%>.3gp" "<%TemporaryFile%>_2.3gp" -c QT_3GPP(MobileMP4)_QVGA_AAC.ini"
Command3="rm "<%TemporaryFile%>.3gp""
Command4=""<%AppPath%>\cores\ATOMChanger" "<%TemporaryFile%>_2.3gp" "<%OutputPath%>M4V<%RandomNumber5%>.MP4" "Camouflage_MP4_for_PSP.ini""
Command5="rm "<%TemporaryFile%>_2.3gp""
Command6=""<%AppPath%>\cores\ffmpeg" -y -i "<%InputFile%>" -f singlejpeg -ss 5 -vframes 1 -s 160x120 -an "<%OutputPath%>M4V<%RandomNumber5%>.THM""
Command7=""<%AppPath%>\cores\psprez" "<%OutputPath%>M4V<%RandomNumber5%>.MP4""
EDIT: Nevermind, just needed the psprez program.
JSR
Posts: 5
Joined: Sat Apr 16, 2005 2:20 am

Post by JSR »

Cocco : Great Work !
Can you make an offline version of all those 2 php program plz?
Thx !
::Scener 2005::
imk
Posts: 8
Joined: Sat Apr 16, 2005 2:13 pm

Post by imk »

i use mencoder first...

i find the resolution of the video first... if the video is say... 528x224...

i divide that... 528 / 224 = 2.3571428571428571428571428571429 (2.35:1)

then i use that on 368...

368 / 2.3571428571428571428571428571429 = 156.12121212121212121212121212127 (or roughly 156)

so the new resolution of the video i want would be 368x156...

i then use these arguments with mencoder

mencoder input.avi -vf scale=368:156,expand=368:208 -noaspect -oac copy -ovc lavc -lavcopts vcodec=mpeg4:vbitrate=768 -o ouput.avi

this will just reencode the video to be 368x208... it 'expands' the 156 to 208 by adding black bars to the bottom and top...

afterwards i just feed it through ffmpeg to convert it to MP4

i get perfect aspect ratio movies every time with excellent quality...
JSR
Posts: 5
Joined: Sat Apr 16, 2005 2:20 am

Post by JSR »

thx imk for the tips...
I was wondering why change the video framerate to 29fps ?
Why not keep the original fps ? Most of the video are less than 29fps !
Am i wrong ?
And also why not remove the stereo forcing ? If we put a dvd ready to encode in 3gp (like avs script) , 3gp keeps the 5.1 format or it will encode only 2 channel ?
Thx for explanation
::Scener 2005::
Nafai
Posts: 4
Joined: Fri Apr 08, 2005 11:10 pm

Post by Nafai »

JSR wrote:thx imk for the tips...
I was wondering why change the video framerate to 29fps ?
Why not keep the original fps ? Most of the video are less than 29fps !
Am i wrong ?
And also why not remove the stereo forcing ? If we put a dvd ready to encode in 3gp (like avs script) , 3gp keeps the 5.1 format or it will encode only 2 channel ?
Thx for explanation
From what I can tell, MPEG-4 SP (or at least the PSP's implementation thereof) can only work with either 29.97fps or 15fps. NTSC is 29.97 and PAL is 25, so "most" video, especially in the U.S. is 29.97fps. If you try framerates other than 29.97fps, you'll notice audio drift in less than 2 seconds. If your video has no audio track, or is unimportant, then that's fine.

The PSP also only supports a very specific audio profile, namely a 24k sampling rate, stereo.
n4x0
Posts: 1
Joined: Mon Sep 12, 2005 9:30 pm

Post by n4x0 »

Why I am not able of patching an 480x272 video with psprez?? it's says me that the video gotta be multiple of 16 ¿?¿?

Thanks for the help.
N4x0
marlov74
Posts: 10
Joined: Fri Feb 04, 2005 9:01 pm

Post by marlov74 »

The "mp4" player in the PSP only thinks it needs memory for 76800 (320*240) pixels so a movie in 480*272 resolution will overflow its memory. It will try to put data on memory areas used for other things and the PSP will hang.
LuMo
Posts: 410
Joined: Sun Aug 21, 2005 2:45 am
Location: Austria
Contact:

Post by LuMo »

as some say its maybe not possible to play pmf files from stick...
well then emulate UMD (already done) creating an iso from an encoded file is no problem, the problem now is how to encode a pmf....

greets
"Good artists copy, great artists steal."
Pablo Picasso
go2lumo.com
User avatar
0x0001
Posts: 11
Joined: Thu Jul 21, 2005 10:02 am

Post by 0x0001 »

pmf can be encoded with ffmpeg
video only though audio plus video
is not possible at the moment
if you head over to pspvideo9.com
forum and search for pmf encoding
you will surely stubble on how
to encode video into pmf

hint: pmf video is a mpeg1 stream
not exact but close enough ;)

it is possible to encode video only pmf
with audio on a seperate channel
and use in ones code

so you would load your pmf video only file
to memory and then load audio encoded
into whatever format or library you like
and then sync as much as possible

and that would give you the results of
a "typical" pmf file

but who is the wiser :)
Post Reply