Recherche avancée

Médias (1)

Mot : - Tags -/book

Autres articles (52)

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

  • Mise à disposition des fichiers

    14 avril 2011, par

    Par défaut, lors de son initialisation, MediaSPIP ne permet pas aux visiteurs de télécharger les fichiers qu’ils soient originaux ou le résultat de leur transformation ou encodage. Il permet uniquement de les visualiser.
    Cependant, il est possible et facile d’autoriser les visiteurs à avoir accès à ces documents et ce sous différentes formes.
    Tout cela se passe dans la page de configuration du squelette. Il vous faut aller dans l’espace d’administration du canal, et choisir dans la navigation (...)

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

  • Batch converting multiple video formats in nested directories

    1er octobre 2020, par Dave Coffin

    I'm running Arch/Gnome and am trying to convert a few hundred gigs of family videos from various formats (mov, wmv, mkv, avi mainly, but a few curveballs too) into trusty mp4s.

    


    My scripting knowledge is strictly amateur, so far I have ;

    


    for i in *.avi; do ffmpeg -i "$i" "${i%.*}.mp4"; done

    


    That works fine for one directory. There are hundreds. I'd like to replace that one-liner with something more encompassing that I can just run and go to bed.

    


    Wish list ;

    


      

    • run recursively

      


    • 


    • convert from mov, wmv, mkv and avi without having to run separate scripts

      


    • 


    • delete old file upon successful completion

      


    • 


    • keep the same file name

      


    • 


    • if it finds an error, just skip the file and keep going - don't stop the process

      


    • 


    


    Any help with any and/or all of these bits to cobble something together that'll work would be most appreciated.

    


  • FFMPEG H264 with custom overlay per frame

    4 octobre 2020, par La bla bla

    We have a stream that is stored in the cloud (Amazon S3) as individual H264 frames. The frames are stored as framexxxxxx.264, the numbering doesn't start from 0 but rather from some larger number, say 1000 (so, frame001000.264)

    


    The goal is to create a mp4 clip which is either timelapse or just faster for inspection and other checking (much faster, compressing around 3 hours of video down to < 20 minutes), this also requires we overlay the frame number (the filename) on the frame itself

    &#xA;

    At first I was creating a timelapse by pulling from S3 only the keyframes (i-frames ? still rather new to codecs & stuff) and overlaying the filename on them and saving as png (which probably isn't needed, but that's what I did) using (this command is used inside a python script)

    &#xA;

    ffmpeg -y -i {h264_name} -vf \"scale=1920:-1, &#xA;drawtext=fontfile=/usr/share/fonts/truetype/ubuntu-font-family/Ubuntu-B.ttf:fontsize=34:text={txt}:fontcolor=white:x=50:y=50:bordercolor=black:borderw=2\" &#xA;-c:a copy -pix_fmt yuv420p {basename}.png&#xA;

    &#xA;

    after this I combined all the frames by using python to convert the lowest numbered frame to 0.png and incrementing (so it would be continuous, because I only used keyframes the numbers originally weren't sequential) and running

    &#xA;

    ffmpeg -y -f image2 -i %d.png -r {self.params.fps} -vcodec libx264 -crf {self.params.crf} -pix_fmt yuv420p {out_file}&#xA;

    &#xA;

    and this worked great, but the difference between keyframes was too long to allow for proper inspection

    &#xA;

    so now for the question(s)

    &#xA;

    since I know frames that are not keyframes (p-frames ?) can't be used alone by ffmpeg, the method of overlaying the file name and converting it to png (or keep as h264, same thing) won't work, or at least, I couldn't find a way for it to work, maybe there's a way to specify a frame's keyframe ?, how can one overlay the filename (and not the frame number as shown here for example)

    &#xA;

    Also, is it possible to skip some p-frames between the keyframes ? (so if a keyframe is every 30 frames, we would take a keyframe, a frame 15 frames later, and next another keyframe)

    &#xA;

    I thought about using ffmpeg's pipe option to feed it with the files as they're being downloaded, but I'm not sure if I can specify drawtext this way

    &#xA;

    Also, if there's another alternative that can achieve that (at first I was converting to png, using python and OpenCV to add the filename and then merging the pngs to mp4, but then I found drawtext can do that in a single command so I used it)

    &#xA;

  • FFMPEG - Converting MKV to MP4 on Gdrive using rclone mount. ERROR : output file #0 does not contain any stream

    30 avril 2020, par Enrique Torrez

    I am trying to convert video files from my back-up rip files library that I have on my Gdrive account. I was successfully able to set up a dedicated server + plexserver + rclone + gdrive. I have files that are big and my family are not able to stream them due to the poor internet service that I have in my country. So I am trying to reduce the file size so it can be streamed directly

    &#xA;&#xA;

    My rclone mount script is :

    &#xA;&#xA;

    rclone mount gcache: /path  --tpslimit 5 --allow-other --acd-templink-threshold 0 --stats 1s --buffer-size 64M --timeout 5s --contimeout 5s --max-read-ahead 1G --drive-chunk-size 64M -vv &amp;&#xA;

    &#xA;&#xA;

    And my ffmpeg script is :

    &#xA;&#xA;

    ffmpeg -i origen.mkv -c:v copy -movflags faststart -strict -2 convertedfile.mp4&#xA;

    &#xA;&#xA;

    I had the following errors :

    &#xA;&#xA;

    moov atom not found&#xA;

    &#xA;&#xA;

    I used this command :

    &#xA;&#xA;

    AtomicParsley myVideo.mp4 -P&#xA;

    &#xA;&#xA;

    Now when I execute

    &#xA;&#xA;

    ffmpeg -i convertfile.mp4&#xA;

    &#xA;&#xA;

    I get this error :

    &#xA;&#xA;

    Output file #0 does not contain any stream&#xA;

    &#xA;&#xA;

    What am I doing wrong ? I need some help please.

    &#xA;