Recherche avancée

Médias (1)

Mot : - Tags -/framasoft

Autres articles (44)

  • Taille des images et des logos définissables

    9 février 2011, par

    Dans beaucoup d’endroits du site, logos et images sont redimensionnées pour correspondre aux emplacements définis par les thèmes. L’ensemble des ces tailles pouvant changer d’un thème à un autre peuvent être définies directement dans le thème et éviter ainsi à l’utilisateur de devoir les configurer manuellement après avoir changé l’apparence de son site.
    Ces tailles d’images sont également disponibles dans la configuration spécifique de MediaSPIP Core. La taille maximale du logo du site en pixels, on permet (...)

  • Pas question de marché, de cloud etc...

    10 avril 2011

    Le vocabulaire utilisé sur ce site essaie d’éviter toute référence à la mode qui fleurit allègrement
    sur le web 2.0 et dans les entreprises qui en vivent.
    Vous êtes donc invité à bannir l’utilisation des termes "Brand", "Cloud", "Marché" etc...
    Notre motivation est avant tout de créer un outil simple, accessible à pour tout le monde, favorisant
    le partage de créations sur Internet et permettant aux auteurs de garder une autonomie optimale.
    Aucun "contrat Gold ou Premium" n’est donc prévu, aucun (...)

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

Sur d’autres sites (4443)

  • avcodec/sanm : codec37 : reimplement comp4

    11 mars, par Manuel Lauss
    avcodec/sanm : codec37 : reimplement comp4
    

    Compression 4 code 0 means copy from delta buffer without mv,
    AND start of a skip run. This gets rid of the extra case and column
    index manipulation and implements this as it is implemented in the
    original game exe, i.e. as a special case for after mv copy.

    Signed-off-by : Manuel Lauss <manuel.lauss@gmail.com>

    • [DH] libavcodec/sanm.c
  • Wav file conversion/resampling options in C#

    7 juin 2021, par oceansmoving

    Background :

    &#xA;

    Trying to convert various wav files to a format that is accepted by the game CS:GO.&#xA;So as you can see below in the source code for a VB application that is successfully doing this (https://github.com/SilentSys/SLAM/blob/master/SLAM/Form1.vb), it's supposed to be :

    &#xA;

      &#xA;
    • Mono
    • &#xA;

    • 16 Bit
    • &#xA;

    • 22050hz
    • &#xA;

    &#xA;

        Private Sub FFMPEG_ConvertAndTrim(inpath As String, outpath As String, samplerate As Integer, channels As Integer, starttrim As Double, length As Double, volume As Double)&#xA;        Dim convert As New FFMpegConverter()&#xA;        convert.ExtractFFmpeg()&#xA;&#xA;        Dim trimstring As String&#xA;        If length > 0 Then&#xA;            trimstring = String.Format("-ss {0} -t {1} ", starttrim.ToString("F5", Globalization.CultureInfo.InvariantCulture), length.ToString("F5", Globalization.CultureInfo.InvariantCulture))&#xA;        End If&#xA;&#xA;        Dim command As String = String.Format("-i ""{0}"" -n -f wav -flags bitexact -map_metadata -1 -vn -acodec pcm_s16le -ar {1} -ac {2} {3}-af ""volume={4}"" ""{5}""", Path.GetFullPath(inpath), samplerate, channels, trimstring, volume.ToString("F5", Globalization.CultureInfo.InvariantCulture), Path.GetFullPath(outpath))&#xA;        convert.Invoke(command)&#xA;    End Sub&#xA;

    &#xA;

    Now, the thing is I have very little experience with VB, and as it is C# I am trying to learn I don't want this to be a showstopper.

    &#xA;

    I have been able, in various ways to convert files that seem to be the correct format and can be played by normal media players, but is not accepted by the game, like the files converted with VB.

    &#xA;

    The different methods I've been trying without success :

    &#xA;

                int outRate = 22050;&#xA;

    &#xA;

                using (var reader = new MediaFoundationReader(inFile))&#xA;            {&#xA;                var outFormat = new WaveFormat(outRate, 1);&#xA;                using (var resampler = new WaveFormatConversionStream(outFormat, reader))&#xA;                {&#xA;                    WaveFileWriter.CreateWaveFile(outFile, resampler);&#xA;                }&#xA;            }&#xA;

    &#xA;

    Next one gives me an error that everyone is referring to the LT version of the package to solve, that in turn requires license...

    &#xA;

                var ffMpeg = new FFMpegConverter();&#xA;&#xA;            String args = $"-i &#x27;{@inFile}&#x27; -n -f wav -flags bitexact -map_metadata -1 -vn -acodec pcm_s16le -ar {outRate} -ac 1 &#x27;{@outFile}&#x27;";&#xA;            ffMpeg.Invoke(args);&#xA;

    &#xA;

    Another

    &#xA;

            using (WaveFileReader reader = new WaveFileReader(inFile))&#xA;            {&#xA;                var outFormat = new WaveFormat(outRate, 1);&#xA;                using (var resampler = new MediaFoundationResampler(reader, outFormat))&#xA;                {&#xA;                    WaveFileWriter.CreateWaveFile(outFile, resampler);&#xA;                }&#xA;            }&#xA;

    &#xA;

    Another

    &#xA;

                        FileStream fileStream = new FileStream(inFile, FileMode.Open);&#xA;                    WaveFormat waveFormat = new WaveFormat(22050, 16, 1);&#xA;                    var reader = new RawSourceWaveStream(fileStream, waveFormat);&#xA;                    using (WaveStream convertedStream = WaveFormatConversionStream.CreatePcmStream(reader))&#xA;                    {&#xA;                        WaveFileWriter.CreateWaveFile(outFile, convertedStream);&#xA;                    }&#xA;                    fileStream.Close();&#xA;

    &#xA;

  • How to efficiently clear ffmpeg buffer

    23 juillet 2020, par KmanOfficial

    I am using Chiaki (https://github.com/thestr4ng3r/chiaki/) - A Open Source Video Streaming Application for the PS4.

    &#xA;

    I have one issue though. The stream successfully shows the playstation but after about 60 seconds. The stream freezes and gets stuck on the last processed frame until I restart the application. I believe the issue is in the C++ file - (https://github.com/thestr4ng3r/chiaki/blob/master/gui/src/videodecoder.cpp) and the issue is specifically here : `

    &#xA;

    void VideoDecoder::PushFrame(uint8_t *buf, size_t buf_size)&#xA;{&#xA;    {&#xA;        QMutexLocker locker(&amp;mutex);&#xA;&#xA;    AVPacket packet;&#xA;    av_init_packet(&amp;packet);&#xA;    packet.data = buf;&#xA;    packet.size = buf_size;&#xA;    int r;&#xA;send_packet:&#xA;        r = avcodec_send_packet(codec_context, &amp;packet);&#xA;        if(r != 0)&#xA;        {&#xA;            if(r == AVERROR(EAGAIN))&#xA;            {&#xA;                CHIAKI_LOGE(log, "AVCodec internal buffer is full removing frames before pushing");&#xA;                AVFrame *frame = av_frame_alloc();&#xA;                if(!frame)&#xA;                {&#xA;                    CHIAKI_LOGE(log, "Failed to alloc AVFrame");&#xA;                    return;&#xA;                }&#xA;                r = avcodec_receive_frame(codec_context, frame);&#xA;                av_frame_free(&amp;frame);&#xA;                if(r != 0)&#xA;                {&#xA;                    CHIAKI_LOGE(log, "Failed to pull frame");&#xA;                    return;&#xA;                }&#xA;                goto send_packet;&#xA;            }&#xA;            else&#xA;            {&#xA;                char errbuf[128];&#xA;                av_make_error_string(errbuf, sizeof(errbuf), r);&#xA;                CHIAKI_LOGE(log, "Failed to push frame: %s", errbuf);&#xA;                return;&#xA;            }&#xA;        }&#xA;    }&#xA;&#xA;    emit FramesAvailable();&#xA;}&#xA;

    &#xA;

    `

    &#xA;

    I believe so as the application log constantly prints this logged message : "AVCodec internal buffer is full removing frames before pushing"

    &#xA;

    I've tried looking at the ffmpeg manual and I am struggling on how to flush the internal buffer to get the stream constantly flowing can anyone point me in the correct direction. Thank you.

    &#xA;