Welcome Guest, Not a member yet? Register   Sign In
clip an uploaded song?
#21

[eluser]newbie boy[/eluser]
really, how sad...
#22

[eluser]newbie boy[/eluser]
TheFuzzy0ne,

by the way...

i am the web host...
#23

[eluser]newbie boy[/eluser]
i had this error when i install again the ffmpeg...

unable to find a suitable output format for 'ui'

someone?
#24

[eluser]newbie boy[/eluser]
this one works...

Code:
exec('C:\ffmpeg\ffmpeg -t 30 -acodec copy -i C:\music\input_song.mp3 C:\music\output_song.mp3');

but when i'm passing the audio file to a variable like...

Code:
exec('C:\wamp\bin\ffmpeg\bin\ffmpeg -t 30 -acodec copy -i $inputfile $outputfile')

it doesn't work...

appreciate the help guys...
#25

[eluser]Dam1an[/eluser]
It's because you're using single quotes, which means it takes the literal string, instead of the value of any variables
Either use double quotes or use string concatenation
#26

[eluser]helmutbjorg[/eluser]
Just an idea for you to try. Perhaps you can grab the data of the mp3 using file_get_contents() (or read_file() if using the file helper) and simply trim the length down to a certain amount and save the file. My guess is it will probably corrupt it but you never know it could work. Worth a shot and it would be an easy solution if it works!




Theme © iAndrew 2016 - Forum software by © MyBB