Recherche avancée

Médias (1)

Mot : - Tags -/getid3

Autres articles (99)

  • MediaSPIP 0.1 Beta version

    25 avril 2011, par

    MediaSPIP 0.1 beta is the first version of MediaSPIP proclaimed as "usable".
    The zip file provided here only contains the sources of MediaSPIP in its standalone version.
    To get a working installation, you must manually install all-software dependencies on the server.
    If you want to use this archive for an installation in "farm mode", you will also need to proceed to other manual (...)

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

  • ANNEXE : Les plugins utilisés spécifiquement pour la ferme

    5 mars 2010, par

    Le site central/maître de la ferme a besoin d’utiliser plusieurs plugins supplémentaires vis à vis des canaux pour son bon fonctionnement. le plugin Gestion de la mutualisation ; le plugin inscription3 pour gérer les inscriptions et les demandes de création d’instance de mutualisation dès l’inscription des utilisateurs ; le plugin verifier qui fournit une API de vérification des champs (utilisé par inscription3) ; le plugin champs extras v2 nécessité par inscription3 (...)

Sur d’autres sites (7301)

  • ffmpeg command line code translate to fluent-ffmpeg

    8 novembre 2020, par Berk Coşar

    I have trouble understanding fluent-ffmpeg.

    


    I'm trying to make a screen recorder with Fluent-ffmpeg but couldn't find the correct code. The output should consist of a screen, webcam and microphone.

    


    ffmpeg command line code works successfully.
enter image description here

    


    ffmpeg code :

    


    ffmpeg -ss 00:00:3 -thread_queue_size 4096 -f avfoundation -framerate 25 -i 1 -thread_queue_size 4096 -f avfoundation -framerate 25 -video_size 320x240 -i 0:0 -c:v libx264 -crf 18 -preset ultrafast -filter_complex 'overlay=main_w-overlay_w-10:main_h-overlay_h-10' -r 25 video.mp4


    


    my fluent-ffmpeg code :(ı know bad code) :

    


     command = ffmpeg("1")
        .videoCodec('libx264')
        .inputFPS(25)
        .size("1280x800")
        .inputFormat('avfoundation')  
         .input("0")
         .inputFormat('avfoundation')  
         .inputFPS(25)
          .size("320x240")
         .addOptions(["-filter_complex", "overlay=main_w-overlay_w-10:main_h-overlay_h-10 "])
        
     
        .addOption([  "-preset" , "ultrafast"  ])
       .save(`/Users/macbook/Pictures${new Date().toLocaleString().split('-').join('').split(':').join('')}.mp4`)


    


    i tried this but also this not worked :

    


         //.size("320x240")

   .complexFilter(['scale=320:240[rescaled]',
{
   filter: 'overlay', options: { x: 'main_w-overlay_w-10', y: 'main_h-overlay_h-10' },
   inputs: ['[0:v]','[1:v]'], outputs: '[a1][a2]'
 }
],'[a1][a2]')


    


    I would be very happy if you show me the right method. I will be happier if you also add a microphone.
thank you so much

    


  • moviepy mp4 to mp3 converter

    18 mai 2023, par Enspist

    I am trying to use python to convert files from mp4 to mp3. After some research most places recommend moviepy. I used the command pip install moviepy and it seemed to go off without a hitch. I go to VS Code and enter what a youtube video told me to enter (I know its not recommended to do that, I just wanted to see if it would work). This is what I have

    


    #This code should convert a .mp4 file into a .mp3 file

#This imports the moviepy package
from moviepy.editor import *

#here are the names of my files (I have subbed out actual files names)
mp4_file = "file_name.mp4"

mp3_file = "file_name.mp3

#Here is the the audio being stripped from the .mp4 file
video_clip = VideoFileClip(mp4_file)
audio_clip = video_clip.audio

#this is writing the audio to a .mp3 file at the path that is specified.
audio_clip.write_audiofile(mp3_file)

#this closes the conversion code
audio_clip.close()
VideoClip.close()


    


    After running the code I get this error :

    


    RuntimeError: No ffmpeg exe could be found. Install ffmpeg on your system, or set the IMAGEIO_FFMPEG_EXE environment variable.


    


    There is a bunch of gibberish above it but that is the final line that gets spit out.

    


    After looking up what the issue is I tried to input :

    


    from moviepy.config import change_settings
change_settings({"FFMPEG_BINARY": "/usr/bin/ffmpeg"})


    


    And it also did not work. I have tried searching for where ffmpeg is and it is not in /usr/bin/ffmepg or /usr/local/bin/ffmpeg like most sources I have looked at tell me it should be.

    


    I have tried installing ffmpeg on its own by doing pip install ffmpeg and 'brew install ffmpeg'. Both of those go off without a hitch as well but the error still pops.

    


    I am using a macbook air m1 and I have I think everything I need installed already so I am so lost on what is causing this error to pop.

    


    Can someone please help ?

    


    I have tried installing ffmpeg on its own as well as searching for the file directly.

    


    I should expect to get the .py file to run fine.

    


    I instead get the error seen above :

    


    RuntimeError: No ffmpeg exe could be found. Install ffmpeg on your system, or set the IMAGEIO_FFMPEG_EXE environment variable.


    


  • Why is ffmpeg taking up so much memory when I try to stop a livestream ?

    4 juillet 2019, par FiskFan1999

    When the ffmpeg function is running, there are no problems with memory and everything runs smoothly. However, when I attempt to stop the stream/ffmpeg by pressing q (or ctrl-c), ffmpeg freezes, doesn’t take any other inputs, and suddenly takes up an obscene amount of memory.

    I am using ffmpeg to livestream on youtube. I am using a MacBook Mid 2015 running macOS Mojave.

    here is the function I am using with ffmpeg.

    ffmpeg -re -f lavfi -i testsrc2=s=1280x720:r=60 -re -i "INPUT FILE.mp3" -vcodec libx264 -pix_fmt yuv420p -preset "ultrafast" -r 60 -g 120 -b:v 6168000 -filter_complex "[0]scale=1280:720;[1]aloop=start=0:size=202*44100:loop=-1" -acodec libmp3lame -ar 44100 -threads 3 -b:a 640000 -qscale:a 5 -bufsize 512k -f flv ${YOUTUBE_URL}/${KEY}

    The command runs perfectly and as expected while it is running. At this point, in Activity Monitor I can see that ffmpeg seems to peak to about 101 MB. When I press q, which is the button to end the encoding, if the stream had been going for about ten minutes ffmpeg freezes and in Activity monitor the ffmpeg command appears to climb to several gigabytes of memory without any sign of stopping. The most I have noticed is about 6 GB before I killed the command. Ffmpeg seems to be writing almost a gigabyte of data into memory a second. In fact, this slows down my computer when it occurs and threatens to completely fill up my memory.

    When this occurs, there are no error messages (except for warnings about running out of memory) and the terminal running ffmpeg seems to not respond to any kill commands, and the only way to alleviate the situation is to force close the terminal window itself.

    I’m wondering if somehow I am creating a memory leak issue or if I wrote something wrong or didn’t include something that would be necessary for live-streaming with ffmpeg.