Recherche avancée

Médias (2)

Mot : - Tags -/map

Autres articles (65)

  • HTML5 audio and video support

    13 avril 2011, par

    MediaSPIP uses HTML5 video and audio tags to play multimedia files, taking advantage of the latest W3C innovations supported by modern browsers.
    The MediaSPIP player used has been created specifically for MediaSPIP and can be easily adapted to fit in with a specific theme.
    For older browsers the Flowplayer flash fallback is used.
    MediaSPIP allows for media playback on major mobile platforms with the above (...)

  • Support audio et vidéo HTML5

    10 avril 2011

    MediaSPIP utilise les balises HTML5 video et audio pour la lecture de documents multimedia en profitant des dernières innovations du W3C supportées par les navigateurs modernes.
    Pour les navigateurs plus anciens, le lecteur flash Flowplayer est utilisé.
    Le lecteur HTML5 utilisé a été spécifiquement créé pour MediaSPIP : il est complètement modifiable graphiquement pour correspondre à un thème choisi.
    Ces technologies permettent de distribuer vidéo et son à la fois sur des ordinateurs conventionnels (...)

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

Sur d’autres sites (9637)

  • ffmpeg images to video with different start times and durations

    25 mai 2018, par Rich

    I’ve recently learned of FFMPEG’s existence and I am trying to use it on my wordpress site.

    On the site I am working on a html/php/js form page that lets users upload pictures, and set when the image shows and for how long.

    Right now the code I have is only showing one image for the entire video.

    <?php if (isset($_POST['button'])) {
    echo shell_exec('ffmpeg -t '.$cap_1.' -i /myurl/beach-1866431.jpg -t '.$cap_2.' -i /myurl/orlando-1104481-1.jpg -filter_complex "scale=1280:-2" -i /myurl/audio.mp3 -c:v libx264 -pix_fmt yuv420p -t 30 -y /myurl/'.$v_title.'.mp4 2>&1');
    } ?>

    I tried setting "-t" for the duration with my php variables but nothing changes and I cant figure out what to use for the start time of each image.

    Also, when writing shell_exec commands, instead of it all being on one line, is there a way to write working command code in php files with line breaks ? For example -

    <?php if (isset($_POST['button'])) {
       echo shell_exec('ffmpeg -t '.$cap_1.' -i /myurl/beach-1866431.jpg
       -t '.$cap_2.' -i /myurl/orlando-1104481-1.jpg
       -filter_complex "scale=1280:-2"
       -i /myurl/audio.mp3
       -c:v libx264 -pix_fmt yuv420p -t 30 -y /myurl/'.$v_title.'.mp4 2>&1');
            } ?>

    EDIT

    So far the concat text file seems to work, however I do not know how to set the start times for each image ---

    ffconcat version 1.0
    file /path/beach-1866431.jpg
    duration 3
    file /path/orlando-1104481-1.jpg
    duration 5
    file /path/beach-1866431.jpg

    And ffmpeg command -

    shell_exec('ffmpeg -f concat -safe 0 -i /path/file.txt -filter_complex "scale=1280:-2" -i /path/audio.mp3 -c:v libx264 -pix_fmt yuv420p -t 30 -y /path/'.$v_title.'.mp4 2>&1');

    EDIT 2

    Using the concat method suggested, my code now looks like this —

    <?php if (isset($_POST['button'])) {
    echo shell_exec('ffmpeg \
    -loop 1 -framerate 24 -t 10 -i goldmetal.jpg \
    -i 3251.mp3 \
    -loop 1 -framerate 24 -t 10 -i cash-register-1885558.jpg \
    -loop 1 -framerate 24 -t 10 -i ice-1915849.jpg \
    -filter_complex "[0:v][1:a][2:v][3:v]concat=n=4:v=1:a=1[v][a]" -map "[v]" -map "[a]" -c:v libx264 /path/'.$v_title.'.mp4 2>&1');
    } ?>

    But I’m getting this error —

    **Stream specifier ':v' in filtergraph description [0:v][1:a][2:v][3:v]concat=n=4:v=1:a=1[v][a] matches no streams.**

    EDIT 3

    I almost got it working as needed, using 2 commands, one for the images and fade, the other to combine the audio. The only issue I’m having is changing the time each image shows up. —

    echo shell_exec('ffmpeg \
    -loop 1 -t 5 -i '.$thepath .'/'.$v_pix1.' \
    -loop 1 -t 5 -i ' .$thepath . '/cash-register-1885558.jpg \
    -loop 1 -t 5 -i ' .$thepath . '/ice-1915849.jpg \
    -loop 1 -t 5 -i '.$thepath .'/'.$v_pix1.' \
    -loop 1 -t 5 -i ' .$thepath . '/ice-1915849.jpg \
    -filter_complex \
    "[0:v]setpts=PTS-STARTPTS,fade=t=out:st=4:d=1,scale=1280:720,setdar=16/9,setsar=sar=300/300[v0]; \
    [1:v]setpts=PTS-STARTPTS,fade=t=in:st=0:d=1,fade=t=out:st=4:d=1,scale=1280:720,setdar=16/9,setsar=sar=300/300[v1]; \
    [2:v]setpts=PTS-STARTPTS,fade=t=in:st=0:d=1,fade=t=out:st=4:d=1,scale=1280:720,setdar=16/9,setsar=sar=300/300[v2]; \
    [3:v]setpts=PTS-STARTPTS,fade=t=in:st=0:d=1,fade=t=out:st=4:d=1,scale=1280:720,setdar=16/9,setsar=sar=300/300[v3]; \
    [4:v]setpts=PTS-STARTPTS,fade=t=in:st=0:d=1,fade=t=out:st=4:d=1,scale=1280:720,setdar=16/9,setsar=sar=300/300[v4]; \
    [v0][v1][v2][v3][v4]concat=n=5:v=1:a=0,format=yuv420p[v]" -map "[v]" -y '.$thepath .'/fadeout.mp4 2>&1');


    echo shell_exec('ffmpeg \
    -i '.$thepath .'/fadeout.mp4 \
    -i '.$thepath .'/3251.mp3 \
    -filter_complex "[0:v:0][1:a:0] concat=n=1:v=1:a=1 [vout] [aout]" -map "[vout]" -map "[aout]" -c:v libx264 -r 1 -y '.$thepath .'/mergetest.mp4 2>&1');
  • vulkan_decode : remove informative queries

    24 décembre 2024, par Lynne
    vulkan_decode : remove informative queries
    

    We queried the decoder whether it was able to decode sucessfully, but
    since we operated asynchronously, we weren't able to do anything with
    this information but let the user know decoding failed for the previous
    frame(s).

    Since we parse the slice headers ourselves and we're reasonably sure we
    can decode before actually starting to decode, this was rarely triggered
    on corrupt data, and hardware's understanding of whether there was an error
    or not is vague.

    There's also a semantic problem with our use of the queries - if there's
    a seek, we flush, but what happens to the queries is vague according to
    the spec. Most hardware dealt fine, since queries are nothing more than
    GPU memory with integers stored. But with Intel, they seem to be more of
    a register to which a driver must keep track of, leading to issues if there's
    been a reset (seek) and we query the previous submission before the seek.

    Just get rid of them. The query code is still used in encoding.

    This fixes seeking with HEVC and AV1 on Intel.

    • [DH] libavcodec/vulkan_decode.c
  • avcodec/aarch64/opusdsp_neon : Simplify opus_postfilter_neon

    7 février, par Krzysztof Pyrkosz
    avcodec/aarch64/opusdsp_neon : Simplify opus_postfilter_neon
    

    This change removes one extra floating point operation and simplifies
    load operations at the beginning of the loop by using dedicated register
    for each of the 5 pointers and interleaving it with calculations. The
    first case seems to be a bit slower, but the performance increase is
    substantial in the other two.

    A78 before :
    postfilter_15_neon : 1684.8 ( 4.23x)
    postfilter_512_neon : 1395.5 ( 5.10x)
    postfilter_1022_neon : 1357.0 ( 5.25x)

    After :
    postfilter_15_neon : 1742.2 ( 4.09x)
    postfilter_512_neon : 1169.8 ( 6.09x)
    postfilter_1022_neon : 1160.0 ( 6.12x)

    A72 before :
    postfilter_15_neon : 3144.8 ( 2.39x)
    postfilter_512_neon : 3141.2 ( 2.39x)
    postfilter_1022_neon : 3230.0 ( 2.33x)

    After :
    postfilter_15_neon : 2847.8 ( 2.64x)
    postfilter_512_neon : 2877.8 ( 2.61x)
    postfilter_1022_neon : 2837.2 ( 2.65x)

    x13s before :
    postfilter_15_neon : 1615.4 ( 2.61x)
    postfilter_512_neon : 963.1 ( 4.39x)
    postfilter_1022_neon : 963.6 ( 4.39x)

    After :
    postfilter_15_neon : 1749.6 ( 2.41x)
    postfilter_512_neon : 707.1 ( 5.97x)
    postfilter_1022_neon : 706.1 ( 5.99x)

    Signed-off-by : Martin Storsjö <martin@martin.st>

    • [DH] libavcodec/aarch64/opusdsp_neon.S