Recherche avancée

Médias (91)

Autres articles (35)

  • Taille des images et des logos définissables

    9 février 2011, par

    Dans beaucoup d’endroits du site, logos et images sont redimensionnées pour correspondre aux emplacements définis par les thèmes. L’ensemble des ces tailles pouvant changer d’un thème à un autre peuvent être définies directement dans le thème et éviter ainsi à l’utilisateur de devoir les configurer manuellement après avoir changé l’apparence de son site.
    Ces tailles d’images sont également disponibles dans la configuration spécifique de MediaSPIP Core. La taille maximale du logo du site en pixels, on permet (...)

  • Configuration spécifique d’Apache

    4 février 2011, par

    Modules spécifiques
    Pour la configuration d’Apache, il est conseillé d’activer certains modules non spécifiques à MediaSPIP, mais permettant d’améliorer les performances : mod_deflate et mod_headers pour compresser automatiquement via Apache les pages. Cf ce tutoriel ; mode_expires pour gérer correctement l’expiration des hits. Cf ce tutoriel ;
    Il est également conseillé d’ajouter la prise en charge par apache du mime-type pour les fichiers WebM comme indiqué dans ce tutoriel.
    Création d’un (...)

  • Liste des distributions compatibles

    26 avril 2011, par

    Le tableau ci-dessous correspond à la liste des distributions Linux compatible avec le script d’installation automatique de MediaSPIP. Nom de la distributionNom de la versionNuméro de version Debian Squeeze 6.x.x Debian Weezy 7.x.x Debian Jessie 8.x.x Ubuntu The Precise Pangolin 12.04 LTS Ubuntu The Trusty Tahr 14.04
    Si vous souhaitez nous aider à améliorer cette liste, vous pouvez nous fournir un accès à une machine dont la distribution n’est pas citée ci-dessus ou nous envoyer le (...)

Sur d’autres sites (4257)

  • ffmpeg trim mp3 - determine precisely the start and end times of section to be trimmed

    4 février 2019, par Ahmed Khalil

    I have a long mp3 track of an audio book (more than 9 hours long) that I would like to trim using ffmpeg.

    The sample code below is used to trim an mp3 section by providing the start and end times. However, when I determine the start and end times, then checking the output file, it’s not as precisely as I want, sometimes several minutes ahead/before the desired point.

    import subprocess
    file = r'audio book.mp3'
    track_name = "trimmed section"
    output = r'D:\{0}'.format(track_name)
    start = '01:26:04'
    end = '01:33:17'

    d = subprocess.getoutput('ffmpeg -i "{0}" -ss {1} -to {2} -c copy {3}.mp3"'
                        .format(file, start, end, output))

    print(d)

    Is there a way to determine with accuracy the real start and end time of an mp3 audio track, to be given afterwards as inputs to the code...to trim the desired sections all at once, without the need to adjust/fine-tune the start and end time manually ??

  • ffmpeg not splitting into EXACT same length chunks

    4 octobre 2018, par jupiar

    I am trying to use ffmpeg to split a long video into exactly 20second long clips, and accomplishing that by :
    inside docker as a python sub-process

    subprocess.run(["/usr/sbin/ffmpeg",
           "-i", video_loc,
           "-async", "1",
           "-map", "0",
           "-segment_time", "20",
           "-f", "segment",
           "-reset_timestamps", "1",
           "n-%05d.mp4"], cwd=r'/clips')

    My problem is that each are roughly 20seconds, some are as low as 10seconds, some as high as 27 seconds, i would say most are around 16-23. Is there something else that I can do to ensure the split of exactly 20 seconds ? I am open to any technique possible, aside from anything manual...

  • Use output as input

    30 juin 2022, par Xavi Font

    I want to take an input file and make a lot of stuff with it, like changing colours, adding overlays, etc... and I do so again with another input, and again, and again, until I am satisfied with the number of clips generated... but on the same command, I want to take the output of all of those tasks and concatenate them... if that is possible.

    


    In my case :

    


      

    1. Take image and make it a five second video (ffmpeg -loop 1 -I
input.jpg -t 5 output.mp4)
    2. 


    3. Take that video from image and add a watermark
    4. 


    5. Do the same with multiple other images (convert them to video and
add a watermark)
    6. 


    7. Concatenate them into a single video (-filter_complex "[output of video of image with watermark 1][output of video of image with watermark 2][output of video of image with watermark 3]concat=n=3")
    8. 


    9. Finally, output the video that contains a concatenation of five
second clips of a static image with a watermark on top.
    10. 


    


    You don't have to do the work for me... that is just instructions on what I need o do... I just want to know how to take the five second clips with he watermark and concatenate them, all in a single command.

    


    I just want to know how to take the output of a computation and use it as the input of another.