Re: [FFmpeg-user] Amerge trouble

2017-11-22 Thread Paul B Mahol
On 11/21/17, Erik Dobberkau  wrote:
>> And after that promote it to 24 bits again.
>> Is there a way to force the channel split to work in 24 bits?
>> (No idea how to squeeze pcm_s24le into the filter_complex part...)
>>
>
> A more knowledgeable person than myself would need to jump in here.
>
> When I use "aformat=sample_fmts=s24" at the beginning of the filterchain,
> this results in an error.

Because such sample format does not exist.
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".

Re: [FFmpeg-user] Amerge trouble

2017-11-22 Thread Bouke / VideoToolShed


> On 22 Nov 2017, at 06:32, Gyan Doshi  wrote:
> 
> 
> 
> On 11/19/2017 6:09 PM, Bouke / VideoToolShed wrote:
> 
>>> ffmpeg -i HD422.mxf -i 8ch.wav -c:v copy -c:a pcm_s24le -filter_complex \
>>> "[1:a]channelsplit=channel_layout=7.1[a0][a1][a2][a3][a4][a5][a6][a7],\
>>> [a1][0:a:1][a0][0:a:0][0:a:2]amerge=inputs=5[a]" \
>>> -map 0:v -map "[a]" -timecode 01:00:00:00 testmerge01.mxf \
>>> -map "[a2]" -map "[a3]" -map "[a4]" -map "[a5]" -map "[a6]" -map "[a7]" -f
>>> null -
> 
>> And after that promote it to 24 bits again.
>> Is there a way to force the channel split to work in 24 bits?
>> (No idea how to squeeze pcm_s24le into the filter_complex part…)
> 
> The default audio codec for the null muxer is pcm_s16le, and your audio codec 
> option is only set for the first output, so add '-c:a pcm_s24le' anywhere 
> after the output mxf filename, and before the pipe character.

Hi Gyan,
AH! Stupid me, now I see only the unused channels (that go down the drain) are 
16 bits :-)
Thanks!

Bouke



> 
> Regards,
> Gyan
> ___
> ffmpeg-user mailing list
> ffmpeg-user@ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/ffmpeg-user
> 
> To unsubscribe, visit link above, or email
> ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".



signature.asc
Description: Message signed with OpenPGP using GPGMail
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".

Re: [FFmpeg-user] Amerge trouble

2017-11-21 Thread Gyan Doshi



On 11/19/2017 6:09 PM, Bouke / VideoToolShed wrote:


ffmpeg -i HD422.mxf -i 8ch.wav -c:v copy -c:a pcm_s24le -filter_complex \
"[1:a]channelsplit=channel_layout=7.1[a0][a1][a2][a3][a4][a5][a6][a7],\
[a1][0:a:1][a0][0:a:0][0:a:2]amerge=inputs=5[a]" \
-map 0:v -map "[a]" -timecode 01:00:00:00 testmerge01.mxf \
-map "[a2]" -map "[a3]" -map "[a4]" -map "[a5]" -map "[a6]" -map "[a7]" -f
null -



And after that promote it to 24 bits again.
Is there a way to force the channel split to work in 24 bits?
(No idea how to squeeze pcm_s24le into the filter_complex part…)


The default audio codec for the null muxer is pcm_s16le, and your audio 
codec option is only set for the first output, so add '-c:a pcm_s24le' 
anywhere after the output mxf filename, and before the pipe character.



Regards,
Gyan
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".

Re: [FFmpeg-user] Amerge trouble

2017-11-21 Thread Erik Dobberkau
> And after that promote it to 24 bits again.
> Is there a way to force the channel split to work in 24 bits?
> (No idea how to squeeze pcm_s24le into the filter_complex part…)
>

A more knowledgeable person than myself would need to jump in here.

When I use "aformat=sample_fmts=s24" at the beginning of the filterchain,
this results in an error.
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".

Re: [FFmpeg-user] Amerge trouble

2017-11-19 Thread Bouke / VideoToolShed
On 18 Nov 2017, at 17:24, Erik Dobberkau  wrote:
> 
> or if you want a single audio stream with 5 channels:
> 
> ffmpeg -i HD422.mxf -i 8ch.wav -c:v copy -c:a pcm_s24le -filter_complex \
> "[1:a]channelsplit=channel_layout=7.1[a0][a1][a2][a3][a4][a5][a6][a7],\
> [a1][0:a:1][a0][0:a:0][0:a:2]amerge=inputs=5[a]" \
> -map 0:v -map "[a]" -timecode 01:00:00:00 testmerge01.mxf \
> -map "[a2]" -map "[a3]" -map "[a4]" -map "[a5]" -map "[a6]" -map "[a7]" -f
> null -

Hi Eric,
Great (I would never have come up with the way of disposing unwanted channels.)
One problem though, It seems that FFmpeg pipes the channel split, but does so 
in 16 bits:

  Stream #1:0: Audio: pcm_s24le ([1][0][0][0] / 0x0001), 48000 Hz, 7.1, s32 (24 
bit), 9216 kb/s
Stream mapping:
  Stream #0:1 (pcm_s24le) -> amerge:in3
  Stream #0:2 (pcm_s24le) -> amerge:in1
  Stream #0:3 (pcm_s24le) -> amerge:in4
  Stream #1:0 (pcm_s24le) -> channelsplit
  Stream #0:0 -> #0:0 (copy)
  amerge -> Stream #0:1 (pcm_s24le)
  channelsplit:FC -> Stream #1:0 (pcm_s16le)
  channelsplit:LFE -> Stream #1:1 (pcm_s16le)
  channelsplit:BL -> Stream #1:2 (pcm_s16le)
  channelsplit:BR -> Stream #1:3 (pcm_s16le)
  channelsplit:SL -> Stream #1:4 (pcm_s16le)
  channelsplit:SR -> Stream #1:5 (pcm_s16le)

And after that promote it to 24 bits again.
Is there a way to force the channel split to work in 24 bits?
(No idea how to squeeze pcm_s24le into the filter_complex part…)

Bouke



signature.asc
Description: Message signed with OpenPGP using GPGMail
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".

Re: [FFmpeg-user] Amerge trouble

2017-11-18 Thread Erik Dobberkau
or if you want a single audio stream with 5 channels:

ffmpeg -i HD422.mxf -i 8ch.wav -c:v copy -c:a pcm_s24le -filter_complex \
"[1:a]channelsplit=channel_layout=7.1[a0][a1][a2][a3][a4][a5][a6][a7],\
[a1][0:a:1][a0][0:a:0][0:a:2]amerge=inputs=5[a]" \
-map 0:v -map "[a]" -timecode 01:00:00:00 testmerge01.mxf \
-map "[a2]" -map "[a3]" -map "[a4]" -map "[a5]" -map "[a6]" -map "[a7]" -f
null -
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".

Re: [FFmpeg-user] Amerge trouble

2017-11-18 Thread Erik Dobberkau
This works as intended:

ffmpeg -i HD422.mxf -i 8ch.wav -c:v copy -c:a pcm_s24le -filter_complex \
"[1:a]channelsplit=channel_layout=7.1[a0][a1][a2][a3][a4][a5][a6][a7]" \
-map 0:v -map "[a1]" -map 0:a:1 -map "[a0]" -map 0:a:0 -map 0:a:2 \
-timecode 01:00:00:00 testmerge00.mxf -map "[a2]" \
-map "[a3]" -map "[a4]" -map "[a5]" -map "[a6]" -map "[a7]" -f null -
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".

Re: [FFmpeg-user] Amerge trouble

2017-11-18 Thread Erik Dobberkau
2017-11-18 15:12 GMT+01:00 Bouke / VideoToolShed :

> Hi guys,
> Trying to do some audio patching from multiple input files, and output a
> QT or MXF with a poly soundtrack.
> Now this turns out to be a hell of a job, I can’t grasp the logic on how
> the patching works.
>
> Y\LTC_Convert\FF\ffmpeg -threads 1 -i V\!patch\test.mxf -ss 0. -i
> V\!patch\snd.wav -map 0:0 -filter_complex "[1:a][0:a:2][1:a][0:a:1][0:a:
> 3]amerge=inputs=5,pan=5c|c0=c9|c1=c1|c2=c8|c3=c0|c4=c2[a]" -map "[a]" -ca
> pcm_s24le -cv copy -timecode 01:00:00:00 -y V\!patch\active\test.mxf"
>
> FFmpeg returns:
> Stream mapping:
>   Stream #0:2 (pcm_s24le) -> amerge:in3
>   Stream #0:3 (pcm_s24le) -> amerge:in1
>   Stream #0:4 (pcm_s24le) -> amerge:in4
>   Stream #1:0 (pcm_s24le) -> amerge:in0
>   Stream #1:0 (pcm_s24le) -> amerge:in2
>
> This looks all good, so the problem must be in how I define the pan, but
> for the life of me I can’t understand how the numbers work.
> It seems (by other tests) that the input track up numbers based on what is
> already set, but it’s still erratic..
>
> I would expect to get (output = from input file)
> sndTrack 0 = snd.wav 2
> sndTrack 1 = test.mxf 2
> sndTrack 2 = snd.wav 1
> sndTrack 3 = test.mxf 1
> sndTrack 4 = test.mxf 3
>
> but, the result has channels mapped as
> sndTrack 0 = snd.wav 1
> sndTrack 1 = snd.wav 2
> sndTrack 2 = test.mxf 3
> sndTrack 3 = snd.wav 1
> sndTrack 4 = snd.wav 3
>
> Isn’t there a simple way to set the patching? Or, where is my logic off?
>
>
Hi Bouke,

I would have thought

-filter_complex "[1:a:1][0:a:1][1:a:0][0:a:0][0:a:2]amerge=inputs=5"

would get you what you want.

-filter_complex "[1:1][0:a:1][1:0][0:a:0][0:a:2]amerge=inputs=5"

should also work, as well as

-filter_complex "[1:1][0:2][1:0][0:1][0:3]amerge=inputs=5"

No pan filter required, if you require one output stream with 5 audio
channels.

If you specifiy audio by using "a", you need to start counting from zero.
If you omit "a", the stream number depends on the arrangement of streams in
the file.


Best regards,
Erik
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".

Re: [FFmpeg-user] Amerge trouble

2017-11-18 Thread Gyan Doshi


On 11/18/2017 7:42 PM, Bouke / VideoToolShed wrote:


Stream mapping:
   Stream #0:2 (pcm_s24le) -> amerge:in3
   Stream #0:3 (pcm_s24le) -> amerge:in1
   Stream #0:4 (pcm_s24le) -> amerge:in4
   Stream #1:0 (pcm_s24le) -> amerge:in0
   Stream #1:0 (pcm_s24le) -> amerge:in2

but, the result has channels mapped as
sndTrack 0 = snd.wav 1
sndTrack 1 = snd.wav 2
sndTrack 2 = test.mxf 3
sndTrack 3 = snd.wav 1
sndTrack 4 = snd.wav 3


It's as expected. amerge output channel order, in this case, will be the 
channels laid out in input order ( [1:a][0:a:2][1:a][0:a:1][0:a:3] ) 
i.e. all channels of [1:a], followed by [0:a:2], followed by a repeat of 
[1:a] and so on.


Regards,
Gyan
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".