Recherche avancée

Médias (1)

Mot : - Tags -/publishing

Autres articles (54)

  • Qualité du média après traitement

    21 juin 2013, par

    Le bon réglage du logiciel qui traite les média est important pour un équilibre entre les partis ( bande passante de l’hébergeur, qualité du média pour le rédacteur et le visiteur, accessibilité pour le visiteur ). Comment régler la qualité de son média ?
    Plus la qualité du média est importante, plus la bande passante sera utilisée. Le visiteur avec une connexion internet à petit débit devra attendre plus longtemps. Inversement plus, la qualité du média est pauvre et donc le média devient dégradé voire (...)

  • Participer à sa traduction

    10 avril 2011

    Vous pouvez nous aider à améliorer les locutions utilisées dans le logiciel ou à traduire celui-ci dans n’importe qu’elle nouvelle langue permettant sa diffusion à de nouvelles communautés linguistiques.
    Pour ce faire, on utilise l’interface de traduction de SPIP où l’ensemble des modules de langue de MediaSPIP sont à disposition. ll vous suffit de vous inscrire sur la liste de discussion des traducteurs pour demander plus d’informations.
    Actuellement MediaSPIP n’est disponible qu’en français et (...)

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

Sur d’autres sites (11056)

  • Can you put the result of a blackdetect filter in a textfile using ffmpeg ?

    9 mars 2017, par Gijserman

    I’m testing out the "blackdetect" filter in ffmpeg. I want to have the times when the video is black to be read by a script (like actionscript or javascript). I tried :

    ffmpeg -i video1.mp4 -vf "blackdetect=d=2:pix_th=0.00" -an -f null -

    And I get a nice result in the ffmpeg log :

    ffmpeg version N-55644-g68b63a3 Copyright (c) 2000-2013 the FFmpeg developers
     built on Aug 19 2013 20:32:00 with gcc 4.7.3 (GCC)
     configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-av
    isynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enab
    le-iconv --enable-libass --enable-libbluray --enable-libcaca --enable-libfreetyp
    e --enable-libgsm --enable-libilbc --enable-libmodplug --enable-libmp3lame --ena
    ble-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-l
    ibopus --enable-librtmp --enable-libschroedinger --enable-libsoxr --enable-libsp
    eex --enable-libtheora --enable-libtwolame --enable-libvo-aacenc --enable-libvo-
    amrwbenc --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libxavs --
    enable-libxvid --enable-zlib
     libavutil      52. 42.100 / 52. 42.100
     libavcodec     55. 28.100 / 55. 28.100
     libavformat    55. 13.103 / 55. 13.103
     libavdevice    55.  3.100 / 55.  3.100
     libavfilter     3. 82.100 /  3. 82.100
     libswscale      2.  5.100 /  2.  5.100
     libswresample   0. 17.103 /  0. 17.103
     libpostproc    52.  3.100 / 52.  3.100
    Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'video1.mp4':
     Metadata:
       major_brand     : isom
       minor_version   : 512
       compatible_brands: isomiso2avc1mp41
       creation_time   : 1970-01-01 00:00:00
       encoder         : Lavf53.13.0
     Duration: 00:02:01.54, start: 0.000000, bitrate: 275 kb/s
       Stream #0:0(eng): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 768x432 [
    SAR 1:1 DAR 16:9], 211 kb/s, 25 fps, 25 tbr, 25 tbn, 50 tbc
       Metadata:
         creation_time   : 1970-01-01 00:00:00
         handler_name    : VideoHandler
       Stream #0:1(eng): Audio: aac (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 59
    kb/s
       Metadata:
         creation_time   : 1970-01-01 00:00:00
         handler_name    : SoundHandler
    Output #0, null, to 'pipe:':
     Metadata:
       major_brand     : isom
       minor_version   : 512
       compatible_brands: isomiso2avc1mp41
       encoder         : Lavf55.13.103
       Stream #0:0(eng): Video: rawvideo (I420 / 0x30323449), yuv420p, 768x432 [SAR
    1:1 DAR 16:9], q=2-31, 200 kb/s, 90k tbn, 25 tbc
       Metadata:
         creation_time   : 1970-01-01 00:00:00
         handler_name    : VideoHandler
    Stream mapping:
     Stream #0:0 -> #0:0 (h264 -> rawvideo)
    Press [q] to stop, [?] for help
    [null @ 00000000003279a0] Encoder did not produce proper pts, making some up.
    [blackdetect @ 0000000004d5e800] black_start:0 black_end:17.08 black_duration:17
    .08
    [blackdetect @ 0000000004d5e800] black_start:62.32 black_end:121.48 black_durati
    on:59.16
    frame= 3038 fps=2317 q=0.0 Lsize=N/A time=00:02:01.52 bitrate=N/A
    video:285kB audio:0kB subtitle:0 global headers:0kB muxing overhead -100.007543%

    And I’m particularly interested in this part :

    [blackdetect @ 0000000004e2e340] black_start:0 black_end:17.08 black_duration:17.08
    [blackdetect @ 0000000004e2e340] black_start:62.32 black_end:121.48 black_duration:59.16

    So my question :

    1. Is there a way to only take the blackdetect filter output and put it in a .txt file ?
    2. And if this is possible, is there a way to do this in a statement with multiple video inputs ? Like in this example

    example :

    ffmpeg -f concat -i mylist.txt -c copy concat.mp4

    Where mylist.txt is a list of videos :

    file 'video1.mp4'
    file 'video2.mp4'
    file 'video3.mp4'
    file 'video4.mp4'

    Basically what I want to have is one or more text files containing information about the black frames in every video in this list to be used by another program

  • FFMPEG : Error while opening encoder - when resizing

    10 août 2015, par pufAmuf

    I am trying to resize a video so that the height is 240px.

    Here is the code I used :

    ffmpeg -i input.mp4 -vf scale=-1:240 -acodec mp3 -vcodec libx264 output.mp4

    The error I received was this :

    Error while opening encoder for output stream #0:0 - maybe incorrect
    parameters such as bit_rate, rate, width or height

    Specifically, here is the complete response :

    > [libx264 @ 042e0200] width not divisible by 2 (427x240) Output #0,
    > mp4, to 'output_240p.mp4':   Metadata:
    >     major_brand     : isom
    >     minor_version   : 512
    >     compatible_brands: isomiso2avc1mp41
    >     encoder         : Lavf53.24.2
    >     Stream #0:0(und): Video: h264, none, q=2-31, 128 kb/s, SAR 1280:1281 DAR 0:0 , 25 fps (default)
    >     Metadata:
    >       creation_time   : 1970-01-01 00:00:00
    >       handler_name    : VideoHandler
    >       encoder         : Lavc56.57.100 libx264
    >     Stream #0:1(und): Audio: mp3, 0 channels, 128 kb/s (default)
    >     Metadata:
    >       creation_time   : 1970-01-01 00:00:00
    >       handler_name    : SoundHandler
    >       encoder         : Lavc56.57.100 libmp3lame Stream mapping:   Stream #0:0 -> #0:0 (h264 (native) -> h264 (libx264))   Stream #0:1 ->
    > #0:1 (aac (native) -> mp3 (libmp3lame)) Error while opening encoder for output stream #0:0 - maybe incorrect parameters such as bit_rate,
    > rate, width or height

    If I use the below code, it works great, except then I can’t keep on using my aspect ratio :

    ffmpeg -i input.mp4 -s 320x240 -acodec mp3 -vcodec libx264 output.mp4

    Any idea what is going on here ? Thanks !

  • ffmpeg missing blend filter

    13 mars 2014, par user2927954

    I am working on android project using ffmpeg library. I followed instruction from : https://github.com/guardianproject/android-ffmpeg to build ffmpeg library for android. All are OK.

    Now, i am testing filters that corresponding to video filter of this library such as : drawtext, scale, pad, ... Most of them worked fine, but i have problem with "blend" filter.

    I try with commands : ffmpeg -i input1.mp4 -i input2.mp4 -filter_complex blend=all_expr='if(eq(mod(X,2),mod(Y,2)),A,B)' -y out.mp4 and recieve error : no such blend filter.

    Do you know how i configure to enable this filter ?

    Here is the output result :

    ffmpeg version 0.11.1 Copyright (c) 2000-2012 the FFmpeg developers
     built on Feb 27 2014 05:23:20 with gcc 4.6 20120106 (prerelease)
     configuration: --arch=arm --cpu=cortex-a8 --target-os=linux --enable-runtime-cpudetect --prefix=/data/data/info.guardianproject.ffmpeg/app_opt --enable-pic --disable-shared --enable-static --cross-prefix=/home/admin/workspace/android-ndk-r9c/toolchains/arm-linux-androideabi-4.6/prebuilt/linux-x86/bin/arm-linux-androideabi- --sysroot=/home/admin/workspace/android-ndk-r9c/platforms/android-3/arch-arm --extra-cflags='-I../x264 -mfloat-abi=softfp -mfpu=neon' --extra-ldflags=-L../x264 --enable-version3 --enable-gpl --disable-doc --enable-yasm --enable-decoders --enable-encoders --enable-muxers --enable-demuxers --enable-parsers --enable-protocols --enable-filters --enable-avresample --enable-libfreetype --disable-indevs --enable-indev=lavfi --disable-outdevs --enable-hwaccels --enable-ffmpeg --disable-ffplay --disable-ffprobe --disable-ffserver --disable-network --enable-libx264 --enable-zlib --enable-muxer=md5
     libavutil      51. 54.100 / 51. 54.100
     libavcodec     54. 23.100 / 54. 23.100
     libavformat    54.  6.100 / 54.  6.100
     libavdevice    54.  0.100 / 54.  0.100
     libavfilter     2. 77.100 /  2. 77.100
     libswscale      2.  1.100 /  2.  1.100
     libswresample   0. 15.100 /  0. 15.100
     libpostproc    52.  0.100 / 52.  0.100
    Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/storage/emulated/0/videokit/in.mp4':
     Metadata:
       major_brand     : isom
       minor_version   : 0
       compatible_brands: isom3gp4
       creation_time   : 2014-03-04 08:53:01
     Duration: 00:00:15.10, start: 0.000000, bitrate: 7055 kb/s
       Stream #0:0(eng): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 1280x720, 6935 kb/s, SAR 65536:65536 DAR 16:9, 17.18 fps, 34.42 tbr, 90k tbn, 180k tbc
       Metadata:
         creation_time   : 2014-03-04 08:53:01
         handler_name    : VideoHandle
       Stream #0:1(eng): Audio: aac (mp4a / 0x6134706D), 16000 Hz, stereo, s16, 128 kb/s
       Metadata:
         creation_time   : 2014-03-04 08:53:01
         handler_name    : SoundHandle
    Input #1, mov,mp4,m4a,3gp,3g2,mj2, from '/storage/emulated/0/videokit/7.mp4':
     Metadata:
       major_brand     : isom
       minor_version   : 512
       compatible_brands: isomiso2mp41
       creation_time   : 1970-01-01 00:00:00
       encoder         : Lavf53.12.0
       comment         : Courtesy of National Geographic.  Used by Permission.
     Duration: 00:00:04.20, start: 0.000000, bitrate: 1601 kb/s
       Stream #1:0(und): Video: mpeg4 (Simple Profile) (mp4v / 0x7634706D), yuv420p, 320x240 [SAR 1:1 DAR 4:3], 1472 kb/s, 10 fps, 10 tbr, 10 tbn, 10 tbc
       Metadata:
         creation_time   : 1970-01-01 00:00:00
         handler_name    : VideoHandler
       Stream #1:1(und): Audio: aac (mp4a / 0x6134706D), 48000 Hz, stereo, s16, 128 kb/s
       Metadata:
         creation_time   : 1970-01-01 00:00:00
         handler_name    : SoundHandler
    No such filter: 'blend'
    Error configuring filters.

    Thanks