Recherche avancée

Médias (1)

Mot : - Tags -/MediaSPIP 0.2

Autres articles (34)

  • Personnaliser les catégories

    21 juin 2013, par

    Formulaire de création d’une catégorie
    Pour ceux qui connaissent bien SPIP, une catégorie peut être assimilée à une rubrique.
    Dans le cas d’un document de type catégorie, les champs proposés par défaut sont : Texte
    On peut modifier ce formulaire dans la partie :
    Administration > Configuration des masques de formulaire.
    Dans le cas d’un document de type média, les champs non affichés par défaut sont : Descriptif rapide
    Par ailleurs, c’est dans cette partie configuration qu’on peut indiquer le (...)

  • HTML5 audio and video support

    13 avril 2011, par

    MediaSPIP uses HTML5 video and audio tags to play multimedia files, taking advantage of the latest W3C innovations supported by modern browsers.
    The MediaSPIP player used has been created specifically for MediaSPIP and can be easily adapted to fit in with a specific theme.
    For older browsers the Flowplayer flash fallback is used.
    MediaSPIP allows for media playback on major mobile platforms with the above (...)

  • Support audio et vidéo HTML5

    10 avril 2011

    MediaSPIP utilise les balises HTML5 video et audio pour la lecture de documents multimedia en profitant des dernières innovations du W3C supportées par les navigateurs modernes.
    Pour les navigateurs plus anciens, le lecteur flash Flowplayer est utilisé.
    Le lecteur HTML5 utilisé a été spécifiquement créé pour MediaSPIP : il est complètement modifiable graphiquement pour correspondre à un thème choisi.
    Ces technologies permettent de distribuer vidéo et son à la fois sur des ordinateurs conventionnels (...)

Sur d’autres sites (8530)

  • ffmpeg , copy 1st video "codec info" into 2nd video (change 2nd video codec)

    12 juillet 2016, par Tomer

    I’m having 2 videos.
    1st video is the master, it’s codec info needs to be encoded on the 2nd video.
    Means, 2nd video codec will be same as the 1st one.

    I’m having 15 "1st videos" for "Master" codec info and one file that needs to be converted to the various codecs that each file contain.

    Folder contains those files "1st video" :

    2CIF.h264 , 4CIF.h264 , 5MP.h264 , CIF.H264 , CUSTOM.h264 , CUSTOM2.h264 ,
    D1.h264 , HD1080.h264 , HD720.h264 , QVGA.h264 , QXGA.h264 , S5020_HD720_15FPS_1Min.mp4 ,
    SVGA.h264 , UXGA.h264 , VGA.h264

    and the "2nd video" that needs to be converted is : TOM.MP4

    An output of HD720.h264 for example is :

    Input #0, h264, from 'HD720.h264':
     Duration: N/A, bitrate: N/A
       Stream #0:0: Video: h264 (Main), yuv420p, 1280x720, 25 fps, 25 tbr, 1200k tbn, 50 tbc

    An output of TOM.MP4 is :

    Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'TOM.mp4':
       Stream #0:0(eng): Video: h264 (Baseline) (avc1 / 0x31637661), yuv420p, 1280x
    720, 14013 kb/s, 30.01 fps, 30 tbr, 90k tbn, 180k tbc (default)

    what will be the right way to convert those files ?

    I need to verify those settings ( got them through MediaInfo )

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