Recherche avancée

Médias (0)

Mot : - Tags -/objet éditorial

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

Autres articles (49)

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

  • Problèmes fréquents

    10 mars 2010, par

    PHP et safe_mode activé
    Une des principales sources de problèmes relève de la configuration de PHP et notamment de l’activation du safe_mode
    La solution consiterait à soit désactiver le safe_mode soit placer le script dans un répertoire accessible par apache pour le site

  • Gestion générale des documents

    13 mai 2011, par

    MédiaSPIP ne modifie jamais le document original mis en ligne.
    Pour chaque document mis en ligne il effectue deux opérations successives : la création d’une version supplémentaire qui peut être facilement consultée en ligne tout en laissant l’original téléchargeable dans le cas où le document original ne peut être lu dans un navigateur Internet ; la récupération des métadonnées du document original pour illustrer textuellement le fichier ;
    Les tableaux ci-dessous expliquent ce que peut faire MédiaSPIP (...)

Sur d’autres sites (5151)

  • ffmpeg concat last image duration incorrect

    27 novembre 2019, par SIDU

    Here is my png.txt file :

    file '01.png'
    duration 92
    file '02.png'
    duration 46
    file '03.png'
    duration 67
    file '04.png'
    duration 62
    file '05.png'
    duration 57
    file '06.png'
    duration 3
    file '06.png'

    mp3 duration = 00:05:28 (total of above)

    And here is the line :

    ffmpeg -f concat -i png.txt -vsync vfr -i 20170817.mp3 -c:a aac -s 1280x720 -c:v libx264 -pix_fmt yuv420p -shortest 20170817.mp4

    And here is the output :

    ffmpeg version 3.3.2 Copyright (c) 2000-2017 the FFmpeg developers
     built with Apple LLVM version 8.1.0 (clang-802.0.42)
     configuration: --prefix=/usr/local/Cellar/ffmpeg/3.3.2 --enable-shared --enable-pthreads --enable-gpl --enable-version3 --enable-hardcoded-tables --enable-avresample --cc=clang --host-cflags= --host-ldflags= --enable-libmp3lame --enable-libx264 --enable-libxvid --enable-opencl --disable-lzma --enable-vda
     libavutil      55. 58.100 / 55. 58.100
     libavcodec     57. 89.100 / 57. 89.100
     libavformat    57. 71.100 / 57. 71.100
     libavdevice    57.  6.100 / 57.  6.100
     libavfilter     6. 82.100 /  6. 82.100
     libavresample   3.  5.  0 /  3.  5.  0
     libswscale      4.  6.100 /  4.  6.100
     libswresample   2.  7.100 /  2.  7.100
     libpostproc    54.  5.100 / 54.  5.100
    Input #0, concat, from 'png.txt':
     Duration: 00:05:27.00, start: 0.000000, bitrate: 0 kb/s
       Stream #0:0: Video: png, rgba(pc), 1280x720 [SAR 2835:2835 DAR 16:9], 25 tbr, 25 tbn, 25 tbc
    Input #1, mp3, from '20170817.mp3':
     Metadata:
       encoder         : Lavf57.71.100
     Duration: 00:05:28.10, start: 0.069063, bitrate: 24 kb/s
       Stream #1:0: Audio: mp3, 16000 Hz, mono, s16p, 24 kb/s
    File '20170817.mp4' already exists. Overwrite ? [y/N] y
    Stream mapping:
     Stream #0:0 -> #0:0 (png (native) -> h264 (libx264))
     Stream #1:0 -> #0:1 (mp3 (native) -> aac (native))
    Press [q] to stop, [?] for help
    [libx264 @ 0x7fbe83003000] using SAR=1/1
    [libx264 @ 0x7fbe83003000] using cpu capabilities: MMX2 SSE2Fast SSSE3     SSE4.2 AVX FMA3 AVX2 LZCNT BMI2
    [libx264 @ 0x7fbe83003000] profile High, level 3.1
    [libx264 @ 0x7fbe83003000] 264 - core 148 r2748 97eaef2 - H.264/MPEG-4    AVC codec - Copyleft 2003-2016 - 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=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=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 '20170817.mp4':
     Metadata:
       encoder         : Lavf57.71.100
       Stream #0:0: Video: h264 (libx264) ([33][0][0][0] / 0x0021), yuv420p(progressive), 1280x720 [SAR 1:1 DAR 16:9], q=-1--1, 25 fps, 12800 tbn, 25 tbc
       Metadata:
         encoder         : Lavc57.89.100 libx264
       Side data:
         cpb: bitrate max/min/avg: 0/0/0 buffer size: 0 vbv_delay: -1
       Stream #0:1: Audio: aac (LC) ([64][0][0][0] / 0x0040), 16000 Hz, mono, fltp, 69 kb/s
       Metadata:
         encoder         : Lavc57.89.100 aac
    frame=    7 fps=4.2 q=-1.0 Lsize=    3349kB time=00:05:27.04 bitrate=  83.9kbits/s speed= 196x    
    video:465kB audio:2863kB subtitle:0kB other streams:0kB global    headers:0kB muxing overhead: 0.644585%
    [libx264 @ 0x7fbe83003000] frame I:1     Avg QP: 7.93  size:159157
    [libx264 @ 0x7fbe83003000] frame P:2     Avg QP:17.16  size: 61998
    [libx264 @ 0x7fbe83003000] frame B:4     Avg QP:18.34  size: 48049
    [libx264 @ 0x7fbe83003000] consecutive B-frames: 14.3% 28.6%  0.0% 57.1%
    [libx264 @ 0x7fbe83003000] mb I  I16..4: 48.6% 21.6% 29.8%
    [libx264 @ 0x7fbe83003000] mb P  I16..4:  4.4%  9.8% 19.7%  P16..4: 11.6%  3.0%  2.6%  0.0%  0.0%    skip:48.9%
    [libx264 @ 0x7fbe83003000] mb B  I16..4:  0.4%  0.5% 13.2%  B16..8: 14.9%  3.9%  2.6%  direct: 1.1%  skip:63.4%  L0:45.0% L1:52.1% BI: 3.0%
    [libx264 @ 0x7fbe83003000] 8x8 transform intra:19.2% inter:38.3%
    [libx264 @ 0x7fbe83003000] coded y,uvDC,uvAC intra: 52.3% 63.3% 62.4% inter: 8.6% 7.7% 6.9%
    [libx264 @ 0x7fbe83003000] i16 v,h,dc,p: 88%  9%  3%  0%
    [libx264 @ 0x7fbe83003000] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 26% 12% 45%  2%  2%  3%  2%  3%  4%
    [libx264 @ 0x7fbe83003000] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 24% 26% 18%  5%  5%  5%  5%  6%  6%
    [libx264 @ 0x7fbe83003000] i8c dc,h,v,p: 55% 18% 20%  8%
    [libx264 @ 0x7fbe83003000] Weighted P-Frames: Y:0.0% UV:0.0%
    [libx264 @ 0x7fbe83003000] ref P L0: 93.3%  0.3%  3.7%  2.8%
    [libx264 @ 0x7fbe83003000] ref B L0: 85.2% 14.8%
    [libx264 @ 0x7fbe83003000] ref B L1: 87.8% 12.2%
    [libx264 @ 0x7fbe83003000] kb/s:11.52
    [aac @ 0x7fbe83004800] Qavg: 1971.172

    The problem is that the mp4 has 00:06:45 duration, and the music finished at 00:05:28

    How do I chop the last silent bit off ?

    I tried the following :

    ffmpeg -ss 0 -i 20170817.mp4 -to 00:05:28 -c copy cut.mp4

    Which is worse. Adds blank silent video at front, and chop the video at middle which yet to finish.

    Please note the first 5 images are correct at right music positions, only last image duration error

  • flvEncoder .flv output won't convert to .mp4 with ffmpeg

    31 juillet 2013, par Emma Assin

    My current project involves creating a .flv using AIR (using https://github.com/zeropointnine/leelib/tree/master/src/leelib/util/flvEncoder) - which then has to be converted into an .mp4, for which we are using ffmpeg.

    The .mp4 output is the correct dimensions and duration, but blank (no images). Audio is not an issue as the original output has no audio.

    ffmpeg version N-55020-g768e40b Copyright (c) 2000-2013 the FFmpeg developers
     built on Jul 28 2013 18:05:44 with gcc 4.7.3 (GCC)
     configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-avisynth --enable-bzlib --enable-fontconfig --e
    nable-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 --enab
    le-libopenjpeg --enable-libopus --enable-librtmp --enable-libschroedinger --enable-libsoxr --enable-libspeex --enable-libtheo
    ra --enable-libtwolame --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libx264 --en
    able-libxavs --enable-libxvid --enable-zlib
     libavutil      52. 40.100 / 52. 40.100
     libavcodec     55. 19.100 / 55. 19.100
     libavformat    55. 12.102 / 55. 12.102
     libavdevice    55.  3.100 / 55.  3.100
     libavfilter     3. 81.103 /  3. 81.103
     libswscale      2.  4.100 /  2.  4.100
     libswresample   0. 17.103 /  0. 17.103
     libpostproc    52.  3.100 / 52.  3.100
    Input #0, flv, from 'testWithAudio.flv':
     Metadata:
       canSeekToEnd    : true
       metadatacreator : FlvEncoder v0.9 Lee Felarca
     Duration: 00:00:44.77, start: 0.000000, bitrate: 56730 kb/s
       Stream #0:0: Video: flashsv, bgr24, 400x400, 30 tbr, 1k tbn, 1k tbc
       Stream #0:1: Audio: pcm_s16le, 44100 Hz, stereo, s16, 1411 kb/s
    No pixel format specified, yuv444p for H.264 encoding chosen.
    Use -pix_fmt yuv420p for compatibility with outdated media players.
    [libx264 @ 00000000002e1da0] using cpu capabilities: MMX2 SSE2Fast SSEMisalign LZCNT
    [libx264 @ 00000000002e1da0] profile High 4:4:4 Predictive, level 2.1, 4:4:4 8-bit
    [libx264 @ 00000000002e1da0] 264 - core 135 r2345 f0c1c53 - 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=1 lookahead_threads=1 sl
    iced_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 dire
    ct=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 'testWithAudio.mp4':
     Metadata:
       canSeekToEnd    : true
       metadatacreator : FlvEncoder v0.9 Lee Felarca
       encoder         : Lavf55.12.102
       Stream #0:0: Video: h264 (libx264) ([33][0][0][0] / 0x0021), yuv444p, 400x400, q=-1--1, 15360 tbn, 30 tbc
       Stream #0:1: Audio: aac (libvo_aacenc) ([64][0][0][0] / 0x0040), 44100 Hz, stereo, s16, 128 kb/s
    Stream mapping:
     Stream #0:0 -> #0:0 (flashsv -> libx264)
     Stream #0:1 -> #0:1 (pcm_s16le -> libvo_aacenc)
    Press [q] to stop, [?] for help
    frame= 1343 fps= 25 q=29.0 Lsize=    2680kB time=00:00:44.70 bitrate= 491.2kbits/s
    video:1943kB audio:691kB subtitle:0 global headers:0kB muxing overhead 1.756713%
    [libx264 @ 00000000002e1da0] frame I:25    Avg QP:20.44  size: 14523
    [libx264 @ 00000000002e1da0] frame P:614   Avg QP:23.20  size:  2319
    [libx264 @ 00000000002e1da0] frame B:704   Avg QP:24.59  size:   287
    [libx264 @ 00000000002e1da0] consecutive B-frames: 25.6% 11.0%  7.4% 56.0%
    [libx264 @ 00000000002e1da0] mb I  I16..4: 17.6% 67.0% 15.3%
    [libx264 @ 00000000002e1da0] mb P  I16..4:  7.6%  9.9%  0.8%  P16..4: 28.0%  8.3%  4.0%  0.0%  0.0%    skip:41.4%
    [libx264 @ 00000000002e1da0] mb B  I16..4:  0.4%  0.5%  0.0%  B16..8: 16.3%  1.1%  0.1%  direct: 0.2%  skip:81.4%  L0:39.7% L
    1:57.4% BI: 2.8%
    [libx264 @ 00000000002e1da0] 8x8 transform intra:56.3% inter:85.5%
    [libx264 @ 00000000002e1da0] coded y,u,v intra: 35.7% 17.0% 19.1% inter: 7.7% 3.8% 3.4%
    [libx264 @ 00000000002e1da0] i16 v,h,dc,p: 26% 28% 17% 30%
    [libx264 @ 00000000002e1da0] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 21% 21% 33%  4%  4%  5%  4%  4%  4%
    [libx264 @ 00000000002e1da0] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 25% 21% 16%  5%  6%  9%  6%  6%  6%
    [libx264 @ 00000000002e1da0] Weighted P-Frames: Y:6.5% UV:3.3%
    [libx264 @ 00000000002e1da0] ref P L0: 56.8% 16.5% 18.2%  8.0%  0.6%
    [libx264 @ 00000000002e1da0] ref B L0: 82.3% 14.1%  3.7%
    [libx264 @ 00000000002e1da0] ref B L1: 93.7%  6.3%
    [libx264 @ 00000000002e1da0] kb/s:355.47

    Any ideas ?

  • FFMPEG x264 MP4 Encoding all grey

    7 mars 2013, par Brianjs

    I am currently using FFMPEG v1.1 on CentOS 6.3.

    I configured FFMPEG with :

    ./configure --arch=x86_64  --enable-libmp3lame  --enable-librtmp  --enable-libtheora --enable-libvorbis  --enable-libx264 --enable-pthreads --enable-gpl --enable-runtime-cpudetect

    when I run a simple command to record live input to MP4 by :

    ffmpeg -f video4linux2 -s 640x480 -i /dev/video0 /home/irdb/Desktop/test.mp4

    I get nothing, just a grey screen with some artifacts around the edges. However when I run the same command as .MPG it comes out fine. I need it in MP4 format however.

    On a side note I am running x264-0.120 installed through yum

    My question is, is there a problem with the way I compiled ffmpeg ? Or is it possibly something else ?

    edit :

    Output from example as requested :

    # ffmpeg -f video4linux2 -s 640x480 -t 5 -i /dev/video0 -strict 2 /home/irdb/Desktop/test.mp4
    ffmpeg version N-50546-g1f5b5b8 Copyright (c) 2000-2013 the FFmpeg developers
    built on Mar  7 2013 00:17:44 with gcc 4.4.6 (GCC) 20120305 (Red Hat 4.4.6-4)
    configuration: --enable-libmp3lame --enable-librtmp --enable-libtheora --enable-   libvorbis --enable-libx264 --enable-pthreads --enable-gpl --enable-runtime-cpudetect
    libavutil      52. 18.100 / 52. 18.100
    libavcodec     54. 92.100 / 54. 92.100
    libavformat    54. 63.104 / 54. 63.104
    libavdevice    54.  3.103 / 54.  3.103
    libavfilter     3. 42.103 /  3. 42.103
    libswscale      2.  2.100 /  2.  2.100
    libswresample   0. 17.102 /  0. 17.102
    libpostproc    52.  2.100 / 52.  2.100
    [video4linux2,v4l2 @ 0x3025120] Estimating duration from bitrate, this may be   inaccurate
    Input #0, video4linux2,v4l2, from '/dev/video0':
    Duration: N/A, start: 128.640356, bitrate: 147456 kb/s
    Stream #0:0: Video: rawvideo (YUY2 / 0x32595559), yuyv422, 640x480, 147456 kb/s, 30 fps, 30 tbr, 1000k tbn, 1000k tbc
    [libx264 @ 0x3026f80] using cpu capabilities: MMX2 SSE2Fast SSEMisalign LZCNT
    [libx264 @ 0x3026f80] profile High 4:2:2, level 3.0, 4:2:2 8-bit
    [libx264 @ 0x3026f80] 264 - core 130 r2274 c832fe9 - 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=-2 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=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 '/home/irdb/Desktop/test.mp4':
    Metadata:
    encoder         : Lavf54.63.104
    Stream #0:0: Video: h264 ([33][0][0][0] / 0x0021), yuv422p, 640x480, q=-1--1, 15360 tbn, 30 tbc
    Stream mapping:
    Stream #0:0 -> #0:0 (rawvideo -> libx264)
    Press [q] to stop, [?] for help
    frame=   32 fps=0.0 q=0.0 size=       0kB time=00:00:00.00 bitrate=N/A dup=21    drframe=   46 fps= 46 q=0.0 size=       0kB time=00:00:00.00 bitrate=N/A dup=28 drframe=    62 fps= 41 q=29.0 size=      71kB time=00:00:00.33 bitrate=1735.2kbits/frame=   76 fps=  38 q=29.0 size=     169kB time=00:00:00.80 bitrate=1731.2kbits/frame=   93 fps= 37  q=29.0 size=     311kB time=00:00:01.36 bitrate=1862.3kbits/frame=  107 fps= 35 q=29.0  size=     423kB time=00:00:01.83 bitrate=1891.0kbits/frame=  123 fps= 35 q=29.0 size=      537kB time=00:00:02.36 bitrate=1860.2kbits/frame=  139 fps= 34 q=29.0 size=     664kB  time=00:00:02.90 bitrate=1876.0kbits/frame=  150 fps= 29 q=-1.0 Lsize=    1174kB  time=00:00:04.93 bitrate=1948.7kbits/s dup=81 drop=0    
    video:1172kB audio:0kB subtitle:0 global headers:0kB muxing overhead 0.133409%
    [libx264 @ 0x3026f80] frame I:2     Avg QP:23.22  size: 28460
    [libx264 @ 0x3026f80] frame P:136   Avg QP:24.45  size:  8397
    [libx264 @ 0x3026f80] frame B:12    Avg QP:26.18  size:    42
    [libx264 @ 0x3026f80] consecutive B-frames: 88.0%  4.0%  0.0%  8.0%
    [libx264 @ 0x3026f80] mb I  I16..4: 47.1% 28.8% 24.1%
    [libx264 @ 0x3026f80] mb P  I16..4:  4.3%  1.9%  1.2%  P16..4: 29.0% 11.4%  9.2%      0.0%  0.0%    skip:43.0%
    [libx264 @ 0x3026f80] mb B  I16..4:  0.0%  0.0%  0.0%  B16..8:  1.5%  0.0%  0.0%   direct: 0.0%  skip:98.5%  L0:16.5% L1:83.5% BI: 0.0%
    [libx264 @ 0x3026f80] 8x8 transform intra:26.4% inter:30.7%
    [libx264 @ 0x3026f80] coded y,uvDC,uvAC intra: 85.2% 95.6% 83.5% inter: 10.9% 38.6% 24.0%
    [libx264 @ 0x3026f80] i16 v,h,dc,p: 33% 19% 40%  8%
    [libx264 @ 0x3026f80] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu:  6% 12% 55%  5%  3%  4%  4%  3%  8%
    [libx264 @ 0x3026f80] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 15%  9% 63%  3%  2%  2%  2%  2%  2%
    [libx264 @ 0x3026f80] i8c dc,h,v,p: 66% 11% 14%  9%
    [libx264 @ 0x3026f80] Weighted P-Frames: Y:0.0% UV:0.0%
    [libx264 @ 0x3026f80] ref P L0: 56.6%  7.5%  8.1% 27.8%
    [libx264 @ 0x3026f80] ref B L0: 83.3% 16.7%
    [libx264 @ 0x3026f80] ref B L1: 90.7%  9.3%
    [libx264 @ 0x3026f80] kb/s:1918.95