Newest 'ffmpeg' Questions - Stack Overflow
Les articles publiés sur le site
-
tips needed : aac encode on android using ffmpeg-neon optimization
13 octobre 2011, par user992537there I am trying to do some performance improvement about libfaac/libx264 encoder using ffmpeg and neon.seems successfully compiled ffmpeg with neon support,and video encode performance indeed has some improvement,however when it comes to aac encode, it barely can run...Do I have to do some code change about aac specificly? Does this have something to do with neon`s fft stuff?Totally clueless, any tips would be greatly appreciated!Thanks
-
How do I reduce the video size captured by the default camera using FFMPEG in Android ?
12 octobre 2011, par KrishnenduI am trying to reduce the video size captured by the default camera (it's generating high resolution video) in Android. Does FFMPEG have a property to encode a video with given resolution? I tried to Google, but all examples are using command line mode for FFMPEG.
My questions are:
- Can we use ffmpeg command line in Android?
- If not then how we will achieve it?
- Can we able record a video directly using ffmpeg in Android?
- Is there any other solution for this?
-
How do I reduce the video size captured by the default camera using FFMPEG in Android ?
12 octobre 2011, par KrishnenduI am trying to reduce the video size captured by the default camera (it's generating high resolution video) in Android. Does FFMPEG have a property to encode a video with given resolution? I tried to Google, but all examples are using command line mode for FFMPEG.
My questions are:
- Can we use ffmpeg command line in Android?
- If not then how we will achieve it?
- Can we able record a video directly using ffmpeg in Android?
- Is there any other solution for this?
-
Error while Creating Videos from images using ffmpeg
12 octobre 2011, par Rcrd 009I am trying to create videos from images sequence. I tried all the below code given in $ff_command variable.
$path = dirname(__FILE__); $ff_command = "ffmpeg -f image2 -i {$path}/img%03d.jpg video.mpg"; $ff_command = "ffmpeg -r 10 -b 1800 -i {$path}/img%03d.jpg test1800.mpg"; $ff_command = "ffmpeg -i {$path}/img%03d.jpg -s 1280x720 -aspect 16:9 -r 24 -vb 20M teste.mp4"; $ff_command = "ffmpeg -f image2 -i {$path}/img%03d.jpg -vcodec mpeg4 -b 800k video.avi"; $ff_command = "ffmpeg -f image2 -i {$path}/img%03d.jpg -vcodec libx264 -b 800k video.avi";
Most of these commands are creating a video file. But when I open that video nothing comes or first image is coming for a split second and nothing after that
Please let me know what I am doing wrong here
I noticed that video is too short to see. Is it possible to increase the video duration so that we can see all the images?
-
MPG & MPEG Options for FFMPEG ?
12 octobre 2011, par LatoxWe are currently using the following (we haven't included what we're using for audio birtate and video bitrate as this can be changed by the end user):
MPG:
-vcodec mpeg2video -s 320x240 -ar 22050 -b 500
MPEG:
-vcodec mpeg2video -s 352x240 -r 29.97 -acodec mp2 -ac 2 -ar 44100
I found the above options while searching on Google, but I am struggling to find the best settings to use for these 2 formats, can anybody please suggest what to change / add / remove to make the MPEG & MPG conversion go more smoothly and output the highest quality.
As I said, video and audio birate is chosen by the end user, so this will greatly increase quality, I am more concerned about the following parameters posted above.
With the options used above, we are finding that the converted file is very, very lagged...
What don't I need? What am I missing? What can be improved? What am I doing wrong?
I need some advice for each format, MPG & MPEG.