Recherche avancée

Médias (1)

Mot : - Tags -/ogv

Autres articles (79)

  • Websites made ​​with MediaSPIP

    2 mai 2011, par

    This page lists some websites based on MediaSPIP.

  • Participer à sa traduction

    10 avril 2011

    Vous pouvez nous aider à améliorer les locutions utilisées dans le logiciel ou à traduire celui-ci dans n’importe qu’elle nouvelle langue permettant sa diffusion à de nouvelles communautés linguistiques.
    Pour ce faire, on utilise l’interface de traduction de SPIP où l’ensemble des modules de langue de MediaSPIP sont à disposition. ll vous suffit de vous inscrire sur la liste de discussion des traducteurs pour demander plus d’informations.
    Actuellement MediaSPIP n’est disponible qu’en français et (...)

  • Creating farms of unique websites

    13 avril 2011, par

    MediaSPIP platforms can be installed as a farm, with a single "core" hosted on a dedicated server and used by multiple websites.
    This allows (among other things) : implementation costs to be shared between several different projects / individuals rapid deployment of multiple unique sites creation of groups of like-minded sites, making it possible to browse media in a more controlled and selective environment than the major "open" (...)

Sur d’autres sites (14351)

  • ffmpeg : Cannot find a matching stream for unlabeled input pad 0 on filter Parsed_pad_5

    26 mars 2019, par rsswtmr

    This shouldn’t be that hard. I’m trying to combine three disparate video sources. I’m upscaling them to a consistent 1280x720 frame, with black backgrounds for letterboxing, and trying to concatenate to the output file. The two input files are show segments, and the bumper is a random commercial that goes in the middle.

    On an iMac Pro, System 10.14.3, ffmpeg 4.1.1. The command I’m trying to make work is :

    ffmpeg -y -hide_banner -i "input1.mkv" -i "bumper.mkv" -i "input2.mkv" -filter_complex '[0:v]scale=1280x720:force_original_aspect_ratio=increase[v0],pad=1280x720:max(0\,(ow-iw)/2):max(0\,(oh-ih)/2):black[v0]; [1:v]scale=1280x720:force_original_aspect_ratio=increase[v1],pad=1280x720:max(0\,(ow-iw)/2):max(0\,(oh-ih)/2):black[v1]; [2:v]scale=1280x720:force_original_aspect_ratio=increase[v2],pad=1280x720:max(0\,(ow-iw)/2):max(0\,(oh-ih)/2):black[v2]; [v0][0:a][v1][1:a][v2][2:a]concat=n=3:v=1:a=1 [outv] [outa]' -map "[outv]" -map "[outa]" 'output.mkv'

    The resulting frame I get back is :

    [h264 @ 0x7fbec9000600] [verbose] Reinit context to 720x480, pix_fmt: yuv420p
    [info] Input #0, matroska,webm, from 'input1.mkv':
    [info]   Metadata:
    [info]     encoder         : libebml v0.7.7 + libmatroska v0.8.1
    [info]     creation_time   : 2009-07-20T01:33:54.000000Z
    [info]   Duration: 00:12:00.89, start: 0.000000, bitrate: 1323 kb/s
    [info]     Stream #0:0(eng): Video: h264 (High), 1 reference frame, yuv420p(progressive, left), 708x480 (720x480) [SAR 10:11 DAR 59:44], 23.98 fps, 23.98 tbr, 1k tbn, 47.95 tbc (default)
    [info]     Stream #0:1(eng): Audio: ac3, 48000 Hz, stereo, fltp, 160 kb/s (default)
    [info]     Metadata:
    [info]       title           : English AC3
    [info]     Stream #0:2(eng): Subtitle: subrip
    [h264 @ 0x7fbec9019a00] [verbose] Reinit context to 304x240, pix_fmt: yuv420p
    [info] Input #1, matroska,webm, from 'bumper.mkv':
    [info]   Metadata:
    [info]     CREATION_TIME   : 2019-03-15T15:16:00Z
    [info]     ENCODER         : Lavf57.7.2
    [info]   Duration: 00:00:18.18, start: 0.000000, bitrate: 274 kb/s
    [info]     Stream #1:0: Video: h264 (Main), 1 reference frame, yuv420p(tv, smpte170m/smpte170m/bt709, progressive, left), 302x232 (304x240) [SAR 1:1 DAR 151:116], 29.97 fps, 29.97 tbr, 1k tbn, 180k tbc (default)
    [info]     Stream #1:1: Audio: aac (LC), 44100 Hz, stereo, fltp, delay 2111 (default)
    [info]     Metadata:
    [info]       title           : Stereo
    [error] Truncating packet of size 3515 to 1529
    [h264 @ 0x7fbec9014600] [verbose] Reinit context to 704x480, pix_fmt: yuv420p
    [h264 @ 0x7fbec9014600] [info] concealing 769 DC, 769 AC, 769 MV errors in I frame
    [matroska,webm @ 0x7fbec9011e00] [error] Read error at pos. 50829 (0xc68d)
    [info] Input #2, matroska,webm, from 'input2.mkv':
    [info]   Metadata:
    [info]     encoder         : libebml v0.7.7 + libmatroska v0.8.1
    [info]     creation_time   : 2009-07-19T22:37:48.000000Z
    [info]   Duration: 00:10:07.20, start: 0.000000, bitrate: 1391 kb/s
    [info]     Stream #2:0(eng): Video: h264 (High), 1 reference frame, yuv420p(progressive, left), 704x480 [SAR 10:11 DAR 4:3], 23.98 fps, 23.98 tbr, 1k tbn, 47.95 tbc (default)
    [info]     Stream #2:1(eng): Audio: ac3, 48000 Hz, stereo, fltp, 160 kb/s (default)
    [info]     Metadata:
    [info]       title           : English AC3
    [info]     Stream #2:2(eng): Subtitle: subrip
    [Parsed_scale_0 @ 0x7fbec8716540] [verbose] w:1280 h:720 flags:'bilinear' interl:0
    [Parsed_scale_2 @ 0x7fbec8702480] [verbose] w:1280 h:720 flags:'bilinear' interl:0
    [Parsed_scale_4 @ 0x7fbec8702e40] [verbose] w:1280 h:720 flags:'bilinear' interl:0
    [fatal] Cannot find a matching stream for unlabeled input pad 0 on filter Parsed_pad_5
    [AVIOContext @ 0x7fbec862bfc0] [verbose] Statistics: 104366 bytes read, 2 seeks
    [AVIOContext @ 0x7fbec870a100] [verbose] Statistics: 32768 bytes read, 0 seeks
    [AVIOContext @ 0x7fbec87135c0] [verbose] Statistics: 460284 bytes read, 2 seeks

    I have no idea what Parsed_pad_5 means. I Googled Cannot find a matching stream for unlabeled input pad and found absolutely no explanation, anywhere. I’m a relative ffmpeg newbie. Before I start rooting around in the source code, can anyone point me in the right direction ? Thanks in advance.

  • FFMPEG : Invalid data found when processing input

    16 mars, par Schüler

    I am unable to upload mp3 or mp4 is there any specific path format ? Here is my code. I have tried this also ffmpeg -i Video/" + Name + " -ss 01:30 -r 1 -an -vframes 1 -f mjpeg Video/" + Name + ".jpg

    



    exec("ffmpeg -y -i Video/" + Name + " -map_metadata -1 -ab 192k Video/" + Name + ".jpg", function(err) {
            if (err) {console.log(err)}
        console.log('Done', {'Image' : 'Video/' + Name + '.jpg'});
        });


    



    Here is the error

    



    { Error: Command failed: ffmpeg -y -i Video/ac9358e25dd41a69e95a72d3e71e4881 -map_metadata -1 -ab 192k Video/ac9358e25dd41a69e95a72d3e71e4881.jpg
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
Video/ac9358e25dd41a69e95a72d3e71e4881: Invalid data found when processing input

    at ChildProcess.exithandler (child_process.js:275:12)
    at emitTwo (events.js:126:13)
    at ChildProcess.emit (events.js:214:7)
    at maybeClose (internal/child_process.js:925:16)
    at Socket.stream.socket.on (internal/child_process.js:346:11)
    at emitOne (events.js:116:13)
    at Socket.emit (events.js:211:7)
    at Pipe._handle.close [as _onclose] (net.js:557:12)
  killed: false,
  code: 1,
  signal: null,
  cmd: 'ffmpeg -y -i Video/ac9358e25dd41a69e95a72d3e71e4881 -map_metadata -1 -ab 192k Video/ac9358e25dd41a69e95a72d3e71e4881.jpg' }


    


  • android : Merge two audio files to one using FFMPEG

    27 mars 2019, par Asif Sb

    I have been stuck from the past two days, couldn’t able to figure out what went wrong.

    Log.d(TAG, "doInBackground: wee");
    String s = "-i ["+fileName+"] -i ["+fileName3+"] -filter_complex amerge -ac 2 -c:a libmp3lame -q:a 4 ["+finalAudio+"]";
    String[] cmd=s.split(" ");
    mergeMediaFiles(RecordActivity.this,cmd);

    And I am getting the following error.

    2019-03-27 11:38:03.525 12912-13042/com.encrypt.audiorecord E/FFmpeg: Exception while trying to run: [Ljava.lang.String;@4bfef23
       java.io.IOException: Cannot run program "/data/user/0/com.encrypt.audiorecord/files/ffmpeg": error=2, No such file or directory
           at java.lang.ProcessBuilder.start(ProcessBuilder.java:1050)
           at java.lang.Runtime.exec(Runtime.java:695)
           at java.lang.Runtime.exec(Runtime.java:560)
           at com.github.hiteshsondhi88.libffmpeg.ShellCommand.run(ShellCommand.java:10)
           at com.github.hiteshsondhi88.libffmpeg.FFmpegExecuteAsyncTask.doInBackground(FFmpegExecuteAsyncTask.java:38)
           at com.github.hiteshsondhi88.libffmpeg.FFmpegExecuteAsyncTask.doInBackground(FFmpegExecuteAsyncTask.java:10)
           at android.os.AsyncTask$2.call(AsyncTask.java:333)
           at java.util.concurrent.FutureTask.run(FutureTask.java:266)
           at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:245)
           at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
           at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
           at java.lang.Thread.run(Thread.java:764)
        Caused by: java.io.IOException: error=2, No such file or directory
           at java.lang.UNIXProcess.forkAndExec(Native Method)
           at java.lang.UNIXProcess.<init>(UNIXProcess.java:133)
           at java.lang.ProcessImpl.start(ProcessImpl.java:132)
           at java.lang.ProcessBuilder.start(ProcessBuilder.java:1029)
           at java.lang.Runtime.exec(Runtime.java:695) 
           at java.lang.Runtime.exec(Runtime.java:560) 
           at com.github.hiteshsondhi88.libffmpeg.ShellCommand.run(ShellCommand.java:10) 
           at com.github.hiteshsondhi88.libffmpeg.FFmpegExecuteAsyncTask.doInBackground(FFmpegExecuteAsyncTask.java:38) 
           at com.github.hiteshsondhi88.libffmpeg.FFmpegExecuteAsyncTask.doInBackground(FFmpegExecuteAsyncTask.java:10) 
           at android.os.AsyncTask$2.call(AsyncTask.java:333) 
           at java.util.concurrent.FutureTask.run(FutureTask.java:266) 
           at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:245) 
           at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167) 
           at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641) 
           at java.lang.Thread.run(Thread.java:764) 
    </init>

    And I followed this link to integrate FFMPEG to the android app.

    Below is my mergeMediaFiles() method :

    public void mergeMediaFiles(Context context,String[] cmd) {
           FFmpeg ffmpeg = FFmpeg.getInstance(context);
           try {
               // to execute "ffmpeg -version" command you just need to pass "-version"
               ffmpeg.execute(cmd, new ExecuteBinaryResponseHandler() {

                   @Override
                   public void onStart() {
                   }

                   @Override
                   public void onProgress(String message) {
                   }

                   @Override
                   public void onFailure(String message) {
                   }

                   @Override
                   public void onSuccess(String message) {
                   }

                   @Override
                   public void onFinish() {
                   }
               });
           } catch (FFmpegCommandAlreadyRunningException e) {
               //
           }
       }

    And the path of all my files are from cacheDir

    fileName = getExternalCacheDir().getAbsolutePath();
           fileName += "/audiorecordtest.wav";