ffmpeg -r 0.15 -qscale 2 -i /var/www/44693/%0d.jpg /var/www/44693/output11.mp4
使用此命令,我将从图像创建视频,但第一个图像正在快速变化。其他人都很好。
这是创建的视频。
输出为文本:
root@li465-71:~# ffmpeg -r 0.15 -qscale 2 -i /var/www/44693/%0d.jpg /var/www/446 93/output11.mp4
ffmpeg version 0.8.1-4:0.8.1-0ubuntu1, Copyright (c) 2000-2011 the Libav develop ers
built on Mar 22 2012 05:29:10 with gcc 4.6.3
This program is not developed anymore and is only provided for compatibility. Us e avconv instead (see Changelog for the list of incompatible changes).
[image2 @ 0x85dcaa0] max_analyze_duration reached
Seems stream 0 codec frame rate differs from container frame rate: 0.15 (3/20) - > 0.75 (3/4)
Input #0, image2, from '/var/www/44693/%0d.jpg':
Duration: 00:01:13.33, start: 0.000000, bitrate: N/A
Stream #0.0: Video: mjpeg, yuvj420p, 800x600 [PAR 1:1 DAR 4:3], 0.15 fps, 0. 75 tbr, 0.15 tbn, 0.15 tbc
File '/var/www/44693/output11.mp4' already exists. Overwrite ? [y/N] y
Incompatible pixel format 'yuvj420p' for codec 'mpeg4', auto-selecting format 'yuv420p'
[buffer @ 0x85df820] w:800 h:600 pixfmt:yuvj420p
[avsink @ 0x85de240] auto-inserting filter 'auto-inserted scaler 0' between the filter 'src' and the filter 'out'
[scale @ 0x85de680] w:800 h:600 fmt:yuvj420p -> w:800 h:600 fmt:yuv420p flags:0x4
Output #0, mp4, to '/var/www/44693/output11.mp4':
Metadata:
encoder : Lavf53.21.0
Stream #0.0: Video: mpeg4, yuv420p, 800x600 [PAR 1:1 DAR 4:3], q=2-31, 200 kb/s, 3 tbn, 0.75 tbc
Stream mapping:
Stream #0.0 -> #0.0
Press ctrl-c to stop encoding
frame= 50 fps= 0 q=2.0 Lsize= 949kB time=66.67 bitrate= 116.6kbits/s dup=39 drop=0
video:948kB audio:0kB global headers:0kB muxing overhead 0.125724%
这是输出你可以使用保存目标作为文件和“vlc”播放器进行播放。
—
mirza 2012年
此外,由于你一直在Stack Overflow上发布FFmpeg命令行问题:这些问题实际上是偏离主题的,所以可以在这里发布它们。
—
slhck
@slhck这里是youtube链接 - > youtube.com/watch?v=CeKcABUmnF4&feature=youtu.be
—
mirza
@slhck好的,刚刚添加输出
—
mirza 2012年
@slhck也将输出添加为文本
—
mirza