Recherche avancée

Médias (1)

Mot : - Tags -/net art

Autres articles (111)

  • Use, discuss, criticize

    13 avril 2011, par

    Talk to people directly involved in MediaSPIP’s development, or to people around you who could use MediaSPIP to share, enhance or develop their creative projects.
    The bigger the community, the more MediaSPIP’s potential will be explored and the faster the software will evolve.
    A discussion list is available for all exchanges between users.

  • Gestion des droits de création et d’édition des objets

    8 février 2011, par

    Par défaut, beaucoup de fonctionnalités sont limitées aux administrateurs mais restent configurables indépendamment pour modifier leur statut minimal d’utilisation notamment : la rédaction de contenus sur le site modifiables dans la gestion des templates de formulaires ; l’ajout de notes aux articles ; l’ajout de légendes et d’annotations sur les images ;

  • Les tâches Cron régulières de la ferme

    1er décembre 2010, par

    La gestion de la ferme passe par l’exécution à intervalle régulier de plusieurs tâches répétitives dites Cron.
    Le super Cron (gestion_mutu_super_cron)
    Cette tâche, planifiée chaque minute, a pour simple effet d’appeler le Cron de l’ensemble des instances de la mutualisation régulièrement. Couplée avec un Cron système sur le site central de la mutualisation, cela permet de simplement générer des visites régulières sur les différents sites et éviter que les tâches des sites peu visités soient trop (...)

Sur d’autres sites (13361)

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

  • FFMPEG C++ API audio/video sync, video is longer [closed]

    11 mai 2023, par Gábor Gombor

    I create a video from frames in C++ with a given FPS and supply it to FFMPEG API. I record from an Unreal engine viewport and feed FFMPEG with the images. In this interval I have also an audio track in FLAC which I want sync with the video. When the music ends, I close the video and merge them, but the final video has sync problems, the video is a little bit longer than the audio, so I will have an increasing delay. For example I record 0:55 secs, the audio is ok=same length, but the video from frames will be 0:56 secs.

    &#xA;

    I think the following code is problematic :

    &#xA;

    bool MyVideoExporter::writeFrame(OutputStream* oStream, AVFrame* frame, int&amp; framePTS)&#xA;{&#xA;    auto* packet = oStream->pkt->pkt;&#xA;    auto* codecContext = oStream->enc->codecContext;&#xA;&#xA;    frame->pts = framePTS;&#xA;    frame->pkt_dts = frame->pts;&#xA;&#xA;    auto ret = avcodec_send_frame(codecContext, frame);&#xA;    if (ret >= 0) {&#xA;        auto retVal = 0;&#xA;        while (retVal >= 0) {&#xA;            retVal = avcodec_receive_packet(codecContext, packet);&#xA;            if (retVal == AVERROR(EAGAIN) || retVal == AVERROR_EOF) break;&#xA;            else if (retVal &lt; 0) {&#xA;                return false;&#xA;            }&#xA;&#xA;            // rescale to audio, usually 1/44100&#xA;            av_packet_rescale_ts(packet, m_audiotimestamp, oStream->st->time_base);&#xA;            // rescale to FPS, usually 1/30 or 1/60&#xA;            av_packet_rescale_ts(packet, codecContext->time_base, oStream->st->time_base);&#xA;&#xA;            packet->stream_index = oStream->st->index;&#xA;&#xA;            retVal = av_interleaved_write_frame(m_avFormatContext.avFormatContext, packet);&#xA;            if (retVal &lt; 0) {&#xA;                return false;&#xA;            }&#xA;&#xA;            framePTS&#x2B;&#x2B;;&#xA;        }&#xA;&#xA;        return retVal == AVERROR_EOF;&#xA;    }&#xA;&#xA;    return false;&#xA;}&#xA;&#xA;

    &#xA;

    Any idea what is wrong ?

    &#xA;

    I tried change the order of av_packet_rescale_ts lines or move the frame increase code to another places, but getting far worse results.

    &#xA;