forthex
03-26-2007, 07:36 AM
I'm making a website where people input a link from Imeem.com for a song or movie they want, and my website will dl and convert the song/video (in flv format) to mp3/DIVX avi using php and ffmpeg (a really good command line conversion software).
The various songs (and videos for that matter) that people upload on Imeem.com are in different bitrates (128 to 320 Kbp/s I believe) and Imeem.com doesn't convert them to a standard bitrate, so all of the songs can be of different quality. So if i find the song is 128 kbp/s, i'll give the user that, but if the song they want is of higher bitrate, they'll get a song of that quality.
I need all of the raw in-command-line output from ffmpeg because it can give key facts about the flv file (like video/audio bitrate, sample rate, frame rate, etc) so i can better process the song / movie.
I can't figure out for the life of me the proper syntax because php has such redundant and useless syntaxes sometimes (it's known for that, right?).
To recap, I want to:
- run ffmpeg with with no output file given, so it will output in the command line (I'm running windows, but want linux to be compatible too) the .flv's specs.
- save the output into a variable (I'll know how to filter out the garbage and get the info I want, don't worry about that).
Thanks!!!
The various songs (and videos for that matter) that people upload on Imeem.com are in different bitrates (128 to 320 Kbp/s I believe) and Imeem.com doesn't convert them to a standard bitrate, so all of the songs can be of different quality. So if i find the song is 128 kbp/s, i'll give the user that, but if the song they want is of higher bitrate, they'll get a song of that quality.
I need all of the raw in-command-line output from ffmpeg because it can give key facts about the flv file (like video/audio bitrate, sample rate, frame rate, etc) so i can better process the song / movie.
I can't figure out for the life of me the proper syntax because php has such redundant and useless syntaxes sometimes (it's known for that, right?).
To recap, I want to:
- run ffmpeg with with no output file given, so it will output in the command line (I'm running windows, but want linux to be compatible too) the .flv's specs.
- save the output into a variable (I'll know how to filter out the garbage and get the info I want, don't worry about that).
Thanks!!!