Re: [FFmpeg-user] 7.1 wave filter complex amerge issue

2021-01-24 Thread Bouke


> On 24 Jan 2021, at 11:44, Paul B Mahol  wrote:
> 
> On Sun, Jan 24, 2021 at 11:39 AM Bouke  > wrote:
> 
>> 
>> 
>>> On 24 Jan 2021, at 11:29, Paul B Mahol >> > wrote:
>>> 
>>> On Sun, Jan 24, 2021 at 11:26 AM Bouke >>  > bo...@editb.nl>> wrote:
>>> 
 Trying to remap channels in a 7.1 Wave file, but that gives me a strange
 error.
 
 (I’ve reduced my lines to the most simple to reproduce.)
 
 When I use the same input file, but do a 5.1 remap it works as expected:
 /Applications/ffmpeg -i /Volumes/Data/LC_testfiles/8chan.wav
 -filter_complex
 
>> "[0:0][0:0][0:0][0:0][0:0][0:0]amerge=inputs=6,pan=5.1|c0=c0|c1=c1|c2=c2|c3=c3|c4=c4|c5=c5|[mix]"
 -map "[mix]" -f null -
 
 BUT, with 7.1 it fails
 /Applications/ffmpeg -i /Volumes/Data/LC_testfiles/8chan.wav
 -filter_complex
 
>> "[0:0][0:0][0:0][0:0][0:0][0:0][0:0][0:0]amerge=inputs=8,pan=7.1|c0=c0|c1=c1|c2=c2|c3=c3|c4=c4|c5=c5|c6=c6|c7=c7|[mix]"
 -map "[mix]" -f null -
 
 Is it me, or is this a bug?
 
 Bouke
 
 
>>> 
>>> I thought you gonna amerge mono channels into 7.1, but you use already
>> 7.1
>>> input.
>>> 
>> 
>> Yes, I know. This is the simplest way of showing that there is something
>> strange going on.
>> The aim is to do a channel remap to get a correct channel layout for the
>> R128 filter for eg
>> So the mapping can be different, and could be something like:
>> -filter_complex
>> "[0:0][0:0][0:0][0:0][0:0][0:0][0:0][0:0]amerge=inputs=8,pan=7.1|c0=c0|c1=c2|c2=c1|c3=c4|c4=c5|c5=c6|c6=c7|c7=c3|[mix];[mix]ebur128=peak=true"
>> -f null -
>> 
> 
> amerge filter merges channels, so if inputs have 8 channels each, output
> will have 64 channels.
> I think the limitation is there because channels layouts have support for
> limited number of channels, and 64 channels are definitely not supported by
> some filters because libswresample will not convert to different sample
> format because of unknown layout of 64 channels input.


AHA! (well, it does it internal, as if I redirect the output to a file, I end 
up with the amount of channels as set.)
BUT, the error now makes sense, and if I swap out amerge with amix it seems to 
work as expected!

Thanks!

Bouke




>> 
>> Bouke
>> 
>>> 
 Failed to inject frame into filter network: Invalid argument
 Error while processing the decoded data for stream #0:0
 Conversion failed!
 ___
 ffmpeg-user mailing list
 ffmpeg-user@ffmpeg.org  
 >
 https://ffmpeg.org/mailman/listinfo/ffmpeg-user 
  <
>> https://ffmpeg.org/mailman/listinfo/ffmpeg-user 
>> >
 
 To unsubscribe, visit link above, or email
 ffmpeg-user-requ...@ffmpeg.org  
 >
>> with subject "unsubscribe".
>>> ___
>>> ffmpeg-user mailing list
>>> ffmpeg-user@ffmpeg.org  
>>> >
>>> https://ffmpeg.org/mailman/listinfo/ffmpeg-user 
>>>  <
>> https://ffmpeg.org/mailman/listinfo/ffmpeg-user 
>> >
>>> 
>>> To unsubscribe, visit link above, or email
>>> ffmpeg-user-requ...@ffmpeg.org  
>>> >> >
>> with subject "unsubscribe".
>> 
>> ___
>> ffmpeg-user mailing list
>> ffmpeg-user@ffmpeg.org
>> https://ffmpeg.org/mailman/listinfo/ffmpeg-user
>> 
>> To unsubscribe, visit link above, or email
>> ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
> ___
> ffmpeg-user mailing list
> ffmpeg-user@ffmpeg.org
> https://ffmpeg.org/mailman/listinfo/ffmpeg-user
> 
> To unsubscribe, visit link above, or email
> ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".

___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

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

Re: [FFmpeg-user] 7.1 wave filter complex amerge issue

2021-01-24 Thread Paul B Mahol
On Sun, Jan 24, 2021 at 11:39 AM Bouke  wrote:

>
>
> > On 24 Jan 2021, at 11:29, Paul B Mahol  wrote:
> >
> > On Sun, Jan 24, 2021 at 11:26 AM Bouke  bo...@editb.nl>> wrote:
> >
> >> Trying to remap channels in a 7.1 Wave file, but that gives me a strange
> >> error.
> >>
> >> (I’ve reduced my lines to the most simple to reproduce.)
> >>
> >> When I use the same input file, but do a 5.1 remap it works as expected:
> >> /Applications/ffmpeg -i /Volumes/Data/LC_testfiles/8chan.wav
> >> -filter_complex
> >>
> "[0:0][0:0][0:0][0:0][0:0][0:0]amerge=inputs=6,pan=5.1|c0=c0|c1=c1|c2=c2|c3=c3|c4=c4|c5=c5|[mix]"
> >> -map "[mix]" -f null -
> >>
> >> BUT, with 7.1 it fails
> >> /Applications/ffmpeg -i /Volumes/Data/LC_testfiles/8chan.wav
> >> -filter_complex
> >>
> "[0:0][0:0][0:0][0:0][0:0][0:0][0:0][0:0]amerge=inputs=8,pan=7.1|c0=c0|c1=c1|c2=c2|c3=c3|c4=c4|c5=c5|c6=c6|c7=c7|[mix]"
> >> -map "[mix]" -f null -
> >>
> >> Is it me, or is this a bug?
> >>
> >> Bouke
> >>
> >>
> >
> > I thought you gonna amerge mono channels into 7.1, but you use already
> 7.1
> > input.
> >
>
> Yes, I know. This is the simplest way of showing that there is something
> strange going on.
> The aim is to do a channel remap to get a correct channel layout for the
> R128 filter for eg
> So the mapping can be different, and could be something like:
> -filter_complex
> "[0:0][0:0][0:0][0:0][0:0][0:0][0:0][0:0]amerge=inputs=8,pan=7.1|c0=c0|c1=c2|c2=c1|c3=c4|c4=c5|c5=c6|c6=c7|c7=c3|[mix];[mix]ebur128=peak=true"
> -f null -
>

amerge filter merges channels, so if inputs have 8 channels each, output
will have 64 channels.
I think the limitation is there because channels layouts have support for
limited number of channels, and 64 channels are definitely not supported by
some filters because libswresample will not convert to different sample
format because of unknown layout of 64 channels input.


>
> Bouke
>
> >
> >> Failed to inject frame into filter network: Invalid argument
> >> Error while processing the decoded data for stream #0:0
> >> Conversion failed!
> >> ___
> >> ffmpeg-user mailing list
> >> ffmpeg-user@ffmpeg.org 
> >> https://ffmpeg.org/mailman/listinfo/ffmpeg-user <
> https://ffmpeg.org/mailman/listinfo/ffmpeg-user>
> >>
> >> To unsubscribe, visit link above, or email
> >> ffmpeg-user-requ...@ffmpeg.org 
> with subject "unsubscribe".
> > ___
> > ffmpeg-user mailing list
> > ffmpeg-user@ffmpeg.org 
> > https://ffmpeg.org/mailman/listinfo/ffmpeg-user <
> https://ffmpeg.org/mailman/listinfo/ffmpeg-user>
> >
> > To unsubscribe, visit link above, or email
> > ffmpeg-user-requ...@ffmpeg.org 
> with subject "unsubscribe".
>
> ___
> ffmpeg-user mailing list
> ffmpeg-user@ffmpeg.org
> https://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
> To unsubscribe, visit link above, or email
> ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

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

Re: [FFmpeg-user] 7.1 wave filter complex amerge issue

2021-01-24 Thread Bouke


> On 24 Jan 2021, at 11:29, Paul B Mahol  wrote:
> 
> On Sun, Jan 24, 2021 at 11:26 AM Bouke  > wrote:
> 
>> Trying to remap channels in a 7.1 Wave file, but that gives me a strange
>> error.
>> 
>> (I’ve reduced my lines to the most simple to reproduce.)
>> 
>> When I use the same input file, but do a 5.1 remap it works as expected:
>> /Applications/ffmpeg -i /Volumes/Data/LC_testfiles/8chan.wav
>> -filter_complex
>> "[0:0][0:0][0:0][0:0][0:0][0:0]amerge=inputs=6,pan=5.1|c0=c0|c1=c1|c2=c2|c3=c3|c4=c4|c5=c5|[mix]"
>> -map "[mix]" -f null -
>> 
>> BUT, with 7.1 it fails
>> /Applications/ffmpeg -i /Volumes/Data/LC_testfiles/8chan.wav
>> -filter_complex
>> "[0:0][0:0][0:0][0:0][0:0][0:0][0:0][0:0]amerge=inputs=8,pan=7.1|c0=c0|c1=c1|c2=c2|c3=c3|c4=c4|c5=c5|c6=c6|c7=c7|[mix]"
>> -map "[mix]" -f null -
>> 
>> Is it me, or is this a bug?
>> 
>> Bouke
>> 
>> 
> 
> I thought you gonna amerge mono channels into 7.1, but you use already 7.1
> input.
> 

Yes, I know. This is the simplest way of showing that there is something 
strange going on.
The aim is to do a channel remap to get a correct channel layout for the R128 
filter for eg 
So the mapping can be different, and could be something like:
-filter_complex 
"[0:0][0:0][0:0][0:0][0:0][0:0][0:0][0:0]amerge=inputs=8,pan=7.1|c0=c0|c1=c2|c2=c1|c3=c4|c4=c5|c5=c6|c6=c7|c7=c3|[mix];[mix]ebur128=peak=true"
 -f null - 

Bouke

> 
>> Failed to inject frame into filter network: Invalid argument
>> Error while processing the decoded data for stream #0:0
>> Conversion failed!
>> ___
>> ffmpeg-user mailing list
>> ffmpeg-user@ffmpeg.org 
>> https://ffmpeg.org/mailman/listinfo/ffmpeg-user 
>> 
>> 
>> To unsubscribe, visit link above, or email
>> ffmpeg-user-requ...@ffmpeg.org  with 
>> subject "unsubscribe".
> ___
> ffmpeg-user mailing list
> ffmpeg-user@ffmpeg.org 
> https://ffmpeg.org/mailman/listinfo/ffmpeg-user 
> 
> 
> To unsubscribe, visit link above, or email
> ffmpeg-user-requ...@ffmpeg.org  with 
> subject "unsubscribe".

___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

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

Re: [FFmpeg-user] 7.1 wave filter complex amerge issue

2021-01-24 Thread Paul B Mahol
On Sun, Jan 24, 2021 at 11:26 AM Bouke  wrote:

> Trying to remap channels in a 7.1 Wave file, but that gives me a strange
> error.
>
> (I’ve reduced my lines to the most simple to reproduce.)
>
> When I use the same input file, but do a 5.1 remap it works as expected:
> /Applications/ffmpeg -i /Volumes/Data/LC_testfiles/8chan.wav
> -filter_complex
> "[0:0][0:0][0:0][0:0][0:0][0:0]amerge=inputs=6,pan=5.1|c0=c0|c1=c1|c2=c2|c3=c3|c4=c4|c5=c5|[mix]"
> -map "[mix]" -f null -
>
> BUT, with 7.1 it fails
> /Applications/ffmpeg -i /Volumes/Data/LC_testfiles/8chan.wav
> -filter_complex
> "[0:0][0:0][0:0][0:0][0:0][0:0][0:0][0:0]amerge=inputs=8,pan=7.1|c0=c0|c1=c1|c2=c2|c3=c3|c4=c4|c5=c5|c6=c6|c7=c7|[mix]"
> -map "[mix]" -f null -
>
> Is it me, or is this a bug?
>
> Bouke
>
> Output:
> ffmpeg version 4.3.1-tessus  https://evermeet.cx/ffmpeg/  Copyright (c)
> 2000-2020 the FFmpeg developers
>   built with Apple clang version 11.0.0 (clang-1100.0.33.17)
>   configuration: --cc=/usr/bin/clang --prefix=/opt/ffmpeg
> --extra-version=tessus --enable-avisynth --enable-fontconfig --enable-gpl
> --enable-libaom --enable-libass --enable-libbluray --enable-libdav1d
> --enable-libfreetype --enable-libgsm --enable-libmodplug
> --enable-libmp3lame --enable-libmysofa --enable-libopencore-amrnb
> --enable-libopencore-amrwb --enable-libopenh264 --enable-libopenjpeg
> --enable-libopus --enable-librubberband --enable-libshine
> --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libtheora
> --enable-libtwolame --enable-libvidstab --enable-libvmaf
> --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx
> --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265
> --enable-libxavs --enable-libxvid --enable-libzimg --enable-libzmq
> --enable-libzvbi --enable-version3 --pkg-config-flags=--static
> --disable-ffplay
>   libavutil  56. 51.100 / 56. 51.100
>   libavcodec 58. 91.100 / 58. 91.100
>   libavformat58. 45.100 / 58. 45.100
>   libavdevice58. 10.100 / 58. 10.100
>   libavfilter 7. 85.100 /  7. 85.100
>   libswscale  5.  7.100 /  5.  7.100
>   libswresample   3.  7.100 /  3.  7.100
>   libpostproc55.  7.100 / 55.  7.100
> Input #0, wav, from '/Volumes/Data/LC_testfiles/8chan.wav':
>   Metadata:
> encoded_by  : Pro Tools
> originator_reference: aaizN!wd5kQk
> date: 2021-01-22
> creation_time   : 16:15:18
> time_reference  : 0
> umid:
> 0x060A2B340101010501010F101300A2B90D6FE7648000E87D71677E54073C
>   Duration: 00:07:51.07, bitrate: 9264 kb/s
> Stream #0:0: Audio: pcm_s24le ([1][0][0][0] / 0x0001), 48000 Hz, 7.1,
> s32 (24 bit), 9216 kb/s
> Stream mapping:
>   Stream #0:0 (pcm_s24le) -> amerge:in0
>   Stream #0:0 (pcm_s24le) -> amerge:in1
>   Stream #0:0 (pcm_s24le) -> amerge:in2
>   Stream #0:0 (pcm_s24le) -> amerge:in3
>   Stream #0:0 (pcm_s24le) -> amerge:in4
>   Stream #0:0 (pcm_s24le) -> amerge:in5
>   Stream #0:0 (pcm_s24le) -> amerge:in6
>   Stream #0:0 (pcm_s24le) -> amerge:in7
>   pan -> Stream #0:0 (pcm_s16le)
> Press [q] to stop, [?] for help
> [Parsed_amerge_0 @ 0x7f8654504240] No channel layout for input 1
> [Parsed_amerge_0 @ 0x7f8654504240] Input channel layouts overlap: output
> layout will be determined by the number of distinct input channels
> [auto_resampler_0 @ 0x7f8654508300] [SWR @ 0x7f8655811000] Value
> 2147483647.00 for parameter 'ich' out of range [0 - 64]
> [auto_resampler_0 @ 0x7f8654508300] [SWR @ 0x7f8655811000] Value
> 2147483647.00 for parameter 'och' out of range [0 - 64]
> [auto_resampler_0 @ 0x7f8654508300] [SWR @ 0x7f8655811000] Input channel
> count and layout are unset
> [auto_resampler_0 @ 0x7f8654508300] Failed to configure output pad on
> auto_resampler_0
> Error reinitializing filters!
>

I thought you gonna amerge mono channels into 7.1, but you use already 7.1
input.


> Failed to inject frame into filter network: Invalid argument
> Error while processing the decoded data for stream #0:0
> Conversion failed!
> ___
> ffmpeg-user mailing list
> ffmpeg-user@ffmpeg.org
> https://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
> To unsubscribe, visit link above, or email
> ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

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

[FFmpeg-user] 7.1 wave filter complex amerge issue

2021-01-24 Thread Bouke
Trying to remap channels in a 7.1 Wave file, but that gives me a strange error.

(I’ve reduced my lines to the most simple to reproduce.)

When I use the same input file, but do a 5.1 remap it works as expected:
/Applications/ffmpeg -i /Volumes/Data/LC_testfiles/8chan.wav -filter_complex 
"[0:0][0:0][0:0][0:0][0:0][0:0]amerge=inputs=6,pan=5.1|c0=c0|c1=c1|c2=c2|c3=c3|c4=c4|c5=c5|[mix]"
 -map "[mix]" -f null - 

BUT, with 7.1 it fails
/Applications/ffmpeg -i /Volumes/Data/LC_testfiles/8chan.wav -filter_complex 
"[0:0][0:0][0:0][0:0][0:0][0:0][0:0][0:0]amerge=inputs=8,pan=7.1|c0=c0|c1=c1|c2=c2|c3=c3|c4=c4|c5=c5|c6=c6|c7=c7|[mix]"
 -map "[mix]" -f null - 

Is it me, or is this a bug?

Bouke

Output:
ffmpeg version 4.3.1-tessus  https://evermeet.cx/ffmpeg/  Copyright (c) 
2000-2020 the FFmpeg developers
  built with Apple clang version 11.0.0 (clang-1100.0.33.17)
  configuration: --cc=/usr/bin/clang --prefix=/opt/ffmpeg 
--extra-version=tessus --enable-avisynth --enable-fontconfig --enable-gpl 
--enable-libaom --enable-libass --enable-libbluray --enable-libdav1d 
--enable-libfreetype --enable-libgsm --enable-libmodplug --enable-libmp3lame 
--enable-libmysofa --enable-libopencore-amrnb --enable-libopencore-amrwb 
--enable-libopenh264 --enable-libopenjpeg --enable-libopus 
--enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr 
--enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvidstab 
--enable-libvmaf --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx 
--enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 
--enable-libxavs --enable-libxvid --enable-libzimg --enable-libzmq 
--enable-libzvbi --enable-version3 --pkg-config-flags=--static --disable-ffplay
  libavutil  56. 51.100 / 56. 51.100
  libavcodec 58. 91.100 / 58. 91.100
  libavformat58. 45.100 / 58. 45.100
  libavdevice58. 10.100 / 58. 10.100
  libavfilter 7. 85.100 /  7. 85.100
  libswscale  5.  7.100 /  5.  7.100
  libswresample   3.  7.100 /  3.  7.100
  libpostproc55.  7.100 / 55.  7.100
Input #0, wav, from '/Volumes/Data/LC_testfiles/8chan.wav':
  Metadata:
encoded_by  : Pro Tools
originator_reference: aaizN!wd5kQk
date: 2021-01-22
creation_time   : 16:15:18
time_reference  : 0
umid: 
0x060A2B340101010501010F101300A2B90D6FE7648000E87D71677E54073C
  Duration: 00:07:51.07, bitrate: 9264 kb/s
Stream #0:0: Audio: pcm_s24le ([1][0][0][0] / 0x0001), 48000 Hz, 7.1, s32 
(24 bit), 9216 kb/s
Stream mapping:
  Stream #0:0 (pcm_s24le) -> amerge:in0
  Stream #0:0 (pcm_s24le) -> amerge:in1
  Stream #0:0 (pcm_s24le) -> amerge:in2
  Stream #0:0 (pcm_s24le) -> amerge:in3
  Stream #0:0 (pcm_s24le) -> amerge:in4
  Stream #0:0 (pcm_s24le) -> amerge:in5
  Stream #0:0 (pcm_s24le) -> amerge:in6
  Stream #0:0 (pcm_s24le) -> amerge:in7
  pan -> Stream #0:0 (pcm_s16le)
Press [q] to stop, [?] for help
[Parsed_amerge_0 @ 0x7f8654504240] No channel layout for input 1
[Parsed_amerge_0 @ 0x7f8654504240] Input channel layouts overlap: output layout 
will be determined by the number of distinct input channels
[auto_resampler_0 @ 0x7f8654508300] [SWR @ 0x7f8655811000] Value 
2147483647.00 for parameter 'ich' out of range [0 - 64]
[auto_resampler_0 @ 0x7f8654508300] [SWR @ 0x7f8655811000] Value 
2147483647.00 for parameter 'och' out of range [0 - 64]
[auto_resampler_0 @ 0x7f8654508300] [SWR @ 0x7f8655811000] Input channel count 
and layout are unset
[auto_resampler_0 @ 0x7f8654508300] Failed to configure output pad on 
auto_resampler_0
Error reinitializing filters!
Failed to inject frame into filter network: Invalid argument
Error while processing the decoded data for stream #0:0
Conversion failed!
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

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