Newest 'ffmpeg' Questions - Stack Overflow
Les articles publiés sur le site
-
ffmpeg image scroll based on size and zoom particular position
12 décembre 2015, par LaliIs it possible to create a video using FFMPEG where it should look like as if we are scrolling the page and zoomin particular location. I don't have correct example but you can check this video http://avideos.5min.com//9/5193009/519300834_2.mp4 where the first google page scroll effect and along with that i need zoomin option as well.
If i use the below code it just zoomin but i need scroll and zoomin (vise versa as well)
ffmpeg -r 45 -i 1.png -vf "zoompan=z='min(zoom+0.0015,1.5)':d=335" -shortest -pix_fmt yuv420p video1.mp4
-
Can OpenCV handle the error when ffmpeg fails ?
12 décembre 2015, par wkingI am using
CV::VideoCapture
to capture frames from an IP camera. It works most of time, however, sometimes it reports the error:[mjpeg @ 0x233aea0] overread 8
And when this error occurred, my program just stuck there. This might explain why. But how can I solve it in C++ code? Can OpenCV handle this error without terminate the program?
p.s. I found that if I didn't call
CV::VideoCapture::read()
immediately, but wait for a while, like 60 seconds, afterCV::VideoCapture::open()
, this error occurred everytime! Is it a bug of OpenCV? -
Does ffmpeg not support icod ? Where should I start to dig the issue ?
12 décembre 2015, par hdfI try to decode some video files using ffmpeg, but get errors caused by icod codec.
Here's the file's ffprobe info:user:~$ ffprobe input.mov ffprobe version 1.2.3 Copyright (c) 2007-2013 the FFmpeg developers built on Jan 15 2014 23:08:14 with gcc 4.8 (Ubuntu/Linaro 4.8.1-10ubuntu9) configuration: --enable-zlib --enable-libmp3lame --enable-libx264 --enable-gpl --enable-nonfree --enable-pic
...
Stream #0:0(eng): Video: none (icod / 0x646F6369), 1280x720, 52569 kb/s, SAR 1:1 DAR 16:9, 59.94 fps, 59.94 tbr, 5994 tbn, 5994 tbc Metadata: creation_time : 2014-01-27 05:09:24 handler_name : Apple Alias Data Handler timecode : 21:03:24:08 Stream #0:1(eng): Audio: pcm_s16le (sowt / 0x74776F73), 48000 Hz, stereo, s16, 1536 kb/s Metadata: creation_time : 2014-01-27 05:09:24 handler_name : Apple Alias Data Handler Stream #0:2(eng): Data: none (tmcd / 0x64636D74), 0 kb/s Metadata: creation_time : 2014-01-27 05:09:24 handler_name : Apple Alias Data Handler timecode : 21:03:24:08 Unsupported codec with id 0 for input stream 0 Unsupported codec with id 0 for input stream 2
-
what is The fastest way to scale down a H264 video in 2:1 ?
12 décembre 2015, par 李天宇when I use ffmpeg to scale a H264 video. It seems that the video is decoded to the raw graph then scaled then encoded again. But if the speed is very critical,is there a faster way if I specify a “good" ratio like 2:1, as if I want to pick up one pixel in every four?
I know a bit how h264 works, 8*8/4*4 pixels are coded as a group,so it's not easy to pick up 1/4 pixels in its range. But is there a way to merge 4 group into one quickly?
-
ffmpeg C API documentation/tutorial [closed]
12 décembre 2015, par fvisticotI am trying to find documentation to use the ffmpeg C API. It seems that only command line documentation is available. Is there any good documentation/tutorials/links available?