Recherche avancée

Médias (91)

Autres articles (102)

  • Multilang : améliorer l’interface pour les blocs multilingues

    18 février 2011, par

    Multilang est un plugin supplémentaire qui n’est pas activé par défaut lors de l’initialisation de MediaSPIP.
    Après son activation, une préconfiguration est mise en place automatiquement par MediaSPIP init permettant à la nouvelle fonctionnalité d’être automatiquement opérationnelle. Il n’est donc pas obligatoire de passer par une étape de configuration pour cela.

  • MediaSPIP v0.2

    21 juin 2013, par

    MediaSPIP 0.2 est la première version de MediaSPIP stable.
    Sa date de sortie officielle est le 21 juin 2013 et est annoncée ici.
    Le fichier zip ici présent contient uniquement les sources de MediaSPIP en version standalone.
    Comme pour la version précédente, il est nécessaire d’installer manuellement l’ensemble des dépendances logicielles sur le serveur.
    Si vous souhaitez utiliser cette archive pour une installation en mode ferme, il vous faudra également procéder à d’autres modifications (...)

  • MediaSPIP version 0.1 Beta

    16 avril 2011, par

    MediaSPIP 0.1 beta est la première version de MediaSPIP décrétée comme "utilisable".
    Le fichier zip ici présent contient uniquement les sources de MediaSPIP en version standalone.
    Pour avoir une installation fonctionnelle, il est nécessaire d’installer manuellement l’ensemble des dépendances logicielles sur le serveur.
    Si vous souhaitez utiliser cette archive pour une installation en mode ferme, il vous faudra également procéder à d’autres modifications (...)

Sur d’autres sites (13042)

  • exec function not working as expected

    6 mars 2016, par Albert

    I am running a shell function from php to convert a video file to flash once it is uploaded. The exec function is like this :

    exec("ffmpeg -i " . WWW_ROOT . "files" . DS . "videos" . DS . $id . $ext . " -ar 22050 -r 32 -f flv -s 640x480 " . WWW_ROOT . "files" . DS . "videos" . DS . $id . ".flv");

    // if I echo the string it returns:
    // ffmpeg -i /home/vceroot/public_html/example.com/test/intraweb/app/webroot/files/videos/516c1203-0484-417a-b047-5488c40293e9.mpg -ar 22050 -r 32 -f flv -s 640x480 /home/vceroot/public_html/example.com/test/intraweb/app/webroot/files/videos/516c1203-0484-417a-b047-5488c40293e9.flv
    // the locations are correct

    However, it does not convert the video.

    After it uploaded the file, it just goes back to the index action. There is no converted file although the uploaded file is there.

    My permissions on the folder is 755. And the folder owner is apache. I don’t know what else to do. Can anyone assist me ?

    UPDATE

    So I’ve changed my exec query a bit and echoed the output :

    exec("ffmpeg -i " . WWW_ROOT . "files" . DS . "videos" . DS . $id . $ext . " -ar 22050 -r 32 -f flv -s 640x480 " . WWW_ROOT . "files" . DS . "videos" . DS . $id . ".flv 2>&1", $output, $return);
    die(print_r($output));

    This returned the following error :

    Array ( [0] => sh: ffmpeg: command not found ) 1

    So I changed it a bit to this :

    exec("/usr/local/bin/ffmpeg -i " . WWW_ROOT . "files" . DS . "videos" . DS . $id . $ext . " -ar 22050 -r 32 -f flv -s 640x480 " . WWW_ROOT . "files" . DS . "videos" . DS . $id . ".flv 2>&1", $output, $return);
    die(print_r($output));

    And now it returns :

    Array ( [0] => /usr/local/bin/ffmpeg: error while loading shared libraries: libavdevice.so.55: cannot open shared object file: No such file or directory ) 1

    Where do I go from here ?

  • webm Video file is around 1GB (expected to be 45 minutes), but only plays 5 minutes and stops. how to repair with ffmpeg ?

    25 juillet 2021, par AcidMicrowave

    I have a .webm video file that is expected to be 45 minutes (this is how long the recording was). It was 45mins of 720p and the filesize is around 1GB.

    


    The video file stops playing after 5 minutes. When I tried converting it with ffmpeg, to see if there is any damage, the conversion happens, but only the first 5 minutes are output with a 30MB file. During conversion, the console shows the following warnings :

    


    


    [webm @ 0x7ffa2181f000] Non-monotonous DTS in output stream 0:1 ; previous : 299933, current : 299893 ; changing to 299933. This may result in incorrect timestamps in the output file.

    


    


    


    [webm @ 0x7ffa2181f000] Non-monotonous DTS in output stream 0:1 ; previous : 299933, current : 299913 ; changing to 299933. This may result in incorrect timestamps in the output file.

    


    


    


    [libopus @ 0x7ffa2180f800] Queue input is backward in time

    


    


    (These errors appear many many many times..... I assume over 1000x.. are these corrupted frames ?)

    


    I would appreciate any help,

    


    Thank you very much.

    


  • How do I copy ALL metadata from flac/mp3 to alac with ffmpeg ? -movflags isn't working, default just copies basic metadata

    24 juillet 2021, par Architekt

    I've spent 2 days now reasearching this and all the info I've found doesn't work. If I do this simple command :

    


    ffmpeg -i test.mp3 -y -vn -c:a alac /storage/test.m4a


    


    it copies the standard tags. The -vn is to disable copying album art, I've given up on that. It's easier to just separately use AtomicParsley to handle it because some of the album art isn't height divisble by 2.

    


    Problem is, I have extra custom tags that I need as well. Not necessarily for this particular track, but for all the vinyl I spent 2 months archiving. I've tried using the -movflags use_metadata_tags option but that didn't do anything. In fact, it completely prevented the copying of any metadata whatsoever. Here's the command I tried :

    


    ffmpeg -i test.mp3 -y -movflags use_metadata_tags -vn -c:a alac /storage/test.m4a


    


    On my Windows machine, if I use Foobar2000 and convert the same file to m4a, it copies ALL metadata, 100% to the resultant m4a file. Sadly, I need to do this from a linux command line, as part of an automation process. Both commands I've tried show output metadata equivalent to the input (sans cover art), so I'm not sure what that's about. In case it helps, here's the full screen output when I use that latter command with the -movflags tag. I'm going to use a pastebin link so as to not clutter this post with the verbose output.

    


    I've tried -map_metadata 0 as well, same results, but that's to be expected as from what I've read that just copies the global/standard tags. This must be possible, otherwise I have no idea how foobar2000 would be able to do it. I'd love to just use that, but alas, as stated, I have to do this on Linux command line for this particular situation.