Recherche avancée

Médias (0)

Mot : - Tags -/médias

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

Autres articles (74)

  • Organiser par catégorie

    17 mai 2013, par

    Dans MédiaSPIP, une rubrique a 2 noms : catégorie et rubrique.
    Les différents documents stockés dans MédiaSPIP peuvent être rangés dans différentes catégories. On peut créer une catégorie en cliquant sur "publier une catégorie" dans le menu publier en haut à droite ( après authentification ). Une catégorie peut être rangée dans une autre catégorie aussi ce qui fait qu’on peut construire une arborescence de catégories.
    Lors de la publication prochaine d’un document, la nouvelle catégorie créée sera proposée (...)

  • Publier sur MédiaSpip

    13 juin 2013

    Puis-je poster des contenus à partir d’une tablette Ipad ?
    Oui, si votre Médiaspip installé est à la version 0.2 ou supérieure. Contacter au besoin l’administrateur de votre MédiaSpip pour le savoir

  • Use, discuss, criticize

    13 avril 2011, par

    Talk to people directly involved in MediaSPIP’s development, or to people around you who could use MediaSPIP to share, enhance or develop their creative projects.
    The bigger the community, the more MediaSPIP’s potential will be explored and the faster the software will evolve.
    A discussion list is available for all exchanges between users.

Sur d’autres sites (6342)

  • Multiply blend mode using FFMPEG adds green overlay

    25 mars 2014, par Barto

    I'm currently working on a project which needs video editing.
    Here for I'm using ffmpeg, which is working pretty well, except for 1 filter.
    Every video should get an overlay with the Photoshop multiply blend mode.
    I'm using the ffmpeg blend mode, but unfortunately the video gets a green overlay as you can see in the screenshots.

    Original Image
    Original Image

    Edited with ffmpegFFMPEG

    What I'm trying to achieve
    Edited

    Does this has something to do with the mode I'm working in ?
    Below is my current code

    #!/bin/bash
    vagrant ssh -c "./ffmpeg \
    -i /vagrant/public/uploads/video/bw_RzWecVH02p.avi -i /vagrant/public/img/red_ellipse.png \
    -filter_complex "blend=all_mode='multiply'" \
    /vagrant/public/uploads/video/overlay_RzWecVH02p.mp4"

    Here is my ffmpeg output

    $ overlay_edit.sh
    ffmpeg version N-61445-gdded5ed Copyright (c) 2000-2014 the FFmpeg developers
     built on Mar 14 2014 05:12:40 with gcc 4.6 (Debian 4.6.3-1)
     configuration: --prefix=/root/ffmpeg-static/32bit --arch=x86_32 --extra-cflags
    ='-m32 -I/root/ffmpeg-static/32bit/include -static' --extra-ldflags='-m32 -L/roo
    t/ffmpeg-static/32bit/lib -static' --extra-libs='-lxml2 -lexpat -lfreetype' --en
    able-static --disable-shared --disable-ffserver --disable-doc --enable-bzlib --e
    nable-zlib --enable-postproc --enable-runtime-cpudetect --enable-libx264 --enabl
    e-gpl --enable-libtheora --enable-libvorbis --enable-libmp3lame --enable-gray --
    enable-libass --enable-libfreetype --enable-libopenjpeg --enable-libspeex --enab
    le-libvo-aacenc --enable-libvo-amrwbenc --enable-version3 --enable-libvpx
     libavutil      52. 66.101 / 52. 66.101
     libavcodec     55. 52.102 / 55. 52.102
     libavformat    55. 34.101 / 55. 34.101
     libavdevice    55. 11.100 / 55. 11.100
     libavfilter     4.  3.100 /  4.  3.100
     libswscale      2.  5.101 /  2.  5.101
     libswresample   0. 18.100 /  0. 18.100
     libpostproc    52.  3.100 / 52.  3.100
    Input #0, avi, from '/vagrant/public/uploads/video/bw_RzWecVH02p.avi':
     Metadata:
       comment         : Converted by www.scriptcam.com
       encoder         : Lavf55.34.101
     Duration: 00:00:06.10, start: 0.000000, bitrate: 315 kb/s
       Stream #0:0: Video: mpeg4 (Simple Profile) (FMP4 / 0x34504D46), yuv420p, 320
    x240 [SAR 1:1 DAR 4:3], 268 kb/s, 30 tbr, 30 tbn, 30 tbc
       Stream #0:1: Audio: mp3 (U[0][0][0] / 0x0055), 16000 Hz, mono, s16p, 24 kb/s

    Input #1, image2, from '/vagrant/public/img/red_ellipse.png':
     Duration: 00:00:00.04, start: 0.000000, bitrate: N/A
       Stream #1:0: Video: png, rgb24, 320x240 [SAR 11811:11811 DAR 4:3], 25 tbr, 2
    5 tbn, 25 tbc
    [libx264 @ 0xa9c70c0] using SAR=1/1
    [libx264 @ 0xa9c70c0] using cpu capabilities: MMX2 SSE2Fast SSSE3 FastShuffle Ca
    che64
    [libx264 @ 0xa9c70c0] profile High, level 1.3
    [libx264 @ 0xa9c70c0] 264 - core 129 r2230 1cffe9f - H.264/MPEG-4 AVC codec - Co
    pyleft 2003-2012 - http://www.videolan.org/x264.html - options: cabac=1 ref=3 de
    block=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 chr
    oma_qp_offset=-2 threads=1 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=25 scene
    cut=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 '/vagrant/public/uploads/video/overlay_RzWecVH02p.mp4':
     Metadata:
       comment         : Converted by www.scriptcam.com
       encoder         : Lavf55.34.101
       Stream #0:0: Video: h264 (libx264) ([33][0][0][0] / 0x0021), yuv420p, 320x24
    0 [SAR 1:1 DAR 4:3], q=-1--1, 15360 tbn, 30 tbc (default)
       Stream #0:1: Audio: aac (libvo_aacenc) ([64][0][0][0] / 0x0040), 16000 Hz, m
    ono, s16, 128 kb/s
    Stream mapping:
     Stream #0:0 (mpeg4) -> blend:top (graph 0)
     Stream #1:0 (png) -> blend:bottom (graph 0)
     blend (graph 0) -> Stream #0:0 (libx264)
     Stream #0:1 -> #0:1 (mp3 -> libvo_aacenc)
    Press [q] to stop, [?] for help
    frame=   91 fps=0.0 q=29.0 size=      42kB time=00:00:02.90 bitrate= 117.7kbits/
    frame=  140 fps=135 q=29.0 size=     105kB time=00:00:04.57 bitrate= 187.3kbits/
    frame=  182 fps=106 q=29.0 Lsize=     178kB time=00:00:06.04 bitrate= 241.9kbits
    /s dup=52 drop=0
    video:158kB audio:16kB subtitle:0 data:0 global headers:0kB muxing overhead 2.25
    8588%
    [libx264 @ 0xa9c70c0] frame I:1     Avg QP:21.21  size:  9865
    [libx264 @ 0xa9c70c0] frame P:128   Avg QP:25.34  size:  1149
    [libx264 @ 0xa9c70c0] frame B:53    Avg QP:28.50  size:    88
    [libx264 @ 0xa9c70c0] consecutive B-frames: 59.3%  3.3%  6.6% 30.8%
    [libx264 @ 0xa9c70c0] mb I  I16..4:  1.3% 69.3% 29.3%
    [libx264 @ 0xa9c70c0] mb P  I16..4:  1.0%  5.8%  0.3%  P16..4: 35.1%  9.9%  5.6%
     0.0%  0.0%    skip:42.4%
    [libx264 @ 0xa9c70c0] mb B  I16..4:  0.1%  0.4%  0.0%  B16..8: 11.8%  0.5%  0.1%
     direct: 0.1%  skip:86.9%  L0:48.6% L1:47.7% BI: 3.7%
    [libx264 @ 0xa9c70c0] 8x8 transform intra:80.6% inter:80.1%
    [libx264 @ 0xa9c70c0] coded y,uvDC,uvAC intra: 73.1% 14.6% 5.3% inter: 13.2% 2.4
    % 0.4%
    [libx264 @ 0xa9c70c0] i16 v,h,dc,p: 14% 49% 28%  9%
    [libx264 @ 0xa9c70c0] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 15% 28% 32%  4%  4%  4%  4%
     4%  6%
    [libx264 @ 0xa9c70c0] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 21% 30% 14%  5%  6%  8%  5%
     5%  6%
    [libx264 @ 0xa9c70c0] i8c dc,h,v,p: 76% 13% 11%  1%
    [libx264 @ 0xa9c70c0] Weighted P-Frames: Y:0.8% UV:0.0%
    [libx264 @ 0xa9c70c0] ref P L0: 72.7% 16.4%  8.1%  2.8%  0.0%
    [libx264 @ 0xa9c70c0] ref B L0: 84.7% 13.1%  2.1%
    [libx264 @ 0xa9c70c0] ref B L1: 95.2%  4.8%
    [libx264 @ 0xa9c70c0] kb/s:213.09
    [libvo_aacenc @ 0xa9c82c0] 1 frames left in the queue on closing
    Connection to 127.0.0.1 closed.
  • Problems transcoding GoToMeeting output using FFmpeg

    20 avril 2014, par user3466413

    I’m having a nightmare of a time transcoding output from GoToMeeting, recorded using the latest OS X version, to something web-playable. No matter what settings I use, I end up with time syncing problems, at least with this particular recording.

    The .mov file looks like this. Note that it’s variable framerate, and because it’s mostly just a screencast of a PowerPoint presentation with occasional mouse movement, the output should be VFR too to produce a small file yet still preserve occasional motion.

    $ ffmpeg -i original.mov
    ffmpeg version N-58273-g18df75f Copyright (c) 2000-2013 the FFmpeg developers
     built on Nov 19 2013 10:34:42 with Apple LLVM version 5.0 (clang-500.2.79) (based on LLVM 3.3svn)
     configuration: --enable-gpl --enable-version3 --enable-nonfree --enable-postproc --enable-libass --enable-libcelt --enable-libfaac --enable-libfdk-aac --enable-libfreetype --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-openssl --enable-libopus --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libvo-aacenc --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libxvid --prefix=/usr/local
     libavutil      52. 53.100 / 52. 53.100
     libavcodec     55. 43.101 / 55. 43.101
     libavformat    55. 21.100 / 55. 21.100
     libavdevice    55.  5.100 / 55.  5.100
     libavfilter     3. 91.100 /  3. 91.100
     libswscale      2.  5.101 /  2.  5.101
     libswresample   0. 17.104 /  0. 17.104
     libpostproc    52.  3.100 / 52.  3.100
    [mov,mp4,m4a,3gp,3g2,mj2 @ 0x7f822980a000] decoding for stream 0 failed
    Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'original.mov':
     Metadata:
       major_brand     : qt
       minor_version   : 537199360
       compatible_brands: qt
       creation_time   : 2014-03-20 02:09:22
     Duration: 03:08:26.72, start: 0.000000, bitrate: 75 kb/s
       Stream #0:0(und): Video: h264 (Main) (avc1 / 0x31637661), yuv420p(tv), 1368x728 [SAR 1:1 DAR 171:91], 20 kb/s, 0.60 fps, 600 tbr, 600 tbn, 1200 tbc (default)
       Metadata:
         creation_time   : 2014-03-20 02:09:22
         handler_name    : Apple Alias Data Handler
       Stream #0:1(eng): Audio: aac (mp4a / 0x6134706D), 16000 Hz, mono, fltp, 47 kb/s (default)
       Metadata:
         creation_time   : 2014-03-20 02:09:22
         handler_name    : Apple Alias Data Handler
       Stream #0:2(eng): Data: none (rtp  / 0x20707472), 6 kb/s
       Metadata:
         creation_time   : 2014-03-20 02:09:22
         handler_name    : Apple Alias Data Handler
       Stream #0:3(und): Data: none (rtp  / 0x20707472), 0 kb/s
       Metadata:
         creation_time   : 2014-03-20 02:09:22
         handler_name    : Apple Alias Data Handler

    The .mov file (which I unfortunately cannot publicly post) plays back properly in any application I use : VLC, Media Player Classic, and QuickTime. However, playing the transcoded output always exhibits the following symptoms :

    • Audio out of sync with what the video is showing, sometimes to the order of minutes off towards the end of this three hour recording
    • In the case of Media Player Classic, clicking a spot on the timeline actually moves the playhead to a spot on the timeline near where I clicked, but not directly on it.

    There are the arguments I’m using for a .mp4 encoding that is playable in all browsers that support H.264. Note that this is on Windows but Linux exhibits the same problems.

    ffmpeg.exe -y -i original.mov -i watermark.png -filter_complex "[0:v] crop=1184:720:178:6,scale=1184:720,setsar=1/1; [0:v][1:v] overlay=1242:648 [0:v]" -vcodec libx264 -acodec libvo_aacenc -q:a 80 -crf 30 -ac 1 -ar 16000 -strict -2 -profile:v baseline -level 3 outout.mkv

    The arguments, other than those that are self-explanatory or trivial :

    • -filter_complex : Crop excess letterboxing/pillarboxing from the video and set the aspect ratio to 1:1 for square pixels (something Safari needed), then overlay a watermark from a PNG and resize the output to 720p
    • -crf 30 : encode the video at constant quality, variable bitrate
    • -ac 1 -ar 16000 : encode with mono audio at 16 KHz
    • -strict -2 -profile:v baseline -level 3 : encode using FFmpeg’s "experimental" H.264 encoder using the Baseline level 3 profile for web compatibility

    Note that yes, this goes to an MKV container initially because, for some reason, encoding directly to a .mp4 container hangs FFmpeg. I then use -acodec copy -vcodec copy to copy the audio and video streams directly into a .mp4 container. Finally I pass the output through MP4Box to interleave it so it can be progressively downloaded.

    When transcoding, FFmpeg does drop frames, which I suspect is related to the problem, with output like this :

    FFmpeg: frame=  232 fps= 26 q=24.0 size=    5983kB time=00:32:44.57 bitrate=  24.9kbits/s dup=0 drop=1487

    When I then later attempt to mux it into the .mp4 container from this temporary .mkv container, I get a flood of warnings like this :

    [mp4 @ 0297cd00] Non-monotonous DTS in output stream 0:0; previous: 6341306, current: 6007024; changing to 6341307. This may result in incorrect timestamps in the output file.

    Now I wouldn’t be surprised if there is indeed some problem with the source file. However, if so, I need to definitively prove just how it’s broken.

    Any thoughts ?

  • ffmpeg failing to convert

    27 mars 2014, par Daniel7912

    I am using the following command to convert a mp4 on my server to webm as part of a Node.js script.

    var command = execSync('ffmpeg -i '+video+' -vpre libvpx-720p -cpu-used -5 -deadline realtime -b 3900k -an -f webm -y '+saveTo);

    When running the command in a regular terminal, it works fine. However, when running it as above using the execSync() node package, I get the following console output.

    Error: ffmpeg version 1.0.8 Copyright (c) 2000-2013 the FFmpeg developers
     built on Mar 27 2014 17:09:06 with gcc 4.7.3 (Gentoo 4.7.3-r1 p1.3, pie-0.5.5)
     configuration: --prefix=/usr --libdir=/usr/lib64 --shlibdir=/usr/lib64 --mandir=/usr/share/man --enable-shared --cc=x86_64-pc-linux-gnu-gcc --cxx=x86_64-pc-linux-gnu-
    g++ --ar=x86_64-pc-linux-gnu-ar --optflags='-O2 -pipe -march=native -fomit-frame-pointer' --extra-cflags='-O2 -pipe -march=native -fomit-frame-pointer' --extra-cxxflags
    ='-O2 -pipe -march=native -fomit-frame-pointer' --disable-static --enable-gpl --enable-version3 --enable-postproc --enable-avfilter --enable-avresample --disable-stripp
    ing --disable-debug --disable-doc --disable-vaapi --disable-vdpau --disable-ffplay --disable-runtime-cpudetect --enable-libmp3lame --enable-libvo-aacenc --enable-libthe
    ora --enable-libfdk-aac --enable-nonfree --disable-indev=v4l2 --disable-indev=alsa --disable-indev=oss --disable-indev=jack --disable-outdev=alsa --disable-outdev=oss -
    -disable-outdev=sdl --enable-libvorbis --enable-libvpx --disable-amd3dnow --disable-amd3dnowext --disable-altivec --disable-avx --disable-mmxext --disable-ssse3 --disab
    le-vis --disabl  libavutil      51. 73.101 / 51. 73.101
     libavcodec     54. 59.100 / 54. 59.100
     libavformat    54. 29.104 / 54. 29.104
     libavdevice    54.  2.101 / 54.  2.101
     libavfilter     3. 17.100 /  3. 17.100
     libswscale      2.  1.101 /  2.  1.101
     libswresample   0. 15.100 /  0. 15.100
     libpostproc    52.  0.100 / 52.  0.100
    Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/path/to/video/input.mp4':
     Metadata:
       major_brand     : mp42
       minor_version   : 0
       compatible_brands: mp42isomavc1
       creation_time   : 2013-08-24 21:58:35
       encoder         : HandBrake 0.9.9 2013051800
     Duration: 00:06:31.46, start: 0.000000, bitrate: 5092 kb/s
       Stream #0:0(und): Video: h264 (Main) (avc1 / 0x31637661), yuv420p, 1920x1080 [SAR 1:1 DAR 16:9], 4919 kb/s, 25 fps, 25 tbr, 90k tbn, 50 tbc
       Metadata:
         creation_time   : 2013-08-24 21:58:35
       Stream #0:1(eng): Audio: aac (mp4a / 0x6134706D), 44100 Hz, stereo, s16, 168 kb/s
       Metadata:
         creation_time   : 2013-08-24 21:58:35
    Please use -b:a or -b:v, -b is ambiguous
    [libvpx @ 0x7f0c40] v1.3.0
    Output #0, webm, to '/path/to/video/output.webm':
     Metadata:
       major_brand     : mp42
       minor_version   : 0
       compatible_brands: mp42isomavc1
       encoder         : Lavf54.29.104
       Stream #0:0(und): Video: vp8, yuv420p, 1920x1080 [SAR 1:1 DAR 16:9], q=11-51, 3900 kb/s, 1k tbn, 25 tbc
       encoder         : Lavf54.29.104                                                                                                                          [4009/9202]
       Stream #0:0(und): Video: vp8, yuv420p, 1920x1080 [SAR 1:1 DAR 16:9], q=11-51, 3900 kb/s, 1k tbn, 25 tbc
       Metadata:
         creation_time   : 2013-08-24 21:58:35
    Stream mapping:
     Stream #0:0 -> #0:0 (h264 -> libvpx)
    Press [q] to stop, [?] for help
    [h264 @ 0x8f42a0] AVC: nal size 3235393
       Last message repeated 1 times
    [h264 @ 0x8f42a0] no frame!
    [h264 @ 0x7be7e0] concealing 7123 DC, 7123 AC, 7123 MV errors in P frame
    [h264 @ 0x8f46c0] AVC: nal size 2572289
       Last message repeated 1 times
    [h264 @ 0x8f46c0] no frame!
    [h264 @ 0x8f4ae0] AVC: nal size 11559745
       Last message repeated 1 times
    [h264 @ 0x8f4ae0] no frame!
    [h264 @ 0x8f4f00] AVC: nal size 781975966
       Last message repeated 1 times
    [h264 @ 0x8f4f00] no frame!
    [h264 @ 0x7be7e0] AVC: nal size -1537130086
       Last message repeated 1 times
    [h264 @ 0x7be7e0] no frame!
    Error while decoding stream #0:0: Operation not permitted
    [h264 @ 0x8f42a0] AVC: nal size -1303101030
       Last message repeated 1 times
    [h264 @ 0x8f42a0] no frame!
    Error while decoding stream #0:0: Operation not permitted
    [h264 @ 0x8f46c0] AVC: nal size 833290655
       Last message repeated 1 times
    [h264 @ 0x8f46c0] no frame!
    Error while decoding stream #0:0: Operation not permitted
    [h264 @ 0x8f4ae0] AVC: nal size -816365157
       Last message repeated 1 times
    [h264 @ 0x8f4ae0] no frame!
    Error while decoding stream #0:0: Operation not permitted
    [h264 @ 0x8f4f00] AVC: nal size 776798623
       Last message repeated 1 times
    [h264 @ 0x8f4f00] no frame!
    Error while decoding stream #0:0: Operation not permitted
    [h264 @ 0x7be7e0] AVC: nal size -824622693
       Last message repeated 1 times
    [h264 @ 0x7be7e0] no frame!
    Error while decoding stream #0:0: Operation not permitted
    [h264 @ 0x8f42a0] AVC: nal size 1276789151
    Error while decoding stream #0:0: Operation not permitted
    frame=    4 fps=0.0 q=0.0 Lsize=     107kB time=00:00:00.16 bitrate=5476.5kbits/s    
    video:106kB audio:0kB subtitle:0 global headers:0kB muxing overhead 0.473334%
    Received signal 2: terminating.

    The 'no frame' bits repeat several thousand times before it reaches the final section.

    Could someone tell me what's wrong ?

    Thanks for any help