Need to Make ProRes HQ video file with 5.1 audio using ffmpeg

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

Need to Make ProRes HQ video file with 5.1 audio using ffmpeg

Mark Scott
Hello,
I'm having trouble understanding audio mapping. I have a master .mov
file with 6 Mono tracks plus a stereo track. Per my customer
requirements, the output file needs to be ProRes HQ .mov  with the
audio configuration to be: 1-Left, 2-Right, 3-Center, 4-LFE, 5-Left
Surround, 6-Right Surround, plus Ch.7&8 Stereo. I'm not very
experienced with command line operations so please excuse me if I'm
not familiar with the terminology. Using ffmpeg version.
N-91273-g67747c89ad

I'm on a mac with OS X el Capitan. I can type the following command
into terminal but my output file only contains the Stereo audio track.
If someone tell me how to modify this command it would be greatly
appreciated.

ffmpeg -i master.mov -c:v prores -profile:v 3 -acodec pcm_s24le ProResHQ.mov
_______________________________________________
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: Need to Make ProRes HQ video file with 5.1 audio using ffmpeg

Lou Logan
On Mon, Jan 21, 2019, at 3:12 PM, Mark Scott wrote:
> Hello,
> I'm having trouble understanding audio mapping. I have a master .mov
> file with 6 Mono tracks plus a stereo track. Per my customer
> requirements, the output file needs to be ProRes HQ .mov  with the
> audio configuration to be: 1-Left, 2-Right, 3-Center, 4-LFE, 5-Left
> Surround, 6-Right Surround, plus Ch.7&8 Stereo.

You can use the amerge filter to choose which stream goes where in the layout, then use -map to choose the video, the output from amerge, and the stereo stream:

  ffmpeg -i input -filter_complex "[0:a:0][0:a:1][0:a:2][0:a:3][0:a:4][0:a:5]amerge=inputs=6[a]" -map 0:v -map "[a]" -map 0:a:6 -c:v prores -profile:v 3 -c:a pcm_s24le ProResHQ.mov

See "ffmpeg -layouts" for a list of standard channel layouts.

If your video is already ProRes HQ then change "-c:v prores" to "-c:v copy".

https://ffmpeg.org/ffmpeg-filters.html#amerge
https://trac.ffmpeg.org/wiki/AudioChannelManipulation#a6mono5.1
https://ffmpeg.org/ffmpeg.html#Advanced-options
_______________________________________________
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: Need to Make ProRes HQ video file with 5.1 audio using ffmpeg

Mark Scott
Thank you. I copied and pasted the command line that you suggested, but got
the error message. Input: No such file or directory. Then as a test I ran
my original command and it worked, just with the wrong audio. Here's a
screenshot with the information. I'll look at the links that you provided.

[image: Screen Shot 2019-01-21 at 8.05.30 PM.png]

On Mon, Jan 21, 2019 at 7:11 PM Lou Logan <[hidden email]> wrote:

>
> You can use the amerge filter to choose which stream goes where in the
> layout, then use -map to choose the video, the output from amerge, and the
> stereo stream:
>
>   ffmpeg -i input -filter_complex
> "[0:a:0][0:a:1][0:a:2][0:a:3][0:a:4][0:a:5]amerge=inputs=6[a]" -map 0:v
> -map "[a]" -map 0:a:6 -c:v prores -profile:v 3 -c:a pcm_s24le ProResHQ.mov
>
> See "ffmpeg -layouts" for a list of standard channel layouts.
>
> If your video is already ProRes HQ then change "-c:v prores" to "-c:v
> copy".
>
> https://ffmpeg.org/ffmpeg-filters.html#amerge
> https://trac.ffmpeg.org/wiki/AudioChannelManipulation#a6mono5.1
> https://ffmpeg.org/ffmpeg.html#Advanced-options
> _______________________________________________
> 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".

Screen Shot 2019-01-21 at 8.05.30 PM.png (103K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Need to Make ProRes HQ video file with 5.1 audio using ffmpeg

Lou Logan
On Mon, Jan 21, 2019, at 5:11 PM, Mark Scott wrote:
> Thank you. I copied and pasted the command line that you suggested, but got
> the error message. Input: No such file or directory. Then as a test I ran
> my original command and it worked, just with the wrong audio. Here's a
> screenshot with the information. I'll look at the links that you provided.
>
> [image: Screen Shot 2019-01-21 at 8.05.30 PM.png]

Replace "input" with your actual input file name. I guess in this case it is "master.mov".

Next time please copy and paste the console text instead of making images of the text.
_______________________________________________
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: Need to Make ProRes HQ video file with 5.1 audio using ffmpeg

Mark Scott
That worked! Thank you so much

On Mon, Jan 21, 2019 at 8:15 PM Lou Logan <[hidden email]> wrote:

>
> Replace "input" with your actual input file name. I guess in this case it
> is "master.mov".
>
> Next time please copy and paste the console text instead of making images
> of the text.
> _______________________________________________
> 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".