Advanced search

Medias (91)

Other articles (61)

  • Submit bugs and patches

    13 April 2011

    Unfortunately a software is never perfect.
    If you think you have found a bug, report it using our ticket system. Please to help us to fix it by providing the following information: the browser you are using, including the exact version as precise an explanation as possible of the problem if possible, the steps taken resulting in the problem a link to the site / page in question
    If you think you have solved the bug, fill in a ticket and attach to it a corrective patch.
    You may also (...)

  • MediaSPIP 0.1 Beta version

    25 April 2011, by

    MediaSPIP 0.1 beta is the first version of MediaSPIP proclaimed as "usable".
    The zip file provided here only contains the sources of MediaSPIP in its standalone version.
    To get a working installation, you must manually install all-software dependencies on the server.
    If you want to use this archive for an installation in "farm mode", you will also need to proceed to other manual (...)

  • Support audio et vidéo HTML5

    10 April 2011

    MediaSPIP utilise les balises HTML5 video et audio pour la lecture de documents multimedia en profitant des dernières innovations du W3C supportées par les navigateurs modernes.
    Pour les navigateurs plus anciens, le lecteur flash Flowplayer est utilisé.
    Le lecteur HTML5 utilisé a été spécifiquement créé pour MediaSPIP : il est complètement modifiable graphiquement pour correspondre à un thème choisi.
    Ces technologies permettent de distribuer vidéo et son à la fois sur des ordinateurs conventionnels (...)

On other websites (3240)

  • Concatenate audio with image and video using ffmpeg

    9 May 2018, by huynq9

    I have 1 image, 1 audio file and 1 video. I would like to merge all of them to make a video which will

    • show the image and play audio file for the first 10s
    • play the video file

    here is what I was trying to do so far.

    ffmpeg \
    -loop 1 -framerate 24 -t 10 -i item1.jpg \
    -i "https://audio-ssl.itunes.apple.com/apple-assets-us-std-000001/Music/66/58/f7/mzi.eoocfriy.aac.p.m4a" \
    -i item4.mp4 \
    -filter_complex \
    "[0]scale=432:432,setdar=1[img1]; \
    [1]volume=1[aud1]; \
    [2]scale=432:432,setdar=1[vid1]; \
    [img1][aud1][vid1] concat=n=3:v=1:a=1" \
    outputfile.mp4

    I got the error:

    [Parsed_setdar_4 @ 0x3063780] Media type mismatch between the
    ’Parsed_setdar_4’ filter output pad 0 (video) and the
    ’Parsed_concat_6’ filter input pad 1 (audio) [AVFilterGraph @
    0x30479a0] Cannot create the link setdar:0 -> concat:1 Error
    initializing complex filters. Invalid argument

    I tried to googled but still cannot figure out what I am doing wrong?

    Updated:
    I ran the following command:

    ffmpeg \
    -loop 1 -framerate 24 -t 10 -i item1.jpg \
    -t 10 -i "https://audio-ssl.itunes.apple.com/apple-assets-us-std-000001/Music/66/58/f7/mzi.eoocfriy.aac.p.m4a" \
    -i item4.mp4 \
    -f lavfi -t 1 -i anullsrc \
    -filter_complex \
    "[0]scale=432:432,setsar=1[img1]; \
    [2]scale=432:432,setsar=1[vid1]; \
    [img1][1][vid1][3] concat=n=2:v=1:a=1" \
    outputfile.mp4

    and got the following error:

    ffmpeg version 3.3.3 Copyright (c) 2000-2017 the FFmpeg developers
     built with gcc 4.8 (Ubuntu 4.8.4-2ubuntu1~14.04.3)
     configuration: --extra-libs=-ldl --prefix=/opt/ffmpeg --mandir=/usr/share/man --enable-avresample --disable-debug --enable-nonfree --enable-gpl --enable-version3 --enable-libopencore-amrnb --enable-libopencore-amrwb --disable-decoder=amrnb --disable-decoder=amrwb --enable-libpulse --enable-libfreetype --enable-gnutls --disable-ffserver --enable-libx264 --enable-libx265 --enable-libfdk-aac --enable-libvorbis --enable-libtheora --enable-libmp3lame --enable-libopus --enable-libvpx --enable-libspeex --enable-libass --enable-avisynth --enable-libsoxr --enable-libxvid --enable-libvidstab --enable-libwavpack --enable-nvenc --enable-libzimg
     libavutil      55. 58.100 / 55. 58.100
     libavcodec     57. 89.100 / 57. 89.100
     libavformat    57. 71.100 / 57. 71.100
     libavdevice    57.  6.100 / 57.  6.100
     libavfilter     6. 82.100 /  6. 82.100
     libavresample   3.  5.  0 /  3.  5.  0
     libswscale      4.  6.100 /  4.  6.100
     libswresample   2.  7.100 /  2.  7.100
     libpostproc    54.  5.100 / 54.  5.100
    Input #0, image2, from 'item1.jpg':
     Duration: 00:00:00.04, start: 0.000000, bitrate: 8365 kb/s
       Stream #0:0: Video: mjpeg, yuvj420p(pc, bt470bg/unknown/unknown), 432x432 [SAR 1:1 DAR 1:1], 24 fps, 24 tbr, 24 tbn, 24 tbc
    Input #1, mov,mp4,m4a,3gp,3g2,mj2, from 'https://audio-ssl.itunes.apple.com/apple-assets-us-std-000001/Music/66/58/f7/mzi.eoocfriy.aac.p.m4a':
     Metadata:
       major_brand     : M4A
       minor_version   : 0
       compatible_brands: M4A mp42isom
       creation_time   : 1983-06-16T23:20:44.000000Z
       iTunSMPB        :  00000000 00000840 00000000 00000000001423C0 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
     Duration: 00:00:29.98, start: 0.047891, bitrate: 285 kb/s
       Stream #1:0(eng): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 271 kb/s (default)
       Metadata:
         creation_time   : 1983-06-16T23:20:44.000000Z
    Input #2, mov,mp4,m4a,3gp,3g2,mj2, from 'item4.mp4':
     Metadata:
       major_brand     : isom
       minor_version   : 512
       compatible_brands: isomiso2avc1mp41
       creation_time   : 1970-01-01T00:00:00.000000Z
       encoder         : Lavf53.24.2
     Duration: 00:00:13.70, start: 0.000000, bitrate: 615 kb/s
       Stream #2:0(und): Video: h264 (Main) (avc1 / 0x31637661), yuv420p, 320x240 [SAR 1:1 DAR 4:3], 229 kb/s, 15 fps, 15 tbr, 15360 tbn, 30 tbc (default)
       Metadata:
         creation_time   : 1970-01-01T00:00:00.000000Z
         handler_name    : VideoHandler
       Stream #2:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, 5.1, fltp, 382 kb/s (default)
       Metadata:
         creation_time   : 1970-01-01T00:00:00.000000Z
         handler_name    : SoundHandler
    Input #3, lavfi, from 'anullsrc':
     Duration: N/A, start: 0.000000, bitrate: 705 kb/s
       Stream #3:0: Audio: pcm_u8, 44100 Hz, stereo, u8, 705 kb/s
    [AVFilterGraph @ 0x3955e20] No such filter: ' '
    Error initializing complex filters.
    Invalid argument
  • ffmpeg converting MOV to MP4 add 5 second still frames to start of video [closed]

    17 February 2013, by Webfox

    I have a website that automatically converts MOV files to MP4. For some reason the client videos (which are exported from their own software) have about 5-8 seconds worth of a still frame added to the beginning of each video when they are converted. I have tried so many different variations trying to sort this but its always the same.

    The function/ffmpeg command that is currently being used is

       public function convertToMP4($file, $destination, $size=null, $qscale='10', $rate=25, $ab='192k', $ar=44100) {
       if (substr($destination, -1) == '/') {
           $destination = substr($destination, 0, -1);
       }

       $filename = end(explode("/", $file));
       $outfile = current(explode(".", $filename)).".mp4";

       // Media Size
       if (!isset($size) || $size == 'copy') {
           if ($dims = $this->getDimensions($file)) {
               $size = $dims['width'].'x'.$dims['height'];
           }
       }
       if ($ab == false) {
           $cmd = "ffmpeg -i $file -qscale $qscale -an -f mp4 -s $size -aspect 16:9 $destination/$outfile";
       } else {
           $cmd = "ffmpeg -i $file -acodec ".$this->mp3lib." -qscale $qscale -r $rate -ar $ar -ab $ab -f mp4 -s $size -aspect 16:9 $destination/$outfile";
       }

       $ret = shell_exec($cmd);

       if (file_exists("$destination/$outfile")) {
           return "$destination/$outfile";
       }
       return false;
    }

    where if $ab is false then remove the sound which is the case for 99% of the videos in scenario

    Thanks

  • FFMPEG video encoded by android app doesn't scale properly on the website

    9 October 2016, by Ahmed Mujtaba

    I’m trying to creat e an app that records a video on phone and uploads it to the website. I’m using a FFMPEG library to encode the video to be streamed on the web. The command I’m using for encoding is below:

    -y i inputPath -vf scale=640:480,transpose=1 -strict experimental -s 360x640 -r 25 -vcodec mpeg4 -b 1000k ab 48000 -ac 2 -ar 22050 destinationPath

    The video is encoded fine but when I try to play it on the website, it’s stretched vertically and goes off the screen. I’m using html5 player to play it on the web. Here’s what the video looks like

    enter image description here

    The video uploaded from the website is encoded using libx264 codec and it plays fine. However the library I’m using to encode on the android app doesn’t support libx264. I’m not sure if it’s the incorrect aspect ratio that’s messing up the playback or something else. I’ve set the aspet ratio to 640:480 but that hasn’t fixed things.
    Can anyone help?