Recherche avancée

Médias (1)

Mot : - Tags -/getid3

Autres articles (38)

  • D’autres logiciels intéressants

    12 avril 2011, par

    On ne revendique pas d’être les seuls à faire ce que l’on fait ... et on ne revendique surtout pas d’être les meilleurs non plus ... Ce que l’on fait, on essaie juste de le faire bien, et de mieux en mieux...
    La liste suivante correspond à des logiciels qui tendent peu ou prou à faire comme MediaSPIP ou que MediaSPIP tente peu ou prou à faire pareil, peu importe ...
    On ne les connais pas, on ne les a pas essayé, mais vous pouvez peut être y jeter un coup d’oeil.
    Videopress
    Site Internet : (...)

  • Les formats acceptés

    28 janvier 2010, par

    Les commandes suivantes permettent d’avoir des informations sur les formats et codecs gérés par l’installation local de ffmpeg :
    ffmpeg -codecs ffmpeg -formats
    Les format videos acceptés en entrée
    Cette liste est non exhaustive, elle met en exergue les principaux formats utilisés : h264 : H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10 m4v : raw MPEG-4 video format flv : Flash Video (FLV) / Sorenson Spark / Sorenson H.263 Theora wmv :
    Les formats vidéos de sortie possibles
    Dans un premier temps on (...)

  • Ajouter notes et légendes aux images

    7 février 2011, par

    Pour pouvoir ajouter notes et légendes aux images, la première étape est d’installer le plugin "Légendes".
    Une fois le plugin activé, vous pouvez le configurer dans l’espace de configuration afin de modifier les droits de création / modification et de suppression des notes. Par défaut seuls les administrateurs du site peuvent ajouter des notes aux images.
    Modification lors de l’ajout d’un média
    Lors de l’ajout d’un média de type "image" un nouveau bouton apparait au dessus de la prévisualisation (...)

Sur d’autres sites (7143)

  • Pydub dir error . dynamic file path dosent play sound but with specific file path the code works fine

    20 avril 2021, par anshul raj

    hello developers idk whats wrong with this code it works fine when i give exact file path to the music file but if i pass it in dynamic way it doesnt work . actually my code is that user give a music file name it get downloaded then with the meta id it find the file in downloads dir then play it

    


     def songplayer(self,meta):
        def playmmusic(name):
            from pydub.playback import play
            from pydub import AudioSegment
            AudioSegment.converter = "C:\\ffmpeg\\bin\\ffmpeg.exe"
            AudioSegment.ffmpeg = "C:\\ffmpeg\\bin\\ffmpeg.exe"
            AudioSegment.ffprobe = "C:\\ffmpeg\\bin\\ffprobe.exe"
            sound = AudioSegment.from_file(name)
            play(sound)

        print(colored("Currently Playing : " + meta['title'],'yellow'))
        r=meta['id']
        tt='./downloads/'+r
        playmmusic(tt)


    


  • Pydub dir error . dynamic file path doesn't play sound but with specific file path the code works fine

    20 avril 2021, par anshul raj

    I don't know what's wrong with this code - it works fine when I provide an exact file path to the music file, but if I pass it in a dynamic way, it doesn't work.

    


    Actually my code is that user give a music file name it get downloaded then with the meta id it find the file in downloads dir then play it

    


     def songplayer(self,meta):
        def playmmusic(name):
            from pydub.playback import play
            from pydub import AudioSegment
            AudioSegment.converter = "C:\\ffmpeg\\bin\\ffmpeg.exe"
            AudioSegment.ffmpeg = "C:\\ffmpeg\\bin\\ffmpeg.exe"
            AudioSegment.ffprobe = "C:\\ffmpeg\\bin\\ffprobe.exe"
            sound = AudioSegment.from_file(name)
            play(sound)

        print(colored("Currently Playing : " + meta['title'],'yellow'))
        r=meta['id']
        tt='./downloads/'+r
        playmmusic(tt)


    


  • Creating a smooth animation with ffmpeg filters

    30 mai 2021, par user1503606

    I am trying to add a watermark to a video using ffmpeg and have it animated from left to right in the center of the video.

    


    I have it working with the following command.

    


    ffmpeg -y -i Volkswagen.mp4 -loop 1 -i logo.png -filter_complex overlay=x='W/30*mod(t,30):enable=gt(mod(t,60),0)':y=main_h/2-overlay_h/2:shortest=1 Volkswagen_watermarked.mp4


    


    It works but the outcome looks like this.

    


    https://www.youtube.com/watch?v=M31wG2ub1Lg

    


    The video is from here : https://gist.github.com/jsturgis/3b19447b304616f18657

    


    http://commondatastorage.googleapis.com/gtv-videos-bucket/sample/VolkswagenGTIReview.mp4

    


    As you can see its not very smooth. I am just trying to get my head around the ffmpeg filter functions this is the first time I have used them so would appreciate some advise or is this as good as it gets ?

    


    I have looked at a few other posts but cant find any that can help with this maybe there is another filter I should be using ?

    


    I can run a draw filter command like this and the animation is smoother.

    


    ffmpeg -y -i Volkswagen.mp4 -vf "drawtext=fontfile=/Montserrat-Medium.ttf:text='Text':x=200:y=h-20*t: fontsize=36:fontcolor=yellow@0.9: box=1: boxcolor=black@0.6" -c:a copy VolkswagenText.mp4


    


    But it is obviously not looping.

    


    https://www.youtube.com/watch?v=wdANCWUHaMc

    


    I dont really understand whats happening here.

    


    w*mod(t\,10):enable=gt(mod(t\,60)\,0)

w = width of text
t = time in seconds


    


    I understand if I just have this.

    


    -filter_complex "overlay=x=w*t:y=main_h/2-overlay_h/2:shortest=1"

w*t = every second the x position is incremented by the text width * time


    


    so if the text width is 100px it would be something like this.

    


    1x100 = 100;
2x100 = 200;
etc


    


    What does the mod() function do ? I cant find any help really here https://ffmpeg.org/ffmpeg-filters.html

    


    is this saying when x is greater than the width of the viewport start again ?

    


    enable=gt(mod(t\,60)\,0)


    


    Thanks