Recherche avancée

Médias (91)

Autres articles (49)

  • Demande de création d’un canal

    12 mars 2010, par

    En fonction de la configuration de la plateforme, l’utilisateur peu avoir à sa disposition deux méthodes différentes de demande de création de canal. La première est au moment de son inscription, la seconde, après son inscription en remplissant un formulaire de demande.
    Les deux manières demandent les mêmes choses fonctionnent à peu près de la même manière, le futur utilisateur doit remplir une série de champ de formulaire permettant tout d’abord aux administrateurs d’avoir des informations quant à (...)

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

  • Gestion de la ferme

    2 mars 2010, par

    La ferme est gérée dans son ensemble par des "super admins".
    Certains réglages peuvent être fais afin de réguler les besoins des différents canaux.
    Dans un premier temps il utilise le plugin "Gestion de mutualisation"

Sur d’autres sites (7053)

  • i want to convert a file of images and audio into video

    26 mai 2019, par ÄbdûlBåsįt Älį

    i want the step to use ff-mpeg . i am trying this
    import ffmpeg

    cmd = 'ff mpeg -y -i Audio.wav  -r 30 -i Video.h264  -filter:a aresample=async=1 -c:a flac -c:v copy av.mkv'
    subprocess.call(cmd, shell=True)                                    
    print('Muxing Done')
  • Strange behavior traversing folders with Bash [duplicate]

    18 février 2021, par victrid

    I was trying to traverse my folders and I found the find | while read method from another question. I wrote something like this :

    


    find ./ -mindepth 1 -maxdepth 1 -type d | while read -r dir
do
  pushd "$dir"
  ffmpeg -i *.ape CD.flac
  popd
done


    


    and it comes out (with set -x) like this, with some folders not being accessed.

    


    +/example/test.sh:2> read -r dir
+/example/test.sh:2> find ./ -mindepth 1 -maxdepth 1 -type d
+/example/test.sh:4> pushd './CD 2'
+/example/test.sh:5> ffmpeg -i CDImage.ape CD.flac
(ffmpeg output)
+/example/test.sh:6> popd
+/example/test.sh:2> read -r dir


    


    however, I changed the ffmpeg line to pwd the script runs fine (and should be like this)

    


    find ./ -mindepth 1 -maxdepth 1 -type d | while read -r dir
do
  pushd "$dir"
  pwd
  popd
done


    


    its output :

    


    +/example/test.sh:2> read -r dir
+/example/test.sh:2> find ./ -mindepth 1 -maxdepth 1 -type d
+/example/test.sh:4> pushd './CD 2'
+/example/test.sh:5> pwd
(output)
+/example/test.sh:6> popd
+/example/test.sh:2> read -r dir
+/example/test.sh:4> pushd './CD 1'
+/example/test.sh:5> pwd
(output)
+/example/test.sh:6> popd
+/example/test.sh:2> read -r dir


    


    ffmpeg should not affect the shell, so what is the problem ? Could it be something like pipe overflow ?

    


  • How to loop over gif file finite number of times while creating mp4 as output with ffmpeg

    16 mai 2020, par in-user

    I am able to convert gif file to mp4 using this command :

    



    ffmpeg -i animated.gif -movflags faststart -pix_fmt yuv420p -vf "scale=trunc(iw/2)*2:trunc(ih/2)*2" video.mp4


    



    What I want to do is to loop over gif animation 3 times and convert to mp4.

    



    I am able to do this with 2 shell commands. First one from above and then concatenate the same video 3 times.

    



    ffmpeg -f concat -safe 0 -i <(printf "file '$PWD/video.mp4'\n%.0s" {1..3}) -c copy videoloop.mp4


    



    I have also tried with -ignore_loop 0 option and setting time. It does work but it is not exactly what I am trying to do since I can extend the video but can not make exactly 3 loops.

    



    ffmpeg -ignore_loop 0 -i animated.gif -movflags faststart -pix_fmt yuv420p -vf "scale=trunc(iw/2)*2:trunc(ih/2)*2" -t 12 videoloop.mp4


    



    So as you can see I am already able to achieve what I want, but with 2 shell commands :

    



    ffmpeg -i animated.gif -movflags faststart -pix_fmt yuv420p -vf "scale=trunc(iw/2)*2:trunc(ih/2)*2" video.mp4
ffmpeg -f concat -safe 0 -i <(printf "file '$PWD/video.mp4'\n%.0s" {1..3}) -c copy videoloop.mp4


    



    Is it possible to do this with only one call to ffmpeg ?

    



    I tried with -loop option for the input file. It doesn't work for gifs. I also tried with -stream_loop. It creates something corrupted.