I have this script for enhancing the audio on movies or clips. so when I dropped a .mp4 clip on the script all i get is this below in the cmd window. anyone know why
Code:Audio processing, video is copied losslesly C:\ffmpeg-3.4-win64-static\bin\ShapeMaker: No such file or directory Press any key to continue . . .
this is the script I use
@setlocal
@echo Audio processing, video is copied losslesly
@rem folder where ffmpeg.exe is located
@set FF=C:\ffmpeg-3.4-win64-static\bin
@set PATH=%FF%;%PATH%
@set filename=%1
@rem audio bitrate
@set ab=192
@set aproc="pan=stereo|FL < FL+1.414FC+0.5BL+0.5SL+0.25LFE|FR < FR+1.414FC+0.5BR+0.5SR+0.25LFE,dynaudnorm=p=1/sqrt(2):m=100=20"
@ffmpeg.exe -hide_banner -v 32 -stats -y -i "%filename%" -c:v copy -af %aproc% -c:a aac -b:a %ab%k -f matroska "%~n1_dynaudio.mkv"
@endlocal
@pause
		
			+ Reply to Thread
			
		
		
		
			
	
	
				Results 1 to 8 of 8
			
		- 
	
- 
	Be careful in batch files with percent signs. Sometimes need 2 (%%) and sometimes not depending if its batch usage or program usage as part of ffmpeg line. %%A usage is also different than %1. 
 
 Also removing the @ signs and allowing lines to show complete output may help with errors.
- 
	Change this line in your script 
 toCode:@set filename=%1 
 and see if that helps.Code:@set filename=%~1 
- 
	I am a bit confused with this above I did remove all @ signs. but got a load of junk stuff 
 
 
 pandy
 Re: ffmpeg help not working
 
 Check if your C:\ffmpeg-3.4-win64-static\bin exist and if there is ffmpeg.exe in this folder.
 yes ffmpeg.exe is in that bin folder
 
 
 JVRaines
 Re: ffmpeg help not working
 
 Change this line in your script
 Code:
 @set filename=%1
 to
 Code:
 @set filename=%~1
 and see if that helps.
 I cant see how to make that symbol @set filename=%~1 after the % sign I think its called tidle not sure now
 
 
 EDIT: Silly me its LSHIFT and the # key like this ~ I just added that ~ symbol like you said between the % and the 1 so its like this @set filename=%~1
 
 now it works seem weird to me as it worked before that ~ was there, but its working now
 
 thanks so muchLast edited by loa909; 9th Jul 2018 at 10:49. 
- 
	
- 
	You're welcome. Here's why it works: If you drag-and-drop a file on this script and there are any spaces in the pathname, then Windows will surround the value with quote marks. Since you are also putting quotes around %filename% in the call to ffmpeg, you will end up with doubled quotes on each side, like this 
 ""C:\Users\Bozo\Desktop\My Lovely Video.mp4"" The doubled quotes are treated as empty strings, so the pathname is unquoted and ffmpeg breaks it up on the spaces. Thus, it sees only "C:\Users\Bozo\Desktop\My" as the input file.
 
 Using the tilda in %~1 tells the command processor to remove any surrounding quotes from the parameter. Then, it becomes properly quoted in your call to ffmpeg.
- 
	well many thanks to all of your replies but now I have added that symbol ~ its working fine. 
Similar Threads
- 
  ffmpeg drawtext not workingBy vhelp in forum ProgrammingReplies: 21Last Post: 5th Feb 2017, 22:34
- 
  Ffmpeg with http proxy not workingBy Karol in forum Video Streaming DownloadingReplies: 2Last Post: 23rd Nov 2016, 10:22
- 
  FFMpeg : List of working sample formats per format and encoder.By alexander121 in forum AudioReplies: 0Last Post: 31st Jul 2015, 13:17
- 
  MKV to MP4 video not working after FFMPEG copyBy contraplex in forum Video ConversionReplies: 3Last Post: 26th Jul 2015, 07:40
- 
  ffmpeg.exe has stoped workingBy downer in forum SVCD2DVD & VOB2MPGReplies: 33Last Post: 6th Aug 2014, 17:45


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

 Quote
 Quote 
			