Recherche avancée

Médias (91)

Autres articles (75)

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

  • 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

Sur d’autres sites (9321)

  • how to prevent the hls video player dont refresh when m3u8 changes

    6 juin 2024, par Leo

    here i am using ffmpeg to use camera and audio to make a hls stream on server as the stream continious old m3u8 components deletes and new ones gets added to main.m3u8. but as we insert the url of hls stream file main.m3u8. the player refreshes as soon as the file gets rewritten because of new and old ones. so

    


    i have tried to change the players like hls.js or videojs etc none were to solve this. how to solve this and make sure the stream runs smoothly.

    


    Server.js

    


    const startStreaming = (viddev,auddev) => {
    if (ffmpegProcess) {
        ffmpegProcess.kill();
    }
    const segmentDuration = 10;
    const outputFilename = './video/output.m3u8';
    const ffmpegCommand = `ffmpeg -f dshow -i video="${viddev}" -f dshow -i audio="${auddev}" -codec:v libx264 -preset ultrafast -tune zerolatency -codec:a aac -b:a 128k -hls_time ${segmentDuration} -hls_list_size 3 -hls_flags delete_segments -start_number 0 -hls_segment_type mpegts ${outputFilename}`;

    ffmpegProcess = exec(ffmpegCommand);

    ffmpegProcess.stderr.on('data', (data) => {
        console.error(`ffmpeg stderr: ${data}`);
    });

    ffmpegProcess.on('close', (code) => {
        console.log(`ffmpeg process exited with code ${code}`);
    });
};

app.use('/video', express.static(path.join(__dirname, 'video')));

// Endpoint to list audio and video devices
app.get('/devices', async (req, res) => {
    const data=await parseDevices()
    // console.log(data.cameras[0].name)
    startStreaming(data.cameras[0].name,data.microphones[0].name);
    res.json(data)
});


    


    index.html

    


    &#xA;&#xA;&#xA;    &#xA;    &#xA;    &#xA;    &#xA;    &#xA;&#xA;&#xA;&#xA;    &#xA;        <source src="https://localhost:3000/video/output.m3u8" type="application/x-mpegURL">&#xA;    &#xA;&#xA;    <code class="echappe-js">&lt;script src=&quot;https://vjs.zencdn.net/8.10.0/video.min.js&quot;&gt;&lt;/script&gt;&#xA;    &lt;script&gt;&amp;#xA;        // Initialize Video.js player&amp;#xA;        var player = videojs(&amp;#x27;video&amp;#x27;, {&amp;#xA;            autoplay: &amp;#x27;play&amp;#x27;,&amp;#xA;            liveui: true  // Enable the live UI for live streams&amp;#xA;        });&amp;#xA;&amp;#xA;        // Seek to live when the player is ready&amp;#xA;        player.ready(function() {&amp;#xA;            player.liveTracker.on(&amp;#x27;liveedgechange&amp;#x27;, function() {&amp;#xA;                player.currentTime(player.liveTracker.liveCurrentTime());&amp;#xA;            });&amp;#xA;        });&amp;#xA;&amp;#xA;        // Handle any errors encountered by Video.js&amp;#xA;        player.on(&amp;#x27;error&amp;#x27;, function() {&amp;#xA;            console.error(&amp;#x27;Video.js encountered an error:&amp;#x27;, player.error());&amp;#xA;        });&amp;#xA;    &lt;/script&gt;&#xA;&#xA;&#xA;&#xA;&#xA;

    &#xA;

  • rtmp : Follow Flash player numbering for channels.

    16 septembre 2013, par Josh Allmann
    rtmp : Follow Flash player numbering for channels.
    

    Channel 4 is typically used by the Flash player to transmit
    audio, channel 6 for video, and various stream-specific invokes
    get sent over channel 8, which is designated the source channel.

    This more closely matches the behavior of the Flash player,
    including the transmission of play requests over channel 8.

    Signed-off-by : Martin Storsjö <martin@martin.st>

    • [DBH] libavformat/rtmppkt.h
    • [DBH] libavformat/rtmpproto.c
  • FFmpeg .jpg images to .mp4 incompatible with Windows Media Player

    8 janvier 2020, par willspill

    I have a series of 10 images with which I am trying to form an animation. I have used the following code below in the command line :

    ffmpeg -f image2 -i plot-%03d.jpg -r 5 -pix_fmt yuv420p -vcodec mpeg4 output.mp4

    This creates a .mp4 file with a seemingly valid file size, however, when trying to open with Windows Media Player gives the following error :

    Windows Media Player cannot play the file. The Player might not support the file type or might not support the codec that was used to compress the file.

    I have tried many solutions from previous threads but have found no solution. I have checked that my version of windows media player is compatible with mp4, avi, wmv etc. and have tried all of these outputs also. Any ideas of the issue ?

    The full code :

    M:Example\Frames_plot-001_jpg>ffmpeg -f image2 -i plot-%03
    ix_fmt yuv420p -vcodec mpeg4 output.mp4
    FFmpeg version SVN-r11200, Copyright (c) 2000-2007 Fabrice Bellard,
     configuration: --enable-memalign-hack
     libavutil version: 49.5.0
     libavcodec version: 51.48.0
     libavformat version: 52.1.0
     built on Dec 11 2007 14:33:27, gcc: 3.4.5 (mingw special)
    Input #0, image2, from 'plot-%03d.jpg':
     Duration: 00:00:00.4, start: 0.000000, bitrate: N/A
       Stream #0.0: Video: mjpeg, yuvj420p, 4167x4167 [PAR 120:120 DAR
    tb(r)
    Output #0, mp4, to 'output.mp4':
       Stream #0.0: Video: mpeg4, yuv420p, 4167x4167 [PAR 1:1 DAR 1:1]
    kb/s,  5.00 tb(c)
    Stream mapping:
     Stream #0.0 -> #0.0
    Press [q] to stop encoding
    Compiler did not align stack variables. Libavcodec has been miscomp
    and may be very slow or crash. This is not a bug in libavcodec,
    but in the compiler. You may try recompiling using gcc >= 4.2.
    Do not report crashes to FFmpeg developers.
    frame=    3 fps=  3 q=4.0 Lsize=     917kB time=0.6 bitrate=12522.6
    video:916kB audio:0kB global headers:0kB muxing overhead 0.072455%