View Full Version : Encode MPG to MP4 for PSP
David1105
17th July 2007, 02:12
I used x264.exe to encode a MPG to MP4 to be played on PSP, the output MP4 doesn't have audio track. Which switches are missing to cause that problem?
Also, the encoded MP4 file cannot be played back on PSP. Anything wrong with this? (I tried both MP4Box.exe and nicMP4Box.exe.)
The commandlines are as:
x264.exe --level 30 --bitrate 500 --no-cabac --analyse p8x8,b8x8 --qpmin 22 --me umh --progress --no-psnr --output "video.264" "video_psp.avs"
MP4Box.exe -add video.264 video_psp.mp4
or
nicMP4Box.exe -add video.264 video_psp.mp4
SealTooGreat
17th July 2007, 05:30
You have to encode separately video and audio.
X264 is only video encoder.
You are missing Nero AAC or CT encoder for audio. (Try MeGUI or BeHappy (http://forum.doom9.org/showthread.php?p=1024859#post1024859))
There's no "--level 30", it's "--level 3". Anyway, you x264 cmd line is a little unusual. :)
so final mp4box cmd line would be:
MP4Box.exe -add "Video.h264:fps=X:par=1:1" -add "Audio.aac:sbr" "final_MP4BOX_mux.mp4"
...where:
X is FPS value (i.e. 23.976, 25 ...etc.)
:par=1:1 is for square pixel (don't use it if your encode is anamorphic)
:sbr is for RAW AAC encoded as HE-AAC (don't use it if your audio encode is LC-AAC)
Atak_Snajpera
17th July 2007, 12:58
Did you try my GUI?
BTW Why do you use IPOD settings for PSP? NO CABAC --analyse p8x8,b8x8 and so on...
David1105
17th July 2007, 20:42
Did you try my GUI?
BTW Why do you use IPOD settings for PSP? NO CABAC --analyse p8x8,b8x8 and so on...
Thanks!
Would you please write a sample complete commandline for PSP using x264.exe?
David1105
17th July 2007, 20:44
You have to encode separately video and audio.
X264 is only video encoder.
You are missing Nero AAC or CT encoder for audio. (Try MeGUI or BeHappy (http://forum.doom9.org/showthread.php?p=1024859#post1024859))
Do you mean encoding a source file to a video-only file and then encode the source to a audio-only file, then combine the two "-only" files ino MP4?
snherbst
17th July 2007, 21:12
Have you tried Quenc which have the ability to convert to MP4 for PSP. This very simple the tool also have the ability to take avisynth files as input.
Atak_Snajpera
17th July 2007, 21:59
x264.exe "job1.avs" --pass 2 --bitrate 512 --stats "c:\.stats" --level 2.1 --sar 1:1 --filter 0,0 --ref 2 --mixed-refs --bframes 3 --b-rdo --bime --weightb --direct auto --subme 6 --trellis 1 --analyse p8x8,b8x8,i4x4,p4x4 --me umh --threads auto --thread-input --progress --no-psnr --no-ssim --output "c:\video.264"
SealTooGreat
18th July 2007, 00:23
Do you mean encoding a source file to a video-only file and then encode the source to a audio-only file, then combine the two "-only" files into MP4?
Yes, that I was trying to say.
x264.exe "job1.avs" --pass 2 --bitrate 512 --stats "c:\.stats" --level 2.1 --sar 1:1 --filter 0,0 --ref 2 --mixed-refs --bframes 3 --b-rdo --bime --weightb --direct auto --subme 6 --trellis 1 --analyse p8x8,b8x8,i4x4,p4x4 --me umh --threads auto --thread-input --progress --no-psnr --no-ssim --output "c:\video.264"
David1105, instead of --output "c:\video.264", you can type --output "c:\video.mp4", So, the final output x264 encode would be in MP4 container.
BeHappy (using Nero AAC encoder) also outputs to MP4.
You can also use, in this case, following MP4box cmd line: MP4Box.exe -add "Video.mp4" -add "Audio.mp4" "final_MP4BOX_mux.mp4"
...you can see that I don't use commands like :par, :fps and :sbr. That is because MP4box will read those information from MP4s.
vBulletin® v3.8.5, Copyright ©2000-2012, Jelsoft Enterprises Ltd.