Can I Batch Encode with ffmpeg on Mac?

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Can I Batch Encode with ffmpeg on Mac?

Mark Scott
Hello,
First off, I need to say that I'm very new to ffmpeg. I do not have
much experience with writing command lines or scripts so please excuse
me if I don't understand the terminology. I have figured out how to
encode uncompressed .mov files to cut off the first few seconds of the
video, and convert it to ProRes codec. Is there a way to automate the
process to batch encode several files at once? I'm using an iMac with
OS X El Capitan. Here is the command line that I use in terminal.

ffmpeg -ss 6 -i "title".mov -vcodec prores -acodec pcm_s24le "title_Prores".mov

--
mark scott | video distribution

1722 routh street
suite 204
dallas, tx 75201
214-922-9222 t
972-740-4734 c


charlieuniformtango.com
_______________________________________________
ffmpeg-user mailing list
[hidden email]
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: Can I Batch Encode with ffmpeg on Mac?

Lou Logan
On Fri, Jan 18, 2019, at 2:10 PM, Mark Scott wrote:

> Hello,
> First off, I need to say that I'm very new to ffmpeg. I do not have
> much experience with writing command lines or scripts so please excuse
> me if I don't understand the terminology. I have figured out how to
> encode uncompressed .mov files to cut off the first few seconds of the
> video, and convert it to ProRes codec. Is there a way to automate the
> process to batch encode several files at once? I'm using an iMac with
> OS X El Capitan. Here is the command line that I use in terminal.
>
> ffmpeg -ss 6 -i "title".mov -vcodec prores -acodec pcm_s24le "title_Prores".mov

That's more of a shell scripting question, but anyway:

mkdir outputs
for f in *.mov; do ffmpeg -ss 6 -i "$f" -c:v prores -c:a pcm_s24le "outputs/${f%.*}_Prores.mov"; done
_______________________________________________
ffmpeg-user mailing list
[hidden email]
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: Can I Batch Encode with ffmpeg on Mac?

Mark Scott
That worked! Thank you so much!

On Fri, Jan 18, 2019 at 5:32 PM Lou Logan <[hidden email]> wrote:

> On Fri, Jan 18, 2019, at 2:10 PM, Mark Scott wrote:
> > Hello,
> > First off, I need to say that I'm very new to ffmpeg. I do not have
> > much experience with writing command lines or scripts so please excuse
> > me if I don't understand the terminology. I have figured out how to
> > encode uncompressed .mov files to cut off the first few seconds of the
> > video, and convert it to ProRes codec. Is there a way to automate the
> > process to batch encode several files at once? I'm using an iMac with
> > OS X El Capitan. Here is the command line that I use in terminal.
> >
> > ffmpeg -ss 6 -i "title".mov -vcodec prores -acodec pcm_s24le
> "title_Prores".mov
>
> That's more of a shell scripting question, but anyway:
>
> mkdir outputs
> for f in *.mov; do ffmpeg -ss 6 -i "$f" -c:v prores -c:a pcm_s24le
> "outputs/${f%.*}_Prores.mov"; done
> _______________________________________________
> ffmpeg-user mailing list
> [hidden email]
> http://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
> To unsubscribe, visit link above, or email
> [hidden email] with subject "unsubscribe".



--
mark scott | video distribution
<http://www.charlieuniformtango.com/>
1722 routh street
suite 204
dallas, tx 75201
214-922-9222 t
972-740-4734 c

<https://www.facebook.com/charlieuniformtango/>
<http://twitter.com/CUTango>
<http://instagram.com/charlieuniformtango>
charlie <http://www.charlieuniformtango.com/>uniform
<http://www.charlieuniformtango.com/>tango
<http://www.charlieuniformtango.com/>.com
<http://www.charlieuniformtango.com/>
_______________________________________________
ffmpeg-user mailing list
[hidden email]
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".