I am trying to get the channel layout of a multi-channel file, rather than 5.1, I want to see the layout, such as:
FL+FR+LFE+FLC+FRC+SL+SR
Does anyone know how to get the layout via CLI??
Thanks!
Andrew
+ Reply to Thread
Results 1 to 6 of 6
-
-
I don't know about a CLI, not part of my knowledge base but you could do it in Audacity or any other similar full sound editors.
SONY 75" Full array 200Hz LED TV, Yamaha A1070 amp, Zidoo UHD3000, BeyonWiz PVR V2 (Enigma2 clone), Chromecast, Windows 11 Professional, QNAP NAS TS851 -
I suspect that this may be helpful.
https://forum.videohelp.com/threads/377474-How-to-see-a-5-1-file-s-channel-layout-Chan...eg#post2436851 -
The Standard Layout for 5.1 is:
FL+FR+FC+LFE+BL+BR
You can change the channels position with clever FFmpeg-GUI.
[Attachment 71906 - Click to enlarge]Last edited by ProWo; 22nd Jun 2023 at 09:10. Reason: picture added
-
You can do this indirectly - modified one of my scripts - you can modify it freely.
It shows information for stream (track) but also on frame basis as some audio codecs may dynamically change channel layout during time.
Code:@setlocal @REM Where to Find ffmpeg @set FFMPG=%CD% @set PATH=%FFMPG%;%PATH% @SET file=%1 @SET fname=%~n1 @echo off @ffprobe.exe -hide_banner -v 32 -select_streams a -i %file% -show_format > "%fname%.csv" @echo: >> "%fname%.csv" @echo - - - - - - - - - - - - - %file% - streams - - - - - - - - >> "%fname%.csv" @echo: >> "%fname%.csv" @ffprobe.exe -hide_banner -v 32 -select_streams a -i %file% -show_streams >> "%fname%.csv" @echo: >> "%fname%.csv" @echo - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - >> "%fname%.csv" @echo: >> "%fname%.csv" @ffmpeg.exe -hide_banner -layouts >> "%fname%.csv" @echo: >> "%fname%.csv" @echo - - - - - - - - - - - - - %file% - channels,channel_layout >> "%fname%.csv" @echo: >> "%fname%.csv" @echo type,channels,channel_layout, >> "%fname%.csv" @echo: >> "%fname%.csv" @ffprobe -hide_banner -v 32 -select_streams a -i %file% -show_entries "frame=channels,channel_layout" -of csv >> "%fname%.csv" @echo - - - - - - - - - - - - - -EOF- - - - - - - - - - - - - - - >> "%fname%.csv" @endlocal @pause
btw 2 - seem character chr(255) (blank square i.e. (alt+255) ) is replaced by '*' sign
never mind, replaced it by something compatible with forum engineLast edited by pandy; 22nd Jun 2023 at 16:22.
Similar Threads
-
Converting to AAC 5.1 / 7.1 with ffmpeg changes channel layout
By vash1 in forum Newbie / General discussionsReplies: 52Last Post: 16th May 2025, 23:31 -
ffmpeg/ffprobe will not load manifest
By Chris91 in forum Video Streaming DownloadingReplies: 7Last Post: 25th Jun 2023, 09:49 -
Let me know the exact syntax of either ffprobe or ffmpeg to know if all the
By jraju in forum Newbie / General discussionsReplies: 32Last Post: 20th Mar 2021, 21:45 -
How do I pass values from FFProbe to FFmpeg?
By Bassquake in forum ProgrammingReplies: 12Last Post: 10th Feb 2021, 09:39 -
ffmpeg vs ffprobe frame count speed
By Anime4000 in forum Newbie / General discussionsReplies: 6Last Post: 12th May 2019, 05:05