Announcement

Collapse
No announcement yet.

PSP video encoding thread

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Hey Bazald. If your just encoding a video with Ffmpeg. How do you get
    pass there needing to be a specific .mp4 hack if you will. For the PSP to
    recognize the .mp4. Are you doing anyting after you encode the mp4 file.
    What with you being on Linux...?

    Thanks.

    Comment


      wonderboy: all *I* am doing is setting the "psp" format option. The good people working directly on FFMpeg have done all the hard work. (You would have to ask them. ) The only problem I've noticed is it doesn't seem to be possible to use the unusual resolutions people have gotten working in other converters. So, you still have to have black bars for widescreen. Remember though, the option doesn't exist in the "stable" builds. You *must* use CVS.

      Comment


        Thanks bazald. I look around for more info....

        Comment


          Hi there I'v been using your 3gp ini settings very successfully but have hit a snag...

          I have a 235:1 video that I want to convert to 368x208 which is currently 368x160

          can I use the ffmpeg switches -padtop - padbottom in the ini to expand the video without stretching the source

          or can I do anything in virtualdubmod to pad the source before running it through 3gp?

          many thanks

          Comment


            Sure krysuk. You can you either, take you pick...

            In 3GP, use the -padtop -padbottom flags for ffmpeg. So as your
            vid is 368x160. Change the -s (size in you trancoding ini) from 368x208
            to 368x160. Then add, -padtop 24 -padbottom 24. So, when encoded
            it will pad evenly, to the size you want. Here an example..

            ffmpeg" -y -i "<%InputFile%>" -title "<%Title%>" -timestamp "<%TimeStamp%>" -bitexact -vcodec xvid -s 368x160 -r 29.97 -padtop 24 -padbottom 24 -b 540 -acodec aac -ac 2 -ar 24000 -ab 64 -vol 180 -f 3gp "<%TemporaryFile%>.3gp""

            In VirtualDub(mod). Just open the video, goto video-> Filters. Add the
            resize filter. Type in the width height (368x160). Then tick, expand frame
            and letter box image option. Then adjust the height to 208. Also, change
            filter mode. To either a precise bicubic or lanczos filter, to keep the
            sharpness on the image. It's just a matter then of selecting a codec in
            compression. The save as....

            Hope this helps. Good luck..

            Comment


              Thanks Wonderboy- I'll try that when I've cleared enough space on my disk to re-run the film through virtual dub

              Comment


                Glad to help..!

                Comment


                  On another note I've been using your 368x208 450kps profile and looking to get a higher bitrate version of this - 900kps

                  looking at your ini the first pass you have the bitrate at just over double the final bitrate

                  ie 990 to 450

                  is there a set formula for how much higher the first pass should be as I tried doing one for 540 using 1080 as the first pass but after the first pass 3gp bombs out and shutsdown

                  Comment


                    Hi krysuk. On a two-pass, the first pass bit-rate doesn't really matter.
                    The first pass is really used to collect infomation for the second pass.
                    Motion, where best to bits etc. If you want say, 540kbs/sec just change
                    the second pass to 540. Easy as that, really. I just leave the first-pass
                    at 900, because at 368x208. Generally, the bit-rate won't go over, let
                    alone reach it at quantizer=2. Depending on content, movment, light and
                    dark etc..

                    Here's my 2-pass, if it helps. I also, added -g 300 for keyframes.

                    [Item21]
                    Title=368x208/29.97fps/540kbps ƒXƒeƒŒƒI/128kbps
                    TitleE=368x208/29.97fps/540_kbps Stereo/128kbps
                    Command0=""<%AppPath%>\cores\ffmpeg" -y -i "<%InputFile%>" -pass 1 -passlogfile "<%TemporaryFile%>" -title "<%Title%>" -bitexact -vcodec xvid -s 368x208 -g 300 -r 29.97 -b 900 -acodec aac -ac 2 -ar 24000 -ab 64 -vol 180 -f 3gp "<%TemporaryFile%>.3gp""
                    Command1=""<%AppPath%>\cores\ffmpeg" -y -i "<%InputFile%>" -pass 2 -passlogfile "<%TemporaryFile%>" -title "<%Title%>" -bitexact -vcodec xvid -s 368x208 -g 300 -r 29.97 -b 540 -acodec aac -ac 2 -ar 24000 -ab 64 -vol 180 -f 3gp "<%TemporaryFile%>.3gp""
                    Command2=""<%AppPath%>\cores\QT3GPPFlatten" "<%TemporaryFile%>.3gp" "<%TemporaryFile%>_2.3gp" -c QT_3GPP(MobileMP4)_368x208_AAC.ini"
                    Command3="rm "<%TemporaryFile%>.3gp""
                    Command4=""<%AppPath%>\cores\ATOMChanger" "<%TemporaryFile%>_2.3gp" "<%OutputFile%>.MP4" "Camouflage_MP4_for_PSP_ForceQVGA.ini""
                    Command5="rm "<%TemporaryFile%>_2.3gp""
                    Command6=""<%AppPath%>\cores\ffmpeg" -y -i "<%InputFile%>" -f singlejpeg -ss 5 -vframes 1 -s 160x120 -an "<%OutputFile%>.THM""


                    Also, if you want to try min-max method of encoding your videos. To
                    experiment see if it's better for what your encoding. Just alter to your
                    needs. -b 450 is the target, -maxrate 576 is the highest allowed, -minrate
                    250 is the lowest.

                    [Item19]
                    Title=368x208/29.97fps/540kbps ƒXƒeƒŒƒI/128kbps
                    TitleE=368x208/29.97fps/540kbps_min_max Stereo/128kbps
                    Command0=""<%AppPath%>\cores\ffmpeg" -y -i "<%InputFile%>" -pass 1 -passlogfile "<%TemporaryFile%>" -title "<%Title%>" -bitexact -vcodec xvid -s 368x208 -g 300 -r 29.97 -b 450 -maxrate 576 -minrate 250 -bt 16 -acodec aac -ac 2 -ar 24000 -ab 64 -vol 180 -f 3gp "<%TemporaryFile%>.3gp""
                    Command1=""<%AppPath%>\cores\ffmpeg" -y -i "<%InputFile%>" -pass 2 -passlogfile "<%TemporaryFile%>" -title "<%Title%>" -bitexact -vcodec xvid -s 368x208 -g 300 -r 29.97 -b 450 -maxrate 576 -minrate 250 -bt 16 -acodec aac -ac 2 -ar 24000 -ab 64 -vol 180 -f 3gp "<%TemporaryFile%>.3gp""
                    Command2=""<%AppPath%>\cores\QT3GPPFlatten" "<%TemporaryFile%>.3gp" "<%TemporaryFile%>_2.3gp" -c QT_3GPP(MobileMP4)_368x208_AAC.ini"
                    Command3="rm "<%TemporaryFile%>.3gp""
                    Command4=""<%AppPath%>\cores\ATOMChanger" "<%TemporaryFile%>_2.3gp" "<%OutputFile%>.MP4" "Camouflage_MP4_for_PSP_ForceQVGA.ini""
                    Command5="rm "<%TemporaryFile%>_2.3gp""
                    Command6=""<%AppPath%>\cores\ffmpeg" -y -i "<%InputFile%>" -f singlejpeg -ss 5 -vframes 1 -s 160x120 -an "<%OutputFile%>.THM""

                    I'm usually putting anime on my PSP. So, one 540, or two pass at about
                    450 is fine for me. If i was you, i'd try a couple of tests, with various 2min
                    clips of different videos. To build up a couple of settings...

                    Anyway, hope this helps you. If you need any help just ask.

                    Good luck.
                    Last edited by wonderboy; 04-05-2005, 16:16.

                    Comment


                      I'm having no probs at all getting DVDs onto my PSP with DVD Decrypter/PSP Video 9/ 3GP Converter, but I was wondering if anyone here could help with the folowing...

                      Having made a .VOB file of Akira using DVD Decrypter, I've tried to transcode it using PSP Video 9 but for some reason it wont finish the conversion properly. I'm then left with a corrupt .MP4 file that doesn't play.

                      I'm going to try converting the .VOB file with 3GP Converter.

                      Having said all that though, I'm wondering if anyone can advise me on the best Audio/Visual profile to use for PSP Video 9 when trying to convert .VOB files of Anime DVDs?....

                      Comment


                        Nu_Eclipse have you definately enabled the stream processing? I was having trouble with some VOB rips, then when i used the stream processing to select a single audio & video track I havent had a problem since.

                        Comment


                          Originally posted by Zatoichi_Samurai
                          Nu_Eclipse have you definately enabled the stream processing? I was having trouble with some VOB rips, then when i used the stream processing to select a single audio & video track I havent had a problem since.
                          Whenever I decrypt a DVD, I always enable stream processing. I have created .VOBs of other films and I haven't had any problems in converting them to .MP4 files that play perfectly on my PSP.

                          My problem just seems to be with Akira. I was just wondering if the audio/visual profile used for .MP4 conversion had anything to do with it. I always use the best possible profiles i.e. 320x240/29.97fps/768(or 1500)kbps Stereo/128kbps. I was thinking that a different profile might have been called for due to Akira being an animation and not a live-action film.

                          Nevertheless, I intend to try decrypting & converting Akira again. This time, I'll definitely make sure that I enable the stream processing in DVD Decrypter.

                          Comment


                            Hi Wonderboy - thanks for all your help - have a few other encoding options up and working..

                            Tried a 900kps but the movie it produced came up as incompatible on the psp - I checked the ini file and the 1500kps has a false 768kps line in it
                            any idea how that works?

                            many thanks

                            Comment


                              Hi krysuk. You can't use anything over 768kbs/sec on the PSP, as such.
                              It can, but like you said, you use a hacked header info. It's the -muxvb
                              that's the needed tag...
                              Anyway here's a couple that will work for you....

                              First one is a 2-pass. The second pass is 1260. This is the one to change.
                              To say the 900kbs/sec you want. Or anything up to 1500kbs/sec..

                              [Item18]
                              Title=368x208/29.97fps/1260kbps ƒXƒeƒŒƒI/2chx64kbps
                              TitleE=368x208/29.97fps/1260_kbps Stereo/2chx64kbps
                              Command0=""<%AppPath%>\cores\ffmpeg" -y -i "<%InputFile%>" -pass 1 -passlogfile "<%TemporaryFile%>" -title "<%Title%>" -bitexact -vcodec xvid -s 368x280 -g 300 -r 29.97 -b 1500 -acodec aac -ac 2 -ar 24000 -ab 64 -muxvb 768 -vol 180 -f 3gp "<%TemporaryFile%>.3gp""
                              Command1=""<%AppPath%>\cores\ffmpeg" -y -i "<%InputFile%>" -pass 2 -passlogfile "<%TemporaryFile%>" -title "<%Title%>" -bitexact -vcodec xvid -s 368x208 -g 300 -r 29.97 -b 1260 -acodec aac -ac 2 -ar 24000 -ab 64 -muxvb 768 -vol 180 -f 3gp "<%TemporaryFile%>.3gp""
                              Command2=""<%AppPath%>\cores\QT3GPPFlatten" "<%TemporaryFile%>.3gp" "<%TemporaryFile%>_2.3gp" -c QT_3GPP(MobileMP4)_368x208_AAC.ini"
                              Command3="rm "<%TemporaryFile%>.3gp""
                              Command4=""<%AppPath%>\cores\ATOMChanger" "<%TemporaryFile%>_2.3gp" "<%OutputFile%>.MP4" "Camouflage_MP4_for_PSP_ForceQVGA.ini""
                              Command5="rm "<%TemporaryFile%>_2.3gp""
                              Command6=""<%AppPath%>\cores\ffmpeg" -y -i "<%InputFile%>" -f singlejpeg -ss 5 -vframes 1 -s 160x120 -an "<%OutputFile%>.THM""

                              This is just the 1-pass. Altered for 900kbs/sec.

                              [Item19]
                              Title=368x208/29.97fps/900kbps ƒXƒeƒŒƒI/128kbps
                              TitleE=368x208/29.97fps/900kbps Stereo/128kbps
                              Command0=""<%AppPath%>\cores\ffmpeg" -y -i "<%InputFile%>" -title "<%Title%>" -timestamp "<%TimeStamp%>" -bitexact -vcodec xvid -s 368x208 -r 29.97 -b 900 -acodec aac -ac 2 -ar 24000 -ab 64 -muxvb 768 -f 3gp "<%TemporaryFile%>.3gp""
                              Command1=""<%AppPath%>\cores\QT3GPPFlatten" "<%TemporaryFile%>.3gp" "<%TemporaryFile%>_2.3gp" -c QT_3GPP(MobileMP4)_368x208_AAC.ini"
                              Command2="rm "<%TemporaryFile%>.3gp""
                              Command3=""<%AppPath%>\cores\ATOMChanger" "<%TemporaryFile%>_2.3gp" "<%OutputFile%>.MP4" "Camouflage_MP4_for_PSP_ForceQVGA.ini""
                              Command4="rm "<%TemporaryFile%>_2.3gp""
                              Command5=""<%AppPath%>\cores\ffmpeg" -y -i "<%InputFile%>" -f singlejpeg -ss 5 -vframes 1 -s 160x120 -an "<%OutputFile%>.THM""

                              Hope this helps..

                              Comment


                                thanks wonderboy - you have really helped me a lot

                                very grateful

                                Comment

                                Working...
                                X