Recherche avancée

Médias (91)

Autres articles (100)

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

  • Ajouter des informations spécifiques aux utilisateurs et autres modifications de comportement liées aux auteurs

    12 avril 2011, par

    La manière la plus simple d’ajouter des informations aux auteurs est d’installer le plugin Inscription3. Il permet également de modifier certains comportements liés aux utilisateurs (référez-vous à sa documentation pour plus d’informations).
    Il est également possible d’ajouter des champs aux auteurs en installant les plugins champs extras 2 et Interface pour champs extras.

  • Possibilité de déploiement en ferme

    12 avril 2011, par

    MediaSPIP peut être installé comme une ferme, avec un seul "noyau" hébergé sur un serveur dédié et utilisé par une multitude de sites différents.
    Cela permet, par exemple : de pouvoir partager les frais de mise en œuvre entre plusieurs projets / individus ; de pouvoir déployer rapidement une multitude de sites uniques ; d’éviter d’avoir à mettre l’ensemble des créations dans un fourre-tout numérique comme c’est le cas pour les grandes plate-formes tout public disséminées sur le (...)

Sur d’autres sites (7945)

  • Architecture of video-based service for mobile phones

    27 juin 2015, par David Azar

    I guess this is more of a conceptual question than a technical one.

    I’m trying to figure out the best way to upload short videos to a server and also be able to download them and watch them on both Android and iOS.

    Lets focus on Android for the moment.

    I’ve done some experiments, and my results have been :

    • I’m able to compress 12-14MB video down to 500KB using FFMPEG lib with pretty good results in quality, but it takes about 12 seconds.

    • Next, im uploading those videos to my Parse backend as ParseFile to store them.

    • Finally, i can download them and watch them with no problem using a VideoView widget.

    Now, for the tests i’ve been running, these are great results. But i want to see if there is a better way to manage and scale all of this.

    My questions are :

    • Is there a better, lighter way to compress video ?

    • Is Parse the right way to go ?

    • How can i stream videos instead of downloading them and storing the on local storage before playing them ? i know this will cause my app to use significant space on disk and i dont want that.

    • How do big companies do this kind of tasks ?

    I’ve heard Amazon S3 is a cool thing for projects like this one, also Google Cloud Platform. I want to understand the best approach before building everything so i can do it the right way and also, provide the absolute best user experience for watching these videos.

  • 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

    


  • Turn Mp4 File into Portrait Video

    5 avril 2022, par Tech Breaker

    I recently programmed a bot, which uses the Twitch API to scrape Twitch videos, and then post them on YouTube. This is my youtube channel if you want to see an example : https://www.youtube.com/channel/UCuhWw8LbPWdkybIF9olAszw

    


    The problem that I am having is I want to find a way to convert these regular twitch videos, into youtube shorts which I can automatically upload. The facecam does not need to be included, and the entire video can just be compressed into a 9:16 format.

    


    I already tried FFMPEG but I don't know if I am doing it correctly, and really need help or advice on how to do this.

    


    Here is an example of a video I would try to convert :
https://www.youtube.com/watch?v=hZecXrvd6_g

    


    (excuse the explicit language, this is just the first video I saw on my bot channel)

    


    Tldr : Convert mp4 file into a 9:16 video format

    


    EDIT :

    


    Command i ran : ffmpeg -i video.mp4 -vf scale=1280:720 output.mp4