Recherche avancée

Médias (0)

Mot : - Tags -/masques

Aucun média correspondant à vos critères n’est disponible sur le site.

Autres articles (65)

  • Support de tous types de médias

    10 avril 2011

    Contrairement à beaucoup de logiciels et autres plate-formes modernes de partage de documents, MediaSPIP a l’ambition de gérer un maximum de formats de documents différents qu’ils soient de type : images (png, gif, jpg, bmp et autres...) ; audio (MP3, Ogg, Wav et autres...) ; vidéo (Avi, MP4, Ogv, mpg, mov, wmv et autres...) ; contenu textuel, code ou autres (open office, microsoft office (tableur, présentation), web (html, css), LaTeX, Google Earth) (...)

  • Supporting all media types

    13 avril 2011, par

    Unlike most software and media-sharing platforms, MediaSPIP aims to manage as many different media types as possible. The following are just a few examples from an ever-expanding list of supported formats : images : png, gif, jpg, bmp and more audio : MP3, Ogg, Wav and more video : AVI, MP4, OGV, mpg, mov, wmv and more text, code and other data : OpenOffice, Microsoft Office (Word, PowerPoint, Excel), web (html, CSS), LaTeX, Google Earth and (...)

  • Le plugin : Podcasts.

    14 juillet 2010, par

    Le problème du podcasting est à nouveau un problème révélateur de la normalisation des transports de données sur Internet.
    Deux formats intéressants existent : Celui développé par Apple, très axé sur l’utilisation d’iTunes dont la SPEC est ici ; Le format "Media RSS Module" qui est plus "libre" notamment soutenu par Yahoo et le logiciel Miro ;
    Types de fichiers supportés dans les flux
    Le format d’Apple n’autorise que les formats suivants dans ses flux : .mp3 audio/mpeg .m4a audio/x-m4a .mp4 (...)

Sur d’autres sites (4746)

  • FFMPEG overlay by time not working in my case

    18 août 2021, par Patel Milan

    Image Overlay on image and enable by time

    


    ffmpeg -y -loop 1 -i .\1080.png -i .\021.jpg -i .\022.jpg -i .\023.jpg -filter_complex "  [1:v]scale=534:810[a]; [2:v]scale=534:810[b]; [3:v]scale=534:810[c]; [0:v][a] overlay=10:8:enable='between(t,0,8)'[o1]; [o1][b] overlay=264:778:enable='between(t,1,8)'[o2]; [o2][c]  overlay=534:1524:enable='between(t,2,8)'[o3]" -map "[o3]" -t 8 outImageOverlay.mp4


    


    Log

    


    ffmpeg version 4.3.1-2021-01-01-essentials_build-www.gyan.dev Copyright (c) 2000-2021 the FFmpeg developers
  built with gcc 10.2.0 (Rev5, Built by MSYS2 project)
  configuration: --enable-gpl --enable-version3 --enable-static --disable-w32threads --disable-autodetect --enable-fontconfig --enable-iconv --enable-gnutls --enable-libxml2 --enable-gmp --enable-lzma --enable-zlib --enable-libsrt --enable-libssh --enable-libzmq --enable-avisynth --enable-sdl2 --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxvid --enable-libaom --enable-libopenjpeg --enable-libvpx --enable-libass --enable-libfreetype --enable-libfribidi --enable-libvidstab --enable-libvmaf --enable-libzimg --enable-amf --enable-cuda-llvm --enable-cuvid --enable-ffnvcodec --enable-nvdec --enable-nvenc --enable-d3d11va --enable-dxva2 --enable-libmfx --enable-libgme --enable-libopenmpt --enable-libopencore-amrwb --enable-libmp3lame --enable-libtheora --enable-libvo-amrwbenc --enable-libgsm --enable-libopencore-amrnb --enable-libopus --enable-libspeex --enable-libvorbis --enable-librubberband
  libavutil      56. 51.100 / 56. 51.100
  libavcodec     58. 91.100 / 58. 91.100
  libavformat    58. 45.100 / 58. 45.100
  libavdevice    58. 10.100 / 58. 10.100
  libavfilter     7. 85.100 /  7. 85.100
  libswscale      5.  7.100 /  5.  7.100
  libswresample   3.  7.100 /  3.  7.100
  libpostproc    55.  7.100 / 55.  7.100
Input #0, png_pipe, from '.\1080.png':
  Duration: N/A, bitrate: N/A
    Stream #0:0: Video: png, rgba(pc), 1080x2340, 25 fps, 25 tbr, 25 tbn, 25 tbc
Input #1, image2, from '.\021.jpg':
  Duration: 00:00:00.04, start: 0.000000, bitrate: 286665 kb/s
    Stream #1:0: Video: mjpeg (Baseline), yuvj444p(pc, bt470bg/unknown/unknown), 1080x2340, 25 tbr, 25 tbn, 25 tbc
Input #2, image2, from '.\022.jpg':
  Duration: 00:00:00.04, start: 0.000000, bitrate: 337493 kb/s
    Stream #2:0: Video: mjpeg (Baseline), yuvj444p(pc, bt470bg/unknown/unknown), 1080x2340, 25 tbr, 25 tbn, 25 tbc
Input #3, image2, from '.\023.jpg':
  Duration: 00:00:00.04, start: 0.000000, bitrate: 298403 kb/s
    Stream #3:0: Video: mjpeg (Baseline), yuvj444p(pc, bt470bg/unknown/unknown), 1080x2340, 25 tbr, 25 tbn, 25 tbc
Stream mapping:
  Stream #0:0 (png) -> overlay:main
  Stream #1:0 (mjpeg) -> scale
  Stream #2:0 (mjpeg) -> scale
  Stream #3:0 (mjpeg) -> scale
  overlay -> Stream #0:0 (libx264)
Press [q] to stop, [?] for help
[swscaler @ 000001cd0b24d000] deprecated pixel format used, make sure you did set range correctly
[swscaler @ 000001cd0b286080] deprecated pixel format used, make sure you did set range correctly
[swscaler @ 000001cd0b2c9c40] deprecated pixel format used, make sure you did set range correctly
[libx264 @ 000001cd0a848500] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2
[libx264 @ 000001cd0a848500] profile High, level 5.0, 4:2:0, 8-bit
[libx264 @ 000001cd0a848500] 264 - core 161 r3027 4121277 - H.264/MPEG-4 AVC codec - Copyleft 2003-2020 - 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=25 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 'outImageOverlay.mp4':
  Metadata:
    encoder         : Lavf58.45.100
    Stream #0:0: Video: h264 (libx264) (avc1 / 0x31637661), yuv420p, 1080x2340, q=-1--1, 25 fps, 12800 tbn, 25 tbc (default)
    Metadata:
      encoder         : Lavc58.91.100 libx264
    Side data:
      cpb: bitrate max/min/avg: 0/0/0 buffer size: 0 vbv_delay: N/A
frame=  200 fps= 43 q=-1.0 Lsize=     208kB time=00:00:07.88 bitrate= 216.6kbits/s speed= 1.7x
video:205kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 1.538915%
[libx264 @ 000001cd0a848500] frame I:1     Avg QP:10.61  size: 68492
[libx264 @ 000001cd0a848500] frame P:50    Avg QP:16.79  size:  2508
[libx264 @ 000001cd0a848500] frame B:149   Avg QP:29.02  size:   104
[libx264 @ 000001cd0a848500] consecutive B-frames:  0.5%  0.0%  1.5% 98.0%
[libx264 @ 000001cd0a848500] mb I  I16..4: 82.0% 10.1%  7.9%
[libx264 @ 000001cd0a848500] mb P  I16..4:  0.0%  0.5%  0.1%  P16..4:  1.0%  0.0%  0.1%  0.0%  0.0%    skip:98.2%
[libx264 @ 000001cd0a848500] mb B  I16..4:  0.0%  0.0%  0.0%  B16..8:  0.3%  0.0%  0.0%  direct: 0.0%  skip:99.7%  L0:39.1% L1:60.9% BI: 0.0%
[libx264 @ 000001cd0a848500] 8x8 transform intra:28.0% inter:98.0%
[libx264 @ 000001cd0a848500] coded y,uvDC,uvAC intra: 35.8% 31.1% 23.2% inter: 0.0% 0.1% 0.0%
[libx264 @ 000001cd0a848500] i16 v,h,dc,p: 98%  1%  0%  1%
[libx264 @ 000001cd0a848500] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 19% 17% 15%  7%  7%  9%  8%  8% 11%
[libx264 @ 000001cd0a848500] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 18% 21%  9%  7% 10%  9% 11%  6%  9%
[libx264 @ 000001cd0a848500] i8c dc,h,v,p: 76% 10% 10%  4%
[libx264 @ 000001cd0a848500] Weighted P-Frames: Y:0.0% UV:0.0%
[libx264 @ 000001cd0a848500] ref P L0: 90.9%  0.7%  7.0%  1.3%
[libx264 @ 000001cd0a848500] ref B L0: 57.1% 42.0%  0.9%
[libx264 @ 000001cd0a848500] ref B L1: 93.2%  6.8%
[libx264 @ 000001cd0a848500] kb/s:209.46


    


    Overlay Video on Image Command

    


    ffmpeg -y -i love.mp4 -i .\1080.png -i .\021.jpg -i .\022.jpg -i .\023.jpg -loop 1 -i .\020.jpg -filter_complex " [2:v]scale=534:810[a]; [3:v]scale=534:810[b]; [4:v]scale=534:810[c]; [5:v]scale=8000:4000,zoompan=z='min(zoom+0.0020,1.5)':d=417:s=1080x2340,setsar=1[d]; [0:v]scale=1080x2340,setdar=1080:2340,colorkey=0x1CD51A:0.3:0.2[ckout]; [1:v][a] overlay=10:8:enable='between(t,0,8)'[o1]; [o1][b] overlay=264:778:enable='between(t,1,8)'[o2]; [o2][c]overlay=534:1524:enable='between(t,2,8)'[o3]; [d][o3]overlay[o4]; [o4][ckout]overlay[o5]" -map "[o5]" -pix_fmt yuvj422p -t 8 outvideoOverlayInImage.mp4


    


    Log

    


    ffmpeg version 4.3.1-2021-01-01-essentials_build-www.gyan.dev Copyright (c) 2000-2021 the FFmpeg developers
  built with gcc 10.2.0 (Rev5, Built by MSYS2 project)
  configuration: --enable-gpl --enable-version3 --enable-static --disable-w32threads --disable-autodetect --enable-fontconfig --enable-iconv --enable-gnutls --enable-libxml2 --enable-gmp --enable-lzma --enable-zlib --enable-libsrt --enable-libssh --enable-libzmq --enable-avisynth --enable-sdl2 --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxvid --enable-libaom --enable-libopenjpeg --enable-libvpx --enable-libass --enable-libfreetype --enable-libfribidi --enable-libvidstab --enable-libvmaf --enable-libzimg --enable-amf --enable-cuda-llvm --enable-cuvid --enable-ffnvcodec --enable-nvdec --enable-nvenc --enable-d3d11va --enable-dxva2 --enable-libmfx --enable-libgme --enable-libopenmpt --enable-libopencore-amrwb --enable-libmp3lame --enable-libtheora --enable-libvo-amrwbenc --enable-libgsm --enable-libopencore-amrnb --enable-libopus --enable-libspeex --enable-libvorbis --enable-librubberband
  libavutil      56. 51.100 / 56. 51.100
  libavcodec     58. 91.100 / 58. 91.100
  libavformat    58. 45.100 / 58. 45.100
  libavdevice    58. 10.100 / 58. 10.100
  libavfilter     7. 85.100 /  7. 85.100
  libswscale      5.  7.100 /  5.  7.100
  libswresample   3.  7.100 /  3.  7.100
  libpostproc    55.  7.100 / 55.  7.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'love.mp4':
  Metadata:
    major_brand     : mp42
    minor_version   : 0
    compatible_brands: isommp42
    creation_time   : 2021-08-17T05:35:07.000000Z
    com.android.version: 11
  Duration: 00:00:06.93, start: 0.000000, bitrate: 538 kb/s
    Stream #0:0(eng): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 196 kb/s (default)
    Metadata:
      creation_time   : 2021-08-17T05:35:07.000000Z
      handler_name    : SoundHandle
    Stream #0:1(eng): Video: h264 (Baseline) (avc1 / 0x31637661), yuv420p(tv, smpte170m/bt470bg/smpte170m), 1080x2340, 334 kb/s, SAR 1:1 DAR 6:13, 25 fps, 25 tbr, 90k tbn, 180k tbc (default)
    Metadata:
      creation_time   : 2021-08-17T05:35:07.000000Z
      handler_name    : VideoHandle
Input #1, png_pipe, from '.\1080.png':
  Duration: N/A, bitrate: N/A
    Stream #1:0: Video: png, rgba(pc), 1080x2340, 25 tbr, 25 tbn, 25 tbc
Input #2, image2, from '.\021.jpg':
  Duration: 00:00:00.04, start: 0.000000, bitrate: 286665 kb/s
    Stream #2:0: Video: mjpeg (Baseline), yuvj444p(pc, bt470bg/unknown/unknown), 1080x2340, 25 tbr, 25 tbn, 25 tbc
Input #3, image2, from '.\022.jpg':
  Duration: 00:00:00.04, start: 0.000000, bitrate: 337493 kb/s
    Stream #3:0: Video: mjpeg (Baseline), yuvj444p(pc, bt470bg/unknown/unknown), 1080x2340, 25 tbr, 25 tbn, 25 tbc
Input #4, image2, from '.\023.jpg':
  Duration: 00:00:00.04, start: 0.000000, bitrate: 298403 kb/s
    Stream #4:0: Video: mjpeg (Baseline), yuvj444p(pc, bt470bg/unknown/unknown), 1080x2340, 25 tbr, 25 tbn, 25 tbc
Input #5, image2, from '.\020.jpg':
  Duration: 00:00:00.04, start: 0.000000, bitrate: 184663 kb/s
    Stream #5:0: Video: mjpeg (Baseline), yuvj444p(pc, bt470bg/unknown/unknown), 1080x2340, 25 fps, 25 tbr, 25 tbn, 25 tbc
Stream mapping:
  Stream #0:1 (h264) -> scale
  Stream #1:0 (png) -> overlay:main
  Stream #2:0 (mjpeg) -> scale
  Stream #3:0 (mjpeg) -> scale
  Stream #4:0 (mjpeg) -> scale
  Stream #5:0 (mjpeg) -> scale
  overlay -> Stream #0:0 (libx264)
Press [q] to stop, [?] for help
[swscaler @ 00000230595cff40] deprecated pixel format used, make sure you did set range correctly
[swscaler @ 0000023059727e80] deprecated pixel format used, make sure you did set range correctly
[swscaler @ 00000230597768c0] deprecated pixel format used, make sure you did set range correctly
[swscaler @ 00000230597c3c80] deprecated pixel format used, make sure you did set range correctly
[swscaler @ 00000230597faec0] No accelerated colorspace conversion found from yuv420p to argb.
[swscaler @ 0000023059884cc0] deprecated pixel format used, make sure you did set range correctly
[libx264 @ 00000230536e2900] using SAR=1/1
[libx264 @ 00000230536e2900] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2
[libx264 @ 00000230536e2900] profile High 4:2:2, level 5.0, 4:2:2, 8-bit
[libx264 @ 00000230536e2900] 264 - core 161 r3027 4121277 - H.264/MPEG-4 AVC codec - Copyleft 2003-2020 - 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=25 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 'outvideoOverlayInImage.mp4':
  Metadata:
    major_brand     : mp42
    minor_version   : 0
    compatible_brands: isommp42
    com.android.version: 11
    encoder         : Lavf58.45.100
    Stream #0:0: Video: h264 (libx264) (avc1 / 0x31637661), yuvj422p(pc), 1080x2340 [SAR 1:1 DAR 6:13], q=-1--1, 25 fps, 12800 tbn, 25 tbc (default)
    Metadata:
      encoder         : Lavc58.91.100 libx264
    Side data:
      cpb: bitrate max/min/avg: 0/0/0 buffer size: 0 vbv_delay: N/A
frame=  200 fps= 11 q=-1.0 Lsize=    1411kB time=00:00:07.88 bitrate=1467.1kbits/s speed=0.435x
video:1408kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.226583%
[libx264 @ 00000230536e2900] frame I:1     Avg QP:20.68  size:121139
[libx264 @ 00000230536e2900] frame P:50    Avg QP:20.09  size: 15622
[libx264 @ 00000230536e2900] frame B:149   Avg QP:24.04  size:  3617
[libx264 @ 00000230536e2900] consecutive B-frames:  0.5%  0.0%  1.5% 98.0%
[libx264 @ 00000230536e2900] mb I  I16..4:  8.9% 81.4%  9.7%
[libx264 @ 00000230536e2900] mb P  I16..4:  1.5%  1.9%  0.3%  P16..4: 21.8%  8.1%  4.7%  0.0%  0.0%    skip:61.6%
[libx264 @ 00000230536e2900] mb B  I16..4:  0.1%  0.1%  0.0%  B16..8: 26.8%  0.7%  0.1%  direct: 0.3%  skip:72.1%  L0:46.3% L1:53.3% BI: 0.3%
[libx264 @ 00000230536e2900] 8x8 transform intra:59.8% inter:84.9%
[libx264 @ 00000230536e2900] coded y,uvDC,uvAC intra: 30.0% 30.8% 13.5% inter: 3.0% 2.2% 0.1%
[libx264 @ 00000230536e2900] i16 v,h,dc,p: 66% 30%  2%  2%
[libx264 @ 00000230536e2900] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 29% 12% 43%  3%  3%  3%  3%  2%  3%
[libx264 @ 00000230536e2900] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 39% 19% 11%  5%  6%  5%  6%  4%  5%
[libx264 @ 00000230536e2900] i8c dc,h,v,p: 57% 19% 21%  3%
[libx264 @ 00000230536e2900] Weighted P-Frames: Y:0.0% UV:0.0%
[libx264 @ 00000230536e2900] ref P L0: 73.3% 11.4%  8.9%  6.4%
[libx264 @ 00000230536e2900] ref B L0: 96.2%  3.1%  0.7%
[libx264 @ 00000230536e2900] ref B L1: 95.5%  4.5%
[libx264 @ 00000230536e2900] kb/s:1441.17


    


    Input images and output videos

    


    


    image on image overlay is working by enable given time but when video overlay into image is not working correctly

    


  • Multiply blend mode using FFMPEG adds green overlay

    25 mars 2014, par Barto

    I'm currently working on a project which needs video editing.
    Here for I'm using ffmpeg, which is working pretty well, except for 1 filter.
    Every video should get an overlay with the Photoshop multiply blend mode.
    I'm using the ffmpeg blend mode, but unfortunately the video gets a green overlay as you can see in the screenshots.

    Original Image
    Original Image

    Edited with ffmpegFFMPEG

    What I'm trying to achieve
    Edited

    Does this has something to do with the mode I'm working in ?
    Below is my current code

    #!/bin/bash
    vagrant ssh -c "./ffmpeg \
    -i /vagrant/public/uploads/video/bw_RzWecVH02p.avi -i /vagrant/public/img/red_ellipse.png \
    -filter_complex "blend=all_mode='multiply'" \
    /vagrant/public/uploads/video/overlay_RzWecVH02p.mp4"

    Here is my ffmpeg output

    $ overlay_edit.sh
    ffmpeg version N-61445-gdded5ed Copyright (c) 2000-2014 the FFmpeg developers
     built on Mar 14 2014 05:12:40 with gcc 4.6 (Debian 4.6.3-1)
     configuration: --prefix=/root/ffmpeg-static/32bit --arch=x86_32 --extra-cflags
    ='-m32 -I/root/ffmpeg-static/32bit/include -static' --extra-ldflags='-m32 -L/roo
    t/ffmpeg-static/32bit/lib -static' --extra-libs='-lxml2 -lexpat -lfreetype' --en
    able-static --disable-shared --disable-ffserver --disable-doc --enable-bzlib --e
    nable-zlib --enable-postproc --enable-runtime-cpudetect --enable-libx264 --enabl
    e-gpl --enable-libtheora --enable-libvorbis --enable-libmp3lame --enable-gray --
    enable-libass --enable-libfreetype --enable-libopenjpeg --enable-libspeex --enab
    le-libvo-aacenc --enable-libvo-amrwbenc --enable-version3 --enable-libvpx
     libavutil      52. 66.101 / 52. 66.101
     libavcodec     55. 52.102 / 55. 52.102
     libavformat    55. 34.101 / 55. 34.101
     libavdevice    55. 11.100 / 55. 11.100
     libavfilter     4.  3.100 /  4.  3.100
     libswscale      2.  5.101 /  2.  5.101
     libswresample   0. 18.100 /  0. 18.100
     libpostproc    52.  3.100 / 52.  3.100
    Input #0, avi, from '/vagrant/public/uploads/video/bw_RzWecVH02p.avi':
     Metadata:
       comment         : Converted by www.scriptcam.com
       encoder         : Lavf55.34.101
     Duration: 00:00:06.10, start: 0.000000, bitrate: 315 kb/s
       Stream #0:0: Video: mpeg4 (Simple Profile) (FMP4 / 0x34504D46), yuv420p, 320
    x240 [SAR 1:1 DAR 4:3], 268 kb/s, 30 tbr, 30 tbn, 30 tbc
       Stream #0:1: Audio: mp3 (U[0][0][0] / 0x0055), 16000 Hz, mono, s16p, 24 kb/s

    Input #1, image2, from '/vagrant/public/img/red_ellipse.png':
     Duration: 00:00:00.04, start: 0.000000, bitrate: N/A
       Stream #1:0: Video: png, rgb24, 320x240 [SAR 11811:11811 DAR 4:3], 25 tbr, 2
    5 tbn, 25 tbc
    [libx264 @ 0xa9c70c0] using SAR=1/1
    [libx264 @ 0xa9c70c0] using cpu capabilities: MMX2 SSE2Fast SSSE3 FastShuffle Ca
    che64
    [libx264 @ 0xa9c70c0] profile High, level 1.3
    [libx264 @ 0xa9c70c0] 264 - core 129 r2230 1cffe9f - H.264/MPEG-4 AVC codec - Co
    pyleft 2003-2012 - http://www.videolan.org/x264.html - options: cabac=1 ref=3 de
    block=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 chr
    oma_qp_offset=-2 threads=1 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=25 scene
    cut=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 '/vagrant/public/uploads/video/overlay_RzWecVH02p.mp4':
     Metadata:
       comment         : Converted by www.scriptcam.com
       encoder         : Lavf55.34.101
       Stream #0:0: Video: h264 (libx264) ([33][0][0][0] / 0x0021), yuv420p, 320x24
    0 [SAR 1:1 DAR 4:3], q=-1--1, 15360 tbn, 30 tbc (default)
       Stream #0:1: Audio: aac (libvo_aacenc) ([64][0][0][0] / 0x0040), 16000 Hz, m
    ono, s16, 128 kb/s
    Stream mapping:
     Stream #0:0 (mpeg4) -> blend:top (graph 0)
     Stream #1:0 (png) -> blend:bottom (graph 0)
     blend (graph 0) -> Stream #0:0 (libx264)
     Stream #0:1 -> #0:1 (mp3 -> libvo_aacenc)
    Press [q] to stop, [?] for help
    frame=   91 fps=0.0 q=29.0 size=      42kB time=00:00:02.90 bitrate= 117.7kbits/
    frame=  140 fps=135 q=29.0 size=     105kB time=00:00:04.57 bitrate= 187.3kbits/
    frame=  182 fps=106 q=29.0 Lsize=     178kB time=00:00:06.04 bitrate= 241.9kbits
    /s dup=52 drop=0
    video:158kB audio:16kB subtitle:0 data:0 global headers:0kB muxing overhead 2.25
    8588%
    [libx264 @ 0xa9c70c0] frame I:1     Avg QP:21.21  size:  9865
    [libx264 @ 0xa9c70c0] frame P:128   Avg QP:25.34  size:  1149
    [libx264 @ 0xa9c70c0] frame B:53    Avg QP:28.50  size:    88
    [libx264 @ 0xa9c70c0] consecutive B-frames: 59.3%  3.3%  6.6% 30.8%
    [libx264 @ 0xa9c70c0] mb I  I16..4:  1.3% 69.3% 29.3%
    [libx264 @ 0xa9c70c0] mb P  I16..4:  1.0%  5.8%  0.3%  P16..4: 35.1%  9.9%  5.6%
     0.0%  0.0%    skip:42.4%
    [libx264 @ 0xa9c70c0] mb B  I16..4:  0.1%  0.4%  0.0%  B16..8: 11.8%  0.5%  0.1%
     direct: 0.1%  skip:86.9%  L0:48.6% L1:47.7% BI: 3.7%
    [libx264 @ 0xa9c70c0] 8x8 transform intra:80.6% inter:80.1%
    [libx264 @ 0xa9c70c0] coded y,uvDC,uvAC intra: 73.1% 14.6% 5.3% inter: 13.2% 2.4
    % 0.4%
    [libx264 @ 0xa9c70c0] i16 v,h,dc,p: 14% 49% 28%  9%
    [libx264 @ 0xa9c70c0] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 15% 28% 32%  4%  4%  4%  4%
     4%  6%
    [libx264 @ 0xa9c70c0] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 21% 30% 14%  5%  6%  8%  5%
     5%  6%
    [libx264 @ 0xa9c70c0] i8c dc,h,v,p: 76% 13% 11%  1%
    [libx264 @ 0xa9c70c0] Weighted P-Frames: Y:0.8% UV:0.0%
    [libx264 @ 0xa9c70c0] ref P L0: 72.7% 16.4%  8.1%  2.8%  0.0%
    [libx264 @ 0xa9c70c0] ref B L0: 84.7% 13.1%  2.1%
    [libx264 @ 0xa9c70c0] ref B L1: 95.2%  4.8%
    [libx264 @ 0xa9c70c0] kb/s:213.09
    [libvo_aacenc @ 0xa9c82c0] 1 frames left in the queue on closing
    Connection to 127.0.0.1 closed.
  • Converting from FLV to MP4 using ffmpeg

    14 juillet 2016, par Brad

    I have a library of several thousand flv files which I need to convert to mp4. I’m trying to use ffmpeg to do so but I’m running into some issues.

    Primarily :

    1) I can’t switch from FLV to MP4 without re-encoding. If I do I get a message from ffmpeg saying "Could not find tag for codec flv1 in stream #0, codec not currently supported in container"

    2) If I re-encode the videos, the resultant videos are lower quality (I see artifacting in VLC) AND larger. For example one video went from 2.5MB to 4.3MB (almost double in size)

    Given number two you may be asking yourself - why convert then ?

    The answer is I need to stream these to mobile devices (phones/tablets etc) and flv isn’t supported. So I need to convert the files but I can’t tolerate more than a minimum change in quality, and preferably zero to no increase in size.

    Here’s the ffmpeg command I’m running :

    ffmpeg -i $_.FullName -movflags faststart -profile:v baseline -level 3.0 "$($_.BaseName).mp4"

    (Note that I’m running ffmpeg from powershell so :

    $_.FullName = the original file name
    "$($_.BaseName).mp4" = the original file name with mp4 extension)

    Can any FFMPEG guru’s help me to understand what I’m doing wrong ? Is there some set of parameters I can use to make this conversion result in less loss of quality and similar size ?

    Note I’ve also tried "-c:v libx264 -preset veryslow -crf 23 -c:a copy". Using present "veryslow" doesn’t result in any appreciable difference.

    UPDATE
    I’m using the following options :

    ffmpeg -i $_.FullName -c:v libx264 -preset veryslow -crf 19 -c:a copy "$($_.BaseName).mp4"

    Here’s the full output :

    ffmpeg version 2.8.4 Copyright (c) 2000-2015 the FFmpeg developers
    built with gcc 5.2.0 (GCC)
    configuration : —enable-gpl —enable-version3 —disable-w32threads —enable-avisynth —enable-bzlib —enable-fontconfi
    g —enable-frei0r —enable-gnutls —enable-iconv —enable-libass —enable-libbluray —enable-libbs2b —enable-libcaca —
    enable-libdcadec —enable-libfreetype —enable-libgme —enable-libgsm —enable-libilbc —enable-libmodplug —enable-libm
    p3lame —enable-libopencore-amrnb —enable-libopencore-amrwb —enable-libopenjpeg —enable-libopus —enable-librtmp —en
    able-libschroedinger —enable-libsoxr —enable-libspeex —enable-libtheora —enable-libtwolame —enable-libvidstab —ena
    ble-libvo-aacenc —enable-libvo-amrwbenc —enable-libvorbis —enable-libvpx —enable-libwavpack —enable-libwebp —enabl
    e-libx264 —enable-libx265 —enable-libxavs —enable-libxvid —enable-lzma —enable-decklink —enable-zlib
    libavutil 54. 31.100 / 54. 31.100
    libavcodec 56. 60.100 / 56. 60.100
    libavformat 56. 40.101 / 56. 40.101
    libavdevice 56. 4.100 / 56. 4.100
    libavfilter 5. 40.101 / 5. 40.101
    libswscale 3. 1.101 / 3. 1.101
    libswresample 1. 2.101 / 1. 2.101
    libpostproc 53. 3.100 / 53. 3.100
    Input #0, flv, from ’C :\Users\brad\Desktop\ffmpeg\Originals\1019800-1278575542468.flv’ :
    Metadata :
    canSeekToEnd : false
    createdby : FMS 3.5
    creationdate : Thu Jul 08 03:52:25 2010
    Duration : 00:00:56.94, start : 0.000000, bitrate : 360 kb/s
    Stream #0:0 : Video : flv1, yuv420p, 320x240, 1k tbr, 1k tbn, 1k tbc
    [libx264 @ 02cf7300] using cpu capabilities : MMX2 SSE2Fast SSSE3 SSE4.2
    [libx264 @ 02cf7300] profile High, level 4.2
    [libx264 @ 02cf7300] 264 - core 148 r2638 7599210 - H.264/MPEG-4 AVC codec - Copyleft 2003-2015 - http://www.videolan.or
    g/x264.html - options : cabac=1 ref=16 deblock=1:0:0 analyse=0x3:0x133 me=umh subme=10 psy=1 psy_rd=1.00:0.00 mixed_ref=1
    me_range=24 chroma_me=1 trellis=2 8x8dct=1 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2 threads=7 lookahead_th
    reads=1 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=8 b_pyramid=2 b_adapt=
    2 b_bias=0 direct=3 weightb=1 open_gop=0 weightp=2 keyint=250 keyint_min=25 scenecut=40 intra_refresh=0 rc_lookahead=60
    rc=crf mbtree=1 crf=19.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00
    Output #0, mp4, to ’1019800-1278575542468.mp4’ :
    Metadata :
    canSeekToEnd : false
    createdby : FMS 3.5
    creationdate : Thu Jul 08 03:52:25 2010
    encoder : Lavf56.40.101
    Stream #0:0 : Video : h264 (libx264) ([33][0][0][0] / 0x0021), yuv420p, 320x240, q=-1—1, 1k fps, 16k tbn, 1k tbc
    Metadata :
    encoder : Lavc56.60.100 libx264
    Stream mapping :
    Stream #0:0 -> #0:0 (flv1 (flv) -> h264 (libx264))
    Press [q] to stop, [?] for help
    frame=57117 fps=199 q=-1.0 Lsize= 5611kB time=00:00:57.11 bitrate= 804.8kbits/s dup=56685 drop=0
    video:5184kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead : 8.229259%
    [libx264 @ 02cf7300] frame I:230 Avg QP:15.92 size : 8828
    [libx264 @ 02cf7300] frame P:6399 Avg QP:17.19 size : 385
    [libx264 @ 02cf7300] frame B:50488 Avg QP:27.13 size : 16
    [libx264 @ 02cf7300] consecutive B-frames : 0.4% 0.0% 0.0% 0.0% 0.0% 2.3% 0.0% 0.0% 97.2%
    [libx264 @ 02cf7300] mb I I16..4 : 2.9% 92.6% 4.5%
    [libx264 @ 02cf7300] mb P I16..4 : 0.1% 2.0% 0.2% P16..4 : 2.4% 1.2% 1.1% 0.1% 0.0% skip:92.9%
    [libx264 @ 02cf7300] mb B I16..4 : 0.0% 0.0% 0.0% B16..8 : 2.6% 0.0% 0.0% direct : 0.0% skip:97.3% L0:45.0% L1:5
    4.9% BI : 0.0%
    [libx264 @ 02cf7300] 8x8 transform intra:90.7% inter:76.5%
    [libx264 @ 02cf7300] direct mvs spatial:75.2% temporal:24.8%
    [libx264 @ 02cf7300] coded y,uvDC,uvAC intra : 94.4% 96.8% 64.8% inter : 0.3% 0.4% 0.1%
    [libx264 @ 02cf7300] i16 v,h,dc,p : 16% 25% 18% 41%
    [libx264 @ 02cf7300] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu : 19% 28% 30% 4% 3% 3% 4% 4% 5%
    [libx264 @ 02cf7300] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu : 18% 22% 9% 11% 8% 7% 10% 8% 7%
    [libx264 @ 02cf7300] i8c dc,h,v,p : 30% 34% 23% 13%
    [libx264 @ 02cf7300] Weighted P-Frames : Y:0.1% UV:0.1%
    [libx264 @ 02cf7300] ref P L0 : 74.1% 19.7% 4.5% 0.6% 0.1% 0.2% 0.0% 0.1% 0.0% 0.1% 0.0% 0.2% 0.0% 0.2% 0.0%
    0.1%
    [libx264 @ 02cf7300] ref B L0 : 95.5% 1.6% 0.7% 0.5% 0.4% 0.3% 0.3% 0.2% 0.1% 0.1% 0.1% 0.1% 0.1% 0.0% 0.0%

    [libx264 @ 02cf7300] ref B L1 : 84.5% 15.5%
    [libx264 @ 02cf7300] kb/s:743.46

    Original Video Size: 2.44 MB
    New Video Size: 5.6 MB