Welcome Guest, Not a member yet? Register   Sign In
Video upload-3gp to flv
#1

[eluser]yousuf_007sys[/eluser]
I can convert my videos being uploaded to flv but it is not giving any sound, i mean the sound of the video is being lost somewhere after the file is converted please check my codes.

Code:
function convert_media($filename, $inputpath){

$src=$inputpath."".$filename;
$dest=$inputpath."".$filename.".flv";

$command = escapeshellcmd("ffmpeg -i $src $dest");

$output = shell_exec($command);

return $filename.".flv";
}

I am using this helper method to convert, please give some suggestion

Thanks in advance

regards
#2

[eluser]Derek Allard[/eluser]
Doesn't look like this is a CodeIgniter problem yousuf. I'm not sure the answer here, but you may find more success looking outside these forums.

Good luck.
#3

[eluser]yousuf_007sys[/eluser]
Thanks...but can you suggest any forum where I can discuss these issues....pls
#4

[eluser]Dam1an[/eluser]
I'm sure there is probably an ffmpeg community (official or otherwise) that may be able to help you
#5

[eluser]Derek Allard[/eluser]
Yeah, all I'd do is hit google and look for ffmpeg user groups or mailing lists or support forums. Sorry, this is one area I have no experience in.
#6

[eluser]mysoogal[/eluser]
[quote author="yousuf_007sys" date="1248941354"]I can convert my videos being uploaded to flv but it is not giving any sound, i mean the sound of the video is being lost somewhere after the file is converted please check my codes.

Code:
function convert_media($filename, $inputpath){

$src=$inputpath."".$filename;
$dest=$inputpath."".$filename.".flv";

$command = escapeshellcmd("ffmpeg -i $src $dest");

$output = shell_exec($command);

return $filename.".flv";
}


try with this, look like your missing few things :o !

Code:
$command = escapeshellcmd("ffmpeg -i $src -s qcif -vcodec h263 -acodec aac -ac 1 -ar 8000 -r 25 -ab 32 -y $dest");

I am using this helper method to convert, please give some suggestion

Thanks in advance

regards[/quote]


look at this

Code:
ffmpeg -i inputfile.avi -s qcif -vcodec h263 -acodec aac -ac 1 -ar 8000 -r 25 -ab 32 -y outputfile.3gp

see how the settings just think about it now :p




Theme © iAndrew 2016 - Forum software by © MyBB