Recherche avancée

Médias (1)

Mot : - Tags -/ogg

Autres articles (10)

  • Gestion générale des documents

    13 mai 2011, par

    MédiaSPIP ne modifie jamais le document original mis en ligne.
    Pour chaque document mis en ligne il effectue deux opérations successives : la création d’une version supplémentaire qui peut être facilement consultée en ligne tout en laissant l’original téléchargeable dans le cas où le document original ne peut être lu dans un navigateur Internet ; la récupération des métadonnées du document original pour illustrer textuellement le fichier ;
    Les tableaux ci-dessous expliquent ce que peut faire MédiaSPIP (...)

  • Les vidéos

    21 avril 2011, par

    Comme les documents de type "audio", Mediaspip affiche dans la mesure du possible les vidéos grâce à la balise html5 .
    Un des inconvénients de cette balise est qu’elle n’est pas reconnue correctement par certains navigateurs (Internet Explorer pour ne pas le nommer) et que chaque navigateur ne gère en natif que certains formats de vidéos.
    Son avantage principal quant à lui est de bénéficier de la prise en charge native de vidéos dans les navigateur et donc de se passer de l’utilisation de Flash et (...)

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

Sur d’autres sites (1529)

  • Problem : av_seek_frame() always returns me the beginning of the video

    3 novembre 2020, par ZWen

    I'm currently trying to making use of FFMpeg to build a player. When I'm using av_seek_frame() to change the timestamp, it always gives me the beginning of the stream.

    


    Here is my code :

    


    bool XDemux::Seek(double pos)
{
    mux.lock();
    if (!ic)
    {
        mux.unlock();
        return false;
    }
    avformat_flush(ic);

    long long seekPos = 0;
    seekPos = ic->streams[videoStream]->duration * pos;
    int re = av_seek_frame(ic, videoStream, seekPos, AVSEEK_FLAG_BACKWARD | AVSEEK_FLAG_FRAME);
    mux.unlock();
    if (re < 0)
    {
        return false;
    }
    return true;
}


    


    Where ic and mux are defined as

    


    AVFormatContext* ic
std::mutex mux;


    


    When I'm trying to call the Seek function and print out the frame index, it will be something like :

    


    //Read() is called:
0 0 21 42 40 ...
//Then Seek(0.9) is called, should have begin with a later frame, but it also returns me:
0 0 21 42 40 ...


    


  • PHP ffmpeg exec returns null

    19 mars 2012, par benedict_w

    I'm trying to run ffmpeg through a PHP exec call, I've been debugging for a while and looked at lot of responses on here, but still not found any answers...

    My simplified call is :

    $cmd = 'ffmpeg 2>&1';

    exec(escapeshellcmd($cmd), $stdout, $stderr);

    var_dump($stderr);
    var_dump($stdout);
    var_dump($cmd);
    exit;

    My output is $stderr = int(1) and $stdout = array(0)

    Also I tried shell_exec($cmd) which returns NULL.

    cmd.exe has permissions set for the IUSR account - e.g. I can run $cmd = 'dir' and see a directory listing output.

    PHP is not running in safe mode.

    The ffmpeg.exe is in the same directory as my php file, but I have the same response giving an absolute path to the ffmpeg.exe file in $cmd.

    ffmpeg is executing fine from the command line.

    I'm running Windows XP, IIS and PHP 5.3.

    EDIT :

    If I run 'ffmpeg -h' I get the help commands, which must indicated that ffmpeg is recognised

    I've increased the PHP memory limit to 1024 - no luck.

  • src/flac/utils.c : Make sure get_console_width() returns value > 0.

    8 juillet 2014, par Erik de Castro Lopo
    src/flac/utils.c : Make sure get_console_width() returns value > 0.
    

    Previous version of get_console_width() may return 0 which will result in
    a division by 0 in stats_print_name() :

    console_width = get_console_width() ;
    len = strlen_console(name)+2 ;
    console_chars_left = console_width - (len % console_width) ;

    Bug-report : https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=739613
    Patch-from : lvqcl <lvqcl.mail@gmail.com>

    • [DH] src/flac/utils.c