Recherche avancée

Médias (1)

Mot : - Tags -/swfupload

Autres articles (45)

  • Support de tous types de médias

    10 avril 2011

    Contrairement à beaucoup de logiciels et autres plate-formes modernes de partage de documents, MediaSPIP a l’ambition de gérer un maximum de formats de documents différents qu’ils soient de type : images (png, gif, jpg, bmp et autres...) ; audio (MP3, Ogg, Wav et autres...) ; vidéo (Avi, MP4, Ogv, mpg, mov, wmv et autres...) ; contenu textuel, code ou autres (open office, microsoft office (tableur, présentation), web (html, css), LaTeX, Google Earth) (...)

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

  • Librairies et binaires spécifiques au traitement vidéo et sonore

    31 janvier 2010, par

    Les logiciels et librairies suivantes sont utilisées par SPIPmotion d’une manière ou d’une autre.
    Binaires obligatoires FFMpeg : encodeur principal, permet de transcoder presque tous les types de fichiers vidéo et sonores dans les formats lisibles sur Internet. CF ce tutoriel pour son installation ; Oggz-tools : outils d’inspection de fichiers ogg ; Mediainfo : récupération d’informations depuis la plupart des formats vidéos et sonores ;
    Binaires complémentaires et facultatifs flvtool2 : (...)

Sur d’autres sites (6951)

  • Issue in concatenating two video files using FFMPEG

    12 mai 2014, par intrepidkarthi

    I am trying to concatenate two mp4 files taken from gallery. I am getting issue with process execution failure. I have added the code and the error log. Using the ffmpeg library taken from guardian project.

    I am running this in Samsung Galaxy S3 device.

    The error is thrown in this particular line.

    ProcessBuilder pb = new ProcessBuilder(cmds);
    pb.directory(fileExec);
    Process process = pb.start();  

    When I replace the last line above with this,

    Process process = Runtime.getRuntime().exec("chmod 777 "+cmds.toArray(new String[cmds.size()]));

    It works with out the exception as shown below. But the output doesn’t seem to come.

    File concatenation Code :

       File fileVideoOutput = new File(getApplicationContext()
               .getExternalFilesDir("test") + "hello.mp4");
       fileVideoOutput.delete();

       File fileTmp = getApplicationContext().getCacheDir();
       File fileAppRoot = new File(getApplicationContext()
               .getApplicationInfo().dataDir);

       try {
           FfmpegController fc = new FfmpegController(fileTmp, fileAppRoot);

           ArrayList<clip> listVideos = new ArrayList<clip>();
           Clip clip = new Clip();
           clip.path = video1;
           fc.getInfo(clip);
           clip.duration = clip.duration;
           System.out.println("Clip1 duration " + clip.duration);
           listVideos.add(clip);

           Clip clip2 = new Clip();
           clip2.path = video2;
           fc.getInfo(clip2);
           clip2.duration = clip2.duration;
           System.out.println("Clip2 duration " + clip2.duration);
           listVideos.add(clip2);

           Clip clipOut = new Clip();
           clipOut.path = fileVideoOutput.getCanonicalPath();

           fc.concatAndTrimFilesMP4Stream(listVideos, clipOut, false, false,
                   new ShellUtils.ShellCallback() {

                       @Override
                       public void shellOut(String shellLine) {

                           System.out.println("fc>" + shellLine);
                       }

                       @Override
                       public void processComplete(int exitValue) {

                           if (exitValue &lt; 0)
                               System.err.println("concat non-zero exit: "
                                       + exitValue);
                       }
                   });
       } catch (Exception e1) {
           e1.printStackTrace();
       }
    </clip></clip>

    Error log :

    05-08 11:17:03.765: W/System.err(25209): java.io.IOException: Error running exec(). Command: [ffmpeg, -y, -i, /storage/emulated/0/DCIM/Camera/20140507_155713.mp4, -f, mpegts, -c, copy, -an, -bsf:v, h264_mp4toannexb, /data/data/com.yoyo.videoeditor/cache/0.ts] Working Directory: /data/data/com.yoyo.videoeditor/lib Environment: [VIBE_PIPE_PATH=/dev/pipes, ANDROID_ROOT=/system, EMULATED_STORAGE_SOURCE=/mnt/shell/emulated, LOOP_MOUNTPOINT=/mnt/obb, EMULATED_STORAGE_TARGET=/storage/emulated, ANDROID_BOOTLOGO=1, LD_LIBRARY_PATH=/vendor/lib:/system/lib, EXTERNAL_STORAGE=/storage/emulated/legacy, ANDROID_SOCKET_zygote=9, ANDROID_DATA=/data, PATH=/sbin:/vendor/bin:/system/sbin:/system/bin:/system/xbin, ANDROID_ASSETS=/system/app, ASEC_MOUNTPOINT=/mnt/asec, BOOTCLASSPATH=/system/framework/core.jar:/system/framework/core-junit.jar:/system/framework/bouncycastle.jar:/system/framework/ext.jar:/system/framework/framework.jar:/system/framework/framework2.jar:/system/framework/telephony-common.jar:/system/framework/voip-common.jar:/system/framework/mms-common.jar:/system/framework/android.policy.jar:/system/framework/services.jar:/system/framework/apache-xml.jar:/system/framework/sec_edm.jar:/system/framework/seccamera.jar:/system/framework/scrollpause.jar:/system/framework/stayrotation.jar:/system/framework/smartfaceservice.jar:/system/framework/sc.jar:/system/framework/secocsp.jar:/system/framework/commonimsinterface.jar, ANDROID_PROPERTY_WORKSPACE=8,66560, SECONDARY_STORAGE=/storage/extSdCard:/storage/UsbDriveA:/storage/UsbDriveB:/storage/UsbDriveC:/storage/UsbDriveD:/storage/UsbDriveE:/storage/UsbDriveF, ANDROID_STORAGE=/storage]
    05-08 11:17:03.770: W/System.err(25209):    at java.lang.ProcessManager.exec(ProcessManager.java:211)
    05-08 11:17:03.770: W/System.err(25209):    at java.lang.ProcessBuilder.start(ProcessBuilder.java:195)
    05-08 11:17:03.770: W/System.err(25209):    at org.ffmpeg.android.FfmpegController.execProcess(FfmpegController.java:101)
    05-08 11:17:03.770: W/System.err(25209):    at org.ffmpeg.android.FfmpegController.execFFMPEG(FfmpegController.java:71)
    05-08 11:17:03.770: W/System.err(25209):    at org.ffmpeg.android.FfmpegController.execFFMPEG(FfmpegController.java:75)
    05-08 11:17:03.775: W/System.err(25209):    at org.ffmpeg.android.FfmpegController.convertToMP4Stream(FfmpegController.java:657)
    05-08 11:17:03.775: W/System.err(25209):    at org.ffmpeg.android.FfmpegController.concatAndTrimFilesMP4Stream(FfmpegController.java:1107)
    05-08 11:17:03.775: W/System.err(25209):    at com.yoyo.videoeditor.EditorActivity.mergeVideosOld(EditorActivity.java:271)
    05-08 11:17:03.775: W/System.err(25209):    at com.yoyo.videoeditor.EditorActivity.access$0(EditorActivity.java:243)
    05-08 11:17:03.775: W/System.err(25209):    at com.yoyo.videoeditor.EditorActivity$3.onClick(EditorActivity.java:85)
    05-08 11:17:03.775: W/System.err(25209):    at android.view.View.performClick(View.java:4475)
    05-08 11:17:03.775: W/System.err(25209):    at android.view.View$PerformClick.run(View.java:18786)
    05-08 11:17:03.780: W/System.err(25209):    at android.os.Handler.handleCallback(Handler.java:730)
    05-08 11:17:03.780: W/System.err(25209):    at android.os.Handler.dispatchMessage(Handler.java:92)
    05-08 11:17:03.780: W/System.err(25209):    at android.os.Looper.loop(Looper.java:176)
    05-08 11:17:03.780: W/System.err(25209):    at android.app.ActivityThread.main(ActivityThread.java:5419)
    05-08 11:17:03.780: W/System.err(25209):    at java.lang.reflect.Method.invokeNative(Native Method)
    05-08 11:17:03.785: W/System.err(25209):    at java.lang.reflect.Method.invoke(Method.java:525)
    05-08 11:17:03.785: W/System.err(25209):    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1046)
    05-08 11:17:03.785: W/System.err(25209):    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:862)
    05-08 11:17:03.785: W/System.err(25209):    at dalvik.system.NativeStart.main(Native Method)
    05-08 11:17:03.785: W/System.err(25209): Caused by: java.io.IOException: Permission denied
    05-08 11:17:03.785: W/System.err(25209):    at java.lang.ProcessManager.exec(Native Method)
    05-08 11:17:03.790: W/System.err(25209):    at java.lang.ProcessManager.exec(ProcessManager.java:209)
    05-08 11:17:03.790: W/System.err(25209):    ... 20 more

    Here is my ffmpeg commands as given in the ffmpeg tutorial page.

    ffmpeg -i input1.mp4 -c copy -bsf:v h264_mp4toannexb -f mpegts intermediate1.ts
    ffmpeg -i input2.mp4 -c copy -bsf:v h264_mp4toannexb -f mpegts intermediate2.ts
    ffmpeg -i "concat:intermediate1.ts|intermediate2.ts" -c copy -bsf:a aac_adtstoasc output.mp4

    FFMPEG library doesn’t seem to be working as expected. When I add commands and create output file using "touch" shell command file is being created. Still I am unable to see the output from ffmpeg as expected.

  • Resizing 360 stereoscopic video with FFMPEG

    13 mars 2018, par Miriam Tschanen

    I’m trying to prepare a 360 stereoscopic video from our VR app for streaming. We’d like to offer the video in different resolutions to accomodate varying internet speeds. The original file is 3840x2160 and 463MB large.

    I tried using the naive FFMPEG command :
    ffmpeg -i video_3840.mp4 -vf scale=2560:1440 video_2560.mp4

    However, this seems to remove the stereoscopic / 360 properties of the video, at any rate the Windows video player no longer lets me pan around the view and the file size is down to 74MB, which seems a bit extreme.

    Does anyone know which other flags I should set ? Note that I have absolutely no clue about filming or video formats, so I don’t even know what the original file is encoded as. Ideally I’d like to copy over as many settings as possible. The only thing I want to change is the resolution.

    Any help would be greatly appreciated.

  • iOs : Low frame per second(fps) for VGA resolution

    26 juillet 2014, par Bhuvan Balasubramanian

    I’m facing an issue in broadcasting video from one iPhone to another iPhone.

    The issue is when I view the friend’s live video in my iPhone, the frame per second(fps) is very low(it is 12fps). Video quality and audio is looking fine but the only problem is fps.

    I don’t know where I need to config/change the code to convert from variable fps to constant fps. Also to increase the fps as **24/30**.

    The resolution I used for broadcasting

    RESOLUTION_VGA,     // 480x640px (landscape) &amp; 640x480px (portrait)

    I’m using following libraries for streaming

    1. MediaLibiOS - link
    2. Ffmpeg-2.2.1
    3. CommLibiOS
    4. libx264-r2409

    Wowza is a Media Server and iOS target version is 7.0

    Please help !

    Thanks in advance.