作者热门文章
- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
在命令行中使用它时,我会得到非常糟糕的图像,其中只有灰色或条纹。
似乎“帧速率与容器帧速率不同:59.94 (60000/1001) -> 29.97 (30000/1001)”。
有什么办法可以在 ffmpeg 语句中解决这个问题?
ffmpeg -ss 00:00:10 -i FILENAME.mp4 -vframes 1 FILENAME.jpg
FFmpeg version 0.5.2, Copyright (c) 2000-2009 Fabrice Bellard, et al.
configuration: --prefix=/usr --libdir=/usr/lib64 --shlibdir=/usr/lib64 --mandir=/usr/share/man --incdir=/usr/include --disable-avisynth --extra-cflags=-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -fPIC --enable-avfilter --enable-avfilter-lavf --enable-libdirac --enable-libfaac --enable-libfaad --enable-libfaadbin --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libtheora --enable-libx264 --enable-gpl --enable-nonfree --enable-postproc --enable-pthreads --enable-shared --enable-swscale --enable-vdpau --enable-version3 --enable-x11grab
libavutil 49.15. 0 / 49.15. 0
libavcodec 52.20. 1 / 52.20. 1
libavformat 52.31. 0 / 52.31. 0
libavdevice 52. 1. 0 / 52. 1. 0
libavfilter 0. 4. 0 / 0. 4. 0
libswscale 0. 7. 1 / 0. 7. 1
libpostproc 51. 2. 0 / 51. 2. 0
built on Jun 13 2010 23:44:18, gcc: 4.1.2 20080704 (Red Hat 4.1.2-48)
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'FILENAME.mp4':
Duration: 00:03:36.36, start: 0.000000, bitrate: 1305 kb/s
Stream #0.0(eng): Video: h264, yuv420p, 640x428, 29.97 tbr, 29.97 tbn, 59.94 tbc
Stream #0.1(eng): Audio: aac, 48000 Hz, stereo, s16
Output #0, image2, to 'FILENAME.jpg':
Stream #0.0(eng): Video: mjpeg, yuvj420p, 640x428, q=2-31, 200 kb/s, 90k tbn, 29.97 tbc
Stream mapping:
Stream #0.0 -> #0.0
Press [q] to stop encoding
[h264 @ 0x307f6b0]brainfart cropping not supported, this could look slightly wrong ...
[h264 @ 0x307f6b0]AVC: Consumed only 14978 bytes instead of 14984
[h264 @ 0x307f6b0]AVC: Consumed only 1147 bytes instead of 1153
[h264 @ 0x307f6b0]Missing reference picture
[h264 @ 0x307f6b0]AVC: Consumed only 1947 bytes instead of 1953
[h264 @ 0x307f6b0]Missing reference picture
[h264 @ 0x307f6b0]AVC: Consumed only 1870 bytes instead of 1876
[h264 @ 0x307f6b0]Missing reference picture
Last message repeated 1 times
[h264 @ 0x307f6b0]AVC: Consumed only 810 bytes instead of 816
[h264 @ 0x307f6b0]Missing reference picture
Last message repeated 1 times
[h264 @ 0x307f6b0]AVC: Consumed only 955 bytes instead of 961
[h264 @ 0x307f6b0]Missing reference picture
Last message repeated 1 times
[h264 @ 0x307f6b0]AVC: Consumed only 1036 bytes instead of 1042
[h264 @ 0x307f6b0]Missing reference picture
Last message repeated 1 times
[h264 @ 0x307f6b0]AVC: Consumed only 998 bytes instead of 1004
[h264 @ 0x307f6b0]Missing reference picture
frame= 1 fps= 0 q=3.3 Lsize= -0kB time=0.03 bitrate= -5.3kbits/s
video:14kB audio:0kB global headers:0kB muxing overhead -100.149568%
最佳答案
试试这个 - 似乎裁剪在这里可能设置错误。 (高度不是16的倍数认为按标准无效)
./ffmpeg -i ~/Sites/f3_voyage.mov -ss 00:00:10 -f image2 -vframes 1 -s 640x432 文件名.jpg
关于ffmpeg错误创建缩略图不同的帧速率,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13931402/
我有一个具有可变数量子元素的固定大小的 div。我不知道 children 的大小。目标是缩小它们以适合父级。 例子: .parent { width: 100px; height: 100p
我是一名优秀的程序员,十分优秀!