I've been looking in to escaped characters and have tried: $CroppingValues = "crop=848\:384\:4\:32" I would like to get the last block of code working. I posted the other lines of faulty code because it might aid in solving as to "why" some variables are being accepted by ffmpeg command and others are not. $cmd = "$ffmpeg -i $VideoFilename -vf $CroppingValues $CroppedVideoFilename" Or $cmd = "$ffmpeg -i C:/Videos/VideoFile_1.mp4 -vf crop=848:352:4:64 C:/Videos/VideoFile_1_Cropped.mp4" Īnd especially what I'm trying to get going is: $CroppingValues = "crop=848:384:4:32" Or $cmd = "ffmpeg.exe -i C:/Videos/VideoFile_1.mp4 -vf crop=848:352:4:64 $CroppedVideoFilename" However, the following will not work: $cmd = "ffmpeg.exe -i $VideoFilename -vf crop=848:352:4:64 $CroppedVideoFilename" Which seems to work well it creates a cropped video. I have the following line of code in PHP: $cmd = "$ffmpeg -i $VideoFilename -vf crop=848:352:4:64 $CroppedVideoFilename" $CroppedVideoFilename= "C:/Videos/VideoFile_1_Cropped.mp4" $VideoFilename = "C:/Videos/VideoFile_1.mp4" I have the following variables set in PHP: $ffmpeg = ffmpeg.exe
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |