PSP 720x480 AVC

Discussion in 'CloneDVD mobile' started by MaGo, Apr 21, 2007.

  1. MaGo

    MaGo New Member

    Hi i tried to encode compatible mp4 AVC file in 720x480 for the new firmwares >=3.30.

    the 480x272 resolution works since 3.03 with this devices.ini entry:
    Code:
    [PlayStation Portable (AVC/H264, Firmware Version >= 3.03)]
    ResUnit=16
    ScreenRatio=16:9
    Manufacturer=Sony
    Res1=480x272
    ResAna1=480x272
    VCodec=h264
    ACodec=aac
    ARate=48000
    ABRate=128
    Volume=800
    Format=lavf
    lavfopts=format=psp
    lavcopts=aglobal=1:vglobal=1:vcodec=h264:coder=1:acodec=aac
    FileType=mp4
    PALFrameRate1=29.97
    DirPath=MP_ROOT/100ANV01/MAQ1
    Quality=15
    useMencoder=1
    SubTitle=1
    MaxVBitrate=1500
    ThumbNail=THM
    AllowChapterFiles=0
    but this entry won't work:

    Code:
    [PlayStation Portable (AVC/H264, Firmware Version >= 3.30)]
    ResUnit=16
    ScreenRatio=16:9
    Manufacturer=Sony
    Res1=720x480
    ResAna1=720x480
    VCodec=h264
    ACodec=aac
    ARate=48000
    ABRate=128
    Volume=800
    Format=lavf
    lavfopts=format=psp
    lavcopts=aglobal=1:vglobal=1:vcodec=h264:coder=1:acodec=aac
    FileType=mp4
    PALFrameRate1=29.97
    DirPath=MP_ROOT/100ANV01/MAQ1
    Quality=15
    useMencoder=1
    SubTitle=1
    MaxVBitrate=1500
    ThumbNail=THM
    AllowChapterFiles=0
    Now here
    is described that it has to work with H.264 level set to 3.0 instead of 2.1!

    My Question is, how can I set the h264 level to 3 in the ini?

    thanks.
     
  2. onthespot

    onthespot New Member

    Actually, the 480x272 doesn't work unless you have one of the hacked firmwares for the PSP, which I don't. 480x272 MUST be AVC level 2.1, while 720x480 MUST be 3.0

    This is absolutely an AVC level issue, which CloneDVD mobile does not let you set manually. I know mencoder allows this as part of the command line, but we cannot set that ourselves.

    One of two things need to be done (or both):
    -Let the user set their own commandline commands in the ini file (or in the gui itself)
    -Change the ini file to reflect this AVC level change and alter the program accordingly.

    I have been using megui to do this, but I always prefer to use clonedvd mobile because of the awesome interface. This appears to be a quick fix which would be a welcome addition for us loyal PSP CloneDVD mobile users.
     
  3. gothchild

    gothchild Active Member

    where do you guys see this cause I don't. i have v. 1.1.4.0 and the only res i see is like 368x208, but it would nice to have an update that takes advantage of the 3.30 update for psp. and display in it's native res.
     
  4. Peer

    Peer Redfox Development Team Staff Member

    Hi onthespot!

    Would you mind posting an mencoder commandline, that definitely works for the new "official" PSP fullres?
    I'd be happy to make changes to the software, to make this work.
     
  5. onthespot

    onthespot New Member

    In the x264encopts switch (which I assume you use), you need to add one that says "level_idc=21"

    For example:

    -x264encopts bitrate=400:level_idc=21:bframes=0


    That needs to be there for both passes, if you do 2 pass encoding.

    Keep in mind, I use x264 commandline, not mencoder, so I'm not sure this will work.

    But if it does, what kind of compensation do I get??? ;)
     
  6. Peer

    Peer Redfox Development Team Staff Member

    You'll get a new version of CloneDVD mobile, that encodes 480x272 for the PSP :)
     
  7. MaGo

    MaGo New Member

    Uhmm cool, you thought of writing 720x480, don't you??:eek: .. i hope so !:bowdown:
     
  8. dnm

    dnm New Member

    I have used psp video 9, these are the options for 480x272

    This is output from the console in PSP Video 9, there is an actual commandline to ffmpeg that is used to convert in this case a swedish terrestrial DVB-t 16:9 recording.
    Code:
    EXEC: C:\Program Files\Red Kawa\Video Converter\Tools\MediaInfo\mediainfobatch.bat "C:\Program Files\Red Kawa\Video Converter\Tools\MediaInfo\MediaInfo.exe" "C:\Program Files\Red Kawa\Video Converter\Tools\MediaInfo\parameters.txt" "D:\Downloads\Movies\Hope_Faith_3_2005.mpeg"
    
    PlayTime=00:35:27.235
    
    Width=720
    
    Height=576
    
    AspectRatio=1.333
    
    FrameRate=25.000
    MediaInfo Command line, MediaInfoLib - v0.7.4.5
    MSG - OS - Version: Microsoft Windows NT 6.0.6000.0
    MSG - Converter - Version: 2.17
    MSG - Converter - Profile: AVC 480x272 768kbps Stereo/128kbps
    MSG - MediaInfo - Length: 2127s
    MSG - MediaInfo - Width: 720 pixels
    MSG - MediaInfo - Height: 576 pixels
    MSG - MediaInfo - Aspect Ratio: 1,333
    MSG - MediaInfo - Framerate: 25 fps
    MSG - Converter - Automatically Generating Framerate
    EXEC: C:\Program Files\Red Kawa\Video Converter\Tools\FFmpeg\ffmpeg.exe -y -i "D:\Downloads\Movies\Hope_Faith_3_2005.mpeg" -f mp4 -title "Hope_Faith_3_2005" -timestamp "2007-05-10 09:39:02" -vcodec h264 -level 21 -s 480x272 -b 768k -bt 768k -bufsize 4000k -maxrate 4000k -g 250 -coder 1 -acodec aac -ac 2 -ab 128k "C:\Users\dnm\Documents\Converted Videos\PSP\MPEG4-AVC\Hope_Faith_3_2005.mp4"
    
    FFmpeg version SVN-r8564, Copyright (c) 2000-2007 Fabrice Bellard, et al.
      configuration: --enable-gpl --enable-pp --enable-swscaler --enable-pthreads --enable-liba52 --enable-avisynth --enable-libdts --enable-libfaac --enable-libfaad --enable-libgsm --enable-libmp3lame --enable-libnut --enable-libogg --enable-libtheora --enable-libvorbis --enable-x264 --enable-xvid --enable-amr_nb --enable-amr_wb --cpu=i686 --enable-memalign-hack --extra-ldflags=-static
      libavutil version: 49.4.0
      libavcodec version: 51.40.2
      libavformat version: 51.11.0
      built on Mar 31 2007 16:35:11, gcc: 4.3.0 20070126 (experimental)
    Input #0, mpegts, from 'D:\Downloads\Movies\Hope_Faith_3_2005.mpeg':
      Duration: 00:35:27.2, start: 20031.501633, bitrate: 2858 kb/s
      Stream #0.0[0x487]: Video: mpeg2video, yuv420p, 720x576, 15000 kb/s, 25.00 fps(r)
      Stream #0.1[0x486]: Audio: mp2, 48000 Hz, stereo, 192 kb/s
    Output #0, mp4, to 'C:\Users\dnm\Documents\Converted Videos\PSP\MPEG4-AVC\Hope_Faith_3_2005.mp4':
      Stream #0.0: Video: h264, yuv420p, 480x272, q=2-31, 768 kb/s, 25.00 fps(c)
      Stream #0.1: Audio: aac, 48000 Hz, stereo, 128 kb/s
    Stream mapping:
      Stream #0.0 -> #0.0
      Stream #0.1 -> #0.1
    [h264 @ 009D4840]using SAR=34/45
    [h264 @ 009D4840]using cpu capabilities MMX MMXEXT SSE SSE2 3DNow! 
    Press [q] to stop encoding
    frame=   38 fps=  0 q=2.0 size=      43kB time=0.8 bitrate= 446.7kbits/s   
     
  9. Bluefin

    Bluefin Guest

    Hi all,

    I just wanted to check this would allow a resolution of 720p in the output, or have I miss understood this post. I get 320x240 when I choose to convert a movie to PSP (FM 3.4).
     
  10. Megatron

    Megatron Member

    I was wondering if there will be an update soon.