Recherche avancée

Médias (3)

Mot : - Tags -/spip

Autres articles (62)

  • Les formats acceptés

    28 janvier 2010, par

    Les commandes suivantes permettent d’avoir des informations sur les formats et codecs gérés par l’installation local de ffmpeg :
    ffmpeg -codecs ffmpeg -formats
    Les format videos acceptés en entrée
    Cette liste est non exhaustive, elle met en exergue les principaux formats utilisés : h264 : H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10 m4v : raw MPEG-4 video format flv : Flash Video (FLV) / Sorenson Spark / Sorenson H.263 Theora wmv :
    Les formats vidéos de sortie possibles
    Dans un premier temps on (...)

  • Ajouter notes et légendes aux images

    7 février 2011, par

    Pour pouvoir ajouter notes et légendes aux images, la première étape est d’installer le plugin "Légendes".
    Une fois le plugin activé, vous pouvez le configurer dans l’espace de configuration afin de modifier les droits de création / modification et de suppression des notes. Par défaut seuls les administrateurs du site peuvent ajouter des notes aux images.
    Modification lors de l’ajout d’un média
    Lors de l’ajout d’un média de type "image" un nouveau bouton apparait au dessus de la prévisualisation (...)

  • Demande de création d’un canal

    12 mars 2010, par

    En fonction de la configuration de la plateforme, l’utilisateur peu avoir à sa disposition deux méthodes différentes de demande de création de canal. La première est au moment de son inscription, la seconde, après son inscription en remplissant un formulaire de demande.
    Les deux manières demandent les mêmes choses fonctionnent à peu près de la même manière, le futur utilisateur doit remplir une série de champ de formulaire permettant tout d’abord aux administrateurs d’avoir des informations quant à (...)

Sur d’autres sites (9426)

  • concatenate encrypted m3u8 ts video segments into a whole

    20 octobre 2016, par iMath

    The m3u8 content

    #EXTM3U
    #EXT-X-VERSION:3
    #EXT-X-ALLOW-CACHE:YES
    #EXT-X-TARGETDURATION:5
    #EXT-X-MEDIA-SEQUENCE:0
    #EXT-X-KEY:METHOD=AES-128,URI="http://www.gaiamount.com/keys/3958/4k",IV=0x440796ac5ac10cc577f9bec05cd042ef
    #EXTINF:5.000000,
    /seg/u116/v810_mp4_0000.ts
    #EXTINF:5.000000,
    /seg/u116/v810_mp4_0001.ts
    #EXTINF:5.000000,
    /seg/u116/v810_mp4_0002.ts
    #EXTINF:5.000000,
    /seg/u116/v810_mp4_0003.ts
    #EXTINF:5.000000,
    /seg/u116/v810_mp4_0004.ts
    #EXTINF:5.000000,
    /seg/u116/v810_mp4_0005.ts
    #EXTINF:5.000000,
    /seg/u116/v810_mp4_0006.ts
    #EXTINF:5.000000,
    /seg/u116/v810_mp4_0007.ts
    #EXTINF:5.000000,
    /seg/u116/v810_mp4_0008.ts
    #EXTINF:5.000000,
    /seg/u116/v810_mp4_0009.ts
    #EXTINF:5.000000,
    /seg/u116/v810_mp4_0010.ts
    #EXTINF:5.000000,
    /seg/u116/v810_mp4_0011.ts
    #EXTINF:5.000000,
    /seg/u116/v810_mp4_0012.ts
    #EXTINF:5.000000,
    /seg/u116/v810_mp4_0013.ts
    #EXTINF:5.000000,
    /seg/u116/v810_mp4_0014.ts
    #EXTINF:5.000000,
    /seg/u116/v810_mp4_0015.ts
    #EXTINF:5.000000,
    /seg/u116/v810_mp4_0016.ts
    #EXTINF:5.000000,
    /seg/u116/v810_mp4_0017.ts
    #EXTINF:5.000000,
    /seg/u116/v810_mp4_0018.ts
    #EXTINF:5.000000,
    /seg/u116/v810_mp4_0019.ts
    #EXTINF:5.000000,
    /seg/u116/v810_mp4_0020.ts
    #EXTINF:5.000000,
    /seg/u116/v810_mp4_0021.ts
    #EXTINF:5.000000,
    /seg/u116/v810_mp4_0022.ts
    #EXTINF:5.000000,
    /seg/u116/v810_mp4_0023.ts
    #EXTINF:5.000000,
    /seg/u116/v810_mp4_0024.ts
    #EXTINF:5.000000,
    /seg/u116/v810_mp4_0025.ts
    #EXTINF:5.000000,
    /seg/u116/v810_mp4_0026.ts
    #EXTINF:5.000000,
    /seg/u116/v810_mp4_0027.ts
    #EXTINF:5.000000,
    /seg/u116/v810_mp4_0028.ts
    #EXTINF:5.000000,
    /seg/u116/v810_mp4_0029.ts
    #EXTINF:4.760000,
    /seg/u116/v810_mp4_0030.ts
    #EXT-X-ENDLIST

    I’ve already download all the ts video segments using another Downloader , then try to follow the method to concatenate these ts video segments into a whole , however the ffmpeg complains the following

    C:\Users\i>ffmpeg -f concat -i mylist.txt -c copy output.ts
    ffmpeg version N-81475-gdc7e5ad Copyright (c) 2000-2016 the FFmpeg developers
     built with gcc 5.4.0 (GCC)
     configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-dx
    va2 --enable-libmfx --enable-nvenc --enable-avisynth --enable-bzlib --enable-lib
    ebur128 --enable-fontconfig --enable-frei0r --enable-gnutls --enable-iconv --ena
    ble-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libfree
    type --enable-libgme --enable-libgsm --enable-libilbc --enable-libmodplug --enab
    le-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-lib
    openh264 --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-libschr
    oedinger --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libtheor
    a --enable-libtwolame --enable-libvidstab --enable-libvo-amrwbenc --enable-libvo
    rbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --ena
    ble-libx265 --enable-libxavs --enable-libxvid --enable-libzimg --enable-lzma --e
    nable-decklink --enable-zlib
     libavutil      55. 29.100 / 55. 29.100
     libavcodec     57. 54.100 / 57. 54.100
     libavformat    57. 48.100 / 57. 48.100
     libavdevice    57.  0.102 / 57.  0.102
     libavfilter     6. 57.100 /  6. 57.100
     libswscale      4.  1.100 /  4.  1.100
     libswresample   2.  1.100 /  2.  1.100
     libpostproc    54.  0.100 / 54.  0.100
    [concat @ 03e30fe0] Impossible to open 'C:/Users/i/AppData/Roaming/iMath/01.ts'
    mylist.txt: Invalid data found when processing input

    C:\Users\i>

    so (1)what should I do to concatenate these encrypted m3u8 ts video segments into a whole ?
    (2) Any way to get the video byte size an m3u8 url referenced to ?

  • Add image overlay for each millisecond the video using ffmpeg and php

    21 octobre 2016, par Domenike

    I need to add an image and different position for each millisecond the video frame, using php and ffmpeg.
    For example :
    In the first second I add an image in the X position, the next second another image in the position X.
    If you use the command directly on the terminal, the conversion is successful. But in PHP I have difficulties.
    In php, use the following command :

    <?php
    shell_exec('C:\\ffmpeg\\bin\\ffmpeg.exe -i C:\\ffmpeg\\bin\\vid.mp4 -i C:\\ffmpeg\\bin\\1.png -filter_complex "[0:v][1:v] overlay=100:25:enable=\'between(t,1,1.5)\'"  C:\\ffmpeg\\bin\\output1.mp4');
    sleep(20);
    echo "1";
    shell_exec('C:\\ffmpeg\\bin\\ffmpeg.exe -i C:\\ffmpeg\\bin\\output1.mp4 -i C:\\ffmpeg\\bin\\2.png -filter_complex "[0:v][1:v] overlay=10:25:enable=\'between(t,1.5,2)\'"  C:\\ffmpeg\\bin\\output2.mp4');
    sleep(50);
    echo "2";
    shell_exec('C:\\ffmpeg\\bin\\ffmpeg.exe -i C:\\ffmpeg\\bin\\output2.mp4 -i C:\\ffmpeg\\bin\\3.png -filter_complex "[0:v][1:v] overlay=250:25:enable=\'between(t,2,2.5)\'"  C:\\ffmpeg\\bin\\output1.mp4');
    sleep(20);
    echo "3";
    shell_exec('C:\\ffmpeg\\bin\\ffmpeg.exe -i C:\\ffmpeg\\bin\\output1.mp4 -i C:\\ffmpeg\\bin\\4.png -filter_complex "[0:v][1:v] overlay=300:25:enable=\'between(t,3,3.5)\'"  C:\\ffmpeg\\bin\\output2.mp4');
    sleep(20);
    echo "4";
    shell_exec('C:\\ffmpeg\\bin\\ffmpeg.exe -i C:\\ffmpeg\\bin\\output2.mp4 -i C:\\ffmpeg\\bin\\5.png -filter_complex "[0:v][1:v] overlay=350:25:enable=\'between(t,4,4.5)\'"  C:\\ffmpeg\\bin\\output1.mp4');
    sleep(70000);
    shell_exec('C:\\ffmpeg\\bin\\ffmpeg.exe -i C:\\ffmpeg\\bin\\output1.mp4 -i C:\\ffmpeg\\bin\\1.png -filter_complex "[0:v][1:v] overlay=400:25:enable=\'between(t,5,5.5)\'"  C:\\ffmpeg\\bin\\output2.mp4');

    I used the sleep function (PHP), but it did not work.
    Please, as I have not much experience with ffmpeg and php, you can help me.

    Thank you very much.

  • Bash Script For FFMPEG

    24 octobre 2016, par armight29

    trying to write simple script to encode files but keep getting this error msg :

    /usr/bin/cm : line 28 : syntax error near unexpected token

    else'
    /usr/bin/cm: line 28:

    else’

    and here is the script called cm :

    #!/bin/bash
    echo Filename?
    read Filename
    echo Enter Target Filesize In Megabytes..
    read TargetSize
    echo ffmpeg preset?
    read PRESET
    Duration='ffprobe -i $Filename -show_entries format=duration -v quiet -of csv="p=0"'
    Bitrate='($TargetSize*8192)/$Duration'
    exiftool -b $Filename -ImageSize
    echo WIDTH=?
    read WIDTH
    echo HEIGHT=?
    read HEIGHT
    echo Padding Required? Enter 'y' or 'n'
    read PADANSWR
    if [PADANSWR = 'y'] then
    echo X=?
    read X
    echo Y=?
    read Y
    ffprobe -show_entries stream=index,codec_type:stream_tags=language -of compact $Filename -v 0 | grep eng
    echo ENG AUDIO INDEX?
    read ENGAUDIOINDEX
    echo ENG SUBS INDEX?
    read ENGSUBSINDEX
    ffmpeg -i $Filename -strict -2 -c:v libx264 -preset $PRESET  -b:v $Bitrate -vf "padding=width=$WIDTH:height=$HEIGHT:x=$X:y=$Y:color=black" pass 1 -f matroska /dev/null -c:a ac3 -b:a 192k && ffmpeg -i $Filename -strict -2 -c:v libx264 -preset $PRESET  -b:v $Bitrate -vf "padding=width=$WIDTH:height=$HEIGHT:x=$X:y=$Y:color=black" -pass 1 -f matroska ENCODE1.mkv -c:a ac3 -b:a 192k
    else
       ffmpeg -i $Filename -strict -2 -c:v libx264 -preset $PRESET -b:v $Bitrate -threads 12 -pass 1 -f matroska /dev/null -c:a ac3 -b:a 192k && ffmpeg -i $Filename -strict -2 -c:v libx264 -preset $PRESET -b:v $Bitrate -threads 12 -pass 1 -f matroska ENCODE1.mkv -c:a ac3 -b:a 192k
    fi

    just started coding in bash—how long can the lines in a script be or do i need to use the ’\’ character—if i do use the ’\’ character does it need a space after it ? TIA