Newest 'ffmpeg' Questions - Stack Overflow
Les articles publiés sur le site
-
Converting avi to mp4 php fail
27 octobre 2013, par Dirk SwarzI'm able to convert video via server command using:
ffmpeg -i movie.avi -acodec libmp3lame -vcodec libx264 -s 1280x720 -ar 44100 -async 44100 -r 29.970 -ac 2 -qscale 5 goodmovie.mp4
For this test I used a 1.8mb video and after conversion it is 5 MB. I'm able to upload the video to my server after I download it from FTP and it will work with flash player, but when I try to automate this it fails.
CODE:
$ffmpeg_command = 'ffmpeg -i '.$new_name.' -acodec libmp3lame -vcodec libx264 -s 1280x720 -ar 44100 -async 44100 -r 29.970 -ac 2 -qscale 5 '.$anew_name; $convert_avi = true;
It converts to MP4, but
- it is not 5 MB but rather 2.2 MB when the original file is 1.8 MB
- it doesn't play in flash player.
The main upload script is in upload.php which anyone can download from here:
http://www.mediafire.com/?lp3f5pjal2oc19c
That code which i provided i just put into config.php
-
Jwplayer function snapshot using ffmpeg and php
27 octobre 2013, par Offboardbefore anything I'm using version 6, then the Snapshot plugin does not work.
I'm finally with 2 questions, take a sequence of photos of a percentage of the video, so googled it and got this code from ffmpeg:
ffmpeg -i video.mp4 -r 0.5 -f image2 output-%05d.jpeg
so far so good, but I do not know how to take a screen shot of the video by setting the time, if I'm right this code is per frame.
I searched again to get the function that calls the images, to generate good is quite simple, but the problem is that I found the pictures looks is all in one look.
if anyone has any function or know how to do please tell me: D My English sucks, so do not call if I messed up.
-
Converting avi to mp4 with ffmpeg
27 octobre 2013, par Juddy SwaftI use php code:
$ffmpeg_command ="ffmpeg -i ".$new_name." -s 1280x720 -ar 44100 -async 44100 -r 29.970 -ac 2 -qscale 5 ".$anew_name; $convert_avi = true;
i know that the problem is in here:
-s 1280x720 -ar 44100 -async 44100 -r 29.970 -ac 2 -qscale 5
EDIT2: My ffmpeg info with installed libx264:
http://www.part.lt/img/6459c908d41d2c4ce7a9294db1f134df613.PNG
EDIT 3: OK this is confusing becose i have just tried convert via putty i used:
ffmpeg -i movie.avi -acodec libmp3lame -vcodec libx264 -s 1280x720 -ar 44100 -async 44100 -r 29.970 -ac 2 -qscale 5 goodmovie.mp4
and it converted well just weights 6mb original one was 1.8mb, so i uploaded to my ftp via upload script and it worked now im sure that problem is not in the server anymore is in my php code but i dont know how to fix it:/
-
Converting avi to mp4 ffmpeg
26 octobre 2013, par Dirk SwarzI use php code:
$ffmpeg_command ="ffmpeg -i ".$new_name." -s 1280x720 -ar 44100 -async 44100 -r 29.970 -ac 2 -qscale 5 ".$anew_name;
$convert_avi = true;
i know that the problem is in here:
-s 1280x720 -ar 44100 -async 44100 -r 29.970 -ac 2 -qscale 5
Idea is when video is converted i can watch it via flash player and now flash player is saying that video is not found or bad syntax so obviuos its bad syntax but i dont know how to fix it
-
User desktop screen recording in asp.net [on hold]
26 octobre 2013, par Akash Langhanihow to recored user desktop video in c# asp.net application, what type of library sdk or nay command line tools required, can we recored user screen in FFmpeg.