Newest 'ffmpeg' Questions - Stack Overflow
Les articles publiés sur le site
-
GIF created from a movie file with ffmpeg is really large in size
1er décembre 2014, par drNI created a GIF using
ffmpeg
using the following command:ffmpeg -i foo.mp4 -ss 00:00:18 -t 00:00:06 -pix_fmt rgb24 bar.gif
However, the resulting
bar.gif
was over 300 MB in size while the movie filefoo.mp4
was about 15 MB!What gives?
-
IP camera with RTSP on the web, RED5 and ffmpeg
1er décembre 2014, par user3540118i have a ip camera with rtsp protocol and i want to stream on the web using flash video. I know i can use vlc but i do not want to use that.
I installed red5 and ffmpeg for convert RTSP to RTMP
ffmpeg -i "rtsp://46.13.85.43:8020/ch0.h264" -f flv -r 25 -s 640x480 -an "rtmp://localhost/live"
and result is: UDP timeout. retrying with TCP
Any idea where is the problem ?
-
ffmpeg is not creating screenshot from video
1er décembre 2014, par hiteshI need to create a screen shot from video,
I have followed this tutorial to do the intial setup
1) I downloaded the ffmpeg from here -[ http://ffmpeg.zeranoe.com/builds/ ] for 64 bit operating system.
2) I followed the https://www.youtube.com/watch?v=gU49GiWGGAI , video and did all configuration successfully and
phpinfo()
shows thatffmpeg
has been installed.3) Then I tried this to find out whether it is working or not,
It worked successfully
4) Next I followed this video tutorial here , but for some reason video thumbnails are not created.
Not able to find the problem, I don't see any error also.
below is my code
/** * FFMPEG-PHP Test Script * * Special thanks to http://www.sajithmr.me/ffmpeg-sample-code for this code example! * See the tutorial at http://myownhomeserver.com on how to install ffmpeg-php. */ error_reporting(1); error_reporting(E_ALL ^ E_NOTICE); // Check if the ffmpeg-php extension is loaded first extension_loaded('ffmpeg') or die('Error in loading ffmpeg'); // Determine the full path for our video $vid = realpath('./videos/myvideo.mp4'); $videosize = filesize($vid); $remoteVideo = 'http://video-js.zencoder.com/oceans-clip.mp4'; //ffmpeg $ffmpeg = dirname(__FILE__) . "\bin\\ffmpeg"; $imageFile = "1.png"; $image2 = "2.png"; $size = "120x90"; $getfromsecond = 7; $cmd = "$ffmpeg -i $vid -an -ss $getfromsecond -s $size $imageFile"; $cmd2 = "$ffmpeg -i $remoteVideo -an -ss $getfromsecond -s $size $image2"; if(!shell_exec($cmd)){ echo "Thumbnail created"; }else{ echo "Error Creating thumbnail"; } if(!shell_exec($cmd2)){ echo "Thumbnail for remote url was created"; }else{ echo "Error Creating thumbnail for remote url "; }
OUTPUT Thumbnail created Thumbnail for remote url was created
Please help me solve this issue.
-
convert rmvb (rv40) to mp4 with ffmpeg ? [on hold]
1er décembre 2014, par WangWhen I try to convert rmvb to mp4, It always get some errors: New frame but still xxx MB left.concealing xxx DC, xxx AC, xxx MV errors What is the problem?
ffmpeg version 0.10.12-7:0.10.12-1~precise1 Copyright (c) 2000-2014 the FFmpeg developers built on Apr 26 2014 09:49:36 with gcc 4.6.3 configuration: --arch=amd64 --disable-stripping --enable-pthreads --enable-runtime-cpudetect --extra-version='7:0.10.12-1~precise1' --libdir=/usr/lib/x86_64-linux-gnu --prefix=/usr --enable-bzlib --enable-libdc1394 --enable-libfreetype --enable-frei0r --enable-gnutls --enable-libgsm --enable-libmp3lame --enable-librtmp --enable-libopencv --enable-libopenjpeg --enable-libpulse --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-vaapi --enable-vdpau --enable-libvorbis --enable-libvpx --enable-zlib --enable-gpl --enable-postproc --enable-libcdio --enable-x11grab --enable-libx264 --shlibdir=/usr/lib/x86_64-linux-gnu --enable-shared --disable-static libavutil 51. 35.100 / 51. 35.100 libavcodec 53. 61.100 / 53. 61.100 libavformat 53. 32.100 / 53. 32.100 libavdevice 53. 4.100 / 53. 4.100 libavfilter 2. 61.100 / 2. 61.100 libswscale 2. 1.100 / 2. 1.100 libswresample 0. 6.100 / 0. 6.100 libpostproc 52. 0.100 / 52. 0.100 Hyper fast Audio and Video encoder
-
How to build fdk-aac for ios's arm64 architecture ?
1er décembre 2014, par 谢小进I have built
fdk-aac
for iOS, includingx86_64
,i386
,armv7
, andarmv7s
, failed to build toarm64
architecture. I have sent email to the author of fdk-aac but he said he won't supportarm64
. Does anybody know how to build forarm64
?