The Little Guy Posted February 10, 2008 Share Posted February 10, 2008 I would really like #2 to be answered the most... 1. Is there a way to get the length of an audio file? 2. Ok, When ever I pass a value containing an ampersand, for some reason the file fails. $flvName // this variable contains the ampersand - it creates the file but i can not play it - it doesn't create the thumb image - it does save the file in the database Create the flv file: exec("/usr/bin/ffmpeg -i '../../tzfiles.com/users/{$_POST['uploadTo']}/$fName' -sameq -qmax 5 -s 640x480 '../../tzfiles.com/users/{$_POST['uploadTo']}/$flvName'"); Create a Thumb: exec("ffmpeg -i '../../tzfiles.com/users/{$_POST['uploadTo']}/$flvName' -an -ss 00:00:03 -t 00:00:01 -r 1 -y -s 120x90 '../../tzfiles.com/users/{$_POST['uploadTo']}/thumbs/videos/$f%d.jpg'"); Quote Link to comment Share on other sites More sharing options...
mem0ri Posted February 10, 2008 Share Posted February 10, 2008 I'm not sure exactly how the interaction with your file works from the user-interface, but the ampersand is a special character in a URL and can result in incomplete url-requests if you're expecting to include the ampersand character in the URL name. You will want to use rawurlencode / rawurldecode in order to get around that difficulty. Quote Link to comment Share on other sites More sharing options...
The Little Guy Posted February 10, 2008 Author Share Posted February 10, 2008 I am using it to upload a video, then converting the video to a flv file to play in a flash player. Quote Link to comment Share on other sites More sharing options...
trq Posted February 10, 2008 Share Posted February 10, 2008 Don't use ambersands in file names, they have special meaning to the shell. reoplace them with something else prior. Quote Link to comment Share on other sites More sharing options...
The Little Guy Posted February 10, 2008 Author Share Posted February 10, 2008 OK, I converted the & symbols to the word "and" and it works! now, anyone have any info on my first question? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.