Recently I upgraded my FFMPEG, FFPLAY, and FFPROBE and when I used FFPLAY to preview an FFMPEG script, it played the video without audio and got a "WASAPI can't initialize audio client error" error. Returning to an old version eliminated this error.
Searching the internet for this error I found multiple references to a workaround but I cannot find how this is done or why it needs to be done since my Windows 7 did not have this error in the earlier version and nothing has been changed as far as the audio is concerned.
Does anyone know how or why I can/should change my drivers and how this would be done. I have a Sound Blaster card and a Sound Blaster GUI to control the audio but there is no reference to setting to direct sound.???A workaround is to specify an alternate output driver. Set SDL_AUDIODRIVER environment variable value to the driver you want to use. Under windows 7, directsound and winmm both solved my issue.
Thanks
Budman111
		
			+ Reply to Thread
			
		
		
		
			
	
	
				Results 1 to 5 of 5
			
		- 
	
- 
	Same issue on my side - didn't try to solve it so can't help right now - will try later to check some hints. 
 Seem issue is quite old:
 https://ffmpeg.zeranoe.com/forum/viewtopic.php?t=5192
 https://stackoverflow.com/questions/46835811/ffplay-wasapi-cant-initialize-audio-clien...g-3-4-binaries
 https://trac.ffmpeg.org/ticket/6891
- 
	It isn't a problem with your soundcard driver. FFPLAY defaults to WASAPI, one of several audio interfaces in Windows, and has a bug that prevents it from initializing. I've been using the mentioned workaround for a while. 
 
 At a command prompt type:
 which forces FFPLAY to use directsound instead of WASAPI in the current session only.Code:set SDL_AUDIODRIVER=directsound 
 To set it permanently, at least until FFPLAY is fixed:
 Code:setx SDL_AUDIODRIVER directsound PB
- 
	@autodidact... thanks for the explanation and the fix. Exactly what i needed. Since I run the ffplay preview from a script I should be able to add it to the script generating code. 
 
 I also assume that since it is only for that session, it should not mess up any other program using audio??
 Thanks again.
- 
	
Similar Threads
- 
  How to play 5.1 audio over optical cable with ffplay?By arthurm in forum Software PlayingReplies: 5Last Post: 24th Sep 2016, 00:36
- 
  RTMPDump error? "HandShake: Type mismatch: client sent 6, server answered 8By nobodyhome in forum Video Streaming DownloadingReplies: 0Last Post: 9th Apr 2016, 00:45
- 
  Trying to download a m3u8 video from an app; 403 Client Error: ForbiddenBy thenerdal in forum Video Streaming DownloadingReplies: 1Last Post: 19th Dec 2015, 04:57
- 
  "403 Client error: Access denied" problemBy ekekezz in forum Video Streaming DownloadingReplies: 2Last Post: 31st Jul 2015, 19:28
- 
  ffplay output-what is aq?By Punchcard in forum AudioReplies: 2Last Post: 31st Jul 2014, 15:12


 
		
		 View Profile
				View Profile
			 View Forum Posts
				View Forum Posts
			 Private Message
				Private Message
			 
 
			
			 
			

 Quote
 Quote