Newest 'ffmpeg' Questions - Stack Overflow
Les articles publiés sur le site
-
Sending video from images through wifi on Android device [closed]
26 novembre 2012, par user1853766I have a bit of a specific question, I'm currently working on a solution that is supposed to send video data through wifi from an Android device.
This video must but generate from images generate during at a runtime, and I want the smallest latency possible.
To begin with this, I was wondering what kind of library I could use, and what kind of protocol. I'm very new with this kind of programs...
I've look around ffmpeg, which seems fine for video compression, but I'm not sure it's exactly what I need since I start the work with images. As it is quite complicate to build it and make it work, I wanted to be sure it's what I need to do before...
Any help or advice would be greatly appreciated!
-
How to record the http live streaming from an IP Cam
26 novembre 2012, par abhishekI have created the application in which the client can view the ip camera which is giving an http live stream of MJPEG using this link Android ICS and MJPEG using AsyncTask
Now i want the user to record the video into its memory card . I have googled for a while and the only two approaches which came in my mind :-
Either i keep storing the jpeg images and when user clicks stop recording then i somehow clip all the images as to provide a 3GP video or some other file format. But i don't know how to create the video from all the images and will this be an efficient approach or not.
Or i do ffmpeg and in this case i will have to deal with NDK and it seems to be a longer path which may lead to nowhere :P
So is FFMPEG a better option? If yes please share some links or is the first option better. Thanks in advance
-
How to join two ffmpeg commands
26 novembre 2012, par Ambrose Bwangattoi have a script which uses this ffmpeg command's parameters for encoding videos.
ffmpeg -i inputfile -acodec libfaac -keyint_min 20 -r 20 -vcodec libx264 -vpre hq -crf 25 -b 300k -bt 300k -y -v 0 -bf 16 -threads 0 outputfile
and i have a custom command i would like to add to it, is like this
ffmpeg -i inputfile -vf "movie=watermark.png [watermark]; [in][watermark] overlay=main_w-overlay_w-10:main_h-overlay_h-10 [out]" outputfile
so i replaced main command like this
ffmpeg -i inputfile -acodec libfaac -keyint_min 20 -r 20 -vcodec libx264 -vpre hq -crf 25 -b 300k -bt 300k -y -v 0 -bf 16 -threads 0 -vf "movie=watermark1.png [watermark]; [in][watermark] overlay=main_w-overlay_w-10:main_h-overlay_h-10 [out]" outputfile
and tried it in command line, but this doesnt do anything, the output is nothing like this
[root@www test1]# ffmpeg -i test1800.mp4 -acodec libfaac -keyint_min 20 -r 20 -vcodec libx264 -vpre hq -crf 25 -b 300k -bt 300k -y -v 0 -bf 16 -threads 0 -vf "movie=watermark1.png [watermark]; [in][watermark] overlay=main_w-overlay_w-10:main_h-overlay_h-10 [out]" outputfile.mp4 [root@www test1]#
how do i solve this ?
Thanks for your time.
UPDATE My ffmpeg command details
[root@www test1]# ffmpeg ffmpeg version N-47061-gbe2c0bc Copyright (c) 2000-2012 the FFmpeg developers built on Nov 25 2012 09:32:08 with gcc 4.1.2 (GCC) 20080704 (Red Hat 4.1.2-52) configuration: --enable-gpl --enable-libmp3lame --enable-libvorbis --enable-libvpx --enable-libx264 libavutil 52. 9.100 / 52. 9.100 libavcodec 54. 77.100 / 54. 77.100 libavformat 54. 37.100 / 54. 37.100 libavdevice 54. 3.100 / 54. 3.100 libavfilter 3. 23.102 / 3. 23.102 libswscale 2. 1.102 / 2. 1.102 libswresample 0. 17.101 / 0. 17.101 libpostproc 52. 2.100 / 52. 2.100 Hyper fast Audio and Video encoder usage: ffmpeg [options] [[infile options] -i infile]... {[outfile options] outfile}... Use -h to get full help or, even better, run 'man ffmpeg'
thanks
-
ffmpeg crash after complaining about unreleased buffer ? [closed]
26 novembre 2012, par twidI get following error in ffmpeg. And then ffmpeg crashes.....
[mpeg4 @ 03b72ec0] Found 2 unreleased buffers! Assertion i < avci->buffer_count failed at libavcodec/utils.c:603
I want know why and what circumstances it crashing?
-
join audio file in specific time of the video ffmpeg
25 novembre 2012, par George L.i am trying to use the code bellow to merge an audio file at specific time (6th second of my input video) and create a new video autput file but i cant make it work.
<?php exec("/usr/local/bin/ffmpeg -sameq -i /home/xxx/public_html/xxx/video/full.mp4 -itsoffet 6 -i /home/xxx/public_html/xxx/sounds/names/george.mp3 /home/xxx/public_html/xxx/upload/sample.mpg"); ?>
Thank you a lot!