Recherche avancée

Médias (1)

Mot : - Tags -/ogg

Autres articles (46)

  • Use, discuss, criticize

    13 avril 2011, par

    Talk to people directly involved in MediaSPIP’s development, or to people around you who could use MediaSPIP to share, enhance or develop their creative projects.
    The bigger the community, the more MediaSPIP’s potential will be explored and the faster the software will evolve.
    A discussion list is available for all exchanges between users.

  • MediaSPIP Player : problèmes potentiels

    22 février 2011, par

    Le lecteur ne fonctionne pas sur Internet Explorer
    Sur Internet Explorer (8 et 7 au moins), le plugin utilise le lecteur Flash flowplayer pour lire vidéos et son. Si le lecteur ne semble pas fonctionner, cela peut venir de la configuration du mod_deflate d’Apache.
    Si dans la configuration de ce module Apache vous avez une ligne qui ressemble à la suivante, essayez de la supprimer ou de la commenter pour voir si le lecteur fonctionne correctement : /** * GeSHi (C) 2004 - 2007 Nigel McNie, (...)

  • MediaSPIP Player : les contrôles

    26 mai 2010, par

    Les contrôles à la souris du lecteur
    En plus des actions au click sur les boutons visibles de l’interface du lecteur, il est également possible d’effectuer d’autres actions grâce à la souris : Click : en cliquant sur la vidéo ou sur le logo du son, celui ci se mettra en lecture ou en pause en fonction de son état actuel ; Molette (roulement) : en plaçant la souris sur l’espace utilisé par le média (hover), la molette de la souris n’exerce plus l’effet habituel de scroll de la page, mais diminue ou (...)

Sur d’autres sites (5311)

  • Restream m3u8 with python, ffmpeg or nginx

    23 janvier 2023, par TrewisDK

    I need to restream m3u8 videos to my service. The project is written in django. I can't get my m3u8 with ffmpeg command

    


    ffmpeg -fflags +igndts -hide_banner -i https://link/stream.m3u8 -c copy -f flv rtmp:127.0.0.1/live/stream


    


    Please tell me how do I do this ?

    


    ffmpeg -fflags +igndts -hide_banner -i https://link/stream.m3u8 -c copy -f flv rtmp:127.0.0.1/live/stream


    


  • How to stream to NestJS if the data is transmitted through a NATS broker ?

    13 août 2023, par О. Войтенко

    I have an rtsp to mpegts streamer (ffmpeg wrapped in Express for publishing) that streams by publish to a NATS Jetstream.

    


    const options =
     [
         "-rtsp_transport", "tcp",
         "-i", streamUrl,
         '-f', 'mpegts',
         '-pix_fmt', 'yuv420p',
         '-c:v', 'h264',
         '-b:v', '800k',
         '-r', '30',
         '-muxdelay', '0.4',
         '-movflags', 'frag_keyframe+empty_moov',
         '-'
     ];


    


    try {
         const natsConnection = await nats.connect({
             servers: 'ws://127.0.0.1:9222',
             preserveBuffers: true
         })

         conststream = spawn('ffmpeg', options);

         stream.stdout.on('data', (chunk) => {
             console log(chunk);
             natsConnection.publish('stream.1', chunk);
         });

         stream.stdout.on('error', (error) => {
             console.error('FFmpeg error:', error);
         });

         stream.stdout.on('close', (code) => {
             console.log('FFmpeg process closed with code:', code);
         });
     } catch (e) {
         console.error(e);
     }


    


    It's all about the NestJS application signing up for this when the visitor follows the route.
The controller method itself

    


    @get()
   async findOne(
     @Headers() headers,
     @Res() res,
   ) {
     const streamObservable = this.natsService.subscribeStreamEvents('1');

     // Set appropriate headers for video streaming
     res.setHeader('Content-Type', 'video/mp4');
     res.setHeader('Transfer-Encoding', 'chunked');

     res.status(200);

     // Write data chunks directly to the response
     const subscription = streamObservable.subscribe({
       next: (chunk) => {
         console.log('wwww', chunk);
         res.write(chunk);
       },
       error: (error) => {
         console.error('Error streaming video:', error);
       },
       complete: () => {
         res end();
       },
     });

     res.on('close', () => {
       subscription.unsubscribe();
     });
   }


    


    Well, and service service

    


    subscribeToCameraEvents(cameraId: string) {&#xA;     const subject = new Subject<any>();&#xA;&#xA;     this.natsConnection.subscribe(`stream.${cameraId}`, {&#xA;       callback: (err, msg: Msg) => {&#xA;         if (err) {&#xA;           subject.error(err);&#xA;           return;&#xA;         }&#xA;         // console.log(msg.data);&#xA;         subject.next(msg.data);&#xA;       },&#xA;     });&#xA;&#xA;     return subject.asObservable();&#xA;   }&#xA;</any>

    &#xA;

    The data is consoled as a Buffer.

    &#xA;

    trying to play the stream

    &#xA;

    &#xA;&#xA;&#xA;     &#xA;&#xA;&#xA;<video controls="controls" width="640" height="480" style="background: black">&#xA;     <source src="http://localhost:3301/api/streams" type="video/mp4">&#xA;     Your browser does not support the video tag.&#xA;</source></video>&#xA;&#xA;&#xA;

    &#xA;

    the route is true in the source.

    &#xA;

    The problem is that through VLC and ffplay - localhost:3301/api/streams the stream is displayed, and everything works fine, without any additional settings.

    &#xA;

    And here in html does not want.

    &#xA;

    **What am I doing wrong ? **

    &#xA;

    I will be glad to any comments and additional questions.

    &#xA;

    I have tried canvas and jsmpeg (not working too), @Res(passthrough : true) - stream does not work in VLC, ffplay and html (without passthrough stream is working only in VLS and ffplay)

    &#xA;

  • Video Live wallpaper android

    12 juillet 2014, par NZT Solution

    I am trying to implement https://github.com/frankandrobot/GLWallpaperVideoDemo but this is 3 year old code. I didn’t find any other tutorial. I am using eclipse on windows 7. I have searched on google and found that NDK-r7 versions and later can also be build on windows without using Cygwin. I have also followed this link How to play video as live wallpaper android ?. I have generated .so files as well but when i try to install this in my device It is getting crashed. I have installed NDK also tried to replace latest FFMpeg libraries but no Luck ! I wonder if someone could help me out of these ? Error java.lang.RuntimeException: Unable to instantiate service frankandrobot.glwallpapervideodemo.com