Recherche avancée

Médias (2)

Mot : - Tags -/documentation

Autres articles (77)

  • MediaSPIP version 0.1 Beta

    16 avril 2011, par

    MediaSPIP 0.1 beta est la première version de MediaSPIP décrétée comme "utilisable".
    Le fichier zip ici présent contient uniquement les sources de MediaSPIP en version standalone.
    Pour avoir une installation fonctionnelle, 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 (...)

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

  • Amélioration de la version de base

    13 septembre 2013

    Jolie sélection multiple
    Le plugin Chosen permet d’améliorer l’ergonomie des champs de sélection multiple. Voir les deux images suivantes pour comparer.
    Il suffit pour cela d’activer le plugin Chosen (Configuration générale du site > Gestion des plugins), puis de configurer le plugin (Les squelettes > Chosen) en activant l’utilisation de Chosen dans le site public et en spécifiant les éléments de formulaires à améliorer, par exemple select[multiple] pour les listes à sélection multiple (...)

Sur d’autres sites (10391)

  • Use ffmpeg Windows batch script on OS X

    3 novembre 2015, par andisk

    I got an ffmpeg batch script written by someone. The script takes all video clips of a specific folder, cuts off first and last frame, converts the clips to ProRes and saves them in a new folder. I got it running under Windows (just have to double-click the *.bat file and it does what it’s supposed to do).
    But now I need that same script running on a mac. I’ve installed ffmpeg over homebrew. Then I tried to make a Automator-Service, but with no success. Best thing would be if I could just right click on the folder with the videos, go to services and click on convert. I’m not really into coding and scripting, but the people who should use the script are happy when they find the power switch of the computer..
    Can anyone help me with this ?
    Cheers andisk

    Edit : Here’s the code

       `@echo off


       mkdir tmp
       mkdir converted


       set pathtofind=%~dp0
       echo Searching for files in %pathtofind%%1\


       setlocal enableextensions
       setlocal ENABLEDELAYEDEXPANSION



       for %%f in (%pathtofind%%1\*) do (
               echo Handling file %%f
               ffmpeg -y -loglevel quiet -i %%f tmp\%%d.png
               set count=0
               for %%x in (tmp\*) do set /a count +=1
               echo Deleting frames 1 and !count!
               del tmp\1.png
               del tmp\!count!.png
               echo Saving %%~nf.mov
               ffmpeg -y -loglevel verbose -f image2 -r 24 -i tmp\%%d.png -vcodec prores -profile:v 1 -r 24 converted\%%~nf.mov
               del /q tmp\*.*

               echo ---------------------------
       )


       rd tmp`
  • NSTask and FFMpeg losing output

    16 novembre 2011, par Morgan

    I'm trying to call ffmpeg from NSTask in objective-c. I execute the ffmpeg command in terminal and it works flawlessly every time. I make the same command using NSTask, and it never gives me the whole output. It cuts it off half way through the output, at a seemingly random spot every time. Here is my code.

       - (void)applicationDidFinishLaunching:(NSNotification *)aNotification
    {
       NSString* ffmpegPath = [[NSBundle mainBundle] pathForResource:@"ffmpeg" ofType:@""];
       NSString* path = @"test.mov";

       NSTask *task = [[NSTask alloc] init];
       NSArray *arguments = [NSArray arrayWithObjects: @"-i", path, nil];
       NSPipe *pipe = [NSPipe pipe];
       NSFileHandle * read = [pipe fileHandleForReading];

       [task setLaunchPath: ffmpegPath];
       [task setArguments: arguments];
       [task setStandardOutput: pipe];
       [task launch];
       [task waitUntilExit];

       NSData* data = [read readDataToEndOfFile];
       NSString* stringOutput = [[NSString alloc] initWithData:data encoding:NSUTF8StringEncoding];


       NSLog(@"%@", stringOutput);
       NSLog(@"%i", [task terminationStatus]);
       NSLog(@"DONE");
    }
  • ffmpeg frame-accurate cutting

    24 septembre 2018, par jvecsei

    I’ve been trying for some time to achieve frame-accurate cuts with ffmpeg.

    Since I don’t want to do a complete re-encoding, my idea was to do a re-encoding only at the intersections. This works fine, but it seems like the sound will become more and more asynchronous over time (at the end 0.5s).

    The command for the intersection point is from the "real" start to the next keyframe :

    ffmpeg -ss 468.24 -to 474.680000 -i input.avi -c:a mp3 -c:v h264 -avoid_negative_ts make_zero -pix_fmt yuv420p -r 25 input.avi_0.tmp.start.avi

    The command for what comes next is from the keyframe to the next cut :

    ffmpeg -ss 479.720000 -t 2039.320000 -i input.avi -c copy -avoid_negative_ts make_zero -pix_fmt yuv420p input.avi_0.tmp.avi

    I do this multiple times and fhe file names of the results will be written to concat.txt

    Then i merge the files with :

    ffmpeg -f concat -fflags +genpts -async 1 -i input.avi_concat.txt -c copy -pix_fmt yuv420p -y input.cut.avi

    Does anyone have any idea what else I can try ? I tried async/vsync but unfortunately without any great result. Before executing the concat command the files are all fine...