forums.ps2dev.org Forum Index forums.ps2dev.org
Homebrew PS2, PSP & PS3 Development Discussions
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Encoding PSP video using non-standard resolutions
Goto page Previous  1, 2, 3, 4
 
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Development
View previous topic :: View next topic  
Author Message
jayroc2200



Joined: 27 Mar 2005
Posts: 3

PostPosted: Sun Mar 27, 2005 5:15 am    Post subject: thanks Reply with quote

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?
Back to top
View user's profile Send private message AIM Address Yahoo Messenger
jayroc2200



Joined: 27 Mar 2005
Posts: 3

PostPosted: Sun Mar 27, 2005 8:43 am    Post subject: yess!!! Reply with quote

thanks i figured it out!!!
Back to top
View user's profile Send private message AIM Address Yahoo Messenger
rprince



Joined: 13 Mar 2005
Posts: 3

PostPosted: Mon Mar 28, 2005 12:45 am    Post subject: PSP Video Converter Reply with quote

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
Back to top
View user's profile Send private message
cocco



Joined: 12 Feb 2005
Posts: 17

PostPosted: Tue Mar 29, 2005 8:35 pm    Post subject: Vers 0.2 of custom transcoding ini generator for 3GP conver Reply with quote

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.
Back to top
View user's profile Send private message
Starman



Joined: 05 Mar 2005
Posts: 15

PostPosted: Thu Mar 31, 2005 12:11 am    Post subject: Reply with quote

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
Back to top
View user's profile Send private message
brianstk



Joined: 31 Mar 2005
Posts: 1

PostPosted: Thu Mar 31, 2005 2:26 pm    Post subject: Reply with quote

What do you guys suggest for 1.85:1 aspect ratio's? If I do 368x208 it comes out really stretched.
Back to top
View user's profile Send private message AIM Address
Yus



Joined: 05 Apr 2005
Posts: 1

PostPosted: Tue Apr 05, 2005 6:25 am    Post subject: Reply with quote

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?

Quote:

[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.
Back to top
View user's profile Send private message
JSR



Joined: 16 Apr 2005
Posts: 5

PostPosted: Sat Apr 16, 2005 2:22 am    Post subject: Reply with quote

Cocco : Great Work !
Can you make an offline version of all those 2 php program plz?
Thx !
_________________
::Scener 2005::
Back to top
View user's profile Send private message
imk



Joined: 16 Apr 2005
Posts: 8

PostPosted: Sat Apr 16, 2005 2:18 pm    Post subject: Reply with quote

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...
Back to top
View user's profile Send private message
JSR



Joined: 16 Apr 2005
Posts: 5

PostPosted: Sun Apr 17, 2005 8:44 pm    Post subject: Reply with quote

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::
Back to top
View user's profile Send private message
Nafai



Joined: 08 Apr 2005
Posts: 4

PostPosted: Wed Apr 20, 2005 9:58 pm    Post subject: Reply with quote

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.
Back to top
View user's profile Send private message
n4x0



Joined: 12 Sep 2005
Posts: 1

PostPosted: Mon Sep 12, 2005 9:33 pm    Post subject: Reply with quote

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
Back to top
View user's profile Send private message Send e-mail MSN Messenger
marlov74



Joined: 04 Feb 2005
Posts: 10

PostPosted: Wed Sep 21, 2005 2:24 am    Post subject: Reply with quote

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.
Back to top
View user's profile Send private message MSN Messenger
LuMo



Joined: 21 Aug 2005
Posts: 410
Location: Austria

PostPosted: Wed Sep 21, 2005 4:48 am    Post subject: Reply with quote

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
Back to top
View user's profile Send private message Visit poster's website
0x0001



Joined: 21 Jul 2005
Posts: 11

PostPosted: Wed Sep 21, 2005 8:27 am    Post subject: Reply with quote

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 :)
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Development All times are GMT + 10 Hours
Goto page Previous  1, 2, 3, 4
Page 4 of 4

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group