Recherche avancée

Médias (0)

Mot : - Tags -/api

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

Autres articles (72)

  • List of compatible distributions

    26 avril 2011, par

    The table below is the list of Linux distributions compatible with the automated installation script of MediaSPIP. Distribution nameVersion nameVersion number Debian Squeeze 6.x.x Debian Weezy 7.x.x Debian Jessie 8.x.x Ubuntu The Precise Pangolin 12.04 LTS Ubuntu The Trusty Tahr 14.04
    If you want to help us improve this list, you can provide us access to a machine whose distribution is not mentioned above or send the necessary fixes to add (...)

  • Gestion des droits de création et d’édition des objets

    8 février 2011, par

    Par défaut, beaucoup de fonctionnalités sont limitées aux administrateurs mais restent configurables indépendamment pour modifier leur statut minimal d’utilisation notamment : la rédaction de contenus sur le site modifiables dans la gestion des templates de formulaires ; l’ajout de notes aux articles ; l’ajout de légendes et d’annotations sur les images ;

  • Dépôt de média et thèmes par FTP

    31 mai 2013, par

    L’outil MédiaSPIP traite aussi les média transférés par la voie FTP. Si vous préférez déposer par cette voie, récupérez les identifiants d’accès vers votre site MédiaSPIP et utilisez votre client FTP favori.
    Vous trouverez dès le départ les dossiers suivants dans votre espace FTP : config/ : dossier de configuration du site IMG/ : dossier des média déjà traités et en ligne sur le site local/ : répertoire cache du site web themes/ : les thèmes ou les feuilles de style personnalisées tmp/ : dossier de travail (...)

Sur d’autres sites (7972)

  • Record Screen using ffmpeg doesn't work in tomcat server(Could not find codec parameters for stream 0)

    4 septembre 2019, par Norhan Mohamed

    I have the following problem,when I executed the below FFMPEG terminal command in command it prompt successfully.

       C:\\ffmpeg\\bin\\ffmpeg.exe -f gdigrab -i desktop -c:v libx264 -analyzeduration 15M -probesize 15M -pix_fmt yuv420p -loglevel 99 C:\\ffmpeg\\bin\\video.mp4

    but I have a problem while running a command from a java web application.I used runtime.exec(). It’s working fine at Netbeans. But not working at all after deploying on tomcat server.

    Here is my code :

    String command = "C:\\ffmpeg\\bin\\"
               + "ffmpeg.exe -f gdigrab -i desktop -c:v libx264 -analyzeduration 15M -probesize 15M -pix_fmt yuv420p -loglevel 99 C:\\ffmpeg\\bin\\video.mp4";

       System.out.println("command = " + command);
       try {
           Process p = Runtime.getRuntime().exec(command);

           final InputStreamReader isr
                   = new InputStreamReader(p.getErrorStream());
           Thread th = new Thread() {
               public void run() {
                   try {
                       BufferedReader br = new BufferedReader(isr);
                       String line = null;
                       while ((line = br.readLine()) != null) {
                           System.out.println(line);
                       }
                   } catch (Exception ex) {
                   }
               }
           };
           th.start();
       } catch (IOException ex) {
           System.out.println("Error 1 : " + ex.getMessage());
       } catch (Exception ex) {
           System.out.println("Error 2 : " + ex.getMessage());
       }

    And here is log for error

    ffmpeg version 4.1.1 Copyright (c) 2000-2019 the FFmpeg developers
    built with gcc 8.2.1 (GCC) 20190212
    configuration: --enable-gpl --enable-version3 --enable-sdl2 --enable-fontconfig --enable-gnutls --enable-iconv --enable-libass --enable-libbluray --enable-libfreetype --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libtheora --enable-libtwolame --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxml2 --enable-libzimg --enable-lzma --enable-zlib --enable-gmp --enable-libvidstab --enable-libvorbis --enable-libvo-amrwbenc --enable-libmysofa --enable-libspeex --enable-libxvid --enable-libaom --enable-libmfx --enable-amf --enable-ffnvcodec --enable-cuvid --enable-d3d11va --enable-nvenc --enable-nvdec --enable-dxva2 --enable-avisynth
    libavutil      56. 22.100 / 56. 22.100
    libavcodec     58. 35.100 / 58. 35.100
    libavformat    58. 20.100 / 58. 20.100
    libavdevice    58.  5.100 / 58.  5.100
    libavfilter     7. 40.101 /  7. 40.101
    libswscale      5.  3.100 /  5.  3.100
    libswresample   3.  3.100 /  3.  3.100
    libpostproc    55.  3.100 / 55.  3.100
    Splitting the commandline.
    Reading option '-f' ... matched as option 'f' (force format) with argument 'gdigrab'.
    Reading option '-i' ... matched as input url with argument 'desktop'.
    Reading option '-c:v' ... matched as option 'c' (codec name) with argument 'libx264'.
    Reading option '-analyzeduration' ... matched as AVOption 'analyzeduration'
    with argument '15M'.
    Reading option '-probesize' ... matched as AVOption 'probesize' with argument '15M'.
    Reading option '-pix_fmt' ... matched as option 'pix_fmt' (set pixel format) with argument 'yuv420p'.
    Reading option '-loglevel' ... matched as option 'loglevel' (set logging level) with argument '99'.
    Reading option 'C:\ffmpeg\bin\video.mp4' ... matched as output url.
    Finished splitting the commandline.
    Parsing a group of options: global .
    Applying option loglevel (set logging level) with argument 99.
    Successfully parsed a group of options.
    Parsing a group of options: input url desktop.
    Applying option f (force format) with argument gdigrab.
    Successfully parsed a group of options.
    Opening an input file: desktop.
    [gdigrab @ 0000007c2a72ad00] Capturing whole desktop as 1024x768x32 at (0,0)
    [gdigrab @ 0000007c2a72ad00] Failed to capture image (error 5)
    [gdigrab @ 0000007c2a72ad00] stream 0: start_time: -9223372036854.775 duration: -9223372036854.775
    [gdigrab @ 0000007c2a72ad00] format: start_time: -9223372036854.775 duration: -9223372036854.775 bitrate=754233 kb/s
    [gdigrab @ 0000007c2a72ad00] Could not find codec parameters for stream 0 (Video: bmp, 1 reference frame, none, 754233 kb/s): unspecified size
    Consider increasing the value for the 'analyzeduration' and 'probesize' options
    Input #0, gdigrab, from 'desktop':
    Duration: N/A, bitrate: 754233 kb/s
    Stream #0:0, 0, 1/1000000: Video: bmp, 1 reference frame, none, 754233 kb/s, 29.97 fps, 1000k tbr, 1000k tbn, 1000k tbc
    Successfully opened the file.
    Parsing a group of options: output url C:\ffmpeg\bin\video.mp4.
    Applying option c:v (codec name) with argument libx264.
    Applying option pix_fmt (set pixel format) with argument yuv420p.
    Successfully parsed a group of options.
    Opening an output file: C:\ffmpeg\bin\video.mp4.
    Output #0, mp4, to 'C:\ffmpeg\bin\video.mp4':
    Output file #0 does not contain any stream

    Can anyone help me to get out of this issue.

    Thanks in advance.

  • Rotate 360 video with ffmpeg

    9 septembre 2019, par Leos Literak

    I have 360° video and I want to fine tune its orientation with ffmpeg. I need to rotate it by 90° clockwise horizontally (turn it left). I found some helpful resources stating that the rotate filter would do the trick. So I tried :

    ffmpeg -i Petr_doskok.mp4 -vf "scale=2048x1024,rotate=-PI/2"  -r 30 -c:v libx265 -b:v 15M -pix_fmt yuv420p -c:a aac -b:a 192K Petr_doskok_rotated.mp4
    ffmpeg version 4.1.3 Copyright (c) 2000-2019 the FFmpeg developers
    Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'Petr_doskok.mp4':
    Metadata:
    major_brand     : isom
    minor_version   : 512
    compatible_brands: isomiso2avc1mp41
    encoder         : Lavf58.20.100
    Duration: 00:00:29.06, start: 0.000000, bitrate: 58095 kb/s
    Stream #0:0(und): Video: h264 (Main) (avc1 / 0x31637661), yuv420p, 4096x2048, 57948 kb/s, SAR 1:1 DAR 2:1, 30 fps, 30 tbr, 15360 tbn, 60 tbc (default)
    Metadata:
     handler_name    : VideoHandler
    Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 184 kb/s (default)
    Metadata:
     handler_name    : SoundHandler
    Stream mapping:
    Stream #0:0 -> #0:0 (h264 (native) -> hevc (libx265))
    Stream #0:1 -> #0:1 (aac (native) -> aac (native))
    x265 [info]: Slices                              : 1
    x265 [info]: Residual QT: max TU size, max depth : 32 / 1 inter / 1 intra
    x265 [info]: ME / range / subpel / merge         : hex / 57 / 2 / 2
    x265 [info]: Keyframe min / max / scenecut / bias: 25 / 250 / 40 / 5.00
    x265 [info]: Lookahead / bframes / badapt        : 20 / 4 / 2
    x265 [info]: b-pyramid / weightp / weightb       : 1 / 1 / 0
    x265 [info]: References / ref-limit  cu / depth  : 3 / on / on
    x265 [info]: AQ: mode / str / qg-size / cu-tree  : 2 / 1.0 / 32 / 1
    x265 [info]: Rate Control / qCompress            : ABR-15000 kbps / 0.60
    x265 [info]: tools: rd=3 psy-rd=2.00 rskip signhide tmvp strong-intra-smoothing
    x265 [info]: tools: lslices=6 deblock sao
    Output #0, mp4, to 'Petr_doskok_rotated.mp4':
    Metadata:
    major_brand     : isom
    minor_version   : 512
    compatible_brands: isomiso2avc1mp41
    encoder         : Lavf58.20.100
    Stream #0:0(und): Video: hevc (libx265) (hev1 / 0x31766568), yuv420p, 2048x1024 [SAR 1:1 DAR 2:1], q=2-31, 15000 kb/s, 30 fps, 15360 tbn, 30 tbc (default)
    Metadata:
     handler_name    : VideoHandler
     encoder         : Lavc58.35.100 libx265
    Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 192 kb/s (default)
    Metadata:
     handler_name    : SoundHandler
     encoder         : Lavc58.35.100 aac
    frame=  841 fps=9.8 q=-0.0 Lsize=   54721kB time=00:00:28.03     bitrate=15991.5kbits/s speed=0.326x
    video:54028kB audio:659kB subtitle:0kB other streams:0kB global headers:2kB muxing overhead: 0.062856%
    x265 [info]: frame I:      4, Avg QP:15.99  kb/s: 39026.34
    x265 [info]: frame P:    214, Avg QP:16.15  kb/s: 30083.41
    x265 [info]: frame B:    623, Avg QP:19.72  kb/s: 10727.28
    x265 [info]: Weighted P-Frames: Y:0.0% UV:0.0%
    x265 [info]: consecutive B-frames: 0.5% 0.9% 17.9% 73.9% 6.9%

    encoded 841 frames in 86.02s (9.78 fps), 15787.22 kb/s, Avg QP:18.80
    [aac @ 000001faa3ead7c0] Qavg: 289.921

    Well, the video was really rotated - vertically ! The documentation does not reference the 360° video production : http://ffmpeg.org/ffmpeg-filters.html#rotate. What is the correct parameter value for my case ?

  • FFMPEG commands isn't working in Android Q

    5 février, par Krupali Shingala

    Try this command for merge two audio files, but its not working in Android 10.0(Q) while targeting sdk 29.
But, this command is completely working on targeting sdk 24 to 28.

    



    I am using this library of FFMPEG implementation 'nl.bravobit:android-ffmpeg:1.1.7'

    



    "-y", "-i", path1, "-i", path2, "-filter_complex", "[0:0][1:0] amix=inputs=2:duration=longest", "-c:a", "libmp3lame", savedPath&#xA;&#xA;my Error log:&#xA;2019-09-28 13:48:32.037 16041-16166/com.merger.cut E/FFmpeg: Exception while trying to run: [/data/user/0/com..merger.cut/files/ffmpeg, -y, -i, /storage/emulated/0/Music/song1.mp3, -i, /storage/emulated/0/Music/song2.mp3, -filter_complex, [0:0][1:0] amix=inputs=2:duration=longest, -c:a, libmp3lame, /storage/emulated/0/merger/Merge_1569658695254.mp3]&#xA;    java.io.IOException: Cannot run program "/data/user/0/com.merger.cut/files/ffmpeg": error=13, Permission denied&#xA;        at java.lang.ProcessBuilder.start(ProcessBuilder.java:1050)&#xA;        at nl.bravobit.ffmpeg.ShellCommand.run(ShellCommand.java:15)&#xA;        at nl.bravobit.ffmpeg.FFcommandExecuteAsyncTask.doInBackground(FFcommandExecuteAsyncTask.java:43)&#xA;        at nl.bravobit.ffmpeg.FFcommandExecuteAsyncTask.doInBackground(FFcommandExecuteAsyncTask.java:12)&#xA;        at android.os.AsyncTask$3.call(AsyncTask.java:378)&#xA;        at java.util.concurrent.FutureTask.run(FutureTask.java:266)&#xA;        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)&#xA;        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)&#xA;        at java.lang.Thread.run(Thread.java:919)&#xA;     Caused by: java.io.IOException: error=13, Permission denied&#xA;        at java.lang.UNIXProcess.forkAndExec(Native Method)&#xA;        at java.lang.UNIXProcess.<init>(UNIXProcess.java:133)&#xA;        at java.lang.ProcessImpl.start(ProcessImpl.java:141)&#xA;        at java.lang.ProcessBuilder.start(ProcessBuilder.java:1029)&#xA;        at nl.bravobit.ffmpeg.ShellCommand.run(ShellCommand.java:15)&#xA0;&#xA;        at nl.bravobit.ffmpeg.FFcommandExecuteAsyncTask.doInBackground(FFcommandExecuteAsyncTask.java:43)&#xA0;&#xA;        at nl.bravobit.ffmpeg.FFcommandExecuteAsyncTask.doInBackground(FFcommandExecuteAsyncTask.java:12)&#xA0;&#xA;        at android.os.AsyncTask$3.call(AsyncTask.java:378)&#xA0;&#xA;        at java.util.concurrent.FutureTask.run(FutureTask.java:266)&#xA0;&#xA;        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)&#xA0;&#xA;        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)&#xA0;&#xA;        at java.lang.Thread.run(Thread.java:919)&#xA0;&#xA;2019-09-28 13:48:32.146 16041-16041/com.merger.cut E/FFMPEG&#xA0;:: on finish&#xA;</init>

    &#xA;&#xA;

    Give me solution for above problem.

    &#xA;