Recherche avancée

Médias (0)

Mot : - Tags -/alertes

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

Autres articles (8)

  • Keeping control of your media in your hands

    13 avril 2011, par

    The vocabulary used on this site and around MediaSPIP in general, aims to avoid reference to Web 2.0 and the companies that profit from media-sharing.
    While using MediaSPIP, you are invited to avoid using words like "Brand", "Cloud" and "Market".
    MediaSPIP is designed to facilitate the sharing of creative media online, while allowing authors to retain complete control of their work.
    MediaSPIP aims to be accessible to as many people as possible and development is based on expanding the (...)

  • L’agrémenter visuellement

    10 avril 2011

    MediaSPIP est basé sur un système de thèmes et de squelettes. Les squelettes définissent le placement des informations dans la page, définissant un usage spécifique de la plateforme, et les thèmes l’habillage graphique général.
    Chacun peut proposer un nouveau thème graphique ou un squelette et le mettre à disposition de la communauté.

  • Taille des images et des logos définissables

    9 février 2011, par

    Dans beaucoup d’endroits du site, logos et images sont redimensionnées pour correspondre aux emplacements définis par les thèmes. L’ensemble des ces tailles pouvant changer d’un thème à un autre peuvent être définies directement dans le thème et éviter ainsi à l’utilisateur de devoir les configurer manuellement après avoir changé l’apparence de son site.
    Ces tailles d’images sont également disponibles dans la configuration spécifique de MediaSPIP Core. La taille maximale du logo du site en pixels, on permet (...)

Sur d’autres sites (2747)

  • FFmpeg Android : Freezes / stops silently at 'SoundHandle'

    8 décembre 2014, par jgads

    I’m trying to get FFmpeg working on Android, but it seems to fail silently with no output file. I have tested the same command on Windows and it fully completes.

    I’m trying to convert an mp4 into a format which I can then ’concat’ with other videos files to make one ’compilation’ video.

    The command is :

    ffmpeg -i 1.mp4 -c copy -bsf h264_mp4toannexb -t 30 out1.ts

    The logcat shows that ffmpeg seems to get ’stuck’ - with no updates and seemingly quitting half way through. Is there anything obvious I’m doing wrong ? This is being tested on just a bog-standard Galaxy Note 2. ’ffmpeg -version’ works just fine.

    Here is the logcat :

    12-08 13:38:27.670  18599-18599/com.company.app E/﹕ Device driver API match
    Device driver API version: 23
    User space API version: 23
    12-08 13:38:27.670  18599-18599/com.company.app E/﹕ mali: REVISION=Linux-r3p2-01rel3 BUILD_DATE=Fri Mar 21 13:52:50 KST 2014
    12-08 13:38:27.710  18599-18599/com.company.app D/OpenGLRenderer﹕ Enabling debug mode 0
    12-08 13:38:29.060  18599-18599/com.company.app E/FFMPEG﹕ Success loading ffmpeg
    12-08 13:38:29.080  18599-18661/com.company.app D/FFmpeg﹕ Running publishing updates method
    12-08 13:38:29.090  18599-18599/com.company.app E/FFMPEG﹕ Progress: ffmpeg version n2.4.2 Copyright (c) 2000-2014 the FFmpeg developers
    12-08 13:38:29.090  18599-18599/com.company.app E/FFMPEG﹕ Progress:   built on Oct  7 2014     15:08:46 with gcc 4.8 (GCC)
    12-08 13:38:29.095  18599-18599/com.company.app E/FFMPEG﹕ Progress:   configuration: --target-os=linux --cross-prefix=/home/sb/Source-Code/ffmpeg-android/toolchain-android/bin/arm-linux-androideabi- --arch=arm --cpu=cortex-a8 --enable-runtime-cpudetect --sysroot=/home/sb/Source-Code/ffmpeg-android/toolchain-android/sysroot --enable-pic --enable-libx264 --enable-libass --enable-libfreetype --enable-libfribidi --enable-fontconfig --enable-pthreads --disable-debug --disable-ffserver --enable-version3 --enable-hardcoded-tables --disable-ffplay --disable-ffprobe --enable-gpl --enable-yasm --disable-doc --disable-shared --enable-static --pkg-config=/home/sb/Source-Code/ffmpeg-android/ffmpeg-pkg-config --prefix=/home/sb/Source-Code/ffmpeg-android/build/armeabi-v7a-neon --extra-cflags='-I/home/sb/Source-Code/ffmpeg-android/toolchain-android/include -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -fno-strict-overflow -fstack-protector-all -mfpu=neon' --extra-ldflags='-L/home/sb/Source-Code/ffmpeg-android/toolchain-android/lib -Wl,-z,relro -Wl,-z,now -pie' --extra-libs='-lpng -lexpat -lm' --extra-cxxflags=
    12-08 13:38:29.095  18599-18599/com.company.app E/FFMPEG﹕ Progress:   libavutil      54.  7.100 / 54.  7.100
    12-08 13:38:29.095  18599-18599/com.company.app E/FFMPEG﹕ Progress:   libavcodec     56.  1.100 / 56.  1.100
    12-08 13:38:29.095  18599-18599/com.company.app E/FFMPEG﹕ Progress:   libavformat    56.  4.101 / 56.  4.101
    12-08 13:38:29.095  18599-18599/com.company.app E/FFMPEG﹕ Progress:   libavdevice    56.  0.100 / 56.  0.100
    12-08 13:38:29.095  18599-18599/com.company.app E/FFMPEG﹕ Progress:   libavfilter     5.  1.100 /  5.  1.100
    12-08 13:38:29.095  18599-18599/com.company.app E/FFMPEG﹕ Progress:   libswscale      3.  0.100 /  3.  0.100
    12-08 13:38:29.100  18599-18599/com.company.app E/FFMPEG﹕ Progress:   libswresample   1.  1.100 /  1.  1.100
    12-08 13:38:29.100  18599-18599/com.company.app E/FFMPEG﹕ Progress:   libpostproc    53.  0.100 / 53.  0.100
    12-08 13:38:29.230  18599-18599/com.company.app E/FFMPEG﹕ Progress: Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/storage/emulated/0/Pictures/videotest/1.mp4':
    12-08 13:38:29.230  18599-18599/com.company.app E/FFMPEG﹕ Progress:   Metadata:
    12-08 13:38:29.230  18599-18599/com.company.app E/FFMPEG﹕ Progress:     major_brand     : isom
    12-08 13:38:29.230  18599-18599/com.company.app E/FFMPEG﹕ Progress:     minor_version   : 0
    12-08 13:38:29.230  18599-18599/com.company.app E/FFMPEG﹕ Progress:     compatible_brands: isom3gp4
    12-08 13:38:29.235  18599-18599/com.company.app E/FFMPEG﹕ Progress:     creation_time   : 2014-12-03 18:40:00
    12-08 13:38:29.235  18599-18599/com.company.app E/FFMPEG﹕ Progress:   Duration: 00:00:03.14, start: 0.000000, bitrate: 10598 kb/s
    12-08 13:38:29.235  18599-18599/com.company.app E/FFMPEG﹕ Progress:     Stream #0:0(eng): Video: h264 (Constrained Baseline) (avc1 / 0x31637661), yuv420p, 1280x720, 10594 kb/s, SAR 65536:65536 DAR 16:9, 29.94 fps, 29.92 tbr, 90k tbn, 180k tbc (default)
    12-08 13:38:29.235  18599-18599/com.company.app E/FFMPEG﹕ Progress:     Metadata:
    12-08 13:38:29.240  18599-18599/com.company.app E/FFMPEG﹕ Progress:       creation_time   : 2014-12-03 18:40:00
    12-08 13:38:29.240  18599-18599/com.company.app E/FFMPEG﹕ Progress:       handler_name    : VideoHandle
    12-08 13:38:29.245  18599-18599/com.company.app E/FFMPEG﹕ Progress:     Stream #0:1(eng): Audio: aac (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 97 kb/s (default)
    12-08 13:38:29.250  18599-18599/com.company.app E/FFMPEG﹕ Progress:     Metadata:
    12-08 13:38:29.250  18599-18599/com.company.app E/FFMPEG﹕ Progress:       creation_time   : 2014-12-03 18:40:00
    12-08 13:38:29.250  18599-18599/com.company.app E/FFMPEG﹕ Progress:       handler_name    : SoundHandle
  • 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.

  • 3 seconds latency while streaming with Wowza Server

    18 mai 2015, par kaizen_labs

    I’m trying to develop a live streaming application with RTSP protocol.

    On the PC with the Wowza Server, I execute the following command :

    Code :

    ffmpeg -f dshow -i video="Name_Of_My_Cam":audio="Name_Of_My_Microphone" -vcodec
    h263p -f rtsp -muxdelay 0.1 rtsp://:1935/live/test

    And I’m trying to play this stream on a VideoView on my Samsung Galaxy Note 3 Lite. Here is the code :

    @Override
    protected void onCreate(Bundle savedInstanceState) {
       super.onCreate(savedInstanceState);
       setContentView(R.layout.activity_main);

       VideoView vv = (VideoView) findViewById(R.id.videoView);
       // Receive RTSP video from Wowza Server
       vv.setVideoURI(Uri.parse("rtsp://:1935/live/test"));
       vv.requestFocus();
       vv.start();
    }

    I managed to read the video and the sound but it makes 3 secondes (or more...) to start and I keep this delay during all the streaming. It is very annoying because I want to develop a call session.

    Does anybody know how to reduce this delay ? Is it a Wowza issue ?