Recherche avancée

Médias (1)

Mot : - Tags -/3GS

Autres articles (97)

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

  • Possibilité de déploiement en ferme

    12 avril 2011, par

    MediaSPIP peut être installé comme une ferme, avec un seul "noyau" hébergé sur un serveur dédié et utilisé par une multitude de sites différents.
    Cela permet, par exemple : de pouvoir partager les frais de mise en œuvre entre plusieurs projets / individus ; de pouvoir déployer rapidement une multitude de sites uniques ; d’éviter d’avoir à mettre l’ensemble des créations dans un fourre-tout numérique comme c’est le cas pour les grandes plate-formes tout public disséminées sur le (...)

  • Librairies et logiciels spécifiques aux médias

    10 décembre 2010, par

    Pour un fonctionnement correct et optimal, plusieurs choses sont à prendre en considération.
    Il est important, après avoir installé apache2, mysql et php5, d’installer d’autres logiciels nécessaires dont les installations sont décrites dans les liens afférants. Un ensemble de librairies multimedias (x264, libtheora, libvpx) utilisées pour l’encodage et le décodage des vidéos et sons afin de supporter le plus grand nombre de fichiers possibles. Cf. : ce tutoriel ; FFMpeg avec le maximum de décodeurs et (...)

Sur d’autres sites (7748)

  • Split into equal parts and convert many mp4 videos using ffmpeg

    9 septembre 2015, par bobafetta

    I have a ton of videos I need to convert from mp4 to wmv using ffmpeg and break up each file into 10 minute segments, but I am a total cmd scripting newb (in fact, I am a scripting newb :)

    After spending six hours trying to find an answer, I thought I would bring it to you guys.

    The code I have is working a little bit, but I need to be able to read data coming from the command line and send it back into the script for evaluation. I am not sure what code ffmpeg will spit out when it is done processing a video file (when the timestamp reaches an end), but this FOR loop just keeps on trying to create new file segments even though the video is over. This is what I saw when it tried to create a new file, so I think it might work to search for this :

    frame= 0 fps=0.0 q=0.0 Lsize= 1kB time=00:00:00.00 bitrate=N/A

    This is the code I have come up with so far (Don’t laugh :)

    @echo off
    setlocal ENABLEEXTENSIONS
    setlocal ENABLEDELAYEDEXPANSION

    for %%a in ("*.mp4") do (
    set hour=00

    for /L %%i IN (1,1,10) do (
    :Beginning
       set /a start=%%i-1
           set end=%%i
           if !start! lss 10 set start=!start!0
           if !end! lss 10 set end=!end!0
           ffmpeg -ss !hour!:!start!:00 -i "%%a" -b:v 1500k -vcodec msmpeg4 -acodec wmav2 -t !hour!:!end!:00 "Converted\%%~na-!hour!-!start!-!end!.wmv"
           if end==60 CALL :Increment
       )  
    )

    :Increment
       set /a !hour!+1
       set %%i=1
       GOTO :Beginning
    pause

    Based on reading this thread was thinking something like this might go in the code, but not sure what to do with it :

    set "dosstring=%*"

    echo.!dosstring!|findstr /C:"frame=    0 fps=0.0 q=0.0 Lsize=       1kB time=00:00:00.00 bitrate=N/A" >nul 2>&1

    Thanks so much for you help !

  • Kill a process started by exec() after some duration and store frames in an array

    19 février 2013, par asprin

    Let me start off by saying that I'm completely new to Java. I'm from PHP background, but it so happens that one of my PHP tasks need to be converted into Java.

    The task is splitting a video into frames using ffmpeg and then working with those frames. I've completed this process in PHP. And now I can to convert it into Java.

    I went over some tutorials and have got the bases covered (Using IDE, Running a java program etc). I'm using Eclipse for this purpose.

    I've so far managed to start ffmpeg from withing a java program by using

    public static void main(String[] args) throws IOException {

       String livestream = "D:/video.mpg";
       String folderpth = "D:/frames";
       String cmd="D:/ffmpeg/bin/ffmpeg.exe -i "+ livestream +" -r 10 "+folderpth+"/image%d.jpg";

       //System.out.println(cmd);
       Runtime r = Runtime.getRuntime();
       Process p = r.exec(cmd); // this starts creating frames
      // and stores them on local disk
      // any way to store that frame name in array?
      // something like String[] frames = {"image%d.jpg"}
      // so that frames array contains image1.jpg, image2.jpg..and so on?

    }

    This is working fine, I'm getting the frames in the folder. Now what I want to do is kill the process after some, say 5 minutes, as the video is over 2 hours long and I don't want to have to go to the taskbar and kill the process manually. I also would like to know if there is a way to store the frame names created by ffmpeg into an array for future use.

    I tried using p.destroy() but that didn't stop the process at all. How would I go about using something similar like setTimeout() which is used in jQuery ?

    Some Metadata

    OS : Windows 7

    IDE : Eclipse

  • Using ffmpeg, extract audio streams from video file and output to single stereo wav file

    8 décembre 2016, par Quantum_Kernel

    I’ve been trying for a few hours to get the right arguments to do the below operation with ffmpeg, but i’m a bit out of my depth. If anyone can give me some guidance, that would be very helpful.

    Input file is MXF with one video track and two separate 48k 24b PCM audio tracks.
    I want to extract just the audio, map first track to left, second track to right and output as a stereo wave file.

    I am trying variations on the below command, but it seems to be unhappy about the video stream, giving the error

    "mapchan : stream #0.0 is not an audio stream."

    ffmpeg -i test2.mxf -vn -map_channel 0.0.1 output.wav_CH0 -map_channel 0.0.2 output.wav_CH1

    Here is ffmpeg’s analysis of the streams in case it is helpful :

       Stream #1:0: Video: mpeg2video (4:2:2), yuv422p(tv, bt709), 1920x1080 [SAR 1:1 DAR 16:9], max. 50000 kb/s, 25 fps, 25 tbr, 25 tbn, 50 tbc
    Stream #1:1: Audio: pcm_s24le, 48000 Hz, mono, s32, 1152 kb/s
    Stream #1:2: Audio: pcm_s24le, 48000 Hz, mono, s32, 1152 kb/s
    Stream #1:3: Audio: pcm_s24le, 48000 Hz, mono, s32, 1152 kb/s
    Stream #1:4: Audio: pcm_s24le, 48000 Hz, mono, s32, 1152 kb/s
    Stream #1:5: Audio: pcm_s24le, 48000 Hz, mono, s32, 1152 kb/s
    Stream #1:6: Audio: pcm_s24le, 48000 Hz, mono, s32, 1152 kb/s
    Stream #1:7: Audio: pcm_s24le, 48000 Hz, mono, s32, 1152 kb/s
    Stream #1:8: Audio: pcm_s24le, 48000 Hz, mono, s32, 1152 kb/s