Recherche avancée

Médias (1)

Mot : - Tags -/illustrator

Autres articles (82)

  • Publier sur MédiaSpip

    13 juin 2013

    Puis-je poster des contenus à partir d’une tablette Ipad ?
    Oui, si votre Médiaspip installé est à la version 0.2 ou supérieure. Contacter au besoin l’administrateur de votre MédiaSpip pour le savoir

  • Demande de création d’un canal

    12 mars 2010, par

    En fonction de la configuration de la plateforme, l’utilisateur peu avoir à sa disposition deux méthodes différentes de demande de création de canal. La première est au moment de son inscription, la seconde, après son inscription en remplissant un formulaire de demande.
    Les deux manières demandent les mêmes choses fonctionnent à peu près de la même manière, le futur utilisateur doit remplir une série de champ de formulaire permettant tout d’abord aux administrateurs d’avoir des informations quant à (...)

  • Librairies et binaires spécifiques au traitement vidéo et sonore

    31 janvier 2010, par

    Les logiciels et librairies suivantes sont utilisées par SPIPmotion d’une manière ou d’une autre.
    Binaires obligatoires FFMpeg : encodeur principal, permet de transcoder presque tous les types de fichiers vidéo et sonores dans les formats lisibles sur Internet. CF ce tutoriel pour son installation ; Oggz-tools : outils d’inspection de fichiers ogg ; Mediainfo : récupération d’informations depuis la plupart des formats vidéos et sonores ;
    Binaires complémentaires et facultatifs flvtool2 : (...)

Sur d’autres sites (6639)

  • How to get video format from video URL (Any type, not just AVPlayer compatible)

    18 novembre 2022, par Bruno Pantaleão

    I want to get the format from a video URL (mp4, m3u8, mpeg etc...) to decided which player to use in my app (AVPlayer or third party).

    


    One option is to check if AVAsset(...).isPlayable, Im using this right now, but I want to improve my logic for when the AVPlayer can't be used.

    


    When I can't use AVPlayer then I encode the video using ffmpeg, if I could have the format of the video (and maybe even more information) I could improve the encode done by ffmpeg.

    


  • Creating mpd files of multiple video resolutions for a video streaming platform

    19 novembre 2022, par WebDiva

    I am creating a video streaming platform. Users can upload videos and multiple resolutions of that video are created during upload. Finally an mpd file is generated using these resolutions. I want to find the most quick and efficient way to do this. Currently, I am using ffmpeg and MP4box for the task.

    


    After hours of research, this is what I am doing currently :

    


      

    1. Strip the audio from video using ffmpeg :
    2. 


    


    ffmpeg -i video.mp4 -c:a aac -ac 2 -ab 128k -vn video-audio.mp4


    


      

    1. Create multiple resolutions of the vide using ffmpeg :
    2. 


    


    ffmpeg -i video.mp4 -an -c:v libx264 -x264opts keyint=33:min-keyint=33:no-scenecut  -b:v 5300k -maxrate 5300k -bufsize 2650k -vf scale=trunc1080:(oh*a/2)*1 video-1080.mp4

ffmpeg -i video.mp4 -an -c:v libx264 -x264opts keyint=33:min-keyint=33:no-scenecut  -b:v 2400k -maxrate 2400k -bufsize 1200k -vf scale=trunc(oh*a/2)*1:720 video-720.mp4

ffmpeg -i video.mp4 -an -c:v libx264 -x264opts keyint=33:min-keyint=33:no-scenecut  -b:v 1060k -maxrate 1060k -bufsize 530k -vf scale=trunc(oh*a/2)*1:478 video-480.mp4

 ffmpeg -i video.mp4 -an -c:v libx264 -x264opts keyint=33:min-keyint=33:no-scenecut  -b:v 600k -maxrate 600k -bufsize 300k -vf scale=trunc(oh*a/2)*1:360 video-360.mp4

ffmpeg -i video.mp4 -an -c:v libx264 -x264opts keyint=33:min-keyint=33:no-scenecut  -b:v 260k -maxrate 260k -bufsize 130k -vf scale=trunc(oh*a/2)*1:242 video-240.mp4


    


      

    1. Finally, generate the dash manifest using MP4Box :
    2. 


    


    MP4Box -dash 1000 -rap -frag-rap -profile onDemand -out video.mpd video-1080.mp4 video-720.mp4 video-480.mp4 video-360.mp4 video-240.mp4 video-audio.mp4


    


    As you can see this is a lot of code and I am not really sure this would work well in production.
So, Is there are a more quick and optimal way of doing exactly the same thing that I am doing right now without this much code ? And will all this be possible just using ffmpeg and not mp4box ? And If multiple users are uploading video at a given time, will these cause any overhead on the server ? Regards.

    


  • FFMPEG : Cut Video AND Include Ending Video/Image

    10 février 2019, par user3273784

    I am using this command line to add a five second image on end of video :

    ffmpeg -i "f:\output\input.mov" -loop 1 -t 5 -i "f:\output\taff.jpg" -f lavfi -t 5 -i anullsrc -filter_complex "[0:v] [0:a] [1:v] [2:a] concat=n=2:v=1:a=1 [v] [a]" -c:v libx264 -c:a aac -strict -2 -map "[v]" -map "[a]" f:\output\output.mp4

    It works great, but sometimes I want to cut the video and then add the five seconds. So, make a 120 second video 110 seconds, then add the 5 second ending.

    Possibly in one command line ? I’ve tried to break it into two, by starting with cutting the video, but then I get an "Unable to parse option value "-1" pixel format" error if I try to re-encode the video I cut with ffmpeg using this :

    ffmpeg -i f:\output\input.mov -vcodec copy -acodec copy -ss 00:00:00.000 -t 00:01:50.000 f:\output\output.mov

    That output video will then give an error if I try to run the first command line against it.

    All feedback appreciated on shortening a video, and then adding ending.

    Cheers !
    Ryan