Recherche avancée

Médias (91)

Autres articles (48)

  • La file d’attente de SPIPmotion

    28 novembre 2010, par

    Une file d’attente stockée dans la base de donnée
    Lors de son installation, SPIPmotion crée une nouvelle table dans la base de donnée intitulée spip_spipmotion_attentes.
    Cette nouvelle table est constituée des champs suivants : id_spipmotion_attente, l’identifiant numérique unique de la tâche à traiter ; id_document, l’identifiant numérique du document original à encoder ; id_objet l’identifiant unique de l’objet auquel le document encodé devra être attaché automatiquement ; objet, le type d’objet auquel (...)

  • La sauvegarde automatique de canaux SPIP

    1er avril 2010, par

    Dans le cadre de la mise en place d’une plateforme ouverte, il est important pour les hébergeurs de pouvoir disposer de sauvegardes assez régulières pour parer à tout problème éventuel.
    Pour réaliser cette tâche on se base sur deux plugins SPIP : Saveauto qui permet une sauvegarde régulière de la base de donnée sous la forme d’un dump mysql (utilisable dans phpmyadmin) mes_fichiers_2 qui permet de réaliser une archive au format zip des données importantes du site (les documents, les éléments (...)

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

Sur d’autres sites (5297)

  • FFmpeg script skips files

    23 janvier 2020, par ucq52ose

    I wrote a shell script to convert many video files and save them with something appended to the file name. The script works, but it seems to randomly skip files, and a lot of them.

    When I re-run the script, it will convert files it skipped before. How can I get it to stop skipping files ?

    workingDir=/home/user/Videos

    # get list of files to convert
    find /video/folder -iname "*.mp4" > $workingDir/file_list

    # convert files
    cat $workingDir/file_list | while read LINE; do
       # FFmpeg often cuts off the beginning of this line
       echo "$(dirname "$LINE")/$(basename "$LINE")"
       if /usr/bin/ffmpeg -n -loglevel panic -v quiet -stats -i "$LINE" \
           -c:v libx264 -vf scale="trunc(oh*a/2)*2:320" \
           -pix_fmt yuv420p -preset:v slow -profile:v main -tune:v animation -crf 23 \
           "$(dirname "$LINE")/$(basename "$LINE" \.mp4)"_reencoded.mp4 2>/dev/null; then
               echo "Success: $(dirname "$LINE")/$(basename "$LINE")" >> $workingDir/results
       else
           echo "Failed:  $(dirname "$LINE")/$(basename "$LINE")" >> $workingDir/results
       fi
    done

    One problem seems to be that FFmpeg interferes with the script. The FFmpeg output often cuts off the beginning of the next command, even if the output is not shown. This is demonstrated by the echo line before the if statement, which is often cut off. But even for lines that aren’t cut off, most of them will be skipped for no apparent reason.

  • Recursively running ffmpeg concat script in bash across multiple folders

    15 août 2022, par Sam Feldman

    I wrote a bash script that concatenates all video files in a folder using ffmpeg. I would like to be able to run this script recursively on multiple folders. My problem has been that I am unable to change into the directory of every new folder to run the script. This is required for my script to work. Does anyone know what I could accomplish this ?

    


        #!/bin/bash

for f in *; do echo "file '$f'" >> files.txt; done
for f in *; do echo "'$f'" >> filesdelete.txt; done
ffmpeg -f concat -safe 0 -i files.txt -c copy "${PWD##*/}".MP4
xargs -I{} rm -r "{}" < filesdelete.txt
rm files.txt
rm filesdelete.txt


    


    I start with the file structure below. The script runs in each subdirectory (dir1, dir2, dir3) and combines the files in each subdirectory into one video. For the script to run, it needs to cd into each directory.

    


    root
├── dir1
│   ├── video1.mp4
│   ├── video2.mp4
│   └── video3.mp4
├── dir2
│   ├── video1.mp4
│   └── video2.mp4
└── dir3
    ├── video1.mp4
    └── video2.mp4


    


    The end result should look like the structure below.

    


    root
├── dir1
│   └── concat.mp4
├── dir2
│   └── concat.mp4
└── dir3
    └── concat.mp4


    


  • Videos which is only played by particular app, need help to save it

    19 septembre 2015, par Kumar

    There’s a app(i can’t disclose the app name) which plays video stored in memory card and videos have no extension, by viewing the file sizes im assuming that they are the videos + I also check changing the extension with mp4 flv 3gp etc but no success. I then decompiled the app and saw that app is using ffmpeg-jni to play the videos. Anybody can help me in this ? and yeah all videos have IGN in their meta tag.

    Thanks