I would like to obtain from the code the reading of the name of the audio channel corresponding to the output of the PC sound card
For those interested in PC video and audio recording,
see this post
The audio channel name which will then be used in the code described below
Dim par As List
par.Initialize
par.Add("-f")
par.Add("gdigrab")
par.Add("-framerate")
par.Add("25")
If width1>100 And height1>100 Then
par.Add("-offset_x")
par.Add(left1.As(String))
par.Add("-offset_y")
par.Add(top1.As(String))
par.Add("-video_size")
par.Add(width1.As(String) & "x" & height1.As(String))
'par.Add("-show_region")
'par.Add("1")
End If
par.Add("-i")
par.Add("desktop")
par.Add("-f") 'May be dshow
par.Add("dshow") 'not working at your PC - remove these two lines...
par.Add("-vcodec")
par.Add("libx264")
'par.Add("-movflags")
'par.Add("empty_moov")
par.Add("-f") 'add audio source
par.Add("dshow")
-->> par.Add("audio=" & quote & "Stereo-Mix" & quote ) 'Not sure if at your pc is Stereo-Mix or something different... this always changes from language/region settings
par.Add("-f")
par.Add("mp4")
par.Add(QUOTE & CaptureFolder & "\" & CaptureFileName & QUOTE) 'at pipe... or - ??? hmmm
arun("ffmpeg.exe",par)
So the question is: how to read, from the B4J code, the name of the audio channel corresponding to the PC's sound card output?