Recherche avancée

Médias (91)

Autres articles (48)

  • Mise à jour de la version 0.1 vers 0.2

    24 juin 2013, par

    Explications des différents changements notables lors du passage de la version 0.1 de MediaSPIP à la version 0.3. Quelles sont les nouveautés
    Au niveau des dépendances logicielles Utilisation des dernières versions de FFMpeg (>= v1.2.1) ; Installation des dépendances pour Smush ; Installation de MediaInfo et FFprobe pour la récupération des métadonnées ; On n’utilise plus ffmpeg2theora ; On n’installe plus flvtool2 au profit de flvtool++ ; On n’installe plus ffmpeg-php qui n’est plus maintenu au (...)

  • Personnaliser en ajoutant son logo, sa bannière ou son image de fond

    5 septembre 2013, par

    Certains thèmes prennent en compte trois éléments de personnalisation : l’ajout d’un logo ; l’ajout d’une bannière l’ajout d’une image de fond ;

  • Ecrire une actualité

    21 juin 2013, par

    Présentez les changements dans votre MédiaSPIP ou les actualités de vos projets sur votre MédiaSPIP grâce à la rubrique actualités.
    Dans le thème par défaut spipeo de MédiaSPIP, les actualités sont affichées en bas de la page principale sous les éditoriaux.
    Vous pouvez personnaliser le formulaire de création d’une actualité.
    Formulaire de création d’une actualité Dans le cas d’un document de type actualité, les champs proposés par défaut sont : Date de publication ( personnaliser la date de publication ) (...)

Sur d’autres sites (10369)

  • avdevice/decklink : 10 Bit support for Decklink input device

    18 janvier 2015, par Georg Lippitsch
    avdevice/decklink : 10 Bit support for Decklink input device
    

    Example to capture video clip at 1080i50 10 bit :
    ffmpeg -bm_v210 1 -f decklink -i ’UltraStudio Mini Recorder@11’ -acodec copy -vcodec copy output.avi

    Signed-off-by : Michael Niedermayer <michaelni@gmx.at>

    • [DH] libavdevice/decklink_common_c.h
    • [DH] libavdevice/decklink_dec.cpp
    • [DH] libavdevice/decklink_dec_c.c
  • ffmpeg transcoding : Metallic distorsion on macOS

    10 septembre 2024, par Xavi

    I am following ffmpeg's transcoding.c example to record audio and video from my input devices into an mp4 output file with H264 and AAC as codecs. I have no issues with the video and the audio transcoding works correctly on Windows.

    &#xA;

    However, on macOS I have an issue with any input device other than the internal microphone of my laptop : the audio comes out distorted and sounding noisy and metallic (sample recording claps : https://file.io/nEn8MXHUAUQ2). I went through the input and output parameters for the filter several times, checked the values, but there must be something I'm missing. And I can't explain why it works on Windows with the same devices.

    &#xA;

    Has anyone run into a similar problem before ? Any idea where I should start looking at ?

    &#xA;

    Additional comments :

    &#xA;

      &#xA;
    1. While the Macbook's internal microphone (the only one that works) has only one channel, the other microphones I have available are stereo, so I can't say for sure that that's where the problem is.
    2. &#xA;

    3. I also tested it on a macbook mini, with the same results.
    4. &#xA;

    5. ffmpeg 6.1.1, MacOs 14.5
    6. &#xA;

    7. Input filter arguments : time_base=1/1000000:sample_rate=48000:sample_fmt=1:channel_layout=stereo
    8. &#xA;

    9. Output filter arguments : setpts=PTS-STARTPTS,aresample=48000:async=1:out_sample_fmt=8:out_chlayout=stereo,asetnsamples=n=1024
    10. &#xA;

    &#xA;

  • hls.js starting a beginning with ANDROID mobile (chrome, webview also) and not live *** but works very nice in deskto, ios .. hls.js 1.0.0 2021-04-01

    27 avril 2021, par Jintor

    I'm streaming a .m3u8 with the latest hls.js 1.0.0 (not rc) but version of 2021-04-01...

    &#xA;

    example : the stream began at 5pm, and now it's 5:15 pm...

    &#xA;

    the stream start at live point in almost all browsers

    &#xA;

    The pattern I see here : ALL browsers in android (tested in Android 10) won't start at live point, only at 0...

    &#xA;

    I did all the tests

    &#xA;

    • Safari desktop => stream live at 5:15

    &#xA;

    • Safari mobile => stream live at 5:15

    &#xA;

    • WebView (Android) => ••• ISSUE : the player starts the stream at 0 (5pm)

    &#xA;

    • WKWebView (apple IOS iphone,ipad) => stream live at 5:15

    &#xA;

    • Chrome Desktop (mac/win) => stream live at 5:15

    &#xA;

    • Chrome MOBILE (Android) => ••• ISSUE : the player starts the stream at 0 (5pm)

    &#xA;

    • Chrome MOBILE (iPhone) => stream live at 5:15

    &#xA;

    • Microsoft EDGE Desktop => stream live at 5:15

    &#xA;

    • Microsoft EDGE mobile (android) => ••• ISSUE : the player starts the stream at 0 (5pm)

    &#xA;

    • Firefox Desktop (mac/win) => stream live at 5:15

    &#xA;

    • Opera Desktop (mac/win) => stream live at 5:15

    &#xA;

    • Opera Mini (iPhone) => stream live at 5:15

    &#xA;

    • Opera Mini (android) => ••• ISSUE : the player starts the stream at 0 (5pm)

    &#xA;

    • Brave Desktop (mac/win) => stream live at 5:15

    &#xA;

    • Brave Mobile (iPhone) => stream live at 5:15

    &#xA;

    • Brave Mobile (android) => ••• ISSUE : the player starts the stream at 0 (5pm)

    &#xA;

    This code

    &#xA;

    <code class="echappe-js">&lt;script src=&quot;https://cdn.jsdelivr.net/npm/hls.js@latest&quot;&gt;&lt;/script&gt;&#xA;    

    &#xA; &lt;script&gt;&amp;#xA;      var video = document.getElementById(&quot;video&quot;);&amp;#xA;      var videoSrc = &quot;https://www.example1.com/streaming/index.m3u8&quot;;&amp;#xA;      if (video.canPlayType(&quot;application/vnd.apple.mpegurl&quot;)) {&amp;#xA;        video.src = videoSrc;&amp;#xA;      } else if (Hls.isSupported()) {&amp;#xA;         var config = {&amp;#xA;            autoStartLoad: true,&amp;#xA;            startPosition: -1,&amp;#xA;            debug: false,&amp;#xA;            capLevelOnFPSDrop: false,&amp;#xA;            capLevelToPlayerSize: false,&amp;#xA;            defaultAudioCodec: undefined,&amp;#xA;            initialLiveManifestSize: 1,&amp;#xA;            maxBufferLength: 30,&amp;#xA;            maxMaxBufferLength: 500,&amp;#xA;            backBufferLength: Infinity,&amp;#xA;            maxBufferSize: 60 * 1000 * 1000,&amp;#xA;            maxBufferHole: 0.5,&amp;#xA;            highBufferWatchdogPeriod: 2,&amp;#xA;            nudgeOffset: 0.1,&amp;#xA;            nudgeMaxRetry: 3,&amp;#xA;            maxFragLookUpTolerance: 0.25,&amp;#xA;            liveSyncDurationCount: 3,&amp;#xA;            liveMaxLatencyDurationCount: Infinity,&amp;#xA;            liveDurationInfinity: false,&amp;#xA;            enableWorker: true,&amp;#xA;            enableSoftwareAES: true,&amp;#xA;            manifestLoadingTimeOut: 10000,&amp;#xA;            manifestLoadingMaxRetry: 1,&amp;#xA;            manifestLoadingRetryDelay: 1000,&amp;#xA;            manifestLoadingMaxRetryTimeout: 64000,&amp;#xA;            startLevel: undefined,&amp;#xA;            levelLoadingTimeOut: 10000,&amp;#xA;            levelLoadingMaxRetry: 4,&amp;#xA;            levelLoadingRetryDelay: 1000,&amp;#xA;            levelLoadingMaxRetryTimeout: 64000,&amp;#xA;            fragLoadingTimeOut: 20000,&amp;#xA;            fragLoadingMaxRetry: 6,&amp;#xA;            fragLoadingRetryDelay: 1000,&amp;#xA;            fragLoadingMaxRetryTimeout: 64000,&amp;#xA;            startFragPrefetch: false,&amp;#xA;            testBandwidth: true,&amp;#xA;            progressive: false,&amp;#xA;            lowLatencyMode: true,&amp;#xA;            fpsDroppedMonitoringPeriod: 5000,&amp;#xA;            fpsDroppedMonitoringThreshold: 0.2,&amp;#xA;            appendErrorMaxRetry: 3,&amp;#xA;            enableWebVTT: true,&amp;#xA;            enableIMSC1: true,&amp;#xA;            enableCEA708Captions: true,&amp;#xA;            stretchShortVideoTrack: false,&amp;#xA;            maxAudioFramesDrift: 1,&amp;#xA;            forceKeyFrameOnDiscontinuity: true,&amp;#xA;            abrEwmaFastLive: 3.0,&amp;#xA;            abrEwmaSlowLive: 9.0,&amp;#xA;            abrEwmaFastVoD: 3.0,&amp;#xA;            abrEwmaSlowVoD: 9.0,&amp;#xA;            abrEwmaDefaultEstimate: 500000,&amp;#xA;            abrBandWidthFactor: 0.95,&amp;#xA;            abrBandWidthUpFactor: 0.7,&amp;#xA;            abrMaxWithRealBitrate: false,&amp;#xA;            maxStarvationDelay: 4,&amp;#xA;            maxLoadingDelay: 4,&amp;#xA;            minAutoBitrate: 0,&amp;#xA;            emeEnabled: false&amp;#xA;        };&amp;#xA;        var hls = new Hls(config);&amp;#xA;        hls.loadSource(videoSrc);&amp;#xA;        hls.attachMedia(video);&amp;#xA;      }   &amp;#xA;      video.addEventListener(&quot;loadedmetadata&quot;, function(){ video.muted = true; video.play(); }, false);&amp;#xA;    &lt;/script&gt;&#xA;

    &#xA;

    // here I added video.muted = true ; video.play() ; to auto start, if I try to autoplay unmuted, many browsers refuse this command...

    &#xA;

    // playsinline="true" is NEEDED for safari

    &#xA;

    ••••••• THE FFMPEG COMMAND (working : it allows me to have 3 to 4 seconds delay ••••••

    &#xA;

    ffmpeg -re -i input.x -c:a aac -c:v libx264 &#xA;-movflags &#x2B;dash -preset ultrafast &#xA;-crf 28 -refs 4 -qmin 4 -pix_fmt yuv420p &#xA;-tune zerolatency -c:a aac -ac 2 -profile:v main &#xA;-flags -global_header -bufsize 969k &#xA;-hls_time 1 -hls_list_size 0 -g 30 &#xA;-start_number 0 -streaming 1 -hls_playlist 1 &#xA;-lhls 1 -hls_playlist_type event -f hls path_to_index.m3u8&#xA;

    &#xA;

    •••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••

    &#xA;

    How can this be fixed ?

    &#xA;

    How can I make play at live point on load in android MOBILE ?

    &#xA;