Recherche avancée

Médias (1)

Mot : - Tags -/biomaping

Autres articles (112)

  • Personnaliser en ajoutant son logo, sa bannière ou son image de fond

    5 septembre 2013, par

    Certains thèmes prennent en compte trois éléments de personnalisation : l’ajout d’un logo ; l’ajout d’une bannière l’ajout d’une image de fond ;

  • Ecrire une actualité

    21 juin 2013, par

    Présentez les changements dans votre MédiaSPIP ou les actualités de vos projets sur votre MédiaSPIP grâce à la rubrique actualités.
    Dans le thème par défaut spipeo de MédiaSPIP, les actualités sont affichées en bas de la page principale sous les éditoriaux.
    Vous pouvez personnaliser le formulaire de création d’une actualité.
    Formulaire de création d’une actualité Dans le cas d’un document de type actualité, les champs proposés par défaut sont : Date de publication ( personnaliser la date de publication ) (...)

  • 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

Sur d’autres sites (7513)

  • I got a green overlay in my video when using multiply blend mode in ffmpeg [on hold]

    30 avril 2014, par GJG

    i´m trying to blend two videos with the multiply blend mode. But I got a green overlay in the resulting video.

    This is a image where are one frame of each input video and one frame of the resulting video
    Composition

    I got this script, this is extracted from a part of my code :

    #!/bin/bash
    ffmpeg -y -i video_top.avi -i video_background.mp4 -filter_complex "blend=all_mode=multiply" -f mp4 -vcodec libx264 out.mp4

    This is the ffmpeg output :

    built on Mar 20 2014 14:51:45 with gcc 4.7 (Ubuntu/Linaro 4.7.2-2ubuntu1)
    configuration: --enable-gpl --enable-libass --enable-libfaac --enable-libfdk-aac --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libspeex --enable-librtmp --enable-libtheora --enable-libvorbis --enable-libx264 --enable-nonfree --enable-version3
    libavutil      52. 67.100 / 52. 67.100
    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.102 /  2.  5.102
    libswresample   0. 18.100 /  0. 18.100
    libpostproc    52.  3.100 / 52.  3.100
    Input #0, avi, from 'video_top.avi':
    Metadata:
    encoder         : Lavf54.29.104
    Duration: 00:00:10.72, start: 0.000000, bitrate: 688 kb/s
    Stream #0:0: Video: h264 (High) (H264 / 0x34363248), yuv420p, 704x576 [SAR 1:1 DAR 11:9], 682 kb/s, 25 fps, 25 tbr, 25 tbn, 50 tbc
    Input #1, mov,mp4,m4a,3gp,3g2,mj2, from 'video_background.mp4':
    Metadata:
    major_brand     : mp42
    minor_version   : 0
    compatible_brands: mp42mp41
    creation_time   : 2014-04-29 12:51:17
    Duration: 00:00:08.90, start: 0.033333, bitrate: 3417 kb/s
    Stream #1:0(eng): Video: h264 (Main) (avc1 / 0x31637661), yuv420p(tv), 704x576 [SAR 1:1 DAR 11:9], 3408 kb/s, 30 fps, 30 tbr, 30k tbn, 60 tbc (default)
    Metadata:
     creation_time   : 2014-04-29 12:51:17
     handler_name    : ?Mainconcept Video Media Handler
    [libx264 @ 0x2e42660] using SAR=1/1
    [libx264 @ 0x2e42660] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX
    [libx264 @ 0x2e42660] profile High, level 3.0
    [libx264 @ 0x2e42660] 264 - core 142 r2 d6b4e63 - H.264/MPEG-4 AVC codec - Copyleft 2003-2014 - 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=-2 threads=12 lookahead_threads=2 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 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 'out.mp4':
    Metadata:
    encoder         : Lavf55.34.101
    Stream #0:0: Video: h264 (libx264) ([33][0][0][0] / 0x0021), yuv420p, 704x576 [SAR 1:1 DAR 11:9], q=-1--1, 12800 tbn, 25 tbc (default)
    Stream mapping:
    Stream #0:0 (h264) -> blend:top
    Stream #1:0 (h264) -> blend:bottom
    blend -> Stream #0:0 (libx264)
    Press [q] to stop, [?] for help
    frame=  268 fps=121 q=-1.0 Lsize=     732kB time=00:00:10.64 bitrate= 563.2kbits/s
    video:728kB audio:0kB subtitle:0 data:0 global headers:0kB muxing overhead 0.539149%
    [libx264 @ 0x2e42660] frame I:2     Avg QP:17.96  size: 35789
    [libx264 @ 0x2e42660] frame P:77    Avg QP:21.68  size:  5552
    [libx264 @ 0x2e42660] frame B:189   Avg QP:24.79  size:  1298
    [libx264 @ 0x2e42660] consecutive B-frames:  1.1% 11.2% 10.1% 77.6%
    [libx264 @ 0x2e42660] mb I  I16..4: 30.7% 36.5% 32.7%
    [libx264 @ 0x2e42660] mb P  I16..4:  3.0%  2.6%  0.4%  P16..4: 41.3% 14.4%  6.6%  0.0%  0.0%    skip:31.7%
    [libx264 @ 0x2e42660] mb B  I16..4:  0.2%  0.1%  0.0%  B16..8: 43.8%  2.8%  0.3%  direct: 0.2%  skip:52.5%  L0:42.2% L1:56.1% BI: 1.7%
    [libx264 @ 0x2e42660] 8x8 transform intra:40.7% inter:79.1%
    [libx264 @ 0x2e42660] coded y,uvDC,uvAC intra: 48.9% 29.0% 8.3% inter: 7.1% 4.5% 0.1%
    [libx264 @ 0x2e42660] i16 v,h,dc,p: 23% 19% 33% 26%
    [libx264 @ 0x2e42660] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 17% 15% 45%  3%  3%  3%  5%  3%  6%
    [libx264 @ 0x2e42660] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 32% 23% 19%  4%  3%  3%  7%  2%  7%
    [libx264 @ 0x2e42660] i8c dc,h,v,p: 67% 15% 16%  1%
    [libx264 @ 0x2e42660] Weighted P-Frames: Y:0.0% UV:0.0%
    [libx264 @ 0x2e42660] ref P L0: 67.4% 10.1% 17.0%  5.6%
    [libx264 @ 0x2e42660] ref B L0: 91.6%  7.3%  1.1%
    [libx264 @ 0x2e42660] ref B L1: 94.9%  5.1%
    [libx264 @ 0x2e42660] kb/s:555.48

    I don’t know what is wrong, and using others blend modes got others ridiculous results, like having a pink overlay in the video.

    Suggestions will be well appreciated, thanks very much.

  • Decoding h264 in mp4 fragment from IIS Smooth Streaming

    30 novembre 2013, par Julian

    So I've decided to try and make my own client for IIS's Smooth Streaming as a learning exercise and I'm struggling to decode the mp4 fragments.

    I have the following fragment :
    http://www.mediafire.com/download/n32660d920g291c/part+1.mp4

    Which when I try to decode using ffmpeg :

    C:\>ffplay.exe -f h264 -vcodec h264 -g 52 "part 1.mp4"
    ffplay version N-58502-g738ebb4 Copyright (c) 2003-2013 the FFmpeg developers built on Nov 27 2013 22:09:34 with gcc 4.8.2 (GCC)
    configuration: --disable-static --enable-shared --enable-gpl --enable-version3 --disable-w32threads --enable-avisynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enable-iconv --enable-libass --enable-libbluray --enable-libcaca --enable-libfreetype --enable-libgsm --enable-libilbc --enable-libmodplug --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-libschroedinger --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-libvorbis--enable-libvpx --enable-libwavpack --enable-libx264 --enable-libxavs --enable-libxvid --enable-zlib
     libavutil      52. 55.100 / 52. 55.100
     libavcodec     55. 44.100 / 55. 44.100
     libavformat    55. 21.102 / 55. 21.102
     libavdevice    55.  5.102 / 55.  5.102
     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
    [h264 @ 0000000001e58260] non-existing PPS referenced    0B f=0/0
    [h264 @ 0000000001e58260] non-existing PPS 25 referenced
    [h264 @ 0000000001e58260] decode_slice_header error
    [h264 @ 0000000001e58260] Invalid mix of idr and non-idr slices
    [h264 @ 0000000001e58260] sps_id out of range
       Last message repeated 4 times
    [h264 @ 0000000001e58260] non-existing PPS referenced
    [h264 @ 0000000001e58260] sps_id out of range
       Last message repeated 4 times
    [h264 @ 0000000001e58260] slice type too large (24) at 0 0
    [h264 @ 0000000001e58260] decode_slice_header error
    [h264 @ 0000000001e58260] no frame!
    [h264 @ 0000000001e4fa00] decoding for stream 0 failed
    [h264 @ 0000000001e4fa00] Could not find codec parameters for stream 0 (Video: h264): unspecified size
    Consider increasing the value for the 'analyzeduration' and 'probesize' options
    part 1.mp4: could not find codec parameters

    After reading I found the PPS/SPS comes from the CodecPrivateData in the manifest that IIS gives me, which I have as :

    000000016764001eacd940a03da10005161501312d000f162d960000000168ebe3cb22c0

    Binary : http://www.mediafire.com/download/hm3av6h3i1g7ojf/CodecPrivateData

    Which I think is annex b 00000001[SPS]00000001[PPS] but I have no idea what to do with it, I've tried putting it at the beginning of the file but get the same error, I also tried taking just the data in the mdat and sending that to ffmpeg but I get

    [h264 @ 0000000001da8a80] sps_id out of range 0KB sq=    0B f=0/0
    [h264 @ 0000000001da8a80] non-existing PPS referenced
    [h264 @ 0000000001da8a80] sps_id out of range
    [h264 @ 0000000001da8a80] slice type too large (24) at 0 0
    [h264 @ 0000000001da8a80] decode_slice_header error
    [h264 @ 0000000001da8a80] no frame!
    [h264 @ 0000000001d9fa00] decoding for stream 0 failed
    [h264 @ 0000000001d9fa00] Could not find codec parameters for stream 0 (Video: h264): unspecified size
    Consider increasing the value for the 'analyzeduration' and 'probesize' options
    part 1 - Copy.mp4: could not find codec parameters

    So I then tried putting the CodecPrivateData just before the mdat section and I then get this

    [h264 @ 0000000001d38a80] sps_id out of range 0KB sq=    0B f=0/0
       Last message repeated 1 times
    [h264 @ 0000000001d38a80] slice type too large (24) at 0 0
    [h264 @ 0000000001d38a80] decode_slice_header error
    [h264 @ 0000000001d38a80] no frame!
    [h264 @ 0000000001d2fa00] decoding for stream 0 failed
    [h264 @ 0000000001d2fa00] Could not find codec parameters for stream 0 (Video: h264 (High)): unspecified size
    Consider increasing the value for the 'analyzeduration' and 'probesize' options
    part 1 - Copy.mp4: could not find codec parameters

    I seem to be missing something to get this to decode and I'm just not sure what so I'm hoping someone knowledgeable with h264 can help me out ! Ultimately I want to get this working in DirectShow but even getting it to work in ffmpeg would be a massive help !

  • avconv : from multiple png to movie not exporting correctly

    13 avril 2016, par abhra

    I am trying to generate a mp4 movie from a set of pngs using avconv on my debian8 system. The mp4 file its generating basically looping over the first figure for some time. Here is the command I am using

    avconv -r 10 -start_number 8 -i images_%06d.png -b:v 1000k -vf scale=640 :-1 test.mp4

    Output is

    avconv version 11.6-6:11.6-1 deb8u1, Copyright (c) 2000-2014 the Libav developers built on Mar 2 2016 23:00:02 with gcc 4.9.2
    (Debian 4.9.2-10) Input #0, image2, from ’images_%06d.png’ :
    Duration : 00:00:16.00, start : 0.000000, bitrate : N/A
    Stream #0.0 : Video : png, rgb24, 2400x1801, 25 fps, 25 tbn File ’test.mp4’ already exists. Overwrite ? [y/N] y [scale @ 0x820c60] The
    ::flags= option syntax is deprecated. Use either
    : : or w=:h=:flags=. [libx264 @ 0x837760]
    using cpu capabilities : MMX2 SSE2Fast SSSE3 SSE4.2 AVX AVX2 FMA3 LZCNT
    BMI2 [libx264 @ 0x837760] profile High, level 2.2 [libx264 @ 0x837760]
    264 - core 142 r2431 a5831aa - H.264/MPEG-4 AVC codec - Copyleft
    2003-2014 - 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=-2 threads=12
    lookahead_threads=2 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=abr
    mbtree=1 bitrate=1000 ratetol=1.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 : Lavf56.1.0
    Stream #0.0 : Video : libx264, yuv420p, 640x480, q=-1—1, 1000 kb/s, 10 fps, 10 tbn, 10 tbc
    Metadata :
    encoder : Lavc56.1.0 libx264 Stream mapping : Stream #0:0 -> #0:0 (png (native) -> h264 (libx264)) Press ctrl-c to stop encoding frame= 17 fps= 0 q=0.0 size= 0kB time=10000000000.00
    bitrate= 0.0kbitframe= 34 fps= 32 q=0.0 size= 0kB
    time=10000000000.00 bitrate= 0.0kbitframe= 51 fps= 32 q=0.0 size=
    0kB time=10000000000.00 bitrate= 0.0kbitframe= 393 fps= 32 q=0.0
    Lsize= 139kB time=39.00 bitrate= 29.2kbits/s video:132kB
    audio:0kB other streams:0kB global headers:0kB muxing overhead :
    5.284794% [libx264 @ 0x837760] frame I:2 Avg QP : 3.69 size : 51320 [libx264 @ 0x837760] frame P:99 Avg QP : 0.32 size : 242 [libx264
    @ 0x837760] frame B:292 Avg QP : 0.15 size : 26 [libx264 @
    0x837760] consecutive B-frames : 0.8% 0.5% 0.0% 98.7% [libx264 @
    0x837760] mb I I16..4 : 45.5% 19.2% 35.3% [libx264 @ 0x837760] mb P
    I16..4 : 0.0% 0.0% 0.0% P16..4 : 0.9% 0.0% 0.0% 0.0% 0.0%
    skip:99.0% [libx264 @ 0x837760] mb B I16..4 : 0.0% 0.0% 0.0%
    B16..8 : 0.2% 0.0% 0.0% direct : 0.0% skip:99.8% L0:22.3% L1:77.7%
    BI : 0.0% [libx264 @ 0x837760] final ratefactor : -21.09 [libx264 @
    0x837760] 8x8 transform intra:18.9% inter:41.7% [libx264 @ 0x837760]
    coded y,uvDC,uvAC intra : 34.1% 0.0% 0.0% inter : 0.1% 0.0% 0.0%
    [libx264 @ 0x837760] i16 v,h,dc,p : 81% 14% 5% 0% [libx264 @
    0x837760] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu : 49% 14% 36% 0% 0% 0% 0%
    0% 0% [libx264 @ 0x837760] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu : 36% 28% 19%
    3% 3% 2% 4% 2% 3% [libx264 @ 0x837760] i8c dc,h,v,p : 100% 0% 0%
    0% [libx264 @ 0x837760] Weighted P-Frames : Y:0.0% UV:0.0% [libx264 @
    0x837760] ref P L0 : 99.3% 0.0% 0.6% 0.1% [libx264 @ 0x837760] ref B
    L0 : 4.2% 95.8% [libx264 @ 0x837760] ref B L1 : 99.8% 0.2% [libx264 @
    0x837760] kb/s:27.34

    I have also tried

    cat *.png | avconv -f image2pipe -i - -b:v 1000k -vf scale=640 :-1 test2.mp4

    output shows

    avconv version 11.6-6:11.6-1 deb8u1, Copyright (c) 2000-2014 the Libav developers built on Mar 2 2016 23:00:02 with gcc 4.9.2
    (Debian 4.9.2-10) Codec AVOption b (set bitrate (in bits/s)) specified
    for output file #0 (test2.mp4) has not been used for any stream. The
    most likely reason is either wrong type (e.g. a video option with no
    video streams) or that it is a private option of some encoder which
    was not actually used for any stream. Output #0, image2pipe, to
    ’test2.mp4’ : Output file #0 does not contain any stream

    When getting frames fromtest.mp4

    avconv -i test.mp4 -r 30 -f image2 %04d.png

    I found 1000 or more copies of the images_000001.png.

    Would you please help, whether I have made any mistake in commands ? Or am I missing some codec options ? Thanks for the help.