Re: [FFmpeg-user] Decode ac3 from multichannel USB input

2023-10-28 Thread Fred Rotbart
Here is one of my many other attempts. It should be clear that I am a 
beginner with ffmpeg.


No matter what I try, ffmpeg seems to merge all the 32 USB channels into 6.

For example:

ffmpeg -ac 2 -c ac3 -loglevel debug -f avfoundation -i :2 -af 'pan=5.1' 
output.wav


Part of the output:

Splitting the commandline.
Reading option '-ac' ... matched as option 'ac' (set number of audio 
channels) with argument '2'.
Reading option '-c' ... matched as option 'c' (codec name) with argument 
'ac3'.
Reading option '-loglevel' ... matched as option 'loglevel' (set logging 
level) with argument 'debug'.
Reading option '-f' ... matched as option 'f' (force format) with 
argument 'avfoundation'.

Reading option '-i' ... matched as input url with argument ':2'.
Reading option '-af' ... matched as option 'af' (set audio filters) with 
argument 'pan=5.1'.

Reading option 'output.wav' ... matched as output url.
Finished splitting the commandline.
Parsing a group of options: global .
Applying option loglevel (set logging level) with argument debug.
Successfully parsed a group of options.
Parsing a group of options: input url :2.
Applying option ac (set number of audio channels) with argument 2.
Applying option c (codec name) with argument ac3.
Applying option f (force format) with argument avfoundation.
Successfully parsed a group of options.
Opening an input file: :2.
[avfoundation @ 0x7f96400041c0] audio device 'Digiface USB (24162724)' 
opened
For transform of length 128, inverse, mdct_float, flags: [aligned, 
out_of_place], found 3 matches:
    1: mdct_inv_float_avx2 - type: mdct_float, len: [16, ∞], 
factors[2]: [2, any], flags: [aligned, out_of_place, inv_only], prio: 544
    2: mdct_inv_float_c - type: mdct_float, len: [2, ∞], factors[2]: 
[2, any], flags: [unaligned, out_of_place, inv_only], prio: 96
    3: mdct_naive_inv_float_c - type: mdct_float, len: [2, ∞], 
factors[2]: [2, any], flags: [unaligned, out_of_place, inv_only], prio: 
-130976
For transform of length 64, inverse, fft_float, flags: [aligned, 
inplace, preshuf, asm_call], found 3 matches:
    1: fft_sr_asm_float_avx2 - type: fft_float, len: [64, 131072], 
factor: 2, flags: [aligned, inplace, out_of_place, preshuf, asm_call], 
prio: 480
    2: fft_sr_asm_float_fma3 - type: fft_float, len: [64, 131072], 
factor: 2, flags: [aligned, inplace, out_of_place, preshuf, asm_call], 
prio: 448
    3: fft_sr_asm_float_avx - type: fft_float, len: [64, 131072], 
factor: 2, flags: [aligned, inplace, out_of_place, preshuf, asm_call], 
prio: 416

Transform tree:
    mdct_inv_float_avx2 - type: mdct_float, len: 128, factors[2]: [2, 
any], flags: [aligned, out_of_place, inv_only]
    fft_sr_asm_float_avx2 - type: fft_float, len: 64, factor: 2, 
flags: [aligned, inplace, out_of_place, preshuf, asm_call]
For transform of length 256, inverse, mdct_float, flags: [aligned, 
out_of_place], found 3 matches:
    1: mdct_inv_float_avx2 - type: mdct_float, len: [16, ∞], 
factors[2]: [2, any], flags: [aligned, out_of_place, inv_only], prio: 544
    2: mdct_inv_float_c - type: mdct_float, len: [2, ∞], factors[2]: 
[2, any], flags: [unaligned, out_of_place, inv_only], prio: 96
    3: mdct_naive_inv_float_c - type: mdct_float, len: [2, ∞], 
factors[2]: [2, any], flags: [unaligned, out_of_place, inv_only], prio: 
-130976
For transform of length 128, inverse, fft_float, flags: [aligned, 
inplace, preshuf, asm_call], found 3 matches:
    1: fft_sr_asm_float_avx2 - type: fft_float, len: [64, 131072], 
factor: 2, flags: [aligned, inplace, out_of_place, preshuf, asm_call], 
prio: 480
    2: fft_sr_asm_float_fma3 - type: fft_float, len: [64, 131072], 
factor: 2, flags: [aligned, inplace, out_of_place, preshuf, asm_call], 
prio: 448
    3: fft_sr_asm_float_avx - type: fft_float, len: [64, 131072], 
factor: 2, flags: [aligned, inplace, out_of_place, preshuf, asm_call], 
prio: 416

Transform tree:
    mdct_inv_float_avx2 - type: mdct_float, len: 256, factors[2]: [2, 
any], flags: [aligned, out_of_place, inv_only]
    fft_sr_asm_float_avx2 - type: fft_float, len: 128, factor: 2, 
flags: [aligned, inplace, out_of_place, preshuf, asm_call]

[avfoundation @ 0x7f96400041c0] All info found
Input #0, avfoundation, from ':2':
  Duration: N/A, start: 1307454.032041, bitrate: N/A
  Stream #0:0, 1, 1/100: Audio: ac3, 44100 Hz, 32 channels, fltp
Successfully opened the file.
Parsing a group of options: output url output.wav.
Applying option af (set audio filters) with argument pan=5.1.
Successfully parsed a group of options.
Opening an output file: output.wav.
File 'output.wav' already exists. Overwrite? [y/N] y
[file @ 0x7f9640108000] Setting default whitelist 'file,crypto,data'
Successfully opened the file.
For transform of length 128, inverse, mdct_float, flags: [aligned, 
out_of_place], found 3 matches:
    1: mdct_inv_float_avx2 - type: mdct_float, len: [16, ∞], 
factors[2]: [2, any], flags: [aligned, out_of_place, inv_only], prio: 544
    2: mdct_inv_float_c - type: mdct_float, len: 

[FFmpeg-user] ffprobe duration difference between 5.1.3 and 6.0.

2023-10-28 Thread Yasuo Honda
ffprobe duration difference between 5.1.3 and 6.0.

Hi, This is my first email to ffmpeg-user mailing list.

I'd like to know if this is an expected behavior change between 5.1.4

This question is originally raised as Ruby on Rails issue
https://github.com/rails/rails/issues/49650

- Steps to reproduce
https://github.com/rails/rails/
cd rails
ffprobe -v error -show_format -show_streams
activestorage/test/fixtures/files/video_without_video_stream.mp4

- Expected result as ffprobe version 5.1.3

ffprobe version 5.1.3 installed at Red Hat Enterprise Linux release
9.2 (Plow), duration in [FORMAT] section is 1.022000.

```
$ ffprobe -v error -show_format -show_streams
activestorage/test/fixtures/files/video_without_video_stream.mp4
[STREAM]
... snip ...
duration=1.00
... snip ...
[/STREAM]
[FORMAT]
... snip ...
duration=1.022000
... snip ...
[/FORMAT]
$
```

- Actual behavior as `ffprobe version 6.0-6ubuntu1 installed at Ubuntu
23.10`, both duration are 1.00

```
$ ffprobe -v error -show_format -show_streams
activestorage/test/fixtures/files/video_without_video_stream.mp4
[STREAM]
... snip ...
duration=1.00
... snip ...
[/STREAM]
[FORMAT]
... snip ...
duration=1.00
... snip ...
[/FORMAT]
$
```

Please advise.
--
Yasuo Honda
___
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".