Recherche avancée

Médias (1)

Mot : - Tags -/copyleft

Autres articles (27)

  • Les tâches Cron régulières de la ferme

    1er décembre 2010, par

    La gestion de la ferme passe par l’exécution à intervalle régulier de plusieurs tâches répétitives dites Cron.
    Le super Cron (gestion_mutu_super_cron)
    Cette tâche, planifiée chaque minute, a pour simple effet d’appeler le Cron de l’ensemble des instances de la mutualisation régulièrement. Couplée avec un Cron système sur le site central de la mutualisation, cela permet de simplement générer des visites régulières sur les différents sites et éviter que les tâches des sites peu visités soient trop (...)

  • HTML5 audio and video support

    13 avril 2011, par

    MediaSPIP uses HTML5 video and audio tags to play multimedia files, taking advantage of the latest W3C innovations supported by modern browsers.
    The MediaSPIP player used has been created specifically for MediaSPIP and can be easily adapted to fit in with a specific theme.
    For older browsers the Flowplayer flash fallback is used.
    MediaSPIP allows for media playback on major mobile platforms with the above (...)

  • De l’upload à la vidéo finale [version standalone]

    31 janvier 2010, par

    Le chemin d’un document audio ou vidéo dans SPIPMotion est divisé en trois étapes distinctes.
    Upload et récupération d’informations de la vidéo source
    Dans un premier temps, il est nécessaire de créer un article SPIP et de lui joindre le document vidéo "source".
    Au moment où ce document est joint à l’article, deux actions supplémentaires au comportement normal sont exécutées : La récupération des informations techniques des flux audio et video du fichier ; La génération d’une vignette : extraction d’une (...)

Sur d’autres sites (7895)

  • How do I make my discord.py bot play a sound effect ?

    15 mai 2024, par Kronik71

    My bot is supposed to be some sort of jeopardy quiz show type of bot. /joinvc makes the bot connect to the call, however, I cant seem to make the bot make noise when its in a vc. Here's some of the code :

    


    @interactions.slash_command(
    name="press",
    description="Press the button"
)

async def press(ctx: interactions.ComponentContext):
    await ctx.send(f"{ctx.author.mention} has pressed the button")
    vc = ctx.author.voice.channel
    player = vc.create_ffmpeg_player('audiopath', after=lambda: print('done'))
    player.start()


    


    But whenever I use the /press command, I get this error AttributeError: 'GuildVoice' object has no attribute 'create_ffmpeg_player'

    


    Is it something I did wrong with ffmpeg ?

    


    I tried using a different way to write the code, basically grabbing the ffmpeg.exe path and the audio path, didn't work either. I just want the bot to play a small noise whenever someone uses /press command.

    


  • Transcode Video to play on a raspberry pi (3/4) with ffmpeg

    20 octobre 2022, par exa.byte

    For a while now I transcode videos to play on a raspberry pi 3 (or 4) but the performance was always really bad.
After a long process of trial and error I found a command which works good most of the time for the various inputs I get from the colleagues :

    


    ffmpeg -i video_input.mp4 -c:v libvpx-vp9 -vf "scale=1280:720" -r 30 -b:v 1.0M -maxrate 1.2M -bufsize 1M video_output.mp4

    


    Today I got a 4k Video, 1.7gb and about 3 minutes with 50fps.

    


    The resulting video has 31MegaBytes. That alone was really concerning but the main problem is, the Video is not playing not even close to smoothly. It's a diashow.

    


    I use a debian bullseye (headless) on an old Z440 machine. So only a CLI is available.
Can some please help me to find a codec which is suitable for playback on a rpi3 or rpi4 ?

    


    I also tried h264_omx as the c:v command but it throws this error :

    


    libOMX_Core.so not found
libOmxCore.so not found


    


    I found posts around that this is already deprecated anyway. So I hope to
find a hero which knows how to transcode this kind of video.

    


    FFMPEG is version 4.3

    


  • How to create .m3u8 and .ts files which are compatible with HTTP Live Streaming using Java and OpenCV ?

    30 septembre 2021, par O Connor

    Using FFMPEG as following, FFMPEG will create a stream.m3u8 file and .ts files sequentially, which are compatible for making video live streaming on a web page.

    


    ffmpeg -f dshow -i video="My Camera Name" stream.m3u8


    


    I am using Java and OpenCV as following for capturing video frames and creating .ts file.

    


    videoCapture = new VideoCapture(0, CV_CAP_DSHOW);

if (videoCapture.isOpened()) {
    Mat m = new Mat();
    videoCapture.read(m);
    int fourcc = VideoWriter.fourcc('a', 'v', 'c', '1');
    double fps = videoCapture.get(Videoio.CAP_PROP_FPS);
        
    if (fps <= 0) {
        fps = 25;
    }

    Size s =  new Size((int) videoCapture.get(Videoio.CAP_PROP_FRAME_WIDTH), (int) 
    videoCapture.get(Videoio.CAP_PROP_FRAME_HEIGHT));
    videoWriter = new VideoWriter("test0.ts", fourcc, fps, s, true);
      
    while (videoCapture.read(m)) {
         if (videoWriter.isOpened()) {
             videoWriter.write(m);
         }
    }
}
    
videoCapture.release();
videoWriter.release();


    


    I can play the test0.ts video using VLC player and ffplay. But this test0.ts video is not compatible for HTTP Live Streaming on a web page.

    


      

    1. How can I create .m3u8 and .ts files which are compatible with HTTP Live Streaming using Java and OpenCV ?
    2. 


    


    I am not persisting to use OpenCV and Java for create these files, but I need a client that captures the video frames and sends the raw video data to the server. And the server is responsible for catching the raw video data, creating .ts video file and for handling the live streaming requests coming from the web page. The communication between the client and the server uses a credential.

    


    That's why I think using FFMPEG alone for this approach is not possible.

    


      

    1. If there is another way for making this client, server and HTTP Live Streaming possible, I would like to learn that as well.
    2.