Recherche avancée

Médias (1)

Mot : - Tags -/blender

Autres articles (72)

  • Multilang : améliorer l’interface pour les blocs multilingues

    18 février 2011, par

    Multilang est un plugin supplémentaire qui n’est pas activé par défaut lors de l’initialisation de MediaSPIP.
    Après son activation, une préconfiguration est mise en place automatiquement par MediaSPIP init permettant à la nouvelle fonctionnalité d’être automatiquement opérationnelle. Il n’est donc pas obligatoire de passer par une étape de configuration pour cela.

  • Emballe médias : à quoi cela sert ?

    4 février 2011, par

    Ce plugin vise à gérer des sites de mise en ligne de documents de tous types.
    Il crée des "médias", à savoir : un "média" est un article au sens SPIP créé automatiquement lors du téléversement d’un document qu’il soit audio, vidéo, image ou textuel ; un seul document ne peut être lié à un article dit "média" ;

  • Submit bugs and patches

    13 avril 2011

    Unfortunately a software is never perfect.
    If you think you have found a bug, report it using our ticket system. Please to help us to fix it by providing the following information : the browser you are using, including the exact version as precise an explanation as possible of the problem if possible, the steps taken resulting in the problem a link to the site / page in question
    If you think you have solved the bug, fill in a ticket and attach to it a corrective patch.
    You may also (...)

Sur d’autres sites (5845)

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

  • ffmpeg drops all frames after 6 seconds

    25 juin 2014, par user2099107

    New to FFMPEG, I’m trying to create a video from a set of png.

    I have 96 png and I’m looking to 4 FPS (24 seconds of video)

    I use the following command :

    /Applications/ffmpeg -y -r 4 -pattern_type glob -i './images/*.png' -c:v libx264 -pix_fmt yuv420p out.mp4

    my out.mp4 always commes out as roughly 6 seconds with 24 frames, the last 70 frames being dropped.

    here is the full output :

       ffmpeg version 2.2.3-tessus Copyright (c) 2000-2014 the FFmpeg developers
     built on Jun  4 2014 21:31:51 with clang version 3.3 (tags/RELEASE_33/final)
     configuration: --cc=/opt/local/bin/clang-mp-3.3 --prefix=/Users/tessus/data/ext/ffmpeg/sw --as=yasm --extra-version=tessus --disable-shared --enable-static --disable-ffplay --enable-gpl --enable-pthreads --enable-postproc --enable-libmp3lame --enable-libtheora --enable-libvorbis --enable-libx264 --enable-libx265 --enable-libxvid --enable-libspeex --enable-bzlib --enable-zlib --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libxavs --enable-version3 --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-libvpx --enable-libgsm --enable-libopus --enable-libmodplug --enable-fontconfig --enable-libfreetype --enable-libass --enable-libbluray --enable-filters --disable-indev=qtkit --enable-runtime-cpudetect
     libavutil      52. 66.100 / 52. 66.100
     libavcodec     55. 52.102 / 55. 52.102
     libavformat    55. 33.100 / 55. 33.100
     libavdevice    55. 10.100 / 55. 10.100
     libavfilter     4.  2.100 /  4.  2.100
     libswscale      2.  5.102 /  2.  5.102
     libswresample   0. 18.100 /  0. 18.100
     libpostproc    52.  3.100 / 52.  3.100
    Input #0, image2, from './images/*.png':
     Duration: 00:00:03.84, start: 0.000000, bitrate: N/A
       Stream #0:0: Video: png, rgba, 1280x1024, 25 fps, 25 tbr, 25 tbn, 25 tbc
    [libx264 @ 0x103000600] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX
    [libx264 @ 0x103000600] profile High, level 3.2
    [libx264 @ 0x103000600] 264 - core 142 - 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=4 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 '/Users/adrien/code/encoding/out.mp4':
     Metadata:
       encoder         : Lavf55.33.100
       Stream #0:0: Video: h264 (libx264) ([33][0][0][0] / 0x0021), yuv420p, 1280x1024, q=-1--1, 16384 tbn, 4 tbc
    Stream mapping:
     Stream #0:0 -> #0:0 (png -> libx264)
    Press [q] to stop, [?] for help
    Input stream #0:0 frame changed from size:1280x1024 fmt:rgba to size:1280x1024 fmt:rgb24
    Input stream #0:0 frame changed from size:1280x1024 fmt:rgb24 to size:1280x1024 fmt:rgba
    Input stream #0:0 frame changed from size:1280x1024 fmt:rgba to size:1280x1024 fmt:rgb24
    Input stream #0:0 frame changed from size:1280x1024 fmt:rgb24 to size:1280x1024 fmt:rgba
    Input stream #0:0 frame changed from size:1280x1024 fmt:rgba to size:1280x1024 fmt:rgb24
    Input stream #0:0 frame changed from size:1280x1024 fmt:rgb24 to size:1280x1024 fmt:rgba
    Input stream #0:0 frame changed from size:1280x1024 fmt:rgba to size:1280x1024 fmt:rgb24
    frame=   26 fps= 21 q=-1.0 Lsize=     165kB time=00:00:06.00 bitrate= 224.9kbits/s dup=0 drop=70    
    video:164kB audio:0kB subtitle:0 data:0 global headers:0kB muxing overhead 0.661924%
    [libx264 @ 0x103000600] frame I:1     Avg QP: 9.66  size:100467
    [libx264 @ 0x103000600] frame P:8     Avg QP:14.08  size:  7610
    [libx264 @ 0x103000600] frame B:17    Avg QP:18.26  size:   322
    [libx264 @ 0x103000600] consecutive B-frames: 11.5%  0.0% 11.5% 76.9%
    [libx264 @ 0x103000600] mb I  I16..4: 23.4% 49.5% 27.1%
    [libx264 @ 0x103000600] mb P  I16..4:  3.6%  3.7%  1.3%  P16..4:  1.0%  0.1%  0.2%  0.0%  0.0%    skip:90.1%
    [libx264 @ 0x103000600] mb B  I16..4:  0.1%  0.0%  0.1%  B16..8:  1.3%  0.0%  0.0%  direct: 0.0%  skip:98.4%  L0:46.1% L1:53.9% BI: 0.0%
    [libx264 @ 0x103000600] 8x8 transform intra:45.8% inter:25.7%
    [libx264 @ 0x103000600] coded y,uvDC,uvAC intra: 46.0% 62.8% 42.9% inter: 0.1% 0.2% 0.1%
    [libx264 @ 0x103000600] i16 v,h,dc,p: 58% 25% 15%  2%
    [libx264 @ 0x103000600] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 44% 22% 24%  3%  1%  1%  3%  1%  1%
    [libx264 @ 0x103000600] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 48% 20% 12%  3%  3%  4%  3%  3%  3%
    [libx264 @ 0x103000600] i8c dc,h,v,p: 49% 20% 28%  3%
    [libx264 @ 0x103000600] Weighted P-Frames: Y:0.0% UV:0.0%
    [libx264 @ 0x103000600] ref P L0: 86.0%  5.3%  7.2%  1.5%
    [libx264 @ 0x103000600] ref B L0: 61.7% 35.8%  2.5%
    [libx264 @ 0x103000600] ref B L1: 95.8%  4.2%
    [libx264 @ 0x103000600] kb/s:205.33