Recherche avancée

Médias (1)

Mot : - Tags -/Rennes

Autres articles (31)

  • La file d’attente de SPIPmotion

    28 novembre 2010, par

    Une file d’attente stockée dans la base de donnée
    Lors de son installation, SPIPmotion crée une nouvelle table dans la base de donnée intitulée spip_spipmotion_attentes.
    Cette nouvelle table est constituée des champs suivants : id_spipmotion_attente, l’identifiant numérique unique de la tâche à traiter ; id_document, l’identifiant numérique du document original à encoder ; id_objet l’identifiant unique de l’objet auquel le document encodé devra être attaché automatiquement ; objet, le type d’objet auquel (...)

  • Les tâches Cron régulières de la ferme

    1er décembre 2010, par

    La gestion de la ferme passe par l’exécution à intervalle régulier de plusieurs tâches répétitives dites Cron.
    Le super Cron (gestion_mutu_super_cron)
    Cette tâche, planifiée chaque minute, a pour simple effet d’appeler le Cron de l’ensemble des instances de la mutualisation régulièrement. Couplée avec un Cron système sur le site central de la mutualisation, cela permet de simplement générer des visites régulières sur les différents sites et éviter que les tâches des sites peu visités soient trop (...)

  • Contribute to documentation

    13 avril 2011

    Documentation is vital to the development of improved technical capabilities.
    MediaSPIP welcomes documentation by users as well as developers - including : critique of existing features and functions articles contributed by developers, administrators, content producers and editors screenshots to illustrate the above translations of existing documentation into other languages
    To contribute, register to the project users’ mailing (...)

Sur d’autres sites (5768)

  • Why calling libav* library doesn't have same quality as ffmpeg command line ?

    10 mai 2016, par seaguest

    I am using the ffmpeg 3 to do the video format conversion, it works fine when I use the command line mode, but when I call the libav* library, I get a audio quality loss problem (there is a lot of noises in the audio).

    Here are the two files :

    mv.webm - original file
    mv2.mp4 converted with libarary , a lot of noises

    Here is the probe information for the mv.webm :

    $ ffprobe mv.webm
    ffprobe version N-79826-g64fd62d Copyright (c) 2007-2016 the FFmpeg developers
     built with gcc 5.3.1 (Ubuntu 5.3.1-14ubuntu2) 20160413
     configuration: --prefix=/home/seaguest/ffmpeg_build --pkg-config-flags=--static --extra-cflags=-I/home/seaguest/ffmpeg_build/include --extra-ldflags=-L/home/seaguest/ffmpeg_build/lib --enable-gpl --enable-libfdk-aac --enable-libx264 --enable-libx265 --enable-nonfree
     libavutil      55. 24.100 / 55. 24.100
     libavcodec     57. 39.100 / 57. 39.100
     libavformat    57. 36.100 / 57. 36.100
     libavdevice    57.  0.101 / 57.  0.101
     libavfilter     6. 45.100 /  6. 45.100
     libswscale      4.  1.100 /  4.  1.100
     libswresample   2.  0.101 /  2.  0.101
     libpostproc    54.  0.100 / 54.  0.100
    Input #0, matroska,webm, from 'mv.webm':
     Metadata:
       encoder         : Lavf57.36.100
     Duration: 00:00:30.00, start: 0.000000, bitrate: 935 kb/s
       Stream #0:0: Video: vp8, yuv420p, 640x480, SAR 1:1 DAR 4:3, 25 fps, 25 tbr, 1k tbn (default)
       Stream #0:1: Audio: vorbis, 44100 Hz, stereo, fltp (default)

    I checked the log printed by command line mode and calling code mode, the setting looks like the same, here are the logs :

    $ ffmpeg -i mv.webm -c:a aac -c:v libx264  mv.mp4
    ffmpeg version N-79826-g64fd62d Copyright (c) 2000-2016 the FFmpeg developers
     built with gcc 5.3.1 (Ubuntu 5.3.1-14ubuntu2) 20160413
     configuration: --prefix=/home/seaguest/ffmpeg_build --pkg-config-flags=--static --extra-cflags=-I/home/seaguest/ffmpeg_build/include --extra-ldflags=-L/home/seaguest/ffmpeg_build/lib --enable-gpl --enable-libfdk-aac --enable-libx264 --enable-libx265 --enable-nonfree
     libavutil      55. 24.100 / 55. 24.100
     libavcodec     57. 39.100 / 57. 39.100
     libavformat    57. 36.100 / 57. 36.100
     libavdevice    57.  0.101 / 57.  0.101
     libavfilter     6. 45.100 /  6. 45.100
     libswscale      4.  1.100 /  4.  1.100
     libswresample   2.  0.101 /  2.  0.101
     libpostproc    54.  0.100 / 54.  0.100
    Input #0, matroska,webm, from 'mv.webm':
     Metadata:
       encoder         : Lavf57.36.100
     Duration: 00:00:30.00, start: 0.000000, bitrate: 935 kb/s
       Stream #0:0: Video: vp8, yuv420p, 640x480, SAR 1:1 DAR 4:3, 25 fps, 25 tbr, 1k tbn (default)
       Stream #0:1: Audio: vorbis, 44100 Hz, stereo, fltp (default)
    [libx264 @ 0x3e5d880] using SAR=1/1
    [libx264 @ 0x3e5d880] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 AVX2 LZCNT BMI2
    [libx264 @ 0x3e5d880] profile High, level 3.0
    [libx264 @ 0x3e5d880] 264 - core 148 r2643 5c65704 - 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=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
    [mp4 @ 0x3e2f680] Using AVStream.codec to pass codec parameters to muxers is deprecated, use AVStream.codecpar instead.
       Last message repeated 1 times
    Output #0, mp4, to 'mv.mp4':
     Metadata:
       encoder         : Lavf57.36.100
       Stream #0:0: Video: h264 ([33][0][0][0] / 0x0021), yuv420p, 640x480 [SAR 1:1 DAR 4:3], q=2-31, 25 fps, 12800 tbn (default)
       Metadata:
         encoder         : Lavc57.39.100 libx264
       Side data:
         cpb: bitrate max/min/avg: 0/0/0 buffer size: 0 vbv_delay: -1
       Stream #0:1: Audio: aac (LC) ([64][0][0][0] / 0x0040), 44100 Hz, stereo, fltp, 128 kb/s (default)
       Metadata:
         encoder         : Lavc57.39.100 aac
    Stream mapping:
     Stream #0:0 -> #0:0 (vp8 (native) -> h264 (libx264))
     Stream #0:1 -> #0:1 (vorbis (native) -> aac (native))
    Press [q] to stop, [?] for help
    frame=  750 fps=229 q=-1.0 Lsize=    2508kB time=00:00:30.02 bitrate= 684.5kbits/s speed=9.17x
    video:2023kB audio:459kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 1.052857%
    [libx264 @ 0x3e5d880] frame I:11    Avg QP:15.29  size: 20395
    [libx264 @ 0x3e5d880] frame P:345   Avg QP:20.93  size:  4350
    [libx264 @ 0x3e5d880] frame B:394   Avg QP:23.55  size:   879
    [libx264 @ 0x3e5d880] consecutive B-frames: 25.2%  3.2% 33.2% 38.4%
    [libx264 @ 0x3e5d880] mb I  I16..4: 44.1% 32.5% 23.4%
    [libx264 @ 0x3e5d880] mb P  I16..4:  1.5%  3.6%  0.6%  P16..4: 28.9% 11.2%  4.7%  0.0%  0.0%    skip:49.5%
    [libx264 @ 0x3e5d880] mb B  I16..4:  0.0%  0.1%  0.0%  B16..8: 27.4%  2.0%  0.4%  direct: 0.8%  skip:69.3%  L0:40.0% L1:53.3% BI: 6.7%
    [libx264 @ 0x3e5d880] 8x8 transform intra:52.6% inter:74.9%
    [libx264 @ 0x3e5d880] coded y,uvDC,uvAC intra: 57.5% 68.6% 35.9% inter: 10.6% 11.9% 2.6%
    [libx264 @ 0x3e5d880] i16 v,h,dc,p: 36% 42%  7% 15%
    [libx264 @ 0x3e5d880] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 15% 23% 15% 6%  7%  7% 10%  7% 10%
    [libx264 @ 0x3e5d880] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 20% 27% 14% 6%  8%  7%  7%  6%  6%
    [libx264 @ 0x3e5d880] i8c dc,h,v,p: 46% 34% 11%  9%
    [libx264 @ 0x3e5d880] Weighted P-Frames: Y:0.0% UV:0.0%
    [libx264 @ 0x3e5d880] ref P L0: 63.9% 20.8% 11.2%  4.1%
    [libx264 @ 0x3e5d880] ref B L0: 93.1%  6.1%  0.8%
    [libx264 @ 0x3e5d880] ref B L1: 95.8%  4.2%
    [libx264 @ 0x3e5d880] kb/s:552.32
    [aac @ 0x3e5ec00] Qavg: 3030.804


    $ ffprobe mv.mp4
    ffprobe version N-79826-g64fd62d Copyright (c) 2007-2016 the FFmpeg developers
     built with gcc 5.3.1 (Ubuntu 5.3.1-14ubuntu2) 20160413
     configuration: --prefix=/home/seaguest/ffmpeg_build --pkg-config-flags=--static --extra-cflags=-I/home/seaguest/ffmpeg_build/include --extra-ldflags=-L/home/seaguest/ffmpeg_build/lib --enable-gpl --enable-libfdk-aac --enable-libx264 --enable-libx265 --enable-nonfree
     libavutil      55. 24.100 / 55. 24.100
     libavcodec     57. 39.100 / 57. 39.100
     libavformat    57. 36.100 / 57. 36.100
     libavdevice    57.  0.101 / 57.  0.101
     libavfilter     6. 45.100 /  6. 45.100
     libswscale      4.  1.100 /  4.  1.100
     libswresample   2.  0.101 /  2.  0.101
     libpostproc    54.  0.100 / 54.  0.100
    Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'mv.mp4':
     Metadata:
       major_brand     : isom
       minor_version   : 512
       compatible_brands: isomiso2avc1mp41
       encoder         : Lavf57.36.100
     Duration: 00:00:30.01, start: 0.000000, bitrate: 684 kb/s
       Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 640x480 [SAR 1:1 DAR 4:3], 552 kb/s, 25 fps, 25 tbr, 12800 tbn (default)
       Metadata:
         handler_name    : VideoHandler
       Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 125 kb/s (default)
       Metadata:
         handler_name    : SoundHandler

    For the calling code mode :

    $ go run transcode.go mv.webm mv1.mp4
    # github.com/3d0c/gmf
    ../packet.go: In function ‘_cgo_3c42eeb63b1e_Cfunc_avcodec_decode_audio4’:
    ../packet.go:87:2: warning: ‘avcodec_decode_audio4’ is deprecated [-Wdeprecated-declarations]
    func (this *Packet) decode(cc *CodecCtx, frame *Frame) (*Frame, bool, int, error) {
     ^
    In file included from ../packet.go:7:0:
    /home/seaguest/ffmpeg_build/include/libavcodec/avcodec.h:4685:5: note: declared here
    int avcodec_decode_audio4(AVCodecContext *avctx, AVFrame *frame,
        ^
    ../packet.go: In function ‘_cgo_3c42eeb63b1e_Cfunc_avcodec_decode_video2’:
    ../packet.go:104:2: warning: ‘avcodec_decode_video2’ is deprecated [-Wdeprecated-declarations]
      }
     ^
    In file included from ../packet.go:7:0:
    /home/seaguest/ffmpeg_build/include/libavcodec/avcodec.h:4734:5: note: declared here
    int avcodec_decode_video2(AVCodecContext *avctx, AVFrame *picture,
        ^
    [libx264 @ 0x2d82400] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 AVX2 LZCNT BMI2
    [libx264 @ 0x2d82400] profile High, level 3.0
    [libx264 @ 0x2d82400] 264 - core 148 r2643 5c65704 - 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=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
    [mp4 @ 0x2d480c0] Using AVStream.codec.time_base as a timebase hint to the muxer is deprecated. Set AVStream.time_base instead.
    [mp4 @ 0x2d480c0] Using AVStream.codec to pass codec parameters to muxers is deprecated, use AVStream.codecpar instead.
    [mp4 @ 0x2d480c0] Using AVStream.codec.time_base as a timebase hint to the muxer is deprecated. Set AVStream.time_base instead.
    [mp4 @ 0x2d480c0] Using AVStream.codec to pass codec parameters to muxers is deprecated, use AVStream.codecpar instead.



    $ ffprobe mv1.mp4
    ffprobe version N-79826-g64fd62d Copyright (c) 2007-2016 the FFmpeg developers
     built with gcc 5.3.1 (Ubuntu 5.3.1-14ubuntu2) 20160413
     configuration: --prefix=/home/seaguest/ffmpeg_build --pkg-config-flags=--static --extra-cflags=-I/home/seaguest/ffmpeg_build/include --extra-ldflags=-L/home/seaguest/ffmpeg_build/lib --enable-gpl --enable-libfdk-aac --enable-libx264 --enable-libx265 --enable-nonfree
     libavutil      55. 24.100 / 55. 24.100
     libavcodec     57. 39.100 / 57. 39.100
     libavformat    57. 36.100 / 57. 36.100
     libavdevice    57.  0.101 / 57.  0.101
     libavfilter     6. 45.100 /  6. 45.100
     libswscale      4.  1.100 /  4.  1.100
     libswresample   2.  0.101 /  2.  0.101
     libpostproc    54.  0.100 / 54.  0.100
    Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'mv1.mp4':
     Metadata:
       major_brand     : isom
       minor_version   : 512
       compatible_brands: isomiso2avc1mp41
       encoder         : Lavf57.36.100
     Duration: 00:00:30.00, start: 0.000000, bitrate: 751 kb/s
       Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 640x480, 613 kb/s, 25 fps, 25 tbr, 12800 tbn (default)
       Metadata:
         handler_name    : VideoHandler
       Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 130 kb/s (default)
       Metadata:
         handler_name    : SoundHandler

    Checking the setting section, crf=23.0 for both (the rest are exactly the same), but the output bitrate are different (the audio for calling code mode has a lot of noises), how is that possible ?

    Why the command line mode and use libav* library mode with same setting, but have different output ?
    What should I do to call libav* library to get lossless video conversion ?

  • Video becomes choppy when the order in the hstack filter is changed

    25 octobre 2018, par Mayank

    I have a FFmpeg command wherein I am merging 2 videos side by side using hstack filter. When I place first video on the right hand side and second video on the left hand side, the final merged video is perfect in quality and plays smoothly.

    However, when I swap the order in hstack filter, the final video is very choppy.

    Can someone please let me know the issue in this command ? Many thanks in advance.

    Also, the file size of the non working file is almost double than that of working file. Can you explain why ?

    Here is the working command :

    ffmpeg -i 1_a.opus -i 2_a.opus -itsoffset 0.024 -i 1_v.mp4 -itsoffset 0.113 -i 2_v.mp4 -filter_complex "[1:a]adelay=15646|15646[a1]; [0:a][a1]amix; [3:v]trim=0:15.646,geq=0:128:128[silence]; [3:v]fifo[3v]; [silence][3v]concat[3_v_silence]; [3_v_silence][2:v]hstack" -preset ultrafast -y n_m_bars_try2.mp4

    output :

    ffmpeg version 4.0.2-static https://johnvansickle.com/ffmpeg/  Copyright (c) 2000-2018 the FFmpeg developers
     built with gcc 6.3.0 (Debian 6.3.0-18+deb9u1) 20170516
     configuration: --enable-gpl --enable-version3 --enable-static --disable-debug --disable-ffplay --disable-indev=sndio --disable-outdev=sndio --cc=gcc-6 --enable-fontconfig --enable-frei0r --enable-gnutls --enable-gray --enable-libaom --enable-libfribidi --enable-libass --enable-libvmaf --enable-libfreetype --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-librubberband --enable-libsoxr --enable-libspeex --enable-libvorbis --enable-libopus --enable-libtheora --enable-libvidstab --enable-libvo-amrwbenc --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzimg
     libavutil      56. 14.100 / 56. 14.100
     libavcodec     58. 18.100 / 58. 18.100
     libavformat    58. 12.100 / 58. 12.100
     libavdevice    58.  3.100 / 58.  3.100
     libavfilter     7. 16.100 /  7. 16.100
     libswscale      5.  1.100 /  5.  1.100
     libswresample   3.  1.100 /  3.  1.100
     libpostproc    55.  1.100 / 55.  1.100
    Input #0, ogg, from '1_a.opus':
     Duration: 00:01:03.82, start: -0.020000, bitrate: 37 kb/s
       Stream #0:0: Audio: opus, 48000 Hz, stereo, fltp
    Input #1, ogg, from '2_a.opus':
     Duration: 00:00:52.40, start: -0.020000, bitrate: 44 kb/s
       Stream #1:0: Audio: opus, 48000 Hz, stereo, fltp
    Input #2, mov,mp4,m4a,3gp,3g2,mj2, from '1_v.mp4':
     Metadata:
       major_brand     : isom
       minor_version   : 512
       compatible_brands: isomiso2avc1mp41
       encoder         : Lavf58.12.100
     Duration: 00:01:03.85, start: 0.000000, bitrate: 2644 kb/s
       Stream #2:0(und): Video: h264 (Constrained Baseline) (avc1 / 0x31637661), yuv420p, 640x480 [SAR 1:1 DAR 4:3], 2633 kb/s, 333 fps, 333 tbr, 10656 tbn, 666 tbc (default)
       Metadata:
         handler_name    : VideoHandler
    Input #3, mov,mp4,m4a,3gp,3g2,mj2, from '2_v.mp4':
     Metadata:
       major_brand     : isom
       minor_version   : 512
       compatible_brands: isomiso2avc1mp41
       encoder         : Lavf58.12.100
     Duration: 00:00:52.32, start: 0.000000, bitrate: 861 kb/s
       Stream #3:0(und): Video: h264 (Constrained Baseline) (avc1 / 0x31637661), yuv420p, 640x480 [SAR 1:1 DAR 4:3], 860 kb/s, 25 fps, 25 tbr, 12800 tbn, 50 tbc (default)
       Metadata:
         handler_name    : VideoHandler
    Stream mapping:
     Stream #0:0 (opus) -> amix:input0
     Stream #1:0 (opus) -> adelay
     Stream #2:0 (h264) -> hstack:input1
     Stream #3:0 (h264) -> trim
     Stream #3:0 (h264) -> fifo
     amix -> Stream #0:0 (aac)
     hstack -> Stream #0:1 (libx264)
    Press [q] to stop, [?] for help
    [libx264 @ 0x528d600] using SAR=1/1
    [libx264 @ 0x528d600] using cpu capabilities: MMX2 SSE2Fast SSSE3 Cache64 SlowShuffle
    [libx264 @ 0x528d600] profile Constrained Baseline, level 3.1
    [libx264 @ 0x528d600] 264 - core 155 r2901 7d0ff22 - H.264/MPEG-4 AVC codec - Copyleft 2003-2018 - http://www.videolan.org/x264.html - options: cabac=0 ref=1 deblock=0:0:0 analyse=0:0 me=dia subme=0 psy=1 psy_rd=1.00:0.00 mixed_ref=0 me_range=16 chroma_me=1 trellis=1 8x8dct=0 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=0 threads=3 lookahead_threads=1 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=0 weightp=0 keyint=250 keyint_min=25 scenecut=0 intra_refresh=0 rc=crf mbtree=0 crf=23.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=0
    Output #0, mp4, to 'navid_mayank_bars_try2.mp4':
     Metadata:
       encoder         : Lavf58.12.100
       Stream #0:0: Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 128 kb/s (default)
       Metadata:
         encoder         : Lavc58.18.100 aac
       Stream #0:1: Video: h264 (libx264) (avc1 / 0x31637661), yuv420p, 1280x480 [SAR 1:1 DAR 8:3], q=-1--1, 25 fps, 12800 tbn, 25 tbc (default)
       Metadata:
         encoder         : Lavc58.18.100 libx264
       Side data:
         cpb: bitrate max/min/avg: 0/0/0 buffer size: 0 vbv_delay: -1
    frame= 1704 fps= 42 q=-1.0 Lsize=   14440kB time=00:01:08.12 bitrate=1736.5kbits/s dup=3 drop=21229 speed=1.69x    
    video:13448kB audio:953kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.269503%
    [aac @ 0x52b8680] Qavg: 22255.799
    [libx264 @ 0x528d600] frame I:7     Avg QP:16.29  size: 46284
    [libx264 @ 0x528d600] frame P:1697  Avg QP:18.36  size:  7924
    [libx264 @ 0x528d600] mb I  I16..4: 100.0%  0.0%  0.0%
    [libx264 @ 0x528d600] mb P  I16..4:  1.8%  0.0%  0.0%  P16..4: 31.0%  0.0%  0.0%  0.0%  0.0%    skip:67.2%
    [libx264 @ 0x528d600] coded y,uvDC,uvAC intra: 29.9% 59.3% 17.5% inter: 13.4% 24.6% 0.8%
    [libx264 @ 0x528d600] i16 v,h,dc,p: 36% 29% 18% 17%
    [libx264 @ 0x528d600] i8c dc,h,v,p: 42% 25% 21% 11%
    [libx264 @ 0x528d600] kb/s:1616.23

    Non working command :

    ffmpeg -i 1_a.opus -i 2_a.opus -itsoffset 0.024 -i 1_v.mp4 -itsoffset 0.113 -i 2_v.mp4 -filter_complex "[1:a]adelay=15646|15646[a1]; [0:a][a1]amix; [3:v]trim=0:15.646,geq=0:128:128[silence]; [3:v]fifo[3v]; [silence][3v]concat[3_v_silence]; [2:v][3_v_silence]hstack" -preset ultrafast -y m_n_bars_try2.mp4

    output :

    ffmpeg version 4.0.2-static https://johnvansickle.com/ffmpeg/  Copyright (c) 2000-2018 the FFmpeg developers
     built with gcc 6.3.0 (Debian 6.3.0-18+deb9u1) 20170516
     configuration: --enable-gpl --enable-version3 --enable-static --disable-debug --disable-ffplay --disable-indev=sndio --disable-outdev=sndio --cc=gcc-6 --enable-fontconfig --enable-frei0r --enable-gnutls --enable-gray --enable-libaom --enable-libfribidi --enable-libass --enable-libvmaf --enable-libfreetype --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-librubberband --enable-libsoxr --enable-libspeex --enable-libvorbis --enable-libopus --enable-libtheora --enable-libvidstab --enable-libvo-amrwbenc --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzimg
     libavutil      56. 14.100 / 56. 14.100
     libavcodec     58. 18.100 / 58. 18.100
     libavformat    58. 12.100 / 58. 12.100
     libavdevice    58.  3.100 / 58.  3.100
     libavfilter     7. 16.100 /  7. 16.100
     libswscale      5.  1.100 /  5.  1.100
     libswresample   3.  1.100 /  3.  1.100
     libpostproc    55.  1.100 / 55.  1.100
    Input #0, ogg, from '1_a.opus':
     Duration: 00:01:03.82, start: -0.020000, bitrate: 37 kb/s
       Stream #0:0: Audio: opus, 48000 Hz, stereo, fltp
    Input #1, ogg, from '2_a.opus':
     Duration: 00:00:52.40, start: -0.020000, bitrate: 44 kb/s
       Stream #1:0: Audio: opus, 48000 Hz, stereo, fltp
    Input #2, mov,mp4,m4a,3gp,3g2,mj2, from '1_v.mp4':
     Metadata:
       major_brand     : isom
       minor_version   : 512
       compatible_brands: isomiso2avc1mp41
       encoder         : Lavf58.12.100
     Duration: 00:01:03.85, start: 0.000000, bitrate: 2644 kb/s
       Stream #2:0(und): Video: h264 (Constrained Baseline) (avc1 / 0x31637661), yuv420p, 640x480 [SAR 1:1 DAR 4:3], 2633 kb/s, 333 fps, 333 tbr, 10656 tbn, 666 tbc (default)
       Metadata:
         handler_name    : VideoHandler
    Input #3, mov,mp4,m4a,3gp,3g2,mj2, from '2_v.mp4':
     Metadata:
       major_brand     : isom
       minor_version   : 512
       compatible_brands: isomiso2avc1mp41
       encoder         : Lavf58.12.100
     Duration: 00:00:52.32, start: 0.000000, bitrate: 861 kb/s
       Stream #3:0(und): Video: h264 (Constrained Baseline) (avc1 / 0x31637661), yuv420p, 640x480 [SAR 1:1 DAR 4:3], 860 kb/s, 25 fps, 25 tbr, 12800 tbn, 50 tbc (default)
       Metadata:
         handler_name    : VideoHandler
    Stream mapping:
     Stream #0:0 (opus) -> amix:input0
     Stream #1:0 (opus) -> adelay
     Stream #2:0 (h264) -> hstack:input0
     Stream #3:0 (h264) -> trim
     Stream #3:0 (h264) -> fifo
     amix -> Stream #0:0 (aac)
     hstack -> Stream #0:1 (libx264)
    Press [q] to stop, [?] for help
    [libx264 @ 0x6d21600] using SAR=1/1
    [libx264 @ 0x6d21600] using cpu capabilities: MMX2 SSE2Fast SSSE3 Cache64 SlowShuffle
    [libx264 @ 0x6d21600] profile Constrained Baseline, level 5.1
    [libx264 @ 0x6d21600] 264 - core 155 r2901 7d0ff22 - H.264/MPEG-4 AVC codec - Copyleft 2003-2018 - http://www.videolan.org/x264.html - options: cabac=0 ref=1 deblock=0:0:0 analyse=0:0 me=dia subme=0 psy=1 psy_rd=1.00:0.00 mixed_ref=0 me_range=16 chroma_me=1 trellis=1 8x8dct=0 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=0 threads=3 lookahead_threads=1 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=0 weightp=0 keyint=250 keyint_min=25 scenecut=0 intra_refresh=0 rc=crf mbtree=0 crf=23.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=0
    Output #0, mp4, to 'mayank_navid_bars_try2.mp4':
     Metadata:
       encoder         : Lavf58.12.100
       Stream #0:0: Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 128 kb/s (default)
       Metadata:
         encoder         : Lavc58.18.100 aac
       Stream #0:1: Video: h264 (libx264) (avc1 / 0x31637661), yuv420p, 1280x480 [SAR 1:1 DAR 8:3], q=-1--1, 333 fps, 10656 tbn, 333 tbc (default)
       Metadata:
         encoder         : Lavc58.18.100 libx264
       Side data:
         cpb: bitrate max/min/avg: 0/0/0 buffer size: 0 vbv_delay: -1
    Past duration 0.999992 too large
       Last message repeated 12 times
    More than 1000 frames duplicated   33280kB time=00:01:08.03 bitrate=4007.4kbits/s dup=982 drop=1590 speed=0.536x    
    frame=22679 fps=177 q=-1.0 Lsize=   33892kB time=00:01:08.10 bitrate=4076.9kbits/s dup=1339 drop=1590 speed=0.531x    
    video:32804kB audio:953kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.401324%
    [aac @ 0x6d4c680] Qavg: 22255.799
    [libx264 @ 0x6d21600] frame I:91    Avg QP:15.31  size: 51639
    [libx264 @ 0x6d21600] frame P:22588 Avg QP:18.24  size:  1279
    [libx264 @ 0x6d21600] mb I  I16..4: 100.0%  0.0%  0.0%
    [libx264 @ 0x6d21600] mb P  I16..4:  0.2%  0.0%  0.0%  P16..4: 13.0%  0.0%  0.0%  0.0%  0.0%    skip:86.8%
    [libx264 @ 0x6d21600] coded y,uvDC,uvAC intra: 44.9% 54.0% 29.9% inter: 2.0% 10.9% 0.1%
    [libx264 @ 0x6d21600] i16 v,h,dc,p: 45% 24% 13% 18%
    [libx264 @ 0x6d21600] i8c dc,h,v,p: 51% 20% 18% 11%
    [libx264 @ 0x6d21600] kb/s:3945.79
  • FFMPEG sepia filter

    24 avril 2017, par Alex Konetchy

    Can’t seem to figure out why my colorchannelmixer filter is not working with ffmpeg. It doesn’t appear to output any errors, but the ouput.mp4 video is just a 0 second long video with no thumbnail.

    Here’s the command I’m trying.

    ffmpeg -i video.mp4 -filter_complex \
    "[0:v] colorchannelmixer=.393:.769:.189:0:.349:.686:.168:0:.272:.534:.131[f1];\
    [f1] eq=1.0:0:1.3:2.4:1.0:1.0:1.0:1.0 [outv]" -map "[outv]" output.mp4

    And the output I receive.

    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-fontconfig --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-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-libschroedinger --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-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, mov,mp4,m4a,3gp,3g2,mj2, from 'video.mp4':
         Metadata:
           major_brand     : mp42
           minor_version   : 1
           compatible_brands: mp41mp42isom
           creation_time   : 2017-04-18 20:22:52
         Duration: 00:00:59.20, start: 0.000000, bitrate: 5045 kb/s
           Stream #0:0(eng): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 2 kb/s (default)
           Metadata:
             creation_time   : 2017-04-18 20:22:52
             handler_name    : Core Media Audio
           Stream #0:1(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p(tv, bt709), 1920x1080 [SAR 1:1 DAR 16:9], 5038 kb/s, 25 fps, 25 tbr, 25 tbn, 50 tbc (default)
           Metadata:
             creation_time   : 2017-04-18 20:22:52
             handler_name    : Core Media Video
       File 'output.mp4' already exists. Overwrite ? [y/N] y
       No pixel format specified, yuv444p for H.264 encoding chosen.
       Use -pix_fmt yuv420p for compatibility with outdated media players.
       [libx264 @ 04f1b8e0] using SAR=1/1
       [libx264 @ 04f1b8e0] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 AVX2 LZCNT BMI2
       [libx264 @ 04f1b8e0] profile High 4:4:4 Predictive, level 4.0, 4:4:4 8-bit
       [libx264 @ 04f1b8e0] 264 - core 148 r2638 7599210 - 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=4 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 'output.mp4':
         Metadata:
           major_brand     : mp42
           minor_version   : 1
           compatible_brands: mp41mp42isom
           encoder         : Lavf56.40.101
           Stream #0:0: Video: h264 (libx264) ([33][0][0][0] / 0x0021), yuv444p, 1920x1080 [SAR 1:1 DAR 16:9], q=-1--1, 25 fps, 12800 tbn, 25 tbc (default)
           Metadata:
             encoder         : Lavc56.60.100 libx264
       Stream mapping:
         Stream #0:1 (h264) -> colorchannelmixer
         eq -> Stream #0:0 (libx264)
       Press [q] to stop, [?] for help
       frame=   50 fps=4.7 q=-1.0 Lsize=     281kB time=00:00:01.92 bitrate=1197.3kbits/s
       video:279kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.502929%
       [libx264 @ 04f1b8e0] frame I:1     Avg QP:19.00  size: 51169
       [libx264 @ 04f1b8e0] frame P:13    Avg QP:20.60  size: 10882
       [libx264 @ 04f1b8e0] frame B:36    Avg QP:23.29  size:  2572
       [libx264 @ 04f1b8e0] consecutive B-frames:  2.0%  4.0%  6.0% 88.0%
       [libx264 @ 04f1b8e0] mb I  I16..4: 25.5% 63.4% 11.1%
       [libx264 @ 04f1b8e0] mb P  I16..4:  2.7%  2.8%  0.2%  P16..4: 22.7%  5.4%  2.7%  0.0%  0.0%    skip:63.5%
       [libx264 @ 04f1b8e0] mb B  I16..4:  0.3%  0.5%  0.0%  B16..8: 17.2%  0.7%  0.0%  direct: 0.1%  skip:81.1%  L0:43.6% L1:55.1% BI: 1.4%
       [libx264 @ 04f1b8e0] 8x8 transform intra:58.3% inter:91.1%
       [libx264 @ 04f1b8e0] coded y,u,v intra: 25.2% 10.1% 12.0% inter: 2.7% 0.5% 0.6%
       [libx264 @ 04f1b8e0] i16 v,h,dc,p: 44% 36% 13%  8%
       [libx264 @ 04f1b8e0] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 22% 20% 42%  3%  2%  2%  4%  3%  3%
       [libx264 @ 04f1b8e0] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 29% 26% 12%  4%  6%  6%  9%  5%  3%
       [libx264 @ 04f1b8e0] Weighted P-Frames: Y:0.0% UV:0.0%
       [libx264 @ 04f1b8e0] ref P L0: 61.3%  6.1% 22.1% 10.5%
       [libx264 @ 04f1b8e0] ref B L0: 78.5% 16.8%  4.6%
       [libx264 @ 04f1b8e0] ref B L1: 94.9%  5.1%
       [libx264 @ 04f1b8e0] kb/s:1140.95