View Full Version : ffmpeg 2-pass encoding / volume question
ftlee
14th January 2007, 23:34
I am using 3GP Converter to convert .vob files to H.264 for the PSP using the following commands:
Title=AVC 480x272 768 kbps 2-pass
TitleE=AVC 480x272 768 kbps 2-pass
Command0=""<%AppPath%>\cores\ffmpeg" -y -i "<%InputFile%>" -title "<%Title%>" -timestamp "<%TimeStamp%>" -bitexact -vcodec h264 -coder 1 -bufsize 128 -g 250 -s 480x272 -r 29.97 -b 768 -passlogfile "<%OutputFile%>" -pass 1 -acodec aac -ac 2 -ar 48000 -ab 64 -vol 400 -f psp "<%OutputPath%>MAQ<%RandomNumber5%>.MP4""
Command1=""<%AppPath%>\cores\ffmpeg" -y -i "<%InputFile%>" -title "<%Title%>" -timestamp "<%TimeStamp%>" -bitexact -vcodec h264 -coder 1 -bufsize 128 -g 250 -s 480x272 -r 29.97 -b 768 -passlogfile "<%OutputFile%>" -pass 2 -acodec aac -ac 2 -ar 48000 -ab 64 -vol 400 -f psp "<%OutputPath%>MAQ<%RandomNumber5%>.MP4""
Command2="rm "<%OutputFile%>-0.log""
Command3=""<%AppPath%>\cores\ffmpeg" -y -i "<%InputFile%>" -f image2 -ss 5 -vframes 1 -s 160x120 -an "<%OutputPath%>MAQ<%RandomNumber5%>.THM""
I am using the -vol switch to increase the volume to 400. Should I have this switch set on both passes? Does it make the increase 800 if it is in both passes?
Thanks,
Frank T. Lee
DarkZell666
15th January 2007, 14:56
You don't even need to process the audio during first pass, it's a waste of CPU time.
You can completely scratch this out from first pass : -acodec aac -ac 2 -ar 48000 -ab 64 -vol 400
But to answer your question the most exactly possible: no, it won't turn the volume up to 800% (so if ever scratching out completely the audio part doesn't work, you're safe to leave things as they are :)).
ilovejedd
15th January 2007, 19:54
Unfortunately, he can't remove the audio from the first pass. The specific build of ffmpeg used in 3GP Converter gives an error if the audio is removed (I have tried and failed). Albeit, he doesn't need the -vol 400 parameter in the first pass.
OT:
Since you're encoding at 480x272 res, I'm assuming you have Dark Alex's firmware. How is it? Is it stable? Is it easy to install? I still have firmware 1.50 (DevHook0.44 + fw2.71) and I'm afraid to flash my PSP. However, I also want to be able to play PS1 games (Xenogears, Chrono Cross, Final Fantasy VII, etc) on my PSP... So now, I'm in two minds whether I should flash my virgin PSP or not.
Schrade
15th January 2007, 23:00
OT:
Since you're encoding at 480x272 res, I'm assuming you have Dark Alex's firmware. How is it? Is it stable? Is it easy to install? I still have firmware 1.50 (DevHook0.44 + fw2.71) and I'm afraid to flash my PSP. However, I also want to be able to play PS1 games (Xenogears, Chrono Cross, Final Fantasy VII, etc) on my PSP... So now, I'm in two minds whether I should flash my virgin PSP or not.
3.03 OE-B is awesome. Very stable and has all the benefits of 1.5 along with the benefits and PSX emulator capability of 3.03.
Here's a thread that lists all the differences and also how to install it: http://forums.maxconsole.net/showthread.php?t=40046
With the latest advancements I have been able to walk into a store, buy a PSP with a TA-082 motherboard and downgrade it to 1.50 then upgrade it to 3.03 OE-B. I had to buy 4 PSPs and return 3 of them until I got one with a non-stuck pixel screen though :(
mipop35
16th January 2007, 06:24
Unfortunately, he can't remove the audio from the first pass. The specific build of ffmpeg used in 3GP Converter gives an error if the audio is removed (I have tried and failed).
I don't agree. I Use 3GP Converter to make mp4 for my ipaq. I make two pass encoding, avoiding audio in the first one. I use de -an option for to avoid audio. Here my commands:
Title=
TitleE=QVGA V:x264, 176kbps 2Pass, 20fps A: aac, 64kbps. (Uso este para la iPAQ)
Command0=""<%AppPath%>\cores\ffmpeg" -y -i "<%InputFile%>" -title "<%Title%>" -timestamp "<%TimeStamp%>" -bitexact -vcodec h264 -coder 0 -bufsize 256 -g 300 -vlevel 13 -fixaspect -s 320x240 -b 176 -maxrate 224 -qmin 2 -qmax 51 -passlogfile "<%OutputFile%>" -pass 1 -r 20 -an -f mp4 "<%OutputFile%>_ppc.mp4""
Command1=""<%AppPath%>\cores\ffmpeg" -y -i "<%InputFile%>" -title "<%Title%>" -timestamp "<%TimeStamp%>" -bitexact -vcodec h264 -coder 0 -bufsize 256 -g 300 -vlevel 13 -fixaspect -s 320x240 -b 176 -maxrate 224 -qmin 2 -qmax 51 -passlogfile "<%OutputFile%>" -pass 2 -r 20 -acodec aac -ac 2 -ab 32 -f mp4 "<%OutputFile%>_ppc.mp4""
Command2="rm "<%OutputFile%>-0.log""
ilovejedd
16th January 2007, 18:13
That's because you're using -f mp4. Output to PSP requires an audio stream. Of course, he can change the first line to:
Command0=""<%AppPath%>\cores\ffmpeg" -y -i "<%InputFile%>" -title "<%Title%>" -timestamp "<%TimeStamp%>" -bitexact -vcodec h264 -coder 1 -bufsize 128 -g 250 -s 480x272 -r 29.97 -b 768 -passlogfile "<%OutputFile%>" -pass 1 -an -f mp4 "<%OutputPath%>MAQ<%RandomNumber5%>.MP4""
Since the first generated MP4 is basically useless and the only file needed in the first pass is the log file. I still haven't figured out how to output to NULL using ffmpeg in first pass.
vBulletin® v3.8.11, Copyright ©2000-2026, vBulletin Solutions Inc.