Recherche avancée

Médias (0)

Mot : - Tags -/page unique

Aucun média correspondant à vos critères n’est disponible sur le site.

Autres articles (104)

  • 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

  • Encoding and processing into web-friendly formats

    13 avril 2011, par

    MediaSPIP automatically converts uploaded files to internet-compatible formats.
    Video files are encoded in MP4, Ogv and WebM (supported by HTML5) and MP4 (supported by Flash).
    Audio files are encoded in MP3 and Ogg (supported by HTML5) and MP3 (supported by Flash).
    Where possible, text is analyzed in order to retrieve the data needed for search engine detection, and then exported as a series of image files.
    All uploaded files are stored online in their original format, so you can (...)

  • Ajouter des informations spécifiques aux utilisateurs et autres modifications de comportement liées aux auteurs

    12 avril 2011, par

    La manière la plus simple d’ajouter des informations aux auteurs est d’installer le plugin Inscription3. Il permet également de modifier certains comportements liés aux utilisateurs (référez-vous à sa documentation pour plus d’informations).
    Il est également possible d’ajouter des champs aux auteurs en installant les plugins champs extras 2 et Interface pour champs extras.

Sur d’autres sites (7263)

  • Catch "Unfortunately 'app' has stopped working" Error

    2 juillet 2015, par cadesalaberry

    I am using a very unstable library on Android that crashes sporadically. I start it using the startActivity() in my code.

    The unstable part of the code is doing a lot of video processing and uploading the result to a server. I do not really mind if the activity crashes, but I need to signal the server that it did.

    The crash comes from a memory leak (no time to solve it yet). Is there a way I can catch the error a display a more friendly/funny message instead ?

    try {
       context.startActivity(intent);
    } catch (ApplicationCrashedException e) {
       server.notifyServerOfCrash();
       toast("I really disliked your face...");
    }

    Edit : Here is the Error :

    java.lang.OutOfMemoryError
     at dalvik.system.VMRuntime.newNonMovableArray(Native Method)
     at java.nio.MemoryBlock.allocate(MemoryBlock.java:125)
     at java.nio.ByteBuffer.allocateDirect(ByteBuffer.java:72)
     at io.cine.android.streaming.FFmpegMuxer.writeSampleData(FFmpegMuxer.java:151)
     at io.cine.android.streaming.AndroidEncoder.drainEncoder(AndroidEncoder.java:128)
     at io.cine.android.streaming.TextureMovieEncoder.handleFrameAvailable(TextureMovieEncoder.java:264)
     at io.cine.android.streaming.TextureMovieEncoder$EncoderHandler.handleMessage(TextureMovieEncoder.java:409)
     at android.os.Handler.dispatchMessage(Handler.java:102)
     at android.os.Looper.loop(Looper.java:136)
     at io.cine.android.streaming.TextureMovieEncoder.run(TextureMovieEncoder.java:219)
     at java.lang.Thread.run(Thread.java:841)

    For some reason once the BroadcastActivity runs out of memory, the Activity gets killed and comes back to the previous one. It then displays the ’app’ has stopped working Dialog. If I press OK, it kills the entire application and comes back to the home screen.

    Ideally I would just have it come back to the previous activity notifying the server silently. (Not killing the application)

  • How to add a scrolling text of the audio file song name on a sepecific part of a video and stream it to youtube using ffmpeg

    5 novembre 2022, par Youssef Lasheen

    I know this is s very long and specific question but it can be broken down to these points :

    


      

    • How to add a text of song name on video
    • 


    • How to scroll in a specific area not from the beginning of the video to the end
    • 


    • How to stream a looping video and loop through multiple audio files to youtube/twitch.
    • 


    


    I kinda got the third point but i think its not an elegant solution

    


    ffmpeg -re -stream_loop -1 -i back.gif -safe 0 -i mylist.txt -c copy -map 0:v:0 -map 1:a:0 -c:v libx264 -preset veryfast -b:v 3000k -maxrate 3000k \ -bufsize 6000k -pix_fmt yuv420p -g 50 -c:a aac -b:a 160k -ac 2 \ -ar 44100  -f flv rtmp://live.twitch.tv/app/$key

    


    I also found this script that adds a scrolling image (input.jpg) to specific aree of a video but i coudlnt integrate it with the script above

    


    ffmpeg -y -ignore_loop 0 -r 25 -i back.gif -loop 1 -r 25 -i input.jpg -filter_complex "[0:v]crop=270:257:360:55[c0];[c0][1:v]overlay=y='257-t*257*0.04':eof_action=endall[fg];[0:v][fg]overlay=x=360:y=55:eof_action=endall" -t 50 output.mp4

    


  • Adding watermark to video

    27 avril 2018, par equallyhero

    I am able to use the moviepy library to add a watermark to a section of video. However when I do this it is taking the watermarked segment, and creating a new file with it. I am trying to figure out if it is possible to simply splice in the edited part back into the original video, as moviepy is EXTREMELY slow writing to the disk, so the smaller the segment the better.

    I was thinking maybe using shutil ?

    video = mp.VideoFileClip("C:\\Users\\admin\\Desktop\\Test\\demovideo.mp4").subclip(10,20)

    logo = (mp.ImageClip("C:\\Users\\admin\\Desktop\\Watermark\\watermarkpic.png")
             .set_duration(20)
             .resize(height=20) # if you need to resize...
             .margin(right=8, bottom=8, opacity=0) # (optional) logo-border padding
             .set_pos(("right","bottom")))

    final = mp.CompositeVideoClip([video, logo])
    final.write_videofile("C:\\Users\\admin\\Desktop\\output\\demovideo(watermarked).mp4", audio = True, progress_bar = False)

    Is there a way to copy the 10 second watermarked snippet back into the original video file ? Or is there another library that allows me to do this ?