Recherche avancée

Médias (1)

Mot : - Tags -/censure

Autres articles (78)

  • MediaSPIP v0.2

    21 juin 2013, par

    MediaSPIP 0.2 est la première version de MediaSPIP stable.
    Sa date de sortie officielle est le 21 juin 2013 et est annoncée ici.
    Le fichier zip ici présent contient uniquement les sources de MediaSPIP en version standalone.
    Comme pour la version précédente, il est nécessaire d’installer manuellement l’ensemble des dépendances logicielles sur le serveur.
    Si vous souhaitez utiliser cette archive pour une installation en mode ferme, il vous faudra également procéder à d’autres modifications (...)

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

  • Récupération d’informations sur le site maître à l’installation d’une instance

    26 novembre 2010, par

    Utilité
    Sur le site principal, une instance de mutualisation est définie par plusieurs choses : Les données dans la table spip_mutus ; Son logo ; Son auteur principal (id_admin dans la table spip_mutus correspondant à un id_auteur de la table spip_auteurs)qui sera le seul à pouvoir créer définitivement l’instance de mutualisation ;
    Il peut donc être tout à fait judicieux de vouloir récupérer certaines de ces informations afin de compléter l’installation d’une instance pour, par exemple : récupérer le (...)

Sur d’autres sites (6130)

  • 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

    



    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


    



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

    



    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
ffmpeg version git-2020-01-31-62d92a8 Copyright (c) 2000-2020 the FFmpeg developers
  built with gcc 9.2.1 (GCC) 20200122
  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
  libavutil      56. 38.100 / 56. 38.100
  libavcodec     58. 67.100 / 58. 67.100
  libavformat    58. 37.100 / 58. 37.100
  libavdevice    58.  9.103 / 58.  9.103
  libavfilter     7. 72.100 /  7. 72.100
  libswscale      5.  6.100 /  5.  6.100
  libswresample   3.  6.100 /  3.  6.100
  libpostproc    55.  6.100 / 55.  6.100
[mp3 @ 0000027d800babc0] Estimating duration from bitrate, this may be inaccurate
Input #0, mp3, from 'song.mp3':
  Metadata:
    TSS             : Logic Pro 8.0.2
    iTunNORM        :  000000EE 000000ED 00000C34 00001135 000088F0 0000B505 000080FA 00007577 00009B82 00018F49
    iTunSMPB        :  00000000 00000210 00000A07 00000000008783E9 00000000 007AD4E6 00000000 00000000 00000000 00000000 00000000 00000000
    genre           : Rock
    TCM             : Kevin MacLeod
    album           : Funk and Blues
    TKE             : C
    TBP             : 101
    title           : Funkorama
    artist          : Kevin MacLeod
    date            : 2008-06-16 18:35
  Duration: 00:03:21.46, start: 0.000000, bitrate: 325 kb/s
    Stream #0:0: Audio: mp3, 44100 Hz, stereo, fltp, 320 kb/s
    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)
    Metadata:
      comment         : Other
Stream mapping:
  Stream #0:1 -> #0:0 (mjpeg (native) -> h264 (libx264))
  Stream #0:0 -> #0:1 (mp3 (mp3float) -> aac (native))
Press [q] to stop, [?] for help
[hls @ 0000027d80100c40] Frame rate very high for a muxer not efficiently supporting it.
Please consider specifying a lower framerate, a different muxer or -vsync 2
[libx264 @ 0000027d800c1280] using SAR=1/1
[libx264 @ 0000027d800c1280] MB rate (56250000) > level limit (16711680)
[libx264 @ 0000027d800c1280] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2
[libx264 @ 0000027d800c1280] profile High 4:4:4 Predictive, level 6.2, 4:4:4, 8-bit
[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
Output #0, hls, to 'playlist.m3u8':
  Metadata:
    TSS             : Logic Pro 8.0.2
    iTunNORM        :  000000EE 000000ED 00000C34 00001135 000088F0 0000B505 000080FA 00007577 00009B82 00018F49
    iTunSMPB        :  00000000 00000210 00000A07 00000000008783E9 00000000 007AD4E6 00000000 00000000 00000000 00000000 00000000 00000000
    genre           : Rock
    TCM             : Kevin MacLeod
    album           : Funk and Blues
    TKE             : C
    TBP             : 101
    title           : Funkorama
    artist          : Kevin MacLeod
    date            : 2008-06-16 18:35
    encoder         : Lavf58.37.100
    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)
    Metadata:
      comment         : Other
      encoder         : Lavc58.67.100 libx264
    Side data:
      cpb: bitrate max/min/avg: 0/0/0 buffer size: 0 vbv_delay: N/A
    Stream #0:1: Audio: aac (LC), 44100 Hz, stereo, fltp, 128 kb/s
    Metadata:
      encoder         : Lavc58.67.100 aac
[mp3float @ 0000027d80146580] overread, skip -7 enddists: -6 -6 speed=68.6x
[mp3float @ 0000027d80146580] overread, skip -6 enddists: -5 -5
[mp3float @ 0000027d80146580] overread, skip -6 enddists: -4 -4
    Last message repeated 2 times
[mp3float @ 0000027d80146580] overread, skip -7 enddists: -6 -6
    Last message repeated 2 times
[mp3float @ 0000027d80146580] overread, skip -5 enddists: -2 -2
[mp3float @ 0000027d80146580] overread, skip -7 enddists: -6 -6
[mp3float @ 0000027d80146580] overread, skip -6 enddists: -4 -4
    Last message repeated 1 times
[mp3float @ 0000027d80146580] overread, skip -7 enddists: -6 -6
    Last message repeated 1 times
[mp3float @ 0000027d80146580] overread, skip -6 enddists: -4 -4
[mp3float @ 0000027d80146580] overread, skip -5 enddists: -3 -3
[mp3float @ 0000027d80146580] overread, skip -6 enddists: -4 -4
[mp3float @ 0000027d80146580] overread, skip -7 enddists: -6 -6
    Last message repeated 2 times
[mp3float @ 0000027d80146580] overread, skip -5 enddists: -4 -4
[hls @ 0000027d80100c40] Opening 'file0.m4a' for writingate=N/A speed=64.1x
[hls @ 0000027d80100c40] Opening 'playlist.m3u8.tmp' for writing
frame=    1 fps=0.3 q=33.0 Lsize=N/A time=00:03:21.45 bitrate=N/A speed=63.7x
video:7kB audio:3209kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown
[libx264 @ 0000027d800c1280] frame I:1     Avg QP:34.64  size:  6567
[libx264 @ 0000027d800c1280] mb I  I16..4: 19.5% 53.0% 27.5%
[libx264 @ 0000027d800c1280] 8x8 transform intra:53.0%
[libx264 @ 0000027d800c1280] coded y,u,v intra: 46.8% 26.1% 15.3%
[libx264 @ 0000027d800c1280] i16 v,h,dc,p: 38% 39%  9% 14%
[libx264 @ 0000027d800c1280] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 21% 14% 26%  8%  5%  6%  5%  7%  7%
[libx264 @ 0000027d800c1280] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 42% 16% 14%  7%  4%  5%  3%  4%  4%
[libx264 @ 0000027d800c1280] kb/s:4728240.00
[aac @ 0000027d800bcc40] Qavg: 2138.508


    



    Notice the "mp3float overread" message.

    



    It results in a single file0.m4a file without splitting it up after every 7 seconds as specified.
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

    



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

    


  • Is there any way to edit just the metadata of an AVI file, like mkvpropedit does with MKV files ?

    20 juillet 2016, par hmj6jmh

    I am trying to swap the order of 2 audio tracks of an AVI file using ffmpeg.

    ffmpeg -i "infile.avi" -map 0:0 -map 0:2 -map 0:1 -c copy "outfile.avi"

    This works but the file is being re-encoded, not copied. It takes much longer than a straight copy to finish and the resulting file is larger than the original.

    Is there any way to edit just the metadata of an AVI file, like mkvpropedit does with MKV files ? Command line tool preferred.

    General
    Complete name                            : infile.avi
    Format                                   : AVI
    Format/Info                              : Audio Video Interleave
    File size                                : 451 MiB
    Duration                                 : 43mn 11s
    Overall bit rate                         : 1 460 Kbps
    Writing application                      : VirtualDubMod 1.5.10.2 (build 2540/release)
    Writing library                          : VirtualDubMod build 2540/release

    Video
    ID                                       : 0
    Format                                   : MPEG-4 Visual
    Format profile                           : Advanced Simple@L5
    Format settings, BVOP                    : 3
    Format settings, QPel                    : No
    Format settings, GMC                     : No warppoints
    Format settings, Matrix                  : Default (MPEG)
    Muxing mode                              : Packed bitstream
    Codec ID                                 : XVID
    Codec ID/Hint                            : XviD
    Duration                                 : 43mn 11s
    Bit rate                                 : 1 190 Kbps
    Width                                    : 656 pixels
    Height                                   : 368 pixels
    Display aspect ratio                     : 16:9
    Frame rate                               : 23.976 fps
    Color space                              : YUV
    Chroma subsampling                       : 4:2:0
    Bit depth                                : 8 bits
    Scan type                                : Progressive
    Compression mode                         : Lossy
    Bits/(Pixel*Frame)                       : 0.206
    Stream size                              : 367 MiB (82%)
    Writing library                          : XviD 1.2.1 (UTC 2008-12-04)

    Audio #1
    ID                                       : 1
    Format                                   : MPEG Audio
    Format version                           : Version 1
    Format profile                           : Layer 3
    Codec ID                                 : 55
    Codec ID/Hint                            : MP3
    Duration                                 : 43mn 11s
    Bit rate mode                            : Constant
    Bit rate                                 : 128 Kbps
    Channel count                            : 2 channels
    Sampling rate                            : 48.0 KHz
    Compression mode                         : Lossy
    Stream size                              : 39.5 MiB (9%)
    Alignment                                : Aligned on interleaves
    Interleave, duration                     : 42 ms (1.00 video frame)
    Interleave, preload duration             : 504 ms
    Writing library                          : LAME3.98r
    Encoding settings                        : -m s -V 4 -q 2 -lowpass 17 -b 128

    Audio #2
    ID                                       : 2
    Format                                   : MPEG Audio
    Format version                           : Version 1
    Format profile                           : Layer 3
    Codec ID                                 : 55
    Codec ID/Hint                            : MP3
    Duration                                 : 43mn 11s
    Bit rate mode                            : Constant
    Bit rate                                 : 128 Kbps
    Channel count                            : 2 channels
    Sampling rate                            : 48.0 KHz
    Compression mode                         : Lossy
    Stream size                              : 39.5 MiB (9%)
    Alignment                                : Aligned on interleaves
    Interleave, duration                     : 42 ms (1.00 video frame)
    Interleave, preload duration             : 504 ms
    Writing library                          : LAME3.98r
    Encoding settings                        : -m s -V 4 -q 2 -lowpass 17 -b 128
  • tag refuses to play mp4 video

    5 janvier 2015, par MightyPork

    I have a video I want to embed using the html5 video tag :

    I’ve converted it using ffmpeg :

    ffmpeg -i P6135199.MOV -vcodec libx264 -acodec aac helios.mp4

    FFMPEG output :

    [libx264 @ 0x22ac340] using cpu capabilities : MMX2 SSE2Fast SSSE3 SSE4.2
    [libx264 @ 0x22ac340] profile High 4:2:2, level 1.2, 4:2:2 8-bit
    [libx264 @ 0x22ac340] 264 - core 142 r2455 021c0dc - 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=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=15 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 ’helios.mp4’ :
      Metadata :
        comment-eng : OLYMPUS DIGITAL CAMERA                           
        comment : OLYMPUS DIGITAL CAMERA                           
        encoder : Lavf56.15.102
        Stream #0:0(eng) : Video : h264 (libx264) ([33][0][0][0] / 0x0021), yuvj422p(pc), 320x240, q=-1—1, 15 fps, 15360 tbn, 15 tbc (default)
        Metadata :
          creation_time : 2008-06-13 10:47:16
          encoder : Lavc56.13.100 libx264
    Stream mapping :
      Stream #0:0 -> #0:0 (mjpeg (native) -> h264 (libx264))
    Press [q] to stop, [?] for help
    frame=  240 fps=124 q=-1.0 Lsize=     906kB time=00:00:15.86 bitrate= 467.7kbits/s    
    video:902kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead : 0.409100%
    [libx264 @ 0x22ac340] frame I:1     Avg QP:23.71  size :  7960
    [libx264 @ 0x22ac340] frame P:123   Avg QP:23.85  size :  5255
    [libx264 @ 0x22ac340] frame B:116   Avg QP:25.41  size :  2317
    [libx264 @ 0x22ac340] consecutive B-frames :  3.3% 96.7%  0.0%  0.0%
    [libx264 @ 0x22ac340] mb I  I16..4 : 15.7% 69.0% 15.3%
    [libx264 @ 0x22ac340] mb P  I16..4 :  2.2% 13.4%  0.8%  P16..4 : 43.8% 23.1% 14.0%  0.0%  0.0%    skip : 2.8%
    [libx264 @ 0x22ac340] mb B  I16..4 :  0.3%  1.3%  0.1%  B16..8 : 42.4%  9.9%  3.0%  direct:12.2%  skip:30.9%  L0:37.2% L1:38.2% BI:24.5%
    [libx264 @ 0x22ac340] 8x8 transform intra:80.8% inter:71.9%
    [libx264 @ 0x22ac340] coded y,uvDC,uvAC intra : 76.7% 96.8% 49.7% inter : 37.8% 60.9% 5.1%
    [libx264 @ 0x22ac340] i16 v,h,dc,p : 39%  4%  8% 49%
    [libx264 @ 0x22ac340] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu : 15% 14% 39%  6%  3%  4%  3%  6% 12%
    [libx264 @ 0x22ac340] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu : 25% 11% 18%  8%  7%  7%  8%  8%  8%
    [libx264 @ 0x22ac340] i8c dc,h,v,p : 63%  7% 20% 10%
    [libx264 @ 0x22ac340] Weighted P-Frames : Y:5.7% UV:0.8%
    [libx264 @ 0x22ac340] ref P L0 : 51.4% 18.3% 20.6%  9.3%  0.4%
    [libx264 @ 0x22ac340] ref B L0 : 80.8% 19.2%
    [libx264 @ 0x22ac340] kb/s:461.52
    

    And I try to embed it as follows :

    <video src="helios.mp4" controls="controls">Get a better browser!</video>

    However, Chrome doesn’t play the video, only offers to download it (same as it did before I converted the video). Firefox has the same problem.

    I’ve tested and other mp4 files (from my phone) play just fine.

    What’s the problem ? Did I convert it wrong ?