[FFmpeg-user] Two-Pass encoding on Android
Majid Shirazi
majidshirazi90 at gmail.com
Sat Dec 22 17:29:31 EET 2018
this is what happen if I remove "&& \":
* [libx264 @ 0xf0c07c00] using SAR=3825/3824*
* [libx264 @ 0xf0c07c00] using cpu capabilities: ARMv6 NEON*
* [libx264 @ 0xf0c07c00] ratecontrol_init: can't open stats file*
* Error initializing output stream 0:0 -- Error while opening encoder
for output stream #0:0 - maybe incorrect parameters such as bit_rate, rate,
width or height*
* [aac @ 0xf0c08680] Qavg: 3723.349*
* [aac @ 0xf0c08680] 2 frames left in the queue on closing*
* Conversion failed!*
On Sat, Dec 22, 2018 at 3:42 PM Carl Eugen Hoyos <ceffmpeg at gmail.com> wrote:
> 2018-12-22 8:22 GMT+01:00, Majid Shirazi <majidshirazi90 at gmail.com>:
> > According to the documentation for using Two-Pass method we have to run
> > ffmpeg twice like this:
> >
> > ffmpeg -y -i input -c:v libx264 -b:v 2600k -pass 1 -an -f mp4 /dev/null
> && \
> > ffmpeg -i input -c:v libx264 -b:v 2600k -pass 2 -c:a aac -b:a 128k
> > output.mp4
>
> What's wrong with (remove linebreak after ";"):
> $ ffmpeg -y -i input -c:v libx264 -b:v 2600k -pass 1 -an -f mp4 /dev/null ;
> ffmpeg -i input -c:v libx264 -b:v 2600k -pass 2 -c:a aac -b:a 128k
> output.mp4
> ?
>
> Carl Eugen
> _______________________________________________
> ffmpeg-user mailing list
> ffmpeg-user at ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
> To unsubscribe, visit link above, or email
> ffmpeg-user-request at ffmpeg.org with subject "unsubscribe".
More information about the ffmpeg-user
mailing list