Recherche avancée

Médias (91)

Autres articles (105)

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

  • Ajouter des informations spécifiques aux utilisateurs et autres modifications de comportement liées aux auteurs

    12 avril 2011, par

    La manière la plus simple d’ajouter des informations aux auteurs est d’installer le plugin Inscription3. Il permet également de modifier certains comportements liés aux utilisateurs (référez-vous à sa documentation pour plus d’informations).
    Il est également possible d’ajouter des champs aux auteurs en installant les plugins champs extras 2 et Interface pour champs extras.

  • Gestion de la ferme

    2 mars 2010, par

    La ferme est gérée dans son ensemble par des "super admins".
    Certains réglages peuvent être fais afin de réguler les besoins des différents canaux.
    Dans un premier temps il utilise le plugin "Gestion de mutualisation"

Sur d’autres sites (10539)

  • FFmpeg error when trying to stream file into it

    15 décembre 2015, par nadermx

    I’m trying to put a stream into a ffmpeg pipe.

    The issue I am having is that when I send the data to ffmpeg I get a error 127

    It also shows /bin/sh: 2: -acodec: not found

    Here is the console log I’m running via python

    from subprocess import Popen, PIPE
    from flask import Flask, stream_with_context, request, Response
    from signal import signal, SIGPIPE, SIG_DFL
    signal(SIGPIPE,SIG_DFL)

    def console(cmd, add_newlines=False):
       p = Popen(cmd, shell=True, stdout=PIPE)
       while True:
           data = p.stdout.read()
           if add_newlines:
               data += '\n'
           yield data

           p.poll();
           if isinstance(p.returncode, int):
               if p.returncode > 0:
                   # return code was non zero, an error?
                   print 'error:', p.returncode

               break

           sleep(2)

    And here is the actual route I am running the application in.

    @app.route('/large.mp3')
    def generate_large_mp3():
       url = 'https://www.youtube.com/watch?v=zGEiJ44K3Oo'
       result = ''.join(data.strip() for data in console('youtube-dl --simulate --get-url %s' % url))
       mp3 = console('sudo ffmpeg -i %s -acodec libmp3lame  -f mp3 -' % result, add_newlines=True)

       return Response(stream_with_context(mp3), mimetype='video/mp3')

    Here is the error output

    /bin/sh: 2: https://r13---sn-ab5l6nes.googlevideo.com/videoplayback?id=cc6122278e0adcea: not found
    /bin/sh: 2: -acodec: not found
    ffmpeg version git-2015-12-10-3652dd5 Copyright (c) 2000-2015 the FFmpeg developers
     built with gcc 4.8 (Ubuntu 4.8.4-2ubuntu1~14.04)
     configuration: --enable-gpl --enable-libfaac --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-librtmp --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libx264 --enable-openssl --enable-nonfree --enable-version3 --enable-gnutls
     libavutil      55. 10.100 / 55. 10.100
     libavcodec     57. 17.100 / 57. 17.100
     libavformat    57. 19.100 / 57. 19.100
     libavdevice    57.  0.100 / 57.  0.100
     libavfilter     6. 20.100 /  6. 20.100
     libswscale      4.  0.100 /  4.  0.100
     libswresample   2.  0.101 /  2.  0.101
     libpostproc    54.  0.100 / 54.  0.100
    [https @ 0x384d0a0] HTTP error 403 Forbidden
    https://r13---sn-ab5l6nes.googlevideo.com/videoplayback?id=cc6122278e0adcea: Server returned 403 Forbidden (access denied)
    127.0.0.1 - - [15/Dec/2015 00:55:59] "GET /large.mp3 HTTP/1.1" 200 -
    error: 127

    I have tried many different urls and all of them end up with the same issue.
    I have also tried installing every dependency I have been able to find and still no luck

  • blur an mp4 video for website background

    14 décembre 2015, par Mansi

    I am putting a video in the background of my web page. I want to blur the background for which I tried to put the following attribute in video tag :

    <video>
    </video>

    the video runs very slow due to blurring the background within HTML.
    So, now I am trying to blur the original video. I tried to use ffmpeg (here) :

    ffmpeg -i input.avi -vf "boxblur=enable='between(t,start,end)'" -codec:a copy output.avi

    But the filter used in ffmpeg seems to be deprecated. I have tried few filters of "avconv", but no filter seems to "blur" the video.
    Please let me know if there is any other command line tool which I can use for this purpose or even if I am missing any filter in ffmpeg or avconv.

    UPDATE : Console output for ffmpeg :

    ffmpeg -i output.mp4 -vf "boxblur=enable='between(t,0,15)'" -codec:a copy output1.mp4
    ffmpeg version 2.8.3 Copyright (c) 2000-2015 the FFmpeg developers
     built with gcc 4.8 (Ubuntu 4.8.2-19ubuntu1)
     configuration: --disable-yasm
     libavutil      54. 31.100 / 54. 31.100
     libavcodec     56. 60.100 / 56. 60.100
     libavformat    56. 40.101 / 56. 40.101
     libavdevice    56.  4.100 / 56.  4.100
     libavfilter     5. 40.101 /  5. 40.101
     libswscale      3.  1.101 /  3.  1.101
     libswresample   1.  2.101 /  1.  2.101
    Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'output.mp4':
     Metadata:
       major_brand     : isom
       minor_version   : 512
       compatible_brands: isomiso2avc1mp41
       creation_time   : 2015-04-08 13:38:10
       encoder         : Lavf54.20.4
     Duration: 00:00:29.40, start: 0.000000, bitrate: 1909 kb/s
       Stream #0:0(eng): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 1024x1024 [SAR 16:9 DAR 16:9], 1905 kb/s, 29.97 fps, 29.97 tbr, 30k tbn, 59.94 tbc (default)
       Metadata:
         creation_time   : 2015-04-08 13:38:10
         handler_name    : VideoHandler
    [AVFilterGraph @ 0x1db5140] No such filter: 'boxblur'
  • correctly encode .mov file for various browsers and devices

    7 décembre 2015, par khinester

    i have the following template, which uses node-blade that is similar to jade

    .show-for-medium-up
     -var poster_url = '//' + settings.cloudFrontDomain + '/images/poster/2015_2016.jpeg'
     .fullwidth
       .about-page
         video.video-js.vjs-default-skin.vjs-playing.vjs-big-play-centered(id="home" poster=poster_url)
           source(src="//#{settings.cloudFrontDomain}/assets/videos/home/winter_2015/SD_720.webm" type='video/webm')
           source(src="//#{settings.cloudFrontDomain}/assets/videos/home/winter_2015/SD_720.mp4" type='video/mp4')
           source(src="//#{settings.cloudFrontDomain}/assets/videos/home/winter_2015/SD_720.ogg" type='video/ogg')
           source(src="//#{settings.cloudFrontDomain}/assets/videos/home/winter_2015/SD_360.m4v" type='video/mp4')
       :javascript
         videojs("home", {
             preload: 'auto',
             autoplay: true,
             loop: true,
             fluid: true,
             aspectRatio: '16:9',
             controls: false
           });

    i have encoded the videos using ffmpeg using the following commands

    ffmpeg -i $s.mov -vcodec libvpx -acodec libvorbis -aq 5 -ac 2 -qmax 25 -b 614400 -s 1280x720 $s-SD_720.webm
    ffmpeg -i $s.mov -c:v libtheora -c:a libvorbis -q:v 6 -q:a 5 $s-SD_720.ogg
    ffmpeg -i $s.mov -vcodec h264 -acodec mp2 $s-SD_720.mp4

    the original video is

    ffprobe ../HD.mov
    ffprobe version N-76639-g58d32c0 Copyright (c) 2007-2015 the FFmpeg developers
     built with gcc 4.8 (Ubuntu 4.8.4-2ubuntu1~14.04)
     configuration: --prefix=/home/khine/ffmpeg_build --pkg-config-flags=--static --extra-cflags=-I/home/khine/ffmpeg_build/include --extra-ldflags=-L/home/khine/ffmpeg_build/lib --bindir=/home/khine/bin --enable-gpl --enable-libass --enable-libfdk-aac --enable-libfreetype --enable-libmp3lame --enable-libopus --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libx265 --enable-nonfree
     libavutil      55.  5.100 / 55.  5.100
     libavcodec     57. 15.100 / 57. 15.100
     libavformat    57. 14.100 / 57. 14.100
     libavdevice    57.  0.100 / 57.  0.100
     libavfilter     6. 15.100 /  6. 15.100
     libswscale      4.  0.100 /  4.  0.100
     libswresample   2.  0.101 /  2.  0.101
     libpostproc    54.  0.100 / 54.  0.100
    Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '../HD.mov':
     Metadata:
       major_brand     : qt  
       minor_version   : 537199360
       compatible_brands: qt  
       creation_time   : 2015-12-02 22:35:26
     Duration: 00:01:19.20, start: 0.000000, bitrate: 55745 kb/s
       Stream #0:0(eng): Video: h264 (Main) (avc1 / 0x31637661), yuv420p(tv, bt709), 1920x1080, 55733 kb/s, SAR 1:1 DAR 16:9, 25 fps, 25 tbr, 25 tbn, 50 tbc (default)
       Metadata:
         creation_time   : 2015-12-02 22:35:26
         handler_name    : Apple Alias Data Handler
         encoder         : H.264
         timecode        : 00:03:02:19
       Stream #0:1(eng): Data: none (tmcd / 0x64636D74) (default)
       Metadata:
         creation_time   : 2015-12-02 23:44:32
         handler_name    : Apple Alias Data Handler
         timecode        : 00:03:02:19

    what is the correct way to reduce the size to use on the web and also for use on mobile devices without flash.

    any advice much appreciated