Recherche avancée

Médias (91)

Autres articles (34)

  • Personnaliser en ajoutant son logo, sa bannière ou son image de fond

    5 septembre 2013, par

    Certains thèmes prennent en compte trois éléments de personnalisation : l’ajout d’un logo ; l’ajout d’une bannière l’ajout d’une image de fond ;

  • Ecrire une actualité

    21 juin 2013, par

    Présentez les changements dans votre MédiaSPIP ou les actualités de vos projets sur votre MédiaSPIP grâce à la rubrique actualités.
    Dans le thème par défaut spipeo de MédiaSPIP, les actualités sont affichées en bas de la page principale sous les éditoriaux.
    Vous pouvez personnaliser le formulaire de création d’une actualité.
    Formulaire de création d’une actualité Dans le cas d’un document de type actualité, les champs proposés par défaut sont : Date de publication ( personnaliser la date de publication ) (...)

  • Publier sur MédiaSpip

    13 juin 2013

    Puis-je poster des contenus à partir d’une tablette Ipad ?
    Oui, si votre Médiaspip installé est à la version 0.2 ou supérieure. Contacter au besoin l’administrateur de votre MédiaSpip pour le savoir

Sur d’autres sites (8018)

  • Terminate ffmpeg.exe loop

    5 mars 2019, par jinaho

    Getting a thumbnail from a RTSP source results in infinit output from ffmpeg without exiting which makes the batch script not resume.

    It is basically only one line that calls the ffmpeg process like this (example) :

    ffmpeg -i rtsp://192.168.1.89:554/11 -f image2 -r 1 thumb%03d.jpg

    The input is user generated and for some ffmpeg is not returning a thumbnail but a warning message :

    Could not find codec parameters for stream 0 (Video: h264, 1 reference frame, none(left), 1280x720, 1/180000): unspecified pixel format

    After that instead of quiting and let the batch script resume, ffmpeg outputs :

    Press [q] to stop, [?] for help
    frame=    0 fps=0.0 q=0.0 size=N/A time=-577014:32:22.77 bitrate=N/A speed=N/A
    frame=    0 fps=0.0 q=0.0 size=N/A time=-577014:32:22.77 bitrate=N/A speed=N/A
    frame=    0 fps=0.0 q=0.0 size=N/A time=-577014:32:22.77 bitrate=N/A speed=N/A
    frame=    0 fps=0.0 q=0.0 size=N/A time=-577014:32:22.77 bitrate=N/A speed=N/A
    frame=    0 fps=0.0 q=0.0 size=N/A time=-577014:32:22.77 bitrate=N/A speed=N/A
    frame=    0 fps=0.0 q=0.0 size=N/A time=-577014:32:22.77 bitrate=N/A speed=N/A
    frame=    0 fps=0.0 q=0.0 size=N/A time=-577014:32:22.77 bitrate=N/A speed=N/A
    frame=    0 fps=0.0 q=0.0 size=N/A time=-577014:32:22.77 bitrate=N/A speed=N/A
    frame=    0 fps=0.0 q=0.0 size=N/A time=-577014:32:22.77 bitrate=N/A speed=N/A
    frame=    0 fps=0.0 q=0.0 size=N/A time=-577014:32:22.77 bitrate=N/A speed=N/A
    frame=    0 fps=0.0 q=0.0 size=N/A time=-577014:32:22.77 bitrate=N/A speed=N/A
    frame=    0 fps=0.0 q=0.0 size=N/A time=-577014:32:22.77 bitrate=N/A speed=N/A
    frame=    0 fps=0.0 q=0.0 size=N/A time=-577014:32:22.77 bitrate=N/A speed=N/A
    frame=    0 fps=0.0 q=0.0 size=N/A time=-577014:32:22.77 bitrate=N/A speed=N/A

    This goes on forever meaning that the batch script does not resume. Manual invertention is required which is not intended.
    I am looking for a way to tell the script that ffmpeg has a hanging condition and make the script quit ffmpeg so it can resume.

  • ffmpeg - continuous file streaming over RTMP

    1er mai 2013, par Sébastien Renauld

    I've been looking around for a simple (or perhaps not-so-simple) walkaround for a problem I am having in my set up for a simple test case : video streaming over red5 media server.

    I have built a small-ish library of FLV files scraped from YouTube and managed to play them in succession with the following perl script :

    use Cwd;
    use strict;
    use warnings;
    use DBI;
    use DBD::mysql;

    our $db = DBI->connect();
    my $dst = "/home/seb/youtube/";
    sub streamFile {
       my $r = $db->prepare("SELECT name FROM music_flvs ORDER BY RAND() LIMIT 1");
       $r->execute();
       my @data = $r->fetchrow_array();
       my $filename = $data[0]
       my $t = `ffmpeg -re -i '${dst}${filename}' -ab 48k -ac 1 -vcodec libx264 -crf 30 -s "640x480" -acodec libfaac -ar 44100 -threads 4 -f flv 'rtmp://server/oflaDemo/music'`;
       return 1;
    }
    while (&streamFile()) {
    }

    This script does its purpose extremely well : it plays files one by one through ffmpeg. However, it does so with a crucial problem : it causes an Unpublish event every time it swaps songs, which causes all the clients to disconnect. I would like to prevent this. The event manifests itself in ActionScript as this :

    16:33:54:209 - Playback - NetStream.Play.UnpublishNotify
    16:33:54:209 - Playback - NetStream.Play.PublishNotify

    I have seen the concat demuxer and believe that it might somewhat help me. The question is pretty simple : what is the best way to make ffmpeg stream a playlist to a RTMP server without ever causing an Unpublish event ?

  • Can't link FFmpeg in Visual Studio 2013

    22 février 2016, par Sir DrinksCoffeeALot

    I’m struggling with this for past 3-4 days with barely any progress. I’ve downloaded "dev" and "shared" archives and extracted them. "Dev" archive has .lib and .h files and "Shared" has .dll files needed for running app. These are the steps that i’ve done linking-wise :

    Project -> Properties -> Configuration Properties -> VC++ Directories -> Include Directories -> ...\ dev\ include

    Project -> Properties -> Configuration Properties -> VC++ Directories -> Library Directories -> ...\ dev\ lib

    Project -> Properties -> Configuration Properties -> C/C++ -> General -> Additional Include Directories -> ...\ dev\ include

    Project -> Properties -> Configuration Properties -> Linker -> General -> Additional Library Directories -> ...\ dev\ lib

    Project -> Properties -> Configuration Properties -> Linker -> Input -> Additional Dependencies -> avcodec.lib ... swscale.lib

    And when i try to build it i get following error :

    Error 1 error LNK2019: unresolved external symbol _avcodec_register_all referenced in function _main...

    I have no idea why,somehow .lib are not getting linked or something or i’ve done something wrong. It’s getting really frustrating and ffmpeg is crucial in project that i’m working on, basicly i can’t do anything without it. So please if someone could point me in right direction i would aprreciate it very much.

    This is the example that im trying to build.

    #include
    extern "C"
    {

    #include "libavcodec\avcodec.h"
    }


    #pragma comment(lib, "avcodec.lib")

    int main()
    {
       printf("Trying avcodec_register_all... ");
       avcodec_register_all();
       printf("Done.\n");
       return 0;
    }

    Thank you in advance.