[Libav-user] ffmpeg for creting video from images

salsaman salsaman at gmail.com
Wed Jan 27 13:41:19 CET 2016


On Wed, Jan 27, 2016 at 9:39 AM, salsaman <salsaman at gmail.com> wrote:

> Can confirm this. E.g. with 2 jpeg:
>
>
> $ ffmpeg -r 1. -pattern_type glob -i '*.jpg' -c:v libx264 test.mp4
>
> ffmpeg version 2.7.3-0ubuntu0.15.10.1 Copyright (c) 2000-2015 the FFmpeg
> developers
>   built with gcc 5.2.1 (Ubuntu 5.2.1-22ubuntu2) 20151010
>   configuration: --prefix=/usr --extra-version=0ubuntu0.15.10.1
> --build-suffix=-ffmpeg --toolchain=hardened
> --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu
> --enable-gpl --enable-shared --disable-stripping --enable-avresample
> --enable-avisynth --enable-frei0r --enable-gnutls --enable-ladspa
> --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca
> --enable-libcdio --enable-libflite --enable-libfontconfig
> --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm
> --enable-libmodplug --enable-libmp3lame --enable-libopenjpeg
> --enable-openal --enable-libopus --enable-libpulse --enable-librtmp
> --enable-libschroedinger --enable-libshine --enable-libspeex
> --enable-libtheora --enable-libtwolame --enable-libvorbis --enable-libvpx
> --enable-libwavpack --enable-libwebp --enable-libxvid --enable-libzvbi
> --enable-opengl --enable-x11grab --enable-libdc1394 --enable-libiec61883
> --enable-libzmq --enable-libssh --enable-libsoxr --enable-libx264
> --enable-libopencv --enable-libx265
>   libavutil      54. 27.100 / 54. 27.100
>   libavcodec     56. 41.100 / 56. 41.100
>   libavformat    56. 36.100 / 56. 36.100
>   libavdevice    56.  4.100 / 56.  4.100
>   libavfilter     5. 16.101 /  5. 16.101
>   libavresample   2.  1.  0 /  2.  1.  0
>   libswscale      3.  1.101 /  3.  1.101
>   libswresample   1.  2.100 /  1.  2.100
>   libpostproc    53.  3.100 / 53.  3.100
> [mjpeg @ 0x119e280] Changeing bps to 8
> Input #0, image2, from '*.jpg':
>   Duration: 00:00:00.08, start: 0.000000, bitrate: N/A
>     Stream #0:0: Video: mjpeg, yuvj420p(pc, bt470bg/unknown/unknown),
> 640x640, 25 tbr, 25 tbn, 25 tbc
> No pixel format specified, yuvj420p for H.264 encoding chosen.
> Use -pix_fmt yuv420p for compatibility with outdated media players.
> [libx264 @ 0x11a6260] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2
> AVX FMA3 AVX2 LZCNT BMI2
> [libx264 @ 0x11a6260] profile High, level 2.2
> [libx264 @ 0x11a6260] 264 - core 146 r2555 0c21480 - H.264/MPEG-4 AVC
> codec - Copyleft 2003-2015 - http://www.videolan.org/x264.html - options:
> cabac=1 ref=3 deblock=1:0:0 analyse=0x3:0x113 me=hex subme=7 psy=1
> psy_rd=1.00:0.00 mixed_ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=1
> cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2 threads=6
> lookahead_threads=1 sliced_threads=0 nr=0 decimate=1 interlaced=0
> bluray_compat=0 constrained_intra=0 bframes=3 b_pyramid=2 b_adapt=1
> b_bias=0 direct=1 weightb=1 open_gop=0 weightp=2 keyint=250 keyint_min=1
> scenecut=40 intra_refresh=0 rc_lookahead=40 rc=crf mbtree=1 crf=23.0
> qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00
> Output #0, mp4, to 'test.mp4':
>   Metadata:
>     encoder         : Lavf56.36.100
>     Stream #0:0: Video: h264 (libx264) ([33][0][0][0] / 0x0021),
> yuvj420p(pc), 640x640, q=-1--1, 1 fps, 16384 tbn, 1 tbc
>     Metadata:
>       encoder         : Lavc56.41.100 libx264
> Stream mapping:
>   Stream #0:0 -> #0:0 (mjpeg (native) -> h264 (libx264))
> Press [q] to stop, [?] for help
> frame=    2 fps=0.0 q=-1.0 Lsize=     131kB time=00:00:02.00 bitrate=
> 535.0kbits/s
> video:130kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB
> muxing overhead: 0.622959%
> [libx264 @ 0x11a6260] frame I:1     Avg QP:18.45  size:132061
> [libx264 @ 0x11a6260] frame P:1     Avg QP:21.02  size:   165
> [libx264 @ 0x11a6260] mb I  I16..4:  0.1% 98.5%  1.4%
> [libx264 @ 0x11a6260] mb P  I16..4:  0.0%  0.0%  0.0%  P16..4:  4.2%
> 0.0%  0.0%  0.0%  0.0%    skip:95.8%
> [libx264 @ 0x11a6260] 8x8 transform intra:98.5%
> [libx264 @ 0x11a6260] coded y,uvDC,uvAC intra: 99.6% 90.8% 77.7% inter:
> 0.0% 4.2% 0.0%
> [libx264 @ 0x11a6260] i16 v,h,dc,p:  0% 100%  0%  0%
> [libx264 @ 0x11a6260] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 10% 25% 18%  8%  5%
> 4% 12%  7% 10%
> [libx264 @ 0x11a6260] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 31% 21%  9%  5%  7%
> 8%  8%  5%  6%
> [libx264 @ 0x11a6260] i8c dc,h,v,p: 43% 27% 20% 10%
> [libx264 @ 0x11a6260] Weighted P-Frames: Y:0.0% UV:0.0%
> [libx264 @ 0x11a6260] kb/s:528.90
>
>
>
>
>
>
> $ time mplayer test.mp4
> MPlayer2 2.0-728-g2c378c7-4build1 (C) 2000-2012 MPlayer Team
> Cannot open file '/home/gabriel/.mplayer/input.conf': No such file or
> directory
> Failed to open /home/gabriel/.mplayer/input.conf.
> Cannot open file '/etc/mplayer/input.conf': No such file or directory
> Failed to open /etc/mplayer/input.conf.
>
> Playing test.mp4.
> Detected file format: QuickTime / MOV (libavformat)
> [lavf] stream 0: video (h264), -vid 0
> Clip info:
>  major_brand: isom
>  minor_version: 512
>  compatible_brands: isomiso2avc1mp41
>  encoder: Lavf56.36.100
> Load subtitles in .
> Failed to open VDPAU backend libvdpau_va_gl.so: cannot open shared object
> file: No such file or directory
> [vdpau] Error when calling vdp_device_create_x11: 1
> [ass] auto-open
> Selected video codec: H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10
> [libavcodec]
> Audio: no sound
> Starting playback...
> VIDEO:  640x640  1.000 fps  531.7 kbps (66.5 kB/s)
> VO: [xv] 640x640 => 640x640 Planar YV12
> Colorspace details not fully supported by selected vo.
> V:   1.0   0/  0  2%  0%  0.0% 0 0
>
>
> Exiting... (End of file)
>
> real    0m1.117s
> user    0m0.092s
> sys    0m0.020s
>
>
>
>
>
> Regards,
> Salsaman.
>
>
>
>
>
>
>
> http://lives-video.com
> https://www.openhub.net/accounts/salsaman
>
> On Wed, Jan 27, 2016 at 8:17 AM, Carl Eugen Hoyos <cehoyos at ag.or.at>
> wrote:
>
>>  <pratik at ...> writes:
>>
>> > You only know the library not all possibility with
>> > that library.
>>
>> I actually don't know much about the libraries, I can
>> give much more support for the command line tools.
>> This is also why I answer less emails here than on
>> the user mailing list.
>>
>> Carl Eugen
>>
>> _______________________________________________
>> Libav-user mailing list
>> Libav-user at ffmpeg.org
>> http://ffmpeg.org/mailman/listinfo/libav-user
>>
>
>





Apologies for top posting, its the default in gmail.



Salsaman.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://ffmpeg.org/pipermail/libav-user/attachments/20160127/14439a3a/attachment.html>


More information about the Libav-user mailing list