Recherche avancée

Médias (91)

Autres articles (100)

  • Amélioration de la version de base

    13 septembre 2013

    Jolie sélection multiple
    Le plugin Chosen permet d’améliorer l’ergonomie des champs de sélection multiple. Voir les deux images suivantes pour comparer.
    Il suffit pour cela d’activer le plugin Chosen (Configuration générale du site > Gestion des plugins), puis de configurer le plugin (Les squelettes > Chosen) en activant l’utilisation de Chosen dans le site public et en spécifiant les éléments de formulaires à améliorer, par exemple select[multiple] pour les listes à sélection multiple (...)

  • Le plugin : Gestion de la mutualisation

    2 mars 2010, par

    Le plugin de Gestion de mutualisation permet de gérer les différents canaux de mediaspip depuis un site maître. Il a pour but de fournir une solution pure SPIP afin de remplacer cette ancienne solution.
    Installation basique
    On installe les fichiers de SPIP sur le serveur.
    On ajoute ensuite le plugin "mutualisation" à la racine du site comme décrit ici.
    On customise le fichier mes_options.php central comme on le souhaite. Voilà pour l’exemple celui de la plateforme mediaspip.net :
    < ?php (...)

  • Gestion de la ferme

    2 mars 2010, par

    La ferme est gérée dans son ensemble par des "super admins".
    Certains réglages peuvent être fais afin de réguler les besoins des différents canaux.
    Dans un premier temps il utilise le plugin "Gestion de mutualisation"

Sur d’autres sites (12027)

  • FFmpeg : A few errors including invalid frame size and incomplete frame

    8 février 2019, par Abs

    I use this ffmpeg command to take clips from a large VOB files that is on a DVD :

    ffmpeg.exe -i E:\VTS_02_2.vob -ss 00:00:57 -t 00:16:15 vids\VTS_02_2.vob

    It worked first for a VOB file but then I got these errors :

    c:\ffmpeg>ffmpeg.exe -i E:\VTS_02_2.vob -ss 00:00:57 -t 00:16:15 vids\VTS_02_2.vob
    FFmpeg version SVN-r15625, Copyright (c) 2000-2008 Fabrice Bellard, et al.
     configuration: --enable-memalign-hack --enable-postproc --enable-swscale --enable-g
    l --enable-libfaac --enable-libfaad --enable-libgsm --enable-libmp3lame --enable-libv
    rbis --enable-libtheora --enable-libx264 --enable-libxvid --disable-ffserver --disabl
    -vhook --enable-avisynth --enable-pthreads
     libavutil     49.12. 0 / 49.12. 0
     libavcodec    52. 0. 0 / 52. 0. 0
     libavformat   52.22. 1 / 52.22. 1
     libavdevice   52. 1. 0 / 52. 1. 0
     libswscale     0. 6. 1 /  0. 6. 1
     libpostproc   51. 2. 0 / 51. 2. 0
     built on Oct 16 2008 05:40:02, gcc: 4.2.4 (TDM-1 for MinGW)
    Input #0, mpeg, from 'E:\VTS_02_2.vob':
     Duration: 00:17:11.61, start: 1031.828511, bitrate: 8326 kb/s
       Stream #0.0[0x1e0]: Video: mpeg2video, yuv420p, 720x576 [PAR 16:15 DAR 4:3], 9640
    kb/s, 25.00 tb(r)
       Stream #0.1[0x80]: Audio: ac3, 48000 Hz, stereo, s16, 192 kb/s
    File 'vids\VTS_02_2.vob' already exists. Overwrite ? [y/N] y
    Output #0, svcd, to 'vids\VTS_02_2.vob':
       Stream #0.0: Video: mpeg2video, yuv420p, 720x576 [PAR 16:15 DAR 4:3], q=2-31, 200
    kb/s, 25.00 tb(c)
       Stream #0.1: Audio: mp2, 48000 Hz, stereo, s16, 64 kb/s
    Stream mapping:
     Stream #0.0 -> #0.0
     Stream #0.1 -> #0.1
    Press [q] to stop encoding
    [ac3 @ 026D3990]frame sync error
    Error while decoding stream #0.1
    frame=    0 fps=  0 q=0.0 size=       0kB time=10000000000.00 bitrate=   0.0kbits/s
    [mpeg2video @ 0141B780]ac-tex damaged at 40 2
    [mpeg2video @ 0141B780]invalid mb type in B Frame at 3 12
    [mpeg2video @ 0141B780]00 motion_type at 15 16
    [mpeg2video @ 0141B780]mb incr damaged
    [mpeg2video @ 0141B780]00 motion_type at 2 21
    [mpeg2video @ 0141B780]00 motion_type at 44 22
    [mpeg2video @ 0141B780]ac-tex damaged at 43 24
    [mpeg2video @ 0141B780]Warning MVs not available
    [mpeg2video @ 0141B780]concealing 765 DC, 765 AC, 765 MV errors
    frame=    0 fps=  0 q=0.0 size=       0kB time=10000000000.00 bitrate=   0.0kbits/s
    frame=    0 fps=  0 q=0.0 size=       0kB time=10000000000.00 bitrate=   0.0kbits/s
    frame=    0 fps=  0 q=0.0 size=       0kB time=10000000000.00 bitrate=   0.0kbits/s
    frame=    0 fps=  0 q=0.0 size=       0kB time=10000000000.00 bitrate=   0.0kbits/s
    [mpeg2video @ 0141B780]ac-tex damaged at 5 9
    [mpeg2video @ 0141B780]00 motion_type at 21 13
    [mpeg2video @ 0141B780]ac-tex damaged at 1 20
    [mpeg2video @ 0141B780]mb incr damaged
    [mpeg2video @ 0141B780]00 motion_type at 30 30
    [mpeg2video @ 0141B780]Warning MVs not available
    [mpeg2video @ 0141B780]concealing 450 DC, 450 AC, 450 MV errors
    [ac3 @ 026D3990]frame CRC mismatch
    [ac3 @ 026D3990]incomplete frame
    [ac3 @ 026D3990]invalid frame size
    frame=    0 fps=  0 q=0.0 size=       0kB time=10000000000.00 bitrate=   0.0kbits/s
    [mpeg2video @ 0141B780]00 motion_type at 38 15
    [mpeg2video @ 0141B780]00 motion_type at 30 34
    [mpeg2video @ 0141B780]Warning MVs not available
    [mpeg2video @ 0141B780]concealing 254 DC, 254 AC, 254 MV errors
    frame=    0 fps=  0 q=0.0 size=       0kB time=10000000000.00 bitrate=   0.0kbits/s
    frame=    0 fps=  0 q=0.0 size=       0kB time=10000000000.00 bitrate=   0.0kbits/s
    [mpeg2video @ 0141B780]ac-tex damaged at 7 6
    [mpeg2video @ 0141B780]concealing 1350 DC, 1350 AC, 1350 MV errors
    frame=    0 fps=  0 q=0.0 size=       0kB time=10000000000.00 bitrate=   0.0kbits/s
    [ac3 @ 026D3990]incomplete frame
    [ac3 @ 026D3990]invalid frame size
    frame=    0 fps=  0 q=0.0 size=       0kB time=10000000000.00 bitrate=   0.0kbits/s
    frame=    0 fps=  0 q=0.0 Lsize=       0kB time=10000000000.00 bitrate=   0.0kbits/s

    video:0kB audio:0kB global headers:0kB muxing overhead -1.#IND00%

    Is there a way to force ffmpeg to just give me an output ?

  • Animated line chart with pandas, matplotlib and ffmpeg

    10 avril 2020, par Mark K

    In producing an animated line chart, I have below data and codes.

    &#xA;&#xA;

    But when the chart produced, it shows no line. What did I do wrong ?

    &#xA;&#xA;

    Thank you.

    &#xA;&#xA;

    import numpy as np&#xA;import pandas as pd&#xA;import seaborn as sns&#xA;import matplotlib&#xA;import matplotlib.pyplot as plt&#xA;import matplotlib.animation as animation&#xA;&#xA;title = &#x27;Heroin Overdoses&#x27;&#xA;&#xA;data = {&#x27;Year&#x27; : ["1999","2000","2001","2002","2003","2004","2005","2006","2007","2008","2009","2010","2011","2012","2013","2014","2015","2016"], &#xA;&#x27;Heroin Overdoses&#x27; : [280,443,413,486,475,148,197,170,448,103,137,160,483,356,352,300,466,278]}&#xA;overdose = pd.DataFrame(data)&#xA;&#xA;Writer = animation.writers[&#x27;ffmpeg&#x27;]&#xA;writer = Writer(fps=20, metadata=dict(artist=&#x27;Me&#x27;), bitrate=1800)&#xA;&#xA;fig = plt.figure(figsize=(10,6))&#xA;plt.xlim(1999, 2016)&#xA;plt.ylim(np.min(overdose)[0], np.max(overdose)[0])&#xA;plt.xlabel(&#x27;Year&#x27;,fontsize=20)&#xA;plt.ylabel(title,fontsize=20)&#xA;plt.title(&#x27;Heroin Overdoses per Year&#x27;,fontsize=20)&#xA;&#xA;def animate(i):&#xA;    data = overdose.iloc[:int(i&#x2B;1)] #select data range&#xA;    p = sns.lineplot(x=data.index, y=data[title], data=data, color="r")&#xA;    p.tick_params(labelsize=17)&#xA;    plt.setp(p.lines,linewidth=7)&#xA;&#xA;ani = matplotlib.animation.FuncAnimation(fig, animate, frames=17, repeat=True)&#xA;&#xA;ani.save(&#x27;C:\\folder\\line chart.mp4&#x27;, writer=writer)&#xA;

    &#xA;

  • Create HLS streamable audio file from mp3

    15 août 2023, par isADon

    I am using following command to create a hls aac audio file for web streaming

    &#xA;&#xA;

    ffmpeg -y -i song.mp3 -c:a aac -b:a 128k -f hls -hls_time 7 -hls_list_size 0 -hls_segment_filename file%d.m4a playlist.m3u8&#xA;

    &#xA;&#xA;

    This command works only with some audio files. With many mp3 files I receive following output :

    &#xA;&#xA;

    C:\ffmpeg>ffmpeg -y -i song.mp3 -c:a aac -b:a 128k -f hls -hls_time 7 -hls_list_size 0 -hls_segment_filename file%d.m4a playlist.m3u8&#xA;ffmpeg version git-2020-01-31-62d92a8 Copyright (c) 2000-2020 the FFmpeg developers&#xA;  built with gcc 9.2.1 (GCC) 20200122&#xA;  configuration: --enable-gpl --enable-version3 --enable-sdl2 --enable-fontconfig --enable-gnutls --enable-iconv --enable-libass --enable-libdav1d --enable-libbluray --enable-libfreetype --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libtheora --enable-libtwolame --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxml2 --enable-libzimg --enable-lzma --enable-zlib --enable-gmp --enable-libvidstab --enable-libvorbis --enable-libvo-amrwbenc --enable-libmysofa --enable-libspeex --enable-libxvid --enable-libaom --enable-libmfx --enable-ffnvcodec --enable-cuvid --enable-d3d11va --enable-nvenc --enable-nvdec --enable-dxva2 --enable-avisynth --enable-libopenmpt --enable-amf&#xA;  libavutil      56. 38.100 / 56. 38.100&#xA;  libavcodec     58. 67.100 / 58. 67.100&#xA;  libavformat    58. 37.100 / 58. 37.100&#xA;  libavdevice    58.  9.103 / 58.  9.103&#xA;  libavfilter     7. 72.100 /  7. 72.100&#xA;  libswscale      5.  6.100 /  5.  6.100&#xA;  libswresample   3.  6.100 /  3.  6.100&#xA;  libpostproc    55.  6.100 / 55.  6.100&#xA;[mp3 @ 0000027d800babc0] Estimating duration from bitrate, this may be inaccurate&#xA;Input #0, mp3, from &#x27;song.mp3&#x27;:&#xA;  Metadata:&#xA;    TSS             : Logic Pro 8.0.2&#xA;    iTunNORM        :  000000EE 000000ED 00000C34 00001135 000088F0 0000B505 000080FA 00007577 00009B82 00018F49&#xA;    iTunSMPB        :  00000000 00000210 00000A07 00000000008783E9 00000000 007AD4E6 00000000 00000000 00000000 00000000 00000000 00000000&#xA;    genre           : Rock&#xA;    TCM             : Kevin MacLeod&#xA;    album           : Funk and Blues&#xA;    TKE             : C&#xA;    TBP             : 101&#xA;    title           : Funkorama&#xA;    artist          : Kevin MacLeod&#xA;    date            : 2008-06-16 18:35&#xA;  Duration: 00:03:21.46, start: 0.000000, bitrate: 325 kb/s&#xA;    Stream #0:0: Audio: mp3, 44100 Hz, stereo, fltp, 320 kb/s&#xA;    Stream #0:1: Video: mjpeg (Baseline), yuvj444p(pc, bt470bg/unknown/unknown), 400x400 [SAR 72:72 DAR 1:1], 90k tbr, 90k tbn, 90k tbc (attached pic)&#xA;    Metadata:&#xA;      comment         : Other&#xA;Stream mapping:&#xA;  Stream #0:1 -> #0:0 (mjpeg (native) -> h264 (libx264))&#xA;  Stream #0:0 -> #0:1 (mp3 (mp3float) -> aac (native))&#xA;Press [q] to stop, [?] for help&#xA;[hls @ 0000027d80100c40] Frame rate very high for a muxer not efficiently supporting it.&#xA;Please consider specifying a lower framerate, a different muxer or -vsync 2&#xA;[libx264 @ 0000027d800c1280] using SAR=1/1&#xA;[libx264 @ 0000027d800c1280] MB rate (56250000) > level limit (16711680)&#xA;[libx264 @ 0000027d800c1280] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2&#xA;[libx264 @ 0000027d800c1280] profile High 4:4:4 Predictive, level 6.2, 4:4:4, 8-bit&#xA;[libx264 @ 0000027d800c1280] 264 - core 159 - H.264/MPEG-4 AVC codec - Copyleft 2003-2019 - 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=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&#xA;Output #0, hls, to &#x27;playlist.m3u8&#x27;:&#xA;  Metadata:&#xA;    TSS             : Logic Pro 8.0.2&#xA;    iTunNORM        :  000000EE 000000ED 00000C34 00001135 000088F0 0000B505 000080FA 00007577 00009B82 00018F49&#xA;    iTunSMPB        :  00000000 00000210 00000A07 00000000008783E9 00000000 007AD4E6 00000000 00000000 00000000 00000000 00000000 00000000&#xA;    genre           : Rock&#xA;    TCM             : Kevin MacLeod&#xA;    album           : Funk and Blues&#xA;    TKE             : C&#xA;    TBP             : 101&#xA;    title           : Funkorama&#xA;    artist          : Kevin MacLeod&#xA;    date            : 2008-06-16 18:35&#xA;    encoder         : Lavf58.37.100&#xA;    Stream #0:0: Video: h264 (libx264), yuvj444p(pc, progressive), 400x400 [SAR 72:72 DAR 1:1], q=-1--1, 90k fps, 90k tbn, 90k tbc (attached pic)&#xA;    Metadata:&#xA;      comment         : Other&#xA;      encoder         : Lavc58.67.100 libx264&#xA;    Side data:&#xA;      cpb: bitrate max/min/avg: 0/0/0 buffer size: 0 vbv_delay: N/A&#xA;    Stream #0:1: Audio: aac (LC), 44100 Hz, stereo, fltp, 128 kb/s&#xA;    Metadata:&#xA;      encoder         : Lavc58.67.100 aac&#xA;[mp3float @ 0000027d80146580] overread, skip -7 enddists: -6 -6 speed=68.6x&#xA;[mp3float @ 0000027d80146580] overread, skip -6 enddists: -5 -5&#xA;[mp3float @ 0000027d80146580] overread, skip -6 enddists: -4 -4&#xA;    Last message repeated 2 times&#xA;[mp3float @ 0000027d80146580] overread, skip -7 enddists: -6 -6&#xA;    Last message repeated 2 times&#xA;[mp3float @ 0000027d80146580] overread, skip -5 enddists: -2 -2&#xA;[mp3float @ 0000027d80146580] overread, skip -7 enddists: -6 -6&#xA;[mp3float @ 0000027d80146580] overread, skip -6 enddists: -4 -4&#xA;    Last message repeated 1 times&#xA;[mp3float @ 0000027d80146580] overread, skip -7 enddists: -6 -6&#xA;    Last message repeated 1 times&#xA;[mp3float @ 0000027d80146580] overread, skip -6 enddists: -4 -4&#xA;[mp3float @ 0000027d80146580] overread, skip -5 enddists: -3 -3&#xA;[mp3float @ 0000027d80146580] overread, skip -6 enddists: -4 -4&#xA;[mp3float @ 0000027d80146580] overread, skip -7 enddists: -6 -6&#xA;    Last message repeated 2 times&#xA;[mp3float @ 0000027d80146580] overread, skip -5 enddists: -4 -4&#xA;[hls @ 0000027d80100c40] Opening &#x27;file0.m4a&#x27; for writingate=N/A speed=64.1x&#xA;[hls @ 0000027d80100c40] Opening &#x27;playlist.m3u8.tmp&#x27; for writing&#xA;frame=    1 fps=0.3 q=33.0 Lsize=N/A time=00:03:21.45 bitrate=N/A speed=63.7x&#xA;video:7kB audio:3209kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown&#xA;[libx264 @ 0000027d800c1280] frame I:1     Avg QP:34.64  size:  6567&#xA;[libx264 @ 0000027d800c1280] mb I  I16..4: 19.5% 53.0% 27.5%&#xA;[libx264 @ 0000027d800c1280] 8x8 transform intra:53.0%&#xA;[libx264 @ 0000027d800c1280] coded y,u,v intra: 46.8% 26.1% 15.3%&#xA;[libx264 @ 0000027d800c1280] i16 v,h,dc,p: 38% 39%  9% 14%&#xA;[libx264 @ 0000027d800c1280] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 21% 14% 26%  8%  5%  6%  5%  7%  7%&#xA;[libx264 @ 0000027d800c1280] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 42% 16% 14%  7%  4%  5%  3%  4%  4%&#xA;[libx264 @ 0000027d800c1280] kb/s:4728240.00&#xA;[aac @ 0000027d800bcc40] Qavg: 2138.508&#xA;

    &#xA;&#xA;

    Notice the "mp3float overread" message.

    &#xA;&#xA;

    It results in a single file0.m4a file without splitting it up after every 7 seconds as specified.&#xA;This is an example audio file I am trying to convert to a aac hls stream that results the mentioned problem : https://incompetech.com/music/royalty-free/index.html?isrc=USUAN1100474

    &#xA;&#xA;

    How can I convert an audio file to a web friendly hls stream with ffmpeg ?

    &#xA;