Recherche avancée

Médias (91)

Autres articles (60)

  • Gestion des droits de création et d’édition des objets

    8 février 2011, par

    Par défaut, beaucoup de fonctionnalités sont limitées aux administrateurs mais restent configurables indépendamment pour modifier leur statut minimal d’utilisation notamment : la rédaction de contenus sur le site modifiables dans la gestion des templates de formulaires ; l’ajout de notes aux articles ; l’ajout de légendes et d’annotations sur les images ;

  • Dépôt de média et thèmes par FTP

    31 mai 2013, par

    L’outil MédiaSPIP traite aussi les média transférés par la voie FTP. Si vous préférez déposer par cette voie, récupérez les identifiants d’accès vers votre site MédiaSPIP et utilisez votre client FTP favori.
    Vous trouverez dès le départ les dossiers suivants dans votre espace FTP : config/ : dossier de configuration du site IMG/ : dossier des média déjà traités et en ligne sur le site local/ : répertoire cache du site web themes/ : les thèmes ou les feuilles de style personnalisées tmp/ : dossier de travail (...)

  • Keeping control of your media in your hands

    13 avril 2011, par

    The vocabulary used on this site and around MediaSPIP in general, aims to avoid reference to Web 2.0 and the companies that profit from media-sharing.
    While using MediaSPIP, you are invited to avoid using words like "Brand", "Cloud" and "Market".
    MediaSPIP is designed to facilitate the sharing of creative media online, while allowing authors to retain complete control of their work.
    MediaSPIP aims to be accessible to as many people as possible and development is based on expanding the (...)

Sur d’autres sites (10347)

  • How to use loop to play specific sequence of files

    24 juillet 2014, par Andy

    Files are played with the following tommand

    root/bin/ffmpeg -re -i $(ls /usr/btv/studio1/*.mp4 | shuf -n 1) -vcodec copy -preset superfast -acodec copy -ar 44100 -ab 32k -f flv rtmp://ip:1935/live/studio1

    This picks a random file usr/btv/studio1/ and streams it.

    Within the same directory, there is a commercial.mp4 file.

    How would I use a loop in this case to play commercial after each other file and have 5 second wait between the switches.

    As an example :

    root/bin/ffmpeg -re -i $(ls /usr/btv/studio1/*.mp4 | shuf -n 1) -vcodec copy -preset superfast -acodec copy -ar 44100 -ab 32k -f flv rtmp://ip:1935/live/studio1

    Play: JohnWedding.mp4
    File ends (+5 seconds)
    Play: commercial.mp4
    File ends (+5 seconds)
    Play: Flowers.mp4
  • avcodec/tiff : Make decoder init-threadsafe

    27 novembre 2020, par Andreas Rheinhardt
    avcodec/tiff : Make decoder init-threadsafe
    

    The only thing that stands in the way of adding the
    FF_CODEC_CAP_INIT_THREADSAFE flag to the TIFF decoder is its usage
    of ff_codec_open2_recursive() : This function requires its caller to hold
    the lock for the mutex that guards initialization of AVCodecContexts
    whose codecs have a non-threadsafe init function and only callers whose
    codec does not have the FF_CODEC_CAP_INIT_THREADSAFE flag set hold said
    lock (the others don't need to care about said lock). But one can set
    the flag if one switches to avcodec_open2() at the same time.

    Reviewed-by : Anton Khirnov <anton@khirnov.net>
    Signed-off-by : Andreas Rheinhardt <andreas.rheinhardt@gmail.com>

    • [DH] libavcodec/tiff.c
  • How to switch between 2 stream inputs after a set duration using ffmpeg ?

    6 février 2021, par zlyfer

    I am tinkering with my two Raspberry Pis and would like to do the following :

    &#xA;&#xA;

    Both Pis record via a camera and stream it via cvlc to the network. Then one of them uses both streams to make a single stream wich alternates between both sources every 30 seconds.&#xA;My setup is as below :

    &#xA;&#xA;

    Pi 3 (192.168.0.158) and Pi 4 (192.168.0.87) both use the following command to stream the camera feed to my local network :

    &#xA;&#xA;

    raspivid -o - -t 0 -vf -hf -fps 30 -b 6000000 | cvlc -vvv stream:///dev/stdin --sout &#x27;#standard{access=http,mux=ts,dst=:8090}&#x27; :demux=h264&#xA;

    &#xA;&#xA;

    The Pi 4 then uses

    &#xA;&#xA;

    ffmpeg -protocol_whitelist file,http,https,tcp,tls,crypto -f concat -safe 0 -i stream_list.txt -c copy output.mp4&#xA;

    &#xA;&#xA;

    with content of stream_list.txt being :

    &#xA;&#xA;

    file http:\/\/192.168.0.87:8090&#xA;duration 00:00:02.00&#xA;file http:\/\/192.168.0.158:8090&#xA;duration 00:00:02.00&#xA;

    &#xA;&#xA;

    I use output.mp4 as test, this will be a twitch server or somewhat. The current duration is 2 seconds just for testing as well. And I will add a loop -1 to keep switching. My problem is that the process doesnt stop after 4 seconds. It keeps "recording" forever until I CTRL+C and then output.mp4 only contains the camera feed of the first mentioned stream in the stream_list.txt. It doesn't stop after 2 seconds switches to the other stream and then stops after another 2 seconds as I expected.

    &#xA;&#xA;

    Is there something that I am essentially doing wrong or am I at least somewhat on the right way ?

    &#xA;