Recherche avancée

Médias (1)

Mot : - Tags -/ogg

Autres articles (62)

  • Supporting all media types

    13 avril 2011, par

    Unlike most software and media-sharing platforms, MediaSPIP aims to manage as many different media types as possible. The following are just a few examples from an ever-expanding list of supported formats : images : png, gif, jpg, bmp and more audio : MP3, Ogg, Wav and more video : AVI, MP4, OGV, mpg, mov, wmv and more text, code and other data : OpenOffice, Microsoft Office (Word, PowerPoint, Excel), web (html, CSS), LaTeX, Google Earth and (...)

  • Modifier la date de publication

    21 juin 2013, par

    Comment changer la date de publication d’un média ?
    Il faut au préalable rajouter un champ "Date de publication" dans le masque de formulaire adéquat :
    Administrer > Configuration des masques de formulaires > Sélectionner "Un média"
    Dans la rubrique "Champs à ajouter, cocher "Date de publication "
    Cliquer en bas de la page sur Enregistrer

  • MediaSPIP Init et Diogène : types de publications de MediaSPIP

    11 novembre 2010, par

    À l’installation d’un site MediaSPIP, le plugin MediaSPIP Init réalise certaines opérations dont la principale consiste à créer quatre rubriques principales dans le site et de créer cinq templates de formulaire pour Diogène.
    Ces quatre rubriques principales (aussi appelées secteurs) sont : Medias ; Sites ; Editos ; Actualités ;
    Pour chacune de ces rubriques est créé un template de formulaire spécifique éponyme. Pour la rubrique "Medias" un second template "catégorie" est créé permettant d’ajouter (...)

Sur d’autres sites (2505)

  • Mac terminal command to list files and sort by date to use in ffmpeg

    22 septembre 2020, par Jeff

    I am using a gopro to film a bunch of videos. I want to then take those videos directly from the SD card folder and concatenate them into a single video (bypass an editor) by using FFMPEG.

    


    I'm currently able to stitch together "chaptered" videos with the following example command on my Mac (10.13) :

    


    ffmpeg -f concat -safe 0 -i <(for f in /sdcardfolder/100GOPRO/GH*488.MP4; do echo "file '$f'"; done) -c copy /folder/video.mp4

    


    The reason for this is that the ffmpeg command requires a text file that looks like this :

    


    


    file '/folder/GH016992.MP4'

    
file '/folder/GH036990.MP4'

    
...

    


    


    The real command is this, which generates the list of files in the right format with file in front of each one and can be embedded into the ffmpeg command :

    


    for f in /Volumes/GoPro8/DCIM/100GOPRO/GH0*71*.MP4; do echo "file '$f'"; done

    


    I want to add 2 changes to this :

    


      

    1. List the files in date order (ascending) : I want the list of files to be in date order. But I can't figure out how to add a -sort or something to the for f in command.

      


    2. 


    3. Allow a more robust set of file matching/filtering : Right now I can add basic regex like GH*488.MP4 or, with chapters which increments the first number, something like GH0[123]488.MP4 would work to just get the first few. But when I change it to be more flexible like GH0[0-9]71[0-9][0-9].MP4 - which would be necessary to match all files that were recorded yesterday, but nothing before then, the command doesn't like this regex. It seems to only accept a *.

      


    4. 


    


    I looked at a few examples like https://opensource.com/article/19/6/how-write-loop-bash but there wasn't much more than just listing files.

    


    This boils down to a terminal command and isn't really related to FFMPEG but I hope it's helpful context.

    


    I imagined it would be something like this, but this definitely doesn't work :

    


    for f in (find /Volumes/GoPro8/DCIM/100GOPRO/GH0[0-9]71[0-9][0-9].MP4 -type f | sort); do echo "file '$f'"; done

    


    I'd appreciate any help ! Thanks !

    


    Update

    


    It looks like sorting isn't easy with Mac tools so I gave up and wrote a much simpler Ruby script that could execute everything for me. This is not really an answer to my question above but it is a solution.

    


    Here I can easily write the text file necessary for ffmpeg and I can also filter files with a regex on the name, filter for a particular date, and size. Then, via the script, simply execute the ffmpeg command with args to concat files. I can also have it immediately resample the file to compress it (gopro videos are giant and I'm ok with a much lower bitrate if I want to save raw footage).

    


    I got lucky with this Dir.entries in Ruby - it seems to automatically sort by date ? I don't know how to sort it otherwise.

    


    PATH = '/Volumes/GoPro8/DCIM/100GOPRO/'
NEW_FILENAME = '/folder/new-file.mp4'
video_list = '/folder/ffmpeg-list.txt'

# create the text file
File.delete(video_list) if File.exist?(video_list)
i = 1
Dir.entries(PATH).each do |f|
    d = File.mtime(PATH + f)
    size = File.size(PATH + f)
    if f.match(/GH0.*.MP4/) && d.to_s.match(/2020-07-30/) && size.to_i < 1000000000
        puts "#{i}\t#{f}\t#{d}\t#{size}"
        File.write(video_list, "file #{PATH + f}\n", mode: "a")
        i= i+1
    end
end

command = "ffmpeg -f concat -safe 0 -i #{video_list} -c copy #{NEW_FILENAME}"

puts "executing concatenate..."
puts command
system(command)


    


  • Anomalie #4549 (En cours) : Accessibilité du date picker

    13 septembre 2020, par nicod _

    Je ré-ouvre le ticket pour la notion de format attendu.

    On peut utiliser cette syntaxe pour préciser aux lecteurs d’écran le format de la date, sans qu’il n’apparaisse sur écran :

    <span class="CodeRay"><span class="tag">span> <span class="attribute-name">for</span>=<span class="string"><span class="delimiter">"</span><span class="content">champ_date</span><span class="delimiter">"</span></span><span class="tag">></span>Date<span class="tag"></span>
    <span class="tag">span> <span class="attribute-name">hidden</span> <span class="attribute-name">id</span>=<span class="string"><span class="delimiter">"</span><span class="content">date_desc</span><span class="delimiter">"</span></span><span class="tag">></span>Saisir une date sous la forme jj/mm/aaaa<span class="tag"></span>
    <span class="tag">span> <span class="attribute-name">type</span>=<span class="string"><span class="delimiter">"</span><span class="content">text</span><span class="delimiter">"</span></span> <span class="attribute-name">id</span>=<span class="string"><span class="delimiter">"</span><span class="content">champ_date</span><span class="delimiter">"</span></span> <span class="attribute-name">name</span>=<span class="string"><span class="delimiter">"</span><span class="content">date</span><span class="delimiter">"</span></span> <span class="attribute-name">aria-describedby</span>=<span class="string"><span class="delimiter">"</span><span class="content">date_desc</span><span class="delimiter">"</span></span><span class="tag">></span>
    </span></span></span></span>

    A faire dans le plugin saisies également.

  • Display formatted date and time over frames using ffmpeg

    28 août 2020, par marcman

    I've gone through a handful of questions on here (this, this, this, etc) concerning overlaying the date and time on videos using ffmpeg, but I haven't been able to figure out the solution.

    &#xA;

    I personally have found the ffmpeg documentation difficult to parse as well regarding drawing text that updates every (N) frame(s).

    &#xA;

    I have the exif data from a movie specifying when it was created. I'd like to be able to emblazen that over the movie (as though it were a home video from some old VHS tape). For example, let's say I have a video from January 2, 2012 at 10:33:53. I'd like to be able to show "Jan 2, 2012 10:33:53am" on the lower right in white text. The spatial positioning and color are clear to me, but just how to go from the timestamp information I have to the formatted expansion is proving to be quite difficult for me. I have succeeded in getting a clock starting from 00:00:00.00 and counting up (using timecode and timecode_rate), but unfortunately I can't get much more than that.

    &#xA;

    My question is : what is the proper datetext command that will allow me to both (a) provide the start time, and (b) format it with the proper expansion.

    &#xA;


    &#xA;

    As a bonus, if you can also point me to how to do this using the wonderful ffmpeg-python library, it would be even better. That library is quite good, but it does not appear to be actively maintained anymore.

    &#xA;