Recherche avancée

Médias (1)

Mot : - Tags -/artwork

Autres articles (95)

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

  • Multilang : améliorer l’interface pour les blocs multilingues

    18 février 2011, par

    Multilang est un plugin supplémentaire qui n’est pas activé par défaut lors de l’initialisation de MediaSPIP.
    Après son activation, une préconfiguration est mise en place automatiquement par MediaSPIP init permettant à la nouvelle fonctionnalité d’être automatiquement opérationnelle. Il n’est donc pas obligatoire de passer par une étape de configuration pour cela.

  • Les autorisations surchargées par les plugins

    27 avril 2010, par

    Mediaspip core
    autoriser_auteur_modifier() afin que les visiteurs soient capables de modifier leurs informations sur la page d’auteurs

Sur d’autres sites (7374)

  • Why is there not enough RAM when processing video in fmpeg ?

    26 mai 2022, par Mikhail Eliseev

    I run ffmpeg through .bat file , which overlays the HUD video on top of the other (overlay). I saw this method here : FFmpeg - Overlay one video onto another video ?

    


    When you run the batch file, ffmpeg starts "rendering it" and in 1-2 minutes my computer begins to show terrible lags. In the task manager I see that 12 GB of the available 16 GB of RAM is gobbled up.

    


    Code :

    


    @echo off
setlocal EnableExtensions DisableDelayedExpansion
for %%i in (*.mov *.mp4 *.mts) do (
  md "result_%%~ni"
ffmpeg -i "%%i" -i "res/intro 2018.mp4" -filter_complex "[1:v]setpts=PTS-10/TB[a]; [0:v][a]overlay=enable=gte(t\,5):shortest=1[out]" -map [out] -map 0:a -c:v libx264 -crf 18 -pix_fmt yuv420p -c:a copy -y result_%%~ni\%%~ni%%03d.mp4

) 
pause


    


    After 2 minutes, the error that the memory is not enough :
error

    


    Here are the specs of the computer :
computer

    


    This is the size of the swap file (by system choice) :
swap

    


    Example of video-file :

    


    video size
video size description

    


  • I can't use immediately converted video with FFmpeg (Android)

    26 juin 2019, par Jose Q

    I’m using this lib to turn a video with a watermark into a corner : https://github.com/WritingMinds/ffmpeg-android-java

    To detect when the video conversion is ready I’m using this :

    try {
           ffmpeg.execute(command, new ExecuteBinaryResponseHandler() {
               @Override
               public void onFailure(String s) {
               }

               @Override
               public void onSuccess(String s) {
               }

               @Override
               public void onProgress(String s) {
               }

               @Override
               public void onStart() {
               }

               @Override
               public void onFinish() {

                   //outpath is: /storage/emulated/0/drawable/share1561561063811.mp4
                   Uri u = Uri.parse(outpath);

               }
           });
       } catch (FFmpegCommandAlreadyRunningException e) {
           // do nothing for now
       }

    Well, everything goes perfect so far, I can find the video through the file manager, but what I can’t do is use it immediately after onFinish() in my app.

    I can’t play the video or upload it. I’ve tried using outpath directly and also tried this method that works for other videos and I get null. :

    private String getRealPathFromURI(Uri contentUri) {
       String[] proj = { MediaStore.Images.Media.DATA };
       CursorLoader loader = new CursorLoader(this, contentUri, proj, null, null, null);
       Cursor cursor = loader.loadInBackground();
       int column_index = cursor.getColumnIndexOrThrow(MediaStore.Video.Media.DATA);
       cursor.moveToFirst();
       String result = cursor.getString(column_index);
       cursor.close();
       return result;
    }
  • FFMPEG File Output is Still in Use By a Process

    6 mai, par Tyler Bacon

    I am trying to complete this part of my program. In this section, I am trying to speed up or slow down a video based on a factor variable. Once it's done, I use moviepy to turn it into a VideoFileClip, then I delete the file.

    


        if factor <= 2:
        system("ffmpeg -i " + paths[dex] + " -vf setpts=" + str(vfactor) + "*PTS -an ./Media/Videos/temp.mp4")
        system("ffmpeg -i " + paths[dex] + " -filter:a atempo=" + str(factor) + " -vn ./Media/ShortSounds/temp.mp3")
    elif 2 < factor < 4:
        factor = round(sqrt(factor), 1)
        system("ffmpeg -i " + paths[dex] + " -vf setpts=" + str(vfactor) + "*PTS,setpts=" + str(vfactor) + "*PTS  -an ./Media/Videos/temp.mp4")
        system("ffmpeg -i " + paths[dex] + " -filter:a atempo=" + str(factor) + ",atempo=" + str(factor) + " -vn ./Media/ShortSounds/temp.mp3")
    elif factor > 4:
        raise Exception("File " + paths[dex] + " is too long.")
    t = VideoFileClip("./Media/Videos/temp.mp4")
    t.audio = AudioFileClip("./Media/Videos/temp.mp3")
    templist.append(t)
    remove("./Media/Videos/temp.mp4")


    


    However, when the code gets to the deletion command, it has the following error :

    


    PermissionError: [WinError 32] The process cannot access the file because it is being used by another process: './Media/Videos/temp.mp4'


    


    What's strange is, I can see the temp.mp4 file, and it runs just fine. I never get this error while manually running the temp.mp4 file.

    


    I have tried the following :

    


      

    • Waiting 5, 10, and 20 seconds before deleting the file.
    • 


    • Running "taskkill -f -im ffmpeg.exe" before deleting the file
    • 


    • I went through the debugger, and right before the deletion, I checked in task manager to see if ffmpeg was still running, and it wasn't.
    • 


    


    Do you guys have any idea what could be holding this up ? My code worked previously when I was trying to just do audio, but I am trying it with video and this is happening.