Open r8code opened 6 years ago
multistage ?
What are you trying to do with multistage ?
sorry I mean I want to do 2-pass : ffmpeg -i < input > -c:v libx264 -b:v 1M -pass 1 -f mp4 /dev/null ffmpeg -i < input > -c:v libx264 -b:v 1M -pass 2 < output >.mp4 how to do it ? thx
That seems correct what issue do you have ? can you paste the command with docker. I can help support on the image integration not really ffmpeg
srry for late reply , I can't do this : $ docker run jrottenberg/ffmpeg -i < input > -c:v libx264 -b:v 1M -pass 1 -f mp4 /dev/null $ docker run jrottenberg/ffmpeg -i < input > -c:v libx264 -b:v 1M -pass 2 < output >.mp4
since it become 2 different container I mean how to achive two pass ffmpeg with ffmpeg inside docker ? thx again
yeah you need to mount a volume for both container to keep the state file visible, first command will create it , second will read from it:
docker run -v $(pwd):/var/tmp jrottenberg/ffmpeg
should do the trick, make sure you use the same path for both.
thx for the reply
For this method you would also need to add -passlogfile /var/tmp/<prefix>
to both commands.
This will persist the log files for sharing between the executions
Thx , I end up with --entrypoint "/bin/bash" jrottenberg/ffmpeg -c "ffmpeg ... ffmpeg ... "
Does anyone know to use multipass with this docker ? Thx