Recherche avancée

Médias (2)

Mot : - Tags -/rotation

Autres articles (51)

  • MediaSPIP v0.2

    21 juin 2013, par

    MediaSPIP 0.2 est la première version de MediaSPIP stable.
    Sa date de sortie officielle est le 21 juin 2013 et est annoncée ici.
    Le fichier zip ici présent contient uniquement les sources de MediaSPIP en version standalone.
    Comme pour la version précédente, il est nécessaire d’installer manuellement l’ensemble des dépendances logicielles sur le serveur.
    Si vous souhaitez utiliser cette archive pour une installation en mode ferme, il vous faudra également procéder à d’autres modifications (...)

  • Mise à disposition des fichiers

    14 avril 2011, par

    Par défaut, lors de son initialisation, MediaSPIP ne permet pas aux visiteurs de télécharger les fichiers qu’ils soient originaux ou le résultat de leur transformation ou encodage. Il permet uniquement de les visualiser.
    Cependant, il est possible et facile d’autoriser les visiteurs à avoir accès à ces documents et ce sous différentes formes.
    Tout cela se passe dans la page de configuration du squelette. Il vous faut aller dans l’espace d’administration du canal, et choisir dans la navigation (...)

  • MediaSPIP version 0.1 Beta

    16 avril 2011, par

    MediaSPIP 0.1 beta est la première version de MediaSPIP décrétée comme "utilisable".
    Le fichier zip ici présent contient uniquement les sources de MediaSPIP en version standalone.
    Pour avoir une installation fonctionnelle, il est nécessaire d’installer manuellement l’ensemble des dépendances logicielles sur le serveur.
    Si vous souhaitez utiliser cette archive pour une installation en mode ferme, il vous faudra également procéder à d’autres modifications (...)

Sur d’autres sites (7178)

  • FFMPEG overlay issue for 2 videos, sound missing from second input

    7 septembre 2014, par Abhishek Singh

    I’m trying to achive an overlay with ffmpeg wich take the two flv files as input and make a output and both videos playing simultaneously. things are working fine with below ffmpeg command :

    ffmpeg -i input1.flv -vf "[in] scale=359:320, pad=2*iw+6:ih [left]; movie=input2.flv, scale=359:320 [right]; [left][right] overlay=365:0 [out]" -b:v 3600k -y output.flv

    But issue is with the sound of second video and that is missing from the output.flv, only input1 sound is available in the output.flv.

    Console output is :

    ffmpeg version N-47062-g26c531c Copyright (c) 2000-2012 the FFmpeg developers
     built on Nov 25 2012 12:23:20 with gcc 4.7.2 (GCC)
     configuration: --disable-static --enable-shared --enable-gpl --enable-version3
    --disable-pthreads --enable-runtime-cpudetect --enable-avisynth --enable-bzlib
    --enable-frei0r --enable-libass --enable-lib`enter code here`opencore-amrnb --enable-libopencore-
    amrwb --enable-libfreetype --enable-libgsm --enable-libmp3lame --enable-libnut -
    -enable-libopenjpeg --enable-libopus --enable-librtmp --enable-libschroedinger -
    -enable-libspeex --enable-libtheora --enable-libutvideo --enable-libvo-aacenc --
    enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libx264 --enab
    le-libxavs --enable-libxvid --enable-zlib
     libavutil      52.  9.100 / 52.  9.100
     libavcodec     54. 77.100 / 54. 77.100
     libavformat    54. 37.100 / 54. 37.100
     libavdevice    54.  3.100 / 54.  3.100
     libavfilter     3. 23.102 /  3. 23.102
     libswscale      2.  1.102 /  2.  1.102
     libswresample   0. 17.101 /  0. 17.101
     libpostproc    52.  2.100 / 52.  2.100
    Input #0, flv, from 'input1.flv':
     Metadata:
       canSeekToEnd    : false
       createdby       : FMS 4.0
       creationdate    : Mon Jan 07 07:05:40 2013
       encoder         : Lavf54.37.100
     Duration: 00:03:04.81, start: 0.000000, bitrate: 314 kb/s
       Stream #0:0: Video: flv1, yuv420p, 160x120, 3600 kb/s, 1k tbr, 1k tbn, 1k tb
    c
       Stream #0:1: Audio: mp3, 22050 Hz, mono, s16, 32 kb/s
    Output #0, flv, to 'output.flv':
     Metadata:
       canSeekToEnd    : false
       createdby       : FMS 4.0
       creationdate    : Mon Jan 07 07:05:40 2013
       encoder         : Lavf54.37.100
       Stream #0:0: Video: flv1 ([2][0][0][0] / 0x0002), yuv420p, 724x320, q=2-31,
    3600 kb/s, 1k tbn, 1k tbc
       Stream #0:1: Audio: mp3 ([2][0][0][0] / 0x0002), 22050 Hz, mono, s16p
    Stream mapping:
     Stream #0:0 -> #0:0 (flv -> flv)
     Stream #0:1 -> #0:1 (mp3 -> libmp3lame)
    Press [q] to stop, [?] for help
    frame=  120 fps=0.0 q=4.5 size=     550kB time=00:00:08.57 bitrate= 525.3kbits/s
    frame=  225 fps=221 q=2.0 size=    1422kB time=00:00:18.26 bitrate= 637.6kbits/s
    Buffer queue overflow, dropping.
    [Parsed_overlay_4 @ 02259ae0] Buffer queue overflow, dropping.
       Last message repeated 1 times
    frame=  338 fps=222 q=2.0 size=    2414kB time=00:00:26.97 bitrate= 733.0kbits/s
    Buffer queue overflow, dropping.
    [Parsed_overlay_4 @ 02259ae0] Buffer queue overflow, dropping.
       Last message repeated 12 times
    frame=  452 fps=223 q=2.0 size=    3326kB time=00:00:35.38 bitrate= 770.1kbits/s
    frame=  562 fps=223 q=2.0 size=    4246kB time=00:00:43.15 bitrate= 806.0kbits/s
    Buffer queue overflow, dropping.
    [Parsed_overlay_4 @ 02259ae0] Buffer queue overflow, dropping.
       Last message repeated 11 times
    frame=  669 fps=221 q=2.0 size=    5237kB time=00:00:51.28 bitrate= 836.6kbits/s
    frame=  777 fps=220 q=2.0 size=    6105kB time=00:00:58.75 bitrate= 851.2kbits/s
    frame=  893 fps=222 q=2.0 size=    6897kB time=00:01:06.72 bitrate= 846.8kbits/s
    frame= 1006 fps=222 q=2.0 size=    7701kB time=00:01:14.60 bitrate= 845.6kbits/s
    frame= 1121 fps=223 q=2.0 size=    8539kB time=00:01:22.45 bitrate= 848.3kbits/s
    frame= 1235 fps=223 q=2.0 size=    9316kB time=00:01:30.39 bitrate= 844.3kbits/s
    frame= 1344 fps=223 q=2.0 size=   10135kB time=00:01:37.98 bitrate= 847.3kbits/s
    Buffer queue overflow, dropping.
    [Parsed_overlay_4 @ 02259ae0] Buffer queue overflow, dropping.
       Last message repeated 33 times
    frame= 1437 fps=220 q=2.0 size=   10800kB time=00:01:46.67 bitrate= 829.3kbits/s
    frame= 1540 fps=219 q=2.0 size=   11577kB time=00:01:54.16 bitrate= 830.7kbits/s
    frame= 1651 fps=219 q=2.0 size=   12330kB time=00:02:01.64 bitrate= 830.3kbits/s
    frame= 1756 fps=218 q=2.0 size=   13141kB time=00:02:09.06 bitrate= 834.1kbits/s
    frame= 1859 fps=217 q=2.0 size=   13879kB time=00:02:16.28 bitrate= 834.3kbits/s
    frame= 1962 fps=217 q=2.0 size=   14703kB time=00:02:23.69 bitrate= 838.2kbits/s
    frame= 2070 fps=217 q=2.0 size=   15448kB time=00:02:30.98 bitrate= 838.2kbits/s
    frame= 2176 fps=216 q=2.0 size=   16241kB time=00:02:38.46 bitrate= 839.6kbits/s
    Buffer queue overflow, dropping.
    [Parsed_overlay_4 @ 02259ae0] Buffer queue overflow, dropping.
       Last message repeated 20 times
    frame= 2275 fps=215 q=2.0 size=   16990kB time=00:02:46.78 bitrate= 834.5kbits/s
    frame= 2389 fps=216 q=1.6 size=   17784kB time=00:02:54.44 bitrate= 835.1kbits/s
    frame= 2493 fps=216 q=2.0 size=   18555kB time=00:03:01.73 bitrate= 836.4kbits/s
    frame= 2534 fps=216 q=2.0 Lsize=   18945kB time=00:03:04.81 bitrate= 839.7kbits/
    s
    video:18227kB audio:588kB subtitle:0 global headers:0kB muxing overhead 0.691204
    %

    i think -map is filter that is for the audio handling of both video.see this link.

    Superimposing two videos onto a static image ?

    Thanks in Advance.

  • Converting Video for Android using FFMPEG

    13 février 2017, par Jebu

    What i am trying to do is convert video into mp4 format that will play in Android.

    I’ve gone through http://developer.android.com/guide/appendix/media-formats.html

    I am setting the following options

    -vcodec libx264 -vprofile baseline -acodec libfaac -ar 44100 -ac 1 -ab 128k yet I get the error message "Sorry, This Video is not valid for streaming to this device"

    I Played the video in android browser using videoJS http://video-js.zencoder.com/oceans-clip.mp4 and it WORKS fine.

    I download the video oceans-clip.mp4 and tried to convert using minimalist options

    -y -i working.mp4 -vprofile baseline pleasework.mp4

    yet I get the same error message.

    The following is the FFMPEG info dump of the video files

    Working.mp4

    Array
    (
       [0] => ffmpeg version N-40229-g24e3f44-syslint Copyright (c) 2000-2012 the FFmpeg developers
       [1] =>   built on Apr 29 2012 22:01:41 with gcc 4.1.2 20080704 (Red Hat 4.1.2-52)
       [2] =>   configuration: --prefix=/usr/local/cpffmpeg --enable-shared --enable-nonfree --enable-gpl --enable-pthreads --enable-libopencore-amrnb --enable-decoder=liba52 --enable-libopencore-amrwb --enable-libfaac --enable-libmp3lame --enable-libtheora --enable-libvorbis --enable-libx264 --enable-libxvid --extra-cflags=-I/usr/local/cpffmpeg/include/ --extra-ldflags=-L/usr/local/cpffmpeg/lib --enable-version3 --extra-version=syslint
       [3] =>   libavutil      51. 48.100 / 51. 48.100
       [4] =>   libavcodec     54. 17.101 / 54. 17.101
       [5] =>   libavformat    54.  3.100 / 54.  3.100
       [6] =>   libavdevice    53.  4.100 / 53.  4.100
       [7] =>   libavfilter     2. 72.100 /  2. 72.100
       [8] =>   libswscale      2.  1.100 /  2.  1.100
       [9] =>   libswresample   0. 11.100 /  0. 11.100
       [10] =>   libpostproc    52.  0.100 / 52.  0.100
       [11] => Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'working.mp4':
       [12] =>   Metadata:
       [13] =>     major_brand     : isom
       [14] =>     minor_version   : 1
       [15] =>     compatible_brands: isomavc1
       [16] =>     creation_time   : 2010-05-18 04:24:00
       [17] =>   Duration: 00:00:46.54, start: 0.000000, bitrate: 3342 kb/s
       [18] =>     Stream #0:0(und): Video: h264 (Constrained Baseline) (avc1 / 0x31637661), yuv420p, 640x264 [SAR 132:133 DAR 320:133], 3195 kb/s, SAR 127:128 DAR 635:264, 23.98 fps, 23.98 tbr, 24k tbn, 47.95 tbc
       [19] =>     Metadata:
       [20] =>       creation_time   : 2010-05-18 04:24:00
       [21] =>       handler_name    : GPAC ISO Video Handler
       [22] =>     Stream #0:1(und): Audio: aac (mp4a / 0x6134706D), 44100 Hz, stereo, s16, 144 kb/s
       [23] =>     Metadata:
       [24] =>       creation_time   : 2010-05-18 04:24:01
       [25] =>       handler_name    : GPAC ISO Audio Handler
       [26] => At least one output file must be specified
    )

    Not Working.mp4

    Array
    (
       [0] => ffmpeg version N-40229-g24e3f44-syslint Copyright (c) 2000-2012 the FFmpeg developers
       [1] =>   built on Apr 29 2012 22:01:41 with gcc 4.1.2 20080704 (Red Hat 4.1.2-52)
       [2] =>   configuration: --prefix=/usr/local/cpffmpeg --enable-shared --enable-nonfree --enable-gpl --enable-pthreads --enable-libopencore-amrnb --enable-decoder=liba52 --enable-libopencore-amrwb --enable-libfaac --enable-libmp3lame --enable-libtheora --enable-libvorbis --enable-libx264 --enable-libxvid --extra-cflags=-I/usr/local/cpffmpeg/include/ --extra-ldflags=-L/usr/local/cpffmpeg/lib --enable-version3 --extra-version=syslint
       [3] =>   libavutil      51. 48.100 / 51. 48.100
       [4] =>   libavcodec     54. 17.101 / 54. 17.101
       [5] =>   libavformat    54.  3.100 / 54.  3.100
       [6] =>   libavdevice    53.  4.100 / 53.  4.100
       [7] =>   libavfilter     2. 72.100 /  2. 72.100
       [8] =>   libswscale      2.  1.100 /  2.  1.100
       [9] =>   libswresample   0. 11.100 /  0. 11.100
       [10] =>   libpostproc    52.  0.100 / 52.  0.100
       [11] => Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'pleasework.mp4':
       [12] =>   Metadata:
       [13] =>     major_brand     : isom
       [14] =>     minor_version   : 512
       [15] =>     compatible_brands: isomiso2avc1mp41
       [16] =>     creation_time   : 2010-05-18 04:24:00
       [17] =>     encoder         : Lavf54.3.100
       [18] =>   Duration: 00:00:46.54, start: 0.000000, bitrate: 1843 kb/s
       [19] =>     Stream #0:0(und): Video: h264 (Constrained Baseline) (avc1 / 0x31637661), yuv420p, 640x264 [SAR 127:128 DAR 635:264], 1715 kb/s, 23.98 fps, 23.98 tbr, 24k tbn, 47.95 tbc
       [20] =>     Metadata:
       [21] =>       creation_time   : 2010-05-18 04:24:00
       [22] =>       handler_name    : VideoHandler
       [23] =>     Stream #0:1(und): Audio: aac (mp4a / 0x6134706D), 44100 Hz, stereo, s16, 124 kb/s
       [24] =>     Metadata:
       [25] =>       creation_time   : 2010-05-18 04:24:00
       [26] =>       handler_name    : SoundHandler
       [27] => At least one output file must be specified
    )

    The metadata looks almost the same yet it doesn’t seem to play in android. Any help appreciated.

  • Rails : Encoder error when converting video using FFMPEG on Heroku

    2 janvier 2013, par andmcgregor

    I'm trying to upload a video and convert the file to mp4 and reduce the file size using the paperclip-ffmpeg and paperclip gems. Everything works fine running a local server and I'm only getting this problem on heroku. I have ffmpeg installed in vendor/ffmpeg/ (I followed these steps : https://gist.github.com/3963576). Here is the code I've got and the error I'm getting :

    models/video.rb :

    class Video < ActiveRecord::Base
     attr_accessible :content, :user_id, :video
     has_attached_file :video , :styles => {
       :medium => { :geometry => "500x500", :format => 'mp4',
           :convert_options => { :output => { :vcodec => 'libx264',
           :b => '1000k', :bt => '200k',
           :acodec => 'libfaac', :ab => '56k', :ac => 2 } } }
     }, :processors => [:ffmpeg]

     belongs_to :user
    end

    when I run heroku logs :

    2013-01-02T00:38:20+00:00 app[web.1]: Started POST "/videos" for 101.170.255.251 at 2013-01-02 00:38:20 +0000
    2013-01-02T00:38:20+00:00 app[web.1]: Processing by VideosController#create as HTML
    2013-01-02T00:38:20+00:00 app[web.1]:   Parameters: {"utf8"=>"✓", "authenticity_token"=>"X0IKts46TF8aFvEb1I/szFo/28omlVBXIIyJ3APz3YA=", "video"=>{"content"=>"", "video"=>#quicktime\r\n", @tempfile=#tmp/RackMultipart20130102-2-1ch9zcp>>}, "commit"=>"Post"}
    2013-01-02T00:38:20+00:00 app[web.1]: [paperclip] [ffmpeg] ffmpeg -i "/tmp/sample20130102-2-4j5sgh.mov" 2>&1
    2013-01-02T00:38:20+00:00 app[web.1]: [paperclip] [ffmpeg] Resize
    2013-01-02T00:38:20+00:00 app[web.1]: [paperclip] [ffmpeg] Command Success
    2013-01-02T00:38:20+00:00 app[web.1]: [paperclip] [ffmpeg] Making...
    2013-01-02T00:38:20+00:00 app[web.1]: [paperclip] [ffmpeg] Building Destination File: 'sample20130102-2-4j5sgh' + 'mp4'
    2013-01-02T00:38:20+00:00 app[web.1]: [paperclip] [ffmpeg] Destination File Built
    2013-01-02T00:38:20+00:00 app[web.1]: [paperclip] [ffmpeg] Adding Source
    2013-01-02T00:38:20+00:00 app[web.1]: [paperclip] [ffmpeg] Adding Geometry
    2013-01-02T00:38:20+00:00 app[web.1]: [paperclip] [ffmpeg] Convert Options: 500x280
    2013-01-02T00:38:20+00:00 app[web.1]: [paperclip] [ffmpeg] Adding Format
    2013-01-02T00:38:20+00:00 app[web.1]: [paperclip] [ffmpeg] -i :source -y -vcodec libx264 -b 1000k -bt 200k -acodec libfaac -ab 56k -ac 2 -s 500x280 :dest
    2013-01-02T00:38:20+00:00 app[web.1]: [paperclip] [ffmpeg] Extracting Target Dimensions
    2013-01-02T00:38:20+00:00 app[web.1]: [paperclip] [ffmpeg] Building Parameters
    2013-01-02T00:38:20+00:00 app[web.1]: [paperclip] [ffmpeg] Target Size is Available
    2013-01-02T00:38:20+00:00 app[web.1]: [paperclip] [ffmpeg] Keeping Aspect Ratio
    2013-01-02T00:38:20+00:00 app[web.1]: Command :: ffmpeg -i '/tmp/sample20130102-2-4j5sgh.mov' -y -vcodec libx264 -b 1000k -bt 200k -acodec libfaac -ab 56k -ac 2 -s 500x280 '/tmp/sample20130102-2-4j5sgh20130102-2-1mr35ix.mp4'
    2013-01-02T00:38:20+00:00 app[web.1]: ffmpeg version git-2013-01-01-d079d1d Copyright (c) 2000-2012 the FFmpeg developers
    2013-01-02T00:38:20+00:00 app[web.1]:   built on Jan  1 2013 12:59:49 with gcc 4.4.3 (Ubuntu 4.4.3-4ubuntu5)
    2013-01-02T00:38:20+00:00 app[web.1]:   configuration: --enable-shared --disable-asm --prefix=/app/vendor/ffmpeg
    2013-01-02T00:38:20+00:00 app[web.1]:   libavfilter     3. 30.102 /  3. 30.102
    2013-01-02T00:38:20+00:00 app[web.1]:   libavcodec     54. 85.100 / 54. 85.100
    2013-01-02T00:38:20+00:00 app[web.1]:   libavdevice    54.  3.102 / 54.  3.102
    2013-01-02T00:38:20+00:00 app[web.1]:   libavutil      52. 13.100 / 52. 13.100
    2013-01-02T00:38:20+00:00 app[web.1]:   libswresample   0. 17.102 /  0. 17.102
    2013-01-02T00:38:20+00:00 app[web.1]:   libswscale      2.  1.103 /  2.  1.103
    2013-01-02T00:38:20+00:00 app[web.1]:   libavformat    54. 58.100 / 54. 58.100
    2013-01-02T00:38:21+00:00 app[web.1]:     creation_time   : 2013-01-02 00:36:58
    2013-01-02T00:38:21+00:00 app[web.1]:     minor_version   : 0
    2013-01-02T00:38:21+00:00 app[web.1]:     major_brand     : qt  
    2013-01-02T00:38:21+00:00 app[web.1]: Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/tmp/sample20130102-2-4j5sgh.mov':
    2013-01-02T00:38:21+00:00 app[web.1]:     model           : iPhone 4
    2013-01-02T00:38:21+00:00 app[web.1]:     compatible_brands: qt  
    2013-01-02T00:38:21+00:00 app[web.1]:     model-eng       : iPhone 4
    2013-01-02T00:38:21+00:00 app[web.1]:     make-eng        : Apple
    2013-01-02T00:38:21+00:00 app[web.1]:     date-eng        : 2012-12-28T00:39:34+1100
    2013-01-02T00:38:21+00:00 app[web.1]:     encoder         : 6.0
    2013-01-02T00:38:21+00:00 app[web.1]:     encoder-eng     : 6.0
    2013-01-02T00:38:21+00:00 app[web.1]:   Duration: 00:00:00.03, start: 0.000000, bitrate: 9465 kb/s
    2013-01-02T00:38:21+00:00 app[web.1]:     Stream #0:0(und): Audio: aac (mp4a / 0x6134706D), 44100 Hz, mono, fltp, 75 kb/s
    2013-01-02T00:38:21+00:00 app[web.1]:     date            : 2012-12-28T00:39:34+1100
    2013-01-02T00:38:21+00:00 app[web.1]:       creation_time   : 2013-01-02 00:36:58
    2013-01-02T00:38:21+00:00 app[web.1]:     make            : Apple
    2013-01-02T00:38:21+00:00 app[web.1]:   Metadata:
    2013-01-02T00:38:21+00:00 app[web.1]:     Metadata:
    2013-01-02T00:38:21+00:00 app[web.1]:       handler_name    : Core Media Data Handler
    2013-01-02T00:38:21+00:00 app[web.1]:     Stream #0:1(und): Video: h264 (Main) (avc1 / 0x31637661), yuv420p, 640x360 [SAR 1:1 DAR 16:9], 8605 kb/s, 30 fps, 30 tbr, 600 tbn, 1200 tbc
    2013-01-02T00:38:21+00:00 app[web.1]:     Metadata:
    2013-01-02T00:38:21+00:00 app[web.1]:       handler_name    : Core Media Data Handler
    2013-01-02T00:38:21+00:00 app[web.1]: Unknown encoder 'libx264'
    2013-01-02T00:38:21+00:00 app[web.1]: Please use -b:a or -b:v, -b is ambiguous
    2013-01-02T00:38:21+00:00 app[web.1]:       creation_time   : 2013-01-02 00:36:58
    2013-01-02T00:38:21+00:00 app[web.1]: [paperclip] An error was received while processing: #
    2013-01-02T00:38:21+00:00 app[web.1]:   Rendered videos/new.html.erb within layouts/application (3.2ms)
    2013-01-02T00:38:21+00:00 heroku[router]: at=info method=POST path=/videos host=stark-sea-5654.herokuapp.com fwd=101.170.255.251 dyno=web.1 queue=0 wait=0ms connect=3ms service=3685ms status=200 bytes=1878
    2013-01-02T00:38:21+00:00 app[web.1]:   Rendered layouts/_footer.html.erb (0.0ms)
    2013-01-02T00:38:21+00:00 app[web.1]: Completed 200 OK in 342ms (Views: 124.8ms | ActiveRecord: 10.4ms)
    2013-01-02T00:38:21+00:00 app[web.1]:   Rendered layouts/_header.html.erb (1.2ms)

    Everything works fine until the message Unknown encoder 'libx264' so I'm thinking it's something to do with ffmpeg perhaps ?