Recherche avancée

Médias (0)

Mot : - Tags -/xmlrpc

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

Autres articles (62)

  • Websites made ​​with MediaSPIP

    2 mai 2011, par

    This page lists some websites based on MediaSPIP.

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

  • Contribute to a better visual interface

    13 avril 2011

    MediaSPIP is based on a system of themes and templates. Templates define the placement of information on the page, and can be adapted to a wide range of uses. Themes define the overall graphic appearance of the site.
    Anyone can submit a new graphic theme or template and make it available to the MediaSPIP community.

Sur d’autres sites (6973)

  • ffmepg suddently stopped working

    30 octobre 2013, par jdartland

    Hi Im using ffmpeg jwplayer to handle my video uploads. It worked just fine untill I added a video upload to a new model. My video files gets uploaded to the database but i can't play them in my jwplayer. I also noticed that ffmpeg converts files to avi eaven though I've specifyed it in both of my models to convert files into flv.

    Here is my javascrip "error" :

    Error loading player:
    No playable sources found.

    My models, tabels and vews shuld work cus I haven't changed anything in my old working post module.

    Here is whats happening in the upload :

    Started PATCH "/posts/dsdsdsdsd" for 127.0.0.1 at 2013-10-30 15:37:53 +0100
    Processing by PostsController#update as HTML
     Parameters: {"utf8"=>"✓", "authenticity_token"=>"4Xp=", "post"=>{"title"=>"dsdsdsdsd", "content"=>"sdsdsdsdsd", "photo_delete"=>"0", "video_delete"=>"0", "video"=>#, @original_filename="Drossel_10bar__Pressure_inner_wall.avi", @content_type="video/x-msvideo", @headers="Content-Disposition: form-data; name=\"post[video]\"; filename=\"Drossel_10bar__Pressure_inner_wall.avi\"\r\nContent-Type: video/x-msvideo\r\n">}, "commit"=>"Update Post", "id"=>"dsdsdsdsd"}
     Admin Load (0.9ms)  SELECT "admins".* FROM "admins" WHERE "admins"."id" = 1 ORDER BY "admins"."id" ASC LIMIT 1
     Post Load (0.5ms)  SELECT "posts".* FROM "posts" WHERE "posts"."permalink" = 'dsdsdsdsd' ORDER BY created_at desc LIMIT 1
      (0.2ms)  BEGIN
    [paperclip] [ffmpeg] ffmpeg -i "/tmp/Drossel_10bar__Pressure_inner_wall20131030-6965-14cqqt7.avi" 2>&1
    [paperclip] [ffmpeg] Command Success
    [paperclip] [ffmpeg] Making...
    [paperclip] [ffmpeg] Building Destination File: 'Drossel_10bar__Pressure_inner_wall20131030-6965-14cqqt7' + 'flv'
    [paperclip] [ffmpeg] Destination File Built
    [paperclip] [ffmpeg] Adding Geometry
    [paperclip] [ffmpeg] Extracting Target Dimensions
    [paperclip] [ffmpeg] Target Size is Available
    [paperclip] [ffmpeg] Keeping Aspect Ratio
    [paperclip] [ffmpeg] Resize
    [paperclip] [ffmpeg] Convert Options: 400x234
    [paperclip] [ffmpeg] Adding Format
    [paperclip] [ffmpeg] Adding Source
    [paperclip] [ffmpeg] Building Parameters
    [paperclip] [ffmpeg] -i :source -s 400x234 -y :dest
    Command :: ffmpeg -i '/tmp/Drossel_10bar__Pressure_inner_wall20131030-6965-14cqqt7.avi' -s 400x234 -y '/tmp/Drossel_10bar__Pressure_inner_wall20131030-6965-14cqqt720131030-6965-1fv54qn.flv'
    ffmpeg version 0.8.6-4:0.8.6-0ubuntu0.12.04.1, Copyright (c) 2000-2013 the Libav developers
     built on Apr  2 2013 17:02:36 with gcc 4.6.3
    *** THIS PROGRAM IS DEPRECATED ***
    This program is only provided for compatibility and will be removed in a future release. Please use avconv instead.
    Input #0, avi, from '/tmp/Drossel_10bar__Pressure_inner_wall20131030-6965-14cqqt7.avi':
     Metadata:
       encoder         : Lavf52.64.2
     Duration: 00:00:00.00, start: 0.000000, bitrate: -2147483 kb/s
       Stream #0.0: Video: mjpeg, yuvj422p, 1588x936, 15 tbr, 15 tbn, 15 tbc
    Incompatible pixel format 'yuvj422p' for codec 'flv', auto-selecting format 'yuv420p'
    [buffer @ 0xdcd280] w:1588 h:936 pixfmt:yuvj422p
    [scale @ 0xdcd7c0] w:1588 h:936 fmt:yuvj422p -> w:400 h:234 fmt:yuv420p flags:0x4
    Output #0, flv, to '/tmp/Drossel_10bar__Pressure_inner_wall20131030-6965-14cqqt720131030-6965-1fv54qn.flv':
     Metadata:
       encoder         : Lavf53.21.1
       Stream #0.0: Video: flv, yuv420p, 400x234, q=2-31, 200 kb/s, 1k tbn, 15 tbc
    Stream mapping:
     Stream #0.0 -> #0.0
    Press ctrl-c to stop encoding
    frame=  451 fps=118 q=2.2 Lsize=     962kB time=30.07 bitrate= 262.1kbits/s    
    video:955kB audio:0kB global headers:0kB muxing overhead 0.759673%
    [paperclip] [qtfaststart] :source :dest
    Command :: qt-faststart '/tmp/Drossel_10bar__Pressure_inner_wall20131030-6965-14cqqt720131030-6965-1fv54qn.flv' '/tmp/Drossel_10bar__Pressure_inner_wall20131030-6965-14cqqt720131030-6965-1fv54qn20131030-6965-1a8cksd.flv'
     Post Exists (0.7ms)  SELECT 1 AS one FROM "posts" WHERE ("posts"."title" = 'dsdsdsdsd' AND "posts"."id" != 37) LIMIT 1
     SQL (0.7ms)  UPDATE "posts" SET "video_file_name" = $1, "video_content_type" = $2, "video_file_size" = $3, "video_updated_at" = $4, "updated_at" = $5 WHERE "posts"."id" = 37  [["video_file_name", "Drossel_10bar__Pressure_inner_wall.avi"], ["video_content_type", "video/x-msvideo"], ["video_file_size", 41766866], ["video_updated_at", Wed, 30 Oct 2013 14:37:53 UTC +00:00], ["updated_at", Wed, 30 Oct 2013 14:37:57 UTC +00:00]]
      (102.0ms)  COMMIT
    Redirected to http://0.0.0.0:3000/posts/dsdsdsdsd
    Completed 302 Found in 4078ms (ActiveRecord: 105.0ms)


    Started GET "/posts/dsdsdsdsd" for 127.0.0.1 at 2013-10-30 15:37:57 +0100
    Processing by PostsController#show as HTML
     Parameters: {"id"=>"dsdsdsdsd"}
     Post Load (0.5ms)  SELECT "posts".* FROM "posts" WHERE "posts"."permalink" = 'dsdsdsdsd' ORDER BY created_at desc LIMIT 1
     Admin Load (0.4ms)  SELECT "admins".* FROM "admins" WHERE "admins"."id" = 1 ORDER BY "admins"."id" ASC LIMIT 1
     Rendered posts/show.html.erb within layouts/application (4.3ms)
    Completed 200 OK in 17ms (Views: 14.3ms | ActiveRecord: 0.9ms)
  • Can't preserve metadata in ffmpeg video conversion

    30 avril 2017, par sakovias

    I would like to preserve the creation time metadata when I convert videos using ffmpeg/avconv. Here is the file I’m trying to convert :

    $ ffmpeg -i in.avi
    ffmpeg version 0.8.6-4:0.8.6-0ubuntu0.12.04.1, Copyright (c) 2000-2013 the Libav developers
     built on Apr  2 2013 17:00:59 with gcc 4.6.3
    Input #0, avi, from 'in.avi':
     Metadata:
       creation_time   : 2013-08-12 06:59:14
       encoder         : CanonMVI06
     Duration: 00:00:12.26, start: 0.000000, bitrate: 14549 kb/s
       Stream #0.0: Video: mjpeg, yuvj422p, 640x480, 30 tbr, 30 tbn, 30 tbc
       Stream #0.1: Audio: pcm_u8, 11024 Hz, 1 channels, u8, 88 kb/s

    In the first approach I run

    $ ffmpeg -i in.avi -vcodec libx264 -acodec libmp3lame -r 30 -map_metadata 0 out.avi

    and get an output file which doesn’t have the ’creation_date’ metadata that I’d like to keep :

    $ ffmpeg -i out.avi
    ffmpeg version 0.8.6-4:0.8.6-0ubuntu0.12.04.1, Copyright (c) 2000-2013 the Libav developers
     built on Apr  2 2013 17:00:59 with gcc 4.6.3
    [avi @ 0x83ba260] max_analyze_duration reached
    Input #0, avi, from 'out.avi':
     Metadata:
       encoder         : Lavf53.21.1
     Duration: 00:00:12.38, start: 0.000000, bitrate: 704 kb/s
       Stream #0.0: Video: h264 (Main), yuv420p, 640x480, 30 fps, 30 tbr, 30 tbn, 60 tbc
       Stream #0.1: Audio: mp3, 11025 Hz, mono, s16, 200 kb/s

    I also tried another approach

    $ ffmpeg -i in.avi -f ffmetadata metadata.txt
    $ ffmpeg -i in.avi -f ffmetadata -i metadata.txt -vcodec libx264 -acodec libmp3lame -r 30 out.avi

    with the same success even though metadata.txt has the right info :

    ;FFMETADATA1
    creation_time=2013-08-12 06:59:14
    encoder=CanonMVI06

    What am I doing wrong ?

  • Error using ffmpeg image2pipe with phantomjs to render video from webpage screenshots

    14 novembre 2016, par user1690179

    I am trying to use phantomjs with ffmpeg to complie videos from screenshots of a webpage as described here :
    https://groups.google.com/forum/# !msg/phantomjs/wluVGGjhL90/oGBXqh7QP44J

    I have the following test.js file :

    var page = require('webpage').create();

    page.clipRect = { top: 0, left: 0, width: 900, height: 800};
    page.viewportSize = { width: 900, height: 800};

    var url = 'http://dl.dropbox.com/u/621993/voronoi/voronoi.html';
    var frames = 100;

    page.open(url, function(){
       setInterval(function(){
           page.render('/dev/stdout');

           if( frames == 0 ){
               phantom.exit();
           }

           frames--;

       }, 100);
    });

    Then I run this command, taken from the link above :

    $ phantomjs test.js |ffmpeg -c:v png -f image2pipe -r 10 -sameq -i - -y test.mp4

    Including -sameq causes an error in ffmpeg, so I took it out and ran :

    $ phantomjs test.js |ffmpeg -c:v png -f image2pipe -r 10 -i - -y test.mp4

    I get the following output from ffmpeg :

    ffmpeg version 2.0 Copyright (c) 2000-2013 the FFmpeg developers
     built on Jul 22 2013 09:14:18 with llvm-gcc 4.2.1 (LLVM build 2336.11.00)
     configuration: --prefix=/Volumes/Ramdisk/sw --enable-gpl --enable-pthreads --enable-version3 --enable-libspeex --enable-libvpx --disable-decoder=libvpx --enable-libmp3lame --enable-libtheora --enable-libvorbis --enable-libx264 --enable-avfilter --enable-libopencore_amrwb --enable-libopencore_amrnb --enable-filters --enable-libgsm --arch=x86_64 --enable-runtime-cpudetect
     libavutil      52. 38.100 / 52. 38.100
     libavcodec     55. 18.102 / 55. 18.102
     libavformat    55. 12.100 / 55. 12.100
     libavdevice    55.  3.100 / 55.  3.100
     libavfilter     3. 79.101 /  3. 79.101
     libswscale      2.  3.100 /  2.  3.100
     libswresample   0. 17.102 /  0. 17.102
     libpostproc    52.  3.100 / 52.  3.100
    Input #0, image2pipe, from 'pipe:':
     Duration: N/A, bitrate: N/A
       Stream #0:0: Video: png, rgba, 900x800 [SAR 2835:2835 DAR 9:8], 10 fps, 10 tbr, 10 tbn, 10 tbc
    No pixel format specified, yuv444p for H.264 encoding chosen.
    Use -pix_fmt yuv420p for compatibility with outdated media players.
    [libx264 @ 0x7f8973803800] using SAR=1/1
    [libx264 @ 0x7f8973803800] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX
    [libx264 @ 0x7f8973803800] profile High 4:4:4 Predictive, level 3.1, 4:4:4 8-bit
    [libx264 @ 0x7f8973803800] 264 - core 133 - H.264/MPEG-4 AVC codec - Copyleft 2003-2013 - http://www.videolan.org/x264.html - options: cabac=1 ref=3 deblock=1:0:0 analyse=0x3:0x113 me=hex subme=7 psy=1 psy_rd=1.00:0.00 mixed_ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=1 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=4 threads=6 lookahead_threads=1 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=3 b_pyramid=2 b_adapt=1 b_bias=0 direct=1 weightb=1 open_gop=0 weightp=2 keyint=250 keyint_min=10 scenecut=40 intra_refresh=0 rc_lookahead=40 rc=crf mbtree=1 crf=23.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00
    Output #0, mp4, to 'test.mp4':
     Metadata:
       encoder         : Lavf55.12.100
       Stream #0:0: Video: h264 (libx264) ([33][0][0][0] / 0x0021), yuv444p, 900x800 [SAR 1:1 DAR 9:8], q=-1--1, 10240 tbn, 10 tbc
    Stream mapping:
     Stream #0:0 -> #0:0 (png -> libx264)
    pipe:: Input/output error0 size=      65kB time=00:00:04.10 bitrate= 130.5kbits/s    
    frame=   93 fps= 15 q=-1.0 Lsize=      71kB time=00:00:09.10 bitrate=  63.8kbits/s    
    video:69kB audio:0kB subtitle:0 global headers:0kB muxing overhead 2.696543%
    [libx264 @ 0x7f8973803800] frame I:1     Avg QP:15.17  size: 50212
    [libx264 @ 0x7f8973803800] frame P:24    Avg QP: 8.91  size:   575
    [libx264 @ 0x7f8973803800] frame B:68    Avg QP: 9.69  size:    87
    [libx264 @ 0x7f8973803800] consecutive B-frames:  2.2%  0.0%  3.2% 94.6%
    [libx264 @ 0x7f8973803800] mb I  I16..4: 64.2% 19.6% 16.1%
    [libx264 @ 0x7f8973803800] mb P  I16..4:  2.8%  0.2%  0.1%  P16..4:  0.5%  0.0%  0.0%  0.0%  0.0%    skip:96.3%
    [libx264 @ 0x7f8973803800] mb B  I16..4:  0.0%  0.0%  0.0%  B16..8:  3.1%  0.0%  0.0%  direct: 0.0%  skip:96.9%  L0:76.4% L1:23.6% BI: 0.0%
    [libx264 @ 0x7f8973803800] 8x8 transform intra:13.9% inter:54.0%
    [libx264 @ 0x7f8973803800] coded y,u,v intra: 7.4% 4.8% 5.2% inter: 0.1% 0.1% 0.1%
    [libx264 @ 0x7f8973803800] i16 v,h,dc,p: 68% 31%  2%  0%
    [libx264 @ 0x7f8973803800] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 48% 20% 32%  0%  0%  0%  0%  0%  0%
    [libx264 @ 0x7f8973803800] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 30% 31% 20%  3%  3%  3%  5%  3%  4%
    [libx264 @ 0x7f8973803800] Weighted P-Frames: Y:0.0% UV:0.0%
    [libx264 @ 0x7f8973803800] ref P L0: 91.9%  0.0%  7.4%  0.7%
    [libx264 @ 0x7f8973803800] ref B L0: 20.5% 79.5%
    [libx264 @ 0x7f8973803800] ref B L1: 99.9%  0.1%
    [libx264 @ 0x7f8973803800] kb/s:60.16

    The output test.mp4 file is a blank 10 second video - just a black screen. From what i can tell, I am getting a pipe: : Input/output error from ffmpeg.

    I am pretty new to ffmpeg and I have tried changing some parameters and video codecs in the ffmpeg call, but have not found a solution yet. Can anyone advise ?