Recherche avancée

Médias (3)

Mot : - Tags -/spip

Autres articles (42)

  • List of compatible distributions

    26 avril 2011, par

    The table below is the list of Linux distributions compatible with the automated installation script of MediaSPIP. Distribution nameVersion nameVersion number Debian Squeeze 6.x.x Debian Weezy 7.x.x Debian Jessie 8.x.x Ubuntu The Precise Pangolin 12.04 LTS Ubuntu The Trusty Tahr 14.04
    If you want to help us improve this list, you can provide us access to a machine whose distribution is not mentioned above or send the necessary fixes to add (...)

  • MediaSPIP v0.2

    21 juin 2013, par

    MediaSPIP 0.2 est la première version de MediaSPIP stable.
    Sa date de sortie officielle est le 21 juin 2013 et est annoncée ici.
    Le fichier zip ici présent contient uniquement les sources de MediaSPIP en version standalone.
    Comme pour la version précédente, il est nécessaire d’installer manuellement l’ensemble des dépendances logicielles sur le serveur.
    Si vous souhaitez utiliser cette archive pour une installation en mode ferme, il vous faudra également procéder à d’autres modifications (...)

  • Mise à disposition des fichiers

    14 avril 2011, par

    Par défaut, lors de son initialisation, MediaSPIP ne permet pas aux visiteurs de télécharger les fichiers qu’ils soient originaux ou le résultat de leur transformation ou encodage. Il permet uniquement de les visualiser.
    Cependant, il est possible et facile d’autoriser les visiteurs à avoir accès à ces documents et ce sous différentes formes.
    Tout cela se passe dans la page de configuration du squelette. Il vous faut aller dans l’espace d’administration du canal, et choisir dans la navigation (...)

Sur d’autres sites (5091)

  • potato quality audio coming from bot

    24 juillet 2020, par jas_123

    When I play audio through my bot it sounds really bad, I have a fast internet connection, so what could be causing this ? Im running my bot on a Raspberry Pi 3. Im using FFMpeg. Could the RPI be bottlenecking it somehow. Is it my code ?

    


    simplified version of my code :

    


    @client.command()
async def play(ctx):
    channel = client.get_channel(ctx.message.author.voice.channel.id)
    voice = await channel.connect()
    if not voice.is_playing():
        voice.play(await discord.FFMpegOpusAudio(source='/path/to/file'))
        while voice.is_playing():
            await asyncio.sleep(1)
    discord.AudioSource.cleanup(str(ctx.message.author.voice.channel.id))


    


  • How to successively Crop THEN add multiple boxblur's to a video with ffmpeg ?

    7 août 2022, par Radespy

    I need to programmatically crop a video and then add ffmpeg boxblur to multiple regions of the cropped video.

    


    (Once the 'croppedAndBoxblurred' video is completed, I then need to read the image file in nodejs.)

    


    I have managed to do the following :

    


    (i'm accessing a local binary ffmpeg library, hence the string format)

    


      

    1. Crop the video using the following ffmpeg commands :
    2. 


    


          [ "-i",
        `${path_to_video}`,
        "-filter:v",
        `crop=${width}:${height}:${x_pos}:${y_pos}`,
        "-preset",
        "fast",
        "-progress",
        `${temp_log_file_path}`,
        `${path.join(temp_directory, "cropped-video.mp4")}`]


    


    The listener (for the "progress=end" flag in the temp_log_file_path.txt) works fine.

    


      

    1. I can also create a SINGLE boxblur using the following commands :
    2. 


    


          [ "-i",
        `${path_to_cropped_video}`,
         "-filter_complex",
        `[0:v]crop=200:200:100:100,boxblur=10[fg]; [0:v][fg]overlay=100:100[v]`,
        `-map`,
        `[v]`,
        `${temp_log_file_path}`,
        `${path.join(temp_directory, "boxblurred-video.mp4")}`]


    


    but i'm unable to combine the commands.

    


    I've tried lots and lots of different combinations using the ffmpeg cli.

    


    The following tests work individually :-

    


    ffmpeg -i /Users/fr/Desktop/media_folder/cropped.mp4 -filter_complex "[0:v]crop=200:200:100:100,boxblur=10[fg]; [0:v][fg]overlay=100:100[v]" -map "[v]" /Users/fr/Desktop/review-media-images/test4.mp4


ffmpeg -i /Users/fr/Desktop/media_folder/test1.mp4 -filter_complex "[0:v]crop=200:200:100:100,boxblur=10[fg]; [0:v][fg]overlay=100:100[v]" -map "[v]" /Users/fr/Desktop/review-media-images/test5.mp4

ffmpeg -i /Users/fr/Desktop/media_folder/test1.mp4 -filter_complex "[0:v]crop=200:200:100:100,boxblur=10[fg]; [0:v][fg]overlay=100:100[v]" -map "[v]" /Users/fr/Desktop/review-media-images/test6.mp4

ffmpeg -i /Users/fr/Desktop/media_folder/test1.mp4 -vf crop=600:600:2:2 /Users/fr/Desktop/review-media-images/test3.mp4       



    


    None of these work :

    


    ffmpeg -i /Users/fr/Desktop/media_folder/test1.mov  -filter_complex “crop=100:100:100:100,boxblur=10[fg];[0:v][fg]overlay=100:100[v]” -map “[v]” /Users/fr/Desktop/review-media-images/croppblur.mp4

ffmpeg -i /Users/fr/Desktop/media_folder/test1.mp4 -filter_complex “[0:v]crop=600:600:2:2[new]; [0:v][new]crop=200:200:100:100,boxblur=10[fg]; [0:v][fg]overlay=100:100[v]" -map "[v]" /Users/fr/Desktop/review-media-images/test2.mp4

ffmpeg -i /Users/fr/Desktop/media_folder/test1.mp4 -filter_complex “[0:v]crop=600:600:2:2[new]” -map “[0:v][new]crop=200:200:100:100,boxblur=10[fg]; [0:v][fg]overlay=100:100[v]" -map "[v]" /Users/fr/Desktop/review-media-images/test2.mp4

ffmpeg -i /Users/fr/Desktop/media_folder/test1.mp4 -vf crop=“600:600:2:2[tmp]” -filter_complex “[0:v][tmp]crop=200:200:100:100,boxblur=10[fg]; [0:v][fg]overlay=100:100[v]" -map "[v]" /Users/fr/Desktop/review-media-images/test2.mp4

ffmpeg -i /Users/fr/Desktop/media_folder/test1.mp4 -vf crop=“600:600:2:2” -filter_complex “[0:v]crop=200:200:100:100,boxblur=10[fg]; [0:v][fg]overlay=100:100[v]" -map "[v]" /Users/fr/Desktop/review-media-images/test2.mp4

ffmpeg -i /Users/fr/Desktop/media_folder/test1.mp4 -vf “crop=600:600:2:2” -filter_complex “[0:v]crop=200:200:100:100,boxblur=10[fg]; [0:v][fg]overlay=100:100[v]" -map "[v]" /Users/fr/Desktop/review-media-images/test2.mp4

ffmpeg -i /Users/fr/Desktop/media_folder/test1.mp4 -vf crop=600:600:2:2 -filter_complex “[0:v]crop=200:200:100:100,boxblur=10[fg]; [0:v][fg]overlay=100:100[v]" -map "[v]" /Users/fr/Desktop/review-media-images/test2.mp4

ffmpeg -i /Users/fr/Desktop/media_folder/test1.mp4 -filter:v “crop=600:600:2:2” /Users/fr/Desktop/review-media-images/titties.mp4
(No such filter crop)

ffmpeg -i /Users/fr/Desktop/media_folder/test1.mp4 -vf crop=600:600:2:2 -filter_complex "[0:v]crop=200:200:100:100,boxblur=10[fg]; [0:v][fg]overlay=100:100[v]" -map "[v]" /Users/fr/Desktop/review-media-images/test4.mp4
(Filtergraph 'crop=600:600:2:2' was specified through the -vf/-af/-filter option for output stream 0:0, which is fed from a complex filtergraph.
-vf/-af/-filter and -filter_complex cannot be used together for the same stream.)

ffmpeg -i /Users/fr/Desktop/media_folder/test1.mp4 -filter_complex "[0:v]crop=200:200:100:100,boxblur=10[fg]; [0:v][fg]overlay=100:100[tmp]; [0:v][tmp]crop=600:600:2:2[new]” -map “[new]” /Users/fr/Desktop/review-media-images/test4.mp4
([AVFilterGraph @ 0x7fdecb910d40] Too many inputs specified for the "crop" filter)


    


    Question :

    


    What is the correct syntax to achieve this ???

    


    Also, how would I add MULTIPLE boxblur regions to the cropped video i.e. to blur out different non-contiguous areas on the same video viewport ?

    


    Thanks.

    


  • FFMPEG blackdetect output

    25 juin 2018, par MertG

    I am currently working on detecting black frames in my video. I tried lots of examples on my windows own command prompt with ffmpeg and got good result. Then I started using what I learned on java platform. When I used same string on my java code, there seems to be a problem, because I get exit code 1. I print my results on txt file so ofc there is no output too since its not working. My code is below ;

       public class MyCode{
    public static void main(String[] args){

    Runtime runtime = Runtime.getRuntime();
    Process process = runtime.exec("C:\\Users\mg\\Desktop\\test\\ffmpeg -i C:\\Users\mg\\Desktop\\test\\video.mp4 -vf blackdetect=d=0.1:pix_th=.1 -an -f null 2> C:\\Users\mg\\Desktop\\test\\output.txt C:\\Users\mg\\Desktop\\test");

    BufferedReader input = new BufferedReader(new InputStreamReader(process.getInputStream()));

    int exitCode = process.waitFor();
    System.out.println(exitCode);
    }

    btw this C:\\Users\mg\\Desktop\\test\\ffmpeg -i C:\\Users\mg\\Desktop\\test\\video.mp4 -vf blackdetect=d=0.1:pix_th=.1 -an -f null 2> C:\\Users\mg\\Desktop\\test\\output.txt C:\\Users\mg\\Desktop\\test
    part works on command promt but not on java.