Encoding PSP video using non-standard resolutions
-
- Posts: 3
- Joined: Sun Mar 27, 2005 2:48 am
thanks
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?
PSP Video Converter
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
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
Vers 0.2 of custom transcoding ini generator for 3GP conver
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.
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.
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?
Any idea why this wont work on my PSP?
EDIT: Nevermind, just needed the psprez program.[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""
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...
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...
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
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::
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.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
The PSP also only supports a very specific audio profile, namely a 24k sampling rate, stereo.
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 :)
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 :)