Recherche avancée

Médias (3)

Mot : - Tags -/pdf

Autres articles (111)

  • 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 (...)

  • Les autorisations surchargées par les plugins

    27 avril 2010, par

    Mediaspip core
    autoriser_auteur_modifier() afin que les visiteurs soient capables de modifier leurs informations sur la page d’auteurs

Sur d’autres sites (8971)

  • Not able to scale, pad and combine 2 videos using FFmpeg

    21 novembre 2018, par Mayank

    I am using FFMpeg to scale, pad and merge 2 videos and generate one mp4 file. I am using the following command which leads to an output file with no audio for few seconds in the middle of the second video. Also, there is a faint white border displayed for few seconds on the black frame that I am creating. Though there are no errors in the command but I am getting a warning "[swscaler @ 0x6987800] Warning : data is not aligned ! This can lead to a speed loss".

    I checked other posts here and tried the solutions provided but it didn’t work for me. It would be great if some one can help point out what I am missing.

    Thanks in advance.

    Here is the command :

    ffmpeg -i 1_a.opus -i 2_a.opus -itsoffset 0.024181 -i 01_v.webm -itsoffset 0.113192 -i 02_v.webm -filter_complex \
    "[1:a]adelay=15726.168|15726.168[a1]; \
    [0:a][a1]amix; \
    [3:v]trim=0:15.726168,geq=0:128:128[silence]; \
    [3:v]fifo[3v]; \
    [silence][3v]concat[3_v_silence]; \
    [3_v_silence]scale=-1:240[3v_scaled_240]; \
    [3v_scaled_240]pad=width=320:height=240:x=(320-in_w)/2:y=(240-in_h)/2:color=black[3v_padded]; \
    [2:v]scale=-1:240[2v_scaled_240]; \
    [2v_scaled_240]pad=width=320:height=240:x=(320-in_w)/2:y=(240-in_h)/2:color=black[2v_padded]; \
    [2v_padded]fifo[2v]; \
    [2v][3v_padded]hstack[out_v]; \
    [out_v]pad=width=640:height=480:x=(640-in_w)/2:y=(480-in_h)/2:color=black" \
    -crf 40 -preset ultrafast -y -r pal out.mp4

    Console 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, matroska,webm, from '01_v.webm':
     Metadata:
       encoder         : Lavf56.40.101
     Duration: 00:01:03.83, start: 0.000000, bitrate: 202 kb/s
       Stream #2:0: Video: vp8, yuv420p(progressive), 640x480, SAR 1:1 DAR 4:3, 333 fps, 333 tbr, 1k tbn, 1k tbc (default)
    Input #3, matroska,webm, from '02_v.webm':
     Metadata:
       encoder         : Lavf56.40.101
     Duration: 00:00:52.34, start: 0.000000, bitrate: 200 kb/s
       Stream #3:0: Video: vp8, yuv420p(progressive), 480x640, SAR 1:1 DAR 3:4, 25 fps, 25 tbr, 1k tbn, 1k tbc (default)
    Stream mapping:
     Stream #0:0 (opus) -> amix:input0
     Stream #1:0 (opus) -> adelay
     Stream #2:0 (vp8) -> scale
     Stream #3:0 (vp8) -> trim
     Stream #3:0 (vp8) -> fifo
     amix -> Stream #0:0 (aac)
     pad -> Stream #0:1 (libx264)
    Press [q] to stop, [?] for help
    [swscaler @ 0x6484740] Warning: data is not aligned! This can lead to a speed loss
    [libx264 @ 0x63a0d40] using SAR=1/1
    [libx264 @ 0x63a0d40] using cpu capabilities: MMX2 SSE2Fast SSSE3 Cache64 SlowShuffle
    [libx264 @ 0x63a0d40] profile Constrained Baseline, level 3.0
    [libx264 @ 0x63a0d40] 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=40.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=0
    Output #0, mp4, to 'out.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, 640x480 [SAR 1:1 DAR 4: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= 1598 fps=131 q=-1.0 Lsize=    1375kB time=00:01:08.16 bitrate= 165.3kbits/s dup=2 drop=1047 speed=5.57x    
    video:455kB audio:883kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 2.787654%
    [aac @ 0x63a31c0] Qavg: 32520.934
    [libx264 @ 0x63a0d40] frame I:7     Avg QP:32.00  size:  5746
    [libx264 @ 0x63a0d40] frame P:1591  Avg QP:33.93  size:   267
    [libx264 @ 0x63a0d40] mb I  I16..4: 100.0%  0.0%  0.0%
    [libx264 @ 0x63a0d40] mb P  I16..4:  0.3%  0.0%  0.0%  P16..4:  4.2%  0.0%  0.0%  0.0%  0.0%    skip:95.5%
    [libx264 @ 0x63a0d40] coded y,uvDC,uvAC intra: 21.3% 18.9% 3.0% inter: 1.1% 0.5% 0.0%
    [libx264 @ 0x63a0d40] i16 v,h,dc,p: 54% 27% 11%  9%
    [libx264 @ 0x63a0d40] i8c dc,h,v,p: 69% 17% 10%  4%
    [libx264 @ 0x63a0d40] kb/s:58.22
  • How to remove everything but video and stereo audio stream from video with ffmpeg ?

    20 octobre 2019, par user3776738

    I’m trying to get a clean h264 video from a mkv file.With clean I mean that it has only a video stream plus stereo sound.
    The inputfile can have multiple channels and subtitles and other unknown stuff, which I don’t need.
    I’m using ffmpeg with this command :

    ffmpeg -i "input.mkv" -ac 2 -vf scale=trunc(oh*a/2)*2:480 -c:v libx264 "output.mp4"

    This should give me a 480p video with stereo sound,which I require.
    I tried multiple -map or dispositions commands with ffmpeg to remove the subtitles whithout any success.

    How can I remove everything but video and stereo stream with ffmpeg and get a 480p stereo sound video ?

    Edit :
    Output of ffmpeg - "input.mkv" -i "output.mp4" :

    ffmpeg -i "input.mkv" -i "output.mp4"
    ffmpeg version N-91972-gbd10c1e9a8 Copyright (c) 2000-2018 the FFmpeg developer

     built with gcc 8.2.1 (GCC) 20180813
     configuration: --enable-gpl --enable-version3 --enable-sdl2 --enable-fontconf
    g --enable-gnutls --enable-iconv --enable-libass --enable-libbluray --enable-li
    freetype --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-am
    wb --enable-libopenjpeg --enable-libopus --enable-libshine --enable-libsnappy -
    enable-libsoxr --enable-libtheora --enable-libtwolame --enable-libvpx --enable-
    ibwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxml2 -
    enable-libzimg --enable-lzma --enable-zlib --enable-gmp --enable-libvidstab --e
    able-libvorbis --enable-libvo-amrwbenc --enable-libmysofa --enable-libspeex --e
    able-libxvid --enable-libaom --enable-libmfx --enable-amf --enable-ffnvcodec --
    nable-cuvid --enable-d3d11va --enable-nvenc --enable-nvdec --enable-dxva2 --ena
    le-avisynth
     libavutil      56. 19.101 / 56. 19.101
     libavcodec     58. 30.100 / 58. 30.100
     libavformat    58. 18.101 / 58. 18.101
     libavdevice    58.  4.103 / 58.  4.103
     libavfilter     7. 32.100 /  7. 32.100
     libswscale      5.  2.100 /  5.  2.100
     libswresample   3.  2.100 /  3.  2.100
     libpostproc    55.  2.100 / 55.  2.100
    [hevc @ 00000000004a5940] Invalid default display window
    Input #0, matroska,webm, from 'input.mkv':
     Metadata:
       title           : Elysium (2013)
       encoder         : libebml v1.3.3 + libmatroska v1.4.4
       creation_time   : 2016-01-05T22:30:41.000000Z
     Duration: 00:01:02.73, start: 0.166000, bitrate: 53638 kb/s
       Chapter #0:0: start 0.000000, end 62.896000
       Metadata:
         title           : 00:00:00.000
       Stream #0:0(eng): Video: hevc (Main 10), yuv420p10le(tv), 3840x1606, SAR 1:
    DAR 1920:803, 23.98 fps, 23.98 tbr, 1k tbn, 23.98 tbc (default)
       Metadata:
         title           : Elysium (2013) - Release for ULTRAHDCLUB
         BPS             : 51036975
         BPS-eng         : 51036975
         DURATION        : 00:01:02.604000000
         DURATION-eng    : 00:01:02.604000000
         NUMBER_OF_FRAMES: 1501
         NUMBER_OF_FRAMES-eng: 1501
         NUMBER_OF_BYTES : 399389852
         NUMBER_OF_BYTES-eng: 399389852
         _STATISTICS_WRITING_APP: mkvmerge v8.7.0 ('All of the above') 64bit
         _STATISTICS_WRITING_APP-eng: mkvmerge v8.7.0 ('All of the above') 64bit
         _STATISTICS_WRITING_DATE_UTC: 2016-01-05 22:30:41
         _STATISTICS_WRITING_DATE_UTC-eng: 2016-01-05 22:30:41
         _STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
         _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
       Stream #0:1(eng): Audio: dts (DTS-HD MA), 48000 Hz, 7.1, s16p (default)
       Metadata:
         title           : DTS-HD MA 7.1 - Blu-ray CEE
         BPS             : 2706639
         BPS-eng         : 2706639
         DURATION        : 00:01:02.561000000
         DURATION-eng    : 00:01:02.561000000
         NUMBER_OF_FRAMES: 5865
         NUMBER_OF_FRAMES-eng: 5865
         NUMBER_OF_BYTES : 21166260
         NUMBER_OF_BYTES-eng: 21166260
         _STATISTICS_WRITING_APP: mkvmerge v8.7.0 ('All of the above') 64bit
         _STATISTICS_WRITING_APP-eng: mkvmerge v8.7.0 ('All of the above') 64bit
         _STATISTICS_WRITING_DATE_UTC: 2016-01-05 22:30:41
         _STATISTICS_WRITING_DATE_UTC-eng: 2016-01-05 22:30:41
         _STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
         _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
    Input #1, mov,mp4,m4a,3gp,3g2,mj2, from 'output.mp4':
     Metadata:
       major_brand     : isom
       minor_version   : 512
       compatible_brands: isomiso2avc1mp41
       title           : Elysium (2013)
       encoder         : Lavf58.18.101
     Duration: 00:01:02.73, start: 0.000000, bitrate: 1671 kb/s
       Chapter #1:0: start 0.000000, end 62.730000
       Metadata:
         title           : 00:00:00.000
       Stream #1:0(eng): Video: h264 (High 10) (avc1 / 0x31637661), yuv420p10le, 1
    46x480 [SAR 2030:2027 DAR 38773:16216], 1543 kb/s, SAR 15563:15540 DAR 1920:803
    23.98 fps, 23.98 tbr, 24k tbn, 47.95 tbc (default)
       Metadata:
         handler_name    : VideoHandler
       Stream #1:1(eng): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fl
    p, 128 kb/s (default)
       Metadata:
         handler_name    : SoundHandler
       Stream #1:2(eng): Data: bin_data (text / 0x74786574), 0 kb/s
       Metadata:
         handler_name    : SubtitleHandler
    At least one output file must be specified
  • Revision 37455 : Une meilleure vérification... On ne disposait pas encore de l’id_orig ici

    20 avril 2010, par kent1@… — Log

    Une meilleure vérification... On ne disposait pas encore de l’id_orig ici