Recherche avancée

Médias (1)

Mot : - Tags -/livre électronique

Autres articles (74)

  • Le profil des utilisateurs

    12 avril 2011, par

    Chaque utilisateur dispose d’une page de profil lui permettant de modifier ses informations personnelle. Dans le menu de haut de page par défaut, un élément de menu est automatiquement créé à l’initialisation de MediaSPIP, visible uniquement si le visiteur est identifié sur le site.
    L’utilisateur a accès à la modification de profil depuis sa page auteur, un lien dans la navigation "Modifier votre profil" est (...)

  • Configurer la prise en compte des langues

    15 novembre 2010, par

    Accéder à la configuration et ajouter des langues prises en compte
    Afin de configurer la prise en compte de nouvelles langues, il est nécessaire de se rendre dans la partie "Administrer" du site.
    De là, dans le menu de navigation, vous pouvez accéder à une partie "Gestion des langues" permettant d’activer la prise en compte de nouvelles langues.
    Chaque nouvelle langue ajoutée reste désactivable tant qu’aucun objet n’est créé dans cette langue. Dans ce cas, elle devient grisée dans la configuration et (...)

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

Sur d’autres sites (7978)

  • ffmpeg encoding a video with time_base Not equal to framerate does not work in HML5 video players

    1er juillet 2019, par Gilgamesh22

    I have a time_base of 90000 with a frame rate of 30. I can generate a h264 video and have it work in VLC but this video does not work in the browser player. If I change the time_base to 30 It works fine.

    Note : I am changing the frame->pts appropriately to match the time_base.
    Note : Video does not have audio stream

    //header.h
    AVCodecContext *cctx;
    AVStream* stream;

    Here is the non working example code

    //source.cpp
    stream->time_base = { 1, 90000 };
    stream->r_frame_rate = { fps, 1 };
    stream->avg_frame_rate = { fps, 1 };

    cctx->codec_id = codecId;
    cctx->time_base = { 1 ,  90000 };
    cctx->framerate = { fps, 1 };

    // ......
    // add frame code later on timestamp are in millisecond
    frame->pts = (timestamp - startTimeStamp)* 90;

    Here is the working example code

    //source.cpp
    stream->time_base = { 1, fps};
    stream->r_frame_rate = { fps, 1 };
    stream->avg_frame_rate = { fps, 1 };

    cctx->codec_id = codecId;
    cctx->time_base = { 1 ,  fps};
    cctx->framerate = { fps, 1 };

    // ......
    //  add frame code timestamp are in millisecond
    frame->pts = (timestamp - startTimeStamp)/(1000/fps);

    Any ideas on why the second example works and the first does not in the HTML5 video player.

  • How to covert video and extract frame from video using FFMPEG in single command

    13 juillet 2013, par kheya

    I am trying to convert and extract image frame from a video file in single command
    I can do this in 2 steps but I want to use pipe like technique to do this

    This is what I have :
    for %%a in ("*.avi") do ffmpeg -i "%%a" -c:v libx264 -preset slow -crf 20 -c:a libvo_aacenc -b:a 128k "%%~na.mp4" <— converts correctly

    I need to incorporate this extract command :

    ffmpeg -i inputfile.avi  -r  1  -t  4  image-%d.jpeg

    Merging two commands giving error.

    How do I do it ?

    EDIT :
    This is what I have. But it just converts the video, no jpg image created as second output

    for %%a in ("*.avi") do ffmpeg -i "%%a" -c:v libx264 -preset slow -crf 20 -c:a libvo_aacenc -b:a 128k "%%~na.mp4" | ffmpeg -r 1 -s 4cif "%%~na.jpeg"
  • ffmpeg video unable to play properly in most video players

    7 septembre 2022, par Lars

    I'm trying to set up a node.js app that allows me to download files from a web interface.&#xA;I'm using yt-dl to get the video and audio stream and ffmpeg to pipe those streams into an mp4. This works and returns a mp4 file.

    &#xA;

    Now the only issue I have is that when I play the file through most video players, the video player is unable to seek, or skip through the song. I found somewhere deep down on a forum that means that that means the mp4 headers are not working but that is all I could find.&#xA;Here is my code, almost unchanged from this response on another thread.

    &#xA;

    Can anyone provide a solution for this issue.

    &#xA;

    ytdl.getInfo(link, options).then(info => {&#xA;        audioStream = ytdl.downloadFromInfo(info, { ...options, quality: &#x27;highestaudio&#x27; });&#xA;        videoStream = ytdl.downloadFromInfo(info, { ...options, quality: &#x27;highestvideo&#x27; });&#xA;        // create the ffmpeg process for muxing&#xA;        ffmpegProcess = cp.spawn(ffmpegPath, [&#xA;            // supress non-crucial messages&#xA;            &#x27;-loglevel&#x27;, &#x27;8&#x27;, &#x27;-hide_banner&#x27;,&#xA;            // input audio and video by pipe&#xA;            &#x27;-i&#x27;, &#x27;pipe:3&#x27;, &#x27;-i&#x27;, &#x27;pipe:4&#x27;,&#xA;            // map audio and video correspondingly&#xA;            &#x27;-map&#x27;, &#x27;0:a&#x27;, &#x27;-map&#x27;, &#x27;1:v&#x27;,&#xA;            // no need to change the codec&#xA;            &#x27;-c&#x27;, &#x27;copy&#x27;,&#xA;            // output mp4 and pipe&#xA;            &#x27;-f&#x27;, &#x27;matroska&#x27;, &#x27;pipe:5&#x27;&#xA;        ], {&#xA;            // no popup window for Windows users&#xA;            windowsHide: true,&#xA;            stdio: [&#xA;                // silence stdin/out, forward stderr,&#xA;                &#x27;inherit&#x27;, &#x27;inherit&#x27;, &#x27;inherit&#x27;,&#xA;                // and pipe audio, video, output&#xA;                &#x27;pipe&#x27;, &#x27;pipe&#x27;, &#x27;pipe&#x27;&#xA;            ]&#xA;        });&#xA;        audioStream.pipe(ffmpegProcess.stdio[3]);&#xA;        videoStream.pipe(ffmpegProcess.stdio[4]);&#xA;        ffmpegProcess.stdio[5].pipe(result);&#xA;    });&#xA;

    &#xA;