Recherche avancée

Médias (91)

Autres articles (37)

  • Contribute to a better visual interface

    13 avril 2011

    MediaSPIP is based on a system of themes and templates. Templates define the placement of information on the page, and can be adapted to a wide range of uses. Themes define the overall graphic appearance of the site.
    Anyone can submit a new graphic theme or template and make it available to the MediaSPIP community.

  • Submit bugs and patches

    13 avril 2011

    Unfortunately a software is never perfect.
    If you think you have found a bug, report it using our ticket system. Please to help us to fix it by providing the following information : the browser you are using, including the exact version as precise an explanation as possible of the problem if possible, the steps taken resulting in the problem a link to the site / page in question
    If you think you have solved the bug, fill in a ticket and attach to it a corrective patch.
    You may also (...)

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

Sur d’autres sites (6115)

  • Avoiding ffmpeg audio drift for live dash output

    22 mai 2021, par mdale

    Have people experienced playback drift with ffmpeg based dash segment generation ? For example :

    


    ffmpeg -threads 2 -re -fflags +genpts -stream_loop -1 -i AVSyncTest.mp4 \
-af "aresample=async=1:min_hard_comp=0.100000:first_pts=0" \
-c:v:0 libx264 \
-pix_fmt:0 yuv420p \
-preset:0 medium \
-a53cc:0 1 \
-nal-hrd:0 cbr \
-x264opts:0 scenecut=-1:rc_lookahead=0 -b:v:0 5000k -bufsize:0 500k \
-force_key_frames:0 "expr:gte(t,n_forced*2)" \
-bf:0 8 \
-r 30 \
-c:a:0 aac  -ar 48000 \
-b:a:1 96k  \
-f tee -map 0:v \
-map 0:a "[f=dash:media_seg_name='chunk-stream_\$RepresentationID\$-\$Number%05d\$.mp4':init_seg_name='init-stream_\$RepresentationID\$.mp4':seg_duration=2:utc_timing_url=https\\\://time.akamai.com\\?iso:remove_at_exit=0:use_timeline=0:http_user_agent=ffmpeg_encoder.0:streaming=1:index_correction=1:timeout=1:dash_segment_type=mp4:method=PUT:http_persistent=1:adaptation_sets='id=0,streams=v\:0 id=1,streams=a' ]http://localhost:5000/out.mpd "


    


    After a bit of playback it starts audio starts to drift. Analysis of the moof (with tools like mp4box) shows 1024 sample size with 93 Moofs with Moof->traf->default_sample_duration=1024 at 48000 sample rate giving segment duration of 1.984 seconds with every 3rd segment or so with 92 Moofs with duration of 1.962 … While each segment starts aligned ( if you reset playback you get alignment) it drifts against continuous playback.

    


    Other examples like Akamai’s public stream. show 94 Moofs or 2.005 duration with every 3rd segment or so at the 1.984 duration. (what one would want)

    


    Akamai’s (presumably ffmepg based) stream is averaging out to the 2s target where the above ffmpeg command is not …

    


  • avcodec/hashtable : Only free buffer if there is buffer to free

    3 juin, par Andreas Rheinhardt
    avcodec/hashtable : Only free buffer if there is buffer to free
    

    Reviewed-by : Emma Worley <emma@emma.gg>
    Signed-off-by : Andreas Rheinhardt <andreas.rheinhardt@outlook.com>

    • [DH] libavcodec/hashtable.c
  • Could you please guide me on how to play a single sample of an audio file in C# using FFmpeg ?

    11 juillet 2023, par hello world

    What is the recommended approach for playing a single sample of an audio file in C# using FFmpeg ? I would like to incorporate FFmpeg into my C# application to play a specific sample from an audio file. Could someone provide an example or guide me on how to achieve this ? Any help would be appreciated.

    &#xA;

    using System;&#xA;using System.Diagnostics;&#xA;&#xA;public class AudioPlayer&#xA;{&#xA;    private string ffmpegPath;&#xA;&#xA;    public AudioPlayer(string ffmpegPath)&#xA;    {&#xA;        this.ffmpegPath = ffmpegPath;&#xA;    }&#xA;&#xA;    public void PlayAudioSample(string audioFilePath, TimeSpan samplePosition)&#xA;    {&#xA;        // Prepare FFmpeg process&#xA;        Process ffmpegProcess = new Process();&#xA;        ffmpegProcess.StartInfo.FileName = ffmpegPath;&#xA;        ffmpegProcess.StartInfo.Arguments = $"-ss {samplePosition} -i \"{audioFilePath}\" -t 1 -acodec pcm_s16le -f wav -";&#xA;        ffmpegProcess.StartInfo.RedirectStandardOutput = true;&#xA;        ffmpegProcess.StartInfo.RedirectStandardError = true;&#xA;        ffmpegProcess.StartInfo.UseShellExecute = false;&#xA;        ffmpegProcess.StartInfo.CreateNoWindow = true;&#xA;&#xA;        // Start FFmpeg process&#xA;        ffmpegProcess.Start();&#xA;&#xA;        // Play audio sample&#xA;        using (var audioOutput = new NAudio.Wave.WaveOutEvent())&#xA;        {&#xA;            using (var audioStream = new NAudio.Wave.RawSourceWaveStream(ffmpegProcess.StandardOutput.BaseStream, new NAudio.Wave.WaveFormat(44100, 16, 2)))&#xA;            {&#xA;                audioOutput.Init(audioStream);&#xA;                audioOutput.Play();&#xA;                while (audioOutput.PlaybackState == NAudio.Wave.PlaybackState.Playing)&#xA;                {&#xA;                    System.Threading.Thread.Sleep(100);&#xA;                }&#xA;            }&#xA;        }&#xA;&#xA;        // Wait for FFmpeg process to exit&#xA;        ffmpegProcess.WaitForExit();&#xA;    }&#xA;}&#xA;

    &#xA;