[FFmpeg-user] Astats multitrack audio
MediaStream
mediastream at gmail.com
Wed Jul 30 21:37:16 EEST 2025
Greetings and Salutations!
Have two audio tracks in SRT feed, sometimes more, sometimes less,
sometimes 2.0, 4.0 or 5.1 channels.
Is there any method to ID audio tracks in astat report?
`ffmpeg -i "srt://foo/bar" -map 0:a -af
"astats=metadata=1:reset=1:measure_perchannel=RMS_peak:measure_overall=RMS_peak,ametadata=print"
-f null /dev/null`
Already am doing FFprobe, then `-filter_complex "[0:a:0]...[0:a:X]..."` and
it works, but is cumbersome, as each SRT session init takes 4-5 sec. Trying
to use just an `-af astat..`, but fail to link astat report to audio track
ID/PID.
https://pastes.io/ffmpeg-711-astats
lines:3117-3128
`
[Parsed_astats_2 @ 0x60000131c240] Channel: 1
[Parsed_astats_2 @ 0x60000131c240] RMS peak dB: -39.055850
[Parsed_astats_2 @ 0x60000131c240] Channel: 2
[Parsed_astats_2 @ 0x60000131c240] RMS peak dB: -38.042769
[Parsed_astats_2 @ 0x60000131c240] Overall
[Parsed_astats_2 @ 0x60000131c240] RMS peak dB: -38.042769
[Parsed_astats_2 @ 0x600001318180] Channel: 1
[Parsed_astats_2 @ 0x600001318180] RMS peak dB: -28.492663
[Parsed_astats_2 @ 0x600001318180] Channel: 2
[Parsed_astats_2 @ 0x600001318180] RMS peak dB: -31.100664
[Parsed_astats_2 @ 0x600001318180] Overall
[Parsed_astats_2 @ 0x600001318180] RMS peak dB: -28.492663
`
Basically can I link 0x600001318180 to a channel ID 0x60000131c240?
Regards!
Dennis
More information about the ffmpeg-user
mailing list