Recherche avancée

Médias (3)

Mot : - Tags -/collection

Autres articles (37)

  • 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

  • Supporting all media types

    13 avril 2011, par

    Unlike most software and media-sharing platforms, MediaSPIP aims to manage as many different media types as possible. The following are just a few examples from an ever-expanding list of supported formats : images : png, gif, jpg, bmp and more audio : MP3, Ogg, Wav and more video : AVI, MP4, OGV, mpg, mov, wmv and more text, code and other data : OpenOffice, Microsoft Office (Word, PowerPoint, Excel), web (html, CSS), LaTeX, Google Earth and (...)

  • Contribute to documentation

    13 avril 2011

    Documentation is vital to the development of improved technical capabilities.
    MediaSPIP welcomes documentation by users as well as developers - including : critique of existing features and functions articles contributed by developers, administrators, content producers and editors screenshots to illustrate the above translations of existing documentation into other languages
    To contribute, register to the project users’ mailing (...)

Sur d’autres sites (4267)

  • Finding File Matches & Variable Assignment using a .BAT Script

    6 octobre 2019, par A Person — ,

    I am trying to assign a file to a variable in a and then also assign another 2 files into anoter variable.

    However, I am having an issue.

    From research, I found how I can do the assigning but does anyone know how I can do the below.

    From a folder or text file, (either is fine), find the .m2v video file and assign that to Var1 then find matching audio in .wav and put that in Var2 and the third is also an audio .wav with mathcing name and assign that to Var3.

    The problem I am having is trying to find the matching 2 audio files to the video.

    The video file is named as :

    PAV_PRG_13683Highc450277201906251802090353.m2v

    Audio 1 is :

    PAV_PRG_13683High01c450211201906251802090376.wav

    Audio 2 is :

    PAV_PRG_13683High00c450211201906251802090368.wav

    The file name matches until it sees the word High. Everything after High is not needed, (it is just a random string), so trying to match is an issue.

    Is there a way to find the match by comparing everything before High.

    Also as I will be using the variable and putting them through to merge, is there way to do it so that when the ffmpeg command has completed, it moves to the next matching files and assigns them to the variable.

    The files are store in 2 folders, one folder has all the video files *.m2v and another folder has all the *.wav audio files in pairs of 2. Each video has exactly 2 audios, (left right).

    is there any help on this subject, I have already come up empty in my research and have been checking for this over the last week spent almost 30 hours.

  • Dynamic subtitles by ffmpeg

    8 septembre 2019, par Saeron Meng

    I would like to add some commentary texts into my video but I do not know how to use ffmpeg to realize this. The comments are like screen bullets through the screen, appearing in the right margin, moving and scrolling, and disappearing from the left.

    My thought is to count the length of the comments and define speeds for them to move and I have already gotten the comments saved as an xml file. But even though I can transfer it into srt file, the tricky problem is, it is hard to write the speeds of the subtitles, or something like that, in an srt file, and apply them to ffmpeg commands or APIs. Here is an example of comments (xml file) :

    <chat timestamp="671.195">
       <ems utctime="1562584080" sender="Bill">
           <richtext></richtext>
       </ems>
    </chat>
    <chat timestamp="677.798">
       <ems utctime="1562584086" sender="Jack">
           <richtext></richtext>
       </ems>
    </chat>

    The final result is like this (I did not find an example in websites in English. In China, such moving subtitles are called "danmu" or "screen bullets"), these colorful characters can move horizontally from right to left :

    example

    1. I have searched some solutions on the Internet, most of which talk about how to write ass/srt files and add motionless subtitles. Like this :

    ffmpeg -i infile.mp4 -i infile.srt -c copy -c:s mov_text outfile.mp4

    3
    00:00:39,770 --> 00:00:41,880
    When I was lying there in the VA hospital ...

    4
    00:00:42,550 --> 00:00:44,690
    ... with a big hole blown through the middle of my life,

    5
    00:00:45,590 --> 00:00:48,120
    ... I started having these dreams of flying.

    But I need another kind of "subtitles" which can move.

    1. When it comes to scrolling subtitles, there are still some solutions : Scrolling from RIGHT to LEFT in ffmpeg / drawtext

    So my question is, how to combine the solutions above to arrange subtitles from top to bottom and let them move concerning the timestamps of the comments ?

  • ffmpeg streaming of audio and video using rtmp

    30 juillet 2020, par weicheng.yu

    开发包

    &#xA;

    I want to stream some videos (a dynamic playlist managed by a python script) to a RTMP server, and i'm currently doing something quite simple : streaming my videos one by one with FFMPEG to the RTMP server, however this causes a connection break every time a video end, and the stream is ready to go when the next video begins.

    &#xA;

    I would like to stream those videos without any connection breaks continuously, then the stream could be correctly viewed.

    &#xA;

    I use this command to stream my videos one by one to the server

    &#xA;

     while (CanRun)&#xA;        {&#xA;            try&#xA;            {&#xA;                do&#xA;                {&#xA;                    // 读取一帧未解码数据&#xA;                    error = ffmpeg.av_read_frame(pFormatContext, pPacket);&#xA;                    // Console.WriteLine(pPacket->dts);&#xA;                    if (error == ffmpeg.AVERROR_EOF) break;&#xA;                    if (error &lt; 0) throw new ApplicationException(GetErrorMessage(error));&#xA;&#xA;                    if (pPacket->stream_index == pStream->index) { }&#xA;                    else if (pPacket->stream_index == aStream->index)&#xA;                    {&#xA;                        AVPacket* aVPacket = ffmpeg.av_packet_clone(pPacket);&#xA;                        if (Aqueue.Count > 49) Aqueue.Dequeue();&#xA;                        Aqueue.Enqueue(*aVPacket);&#xA;&#xA;                        &#x2B;&#x2B;AframeNumber;&#xA;                        continue;&#xA;                    }&#xA;                    else&#xA;                    {&#xA;                        ffmpeg.av_packet_unref(pPacket);//释放数据包对象引用&#xA;                        continue;&#xA;                    }&#xA;&#xA;                    // 解码&#xA;                    error = ffmpeg.avcodec_send_packet(pCodecContext, pPacket);&#xA;                    if (error &lt; 0) throw new ApplicationException(GetErrorMessage(error));&#xA;                    // 解码输出解码数据&#xA;                    error = ffmpeg.avcodec_receive_frame(pCodecContext, pDecodedFrame);&#xA;                } while (error == ffmpeg.AVERROR(ffmpeg.EAGAIN) &amp;&amp; CanRun);&#xA;                if (error == ffmpeg.AVERROR_EOF) break;&#xA;                if (error &lt; 0) throw new ApplicationException(GetErrorMessage(error));&#xA;                if (pPacket->stream_index != pStream->index) continue;&#xA;&#xA;                AVFrame* aVFrame = ffmpeg.av_frame_clone(pDecodedFrame);&#xA;                if (Vqueue.Count > 49) Vqueue.Dequeue();&#xA;                Vqueue.Enqueue(*aVFrame);&#xA;            }&#xA;            finally&#xA;            {&#xA;                ffmpeg.av_packet_unref(pPacket);//释放数据包对象引用&#xA;                ffmpeg.av_frame_unref(pDecodedFrame);//释放解码帧对象引用&#xA;            }&#xA;&#xA;            VframeNumber&#x2B;&#x2B;;&#xA;            FFmpeg_Manager.ShowMessage = string.Format(ProgramInfo, VframeNumber, AframeNumber, exhibitionNum, effectiveNum);&#xA;        }&#xA;

    &#xA;