Recherche avancée

Médias (1)

Mot : - Tags -/wave

Autres articles (36)

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

  • Des sites réalisés avec MediaSPIP

    2 mai 2011, par

    Cette page présente quelques-uns des sites fonctionnant sous MediaSPIP.
    Vous pouvez bien entendu ajouter le votre grâce au formulaire en bas de page.

  • HTML5 audio and video support

    13 avril 2011, par

    MediaSPIP uses HTML5 video and audio tags to play multimedia files, taking advantage of the latest W3C innovations supported by modern browsers.
    The MediaSPIP player used has been created specifically for MediaSPIP and can be easily adapted to fit in with a specific theme.
    For older browsers the Flowplayer flash fallback is used.
    MediaSPIP allows for media playback on major mobile platforms with the above (...)

Sur d’autres sites (3842)

  • Zlib vs. XZ on 2SF

    21 juillet 2012, par Multimedia Mike — General, psf, saltygme, xz, zlib

    I recently released my Game Music Appreciation website. It allows users to play an enormous range of video game music directly in their browsers. To do this, the site has to host the music. And since I’m a compression bore, I have to know how small I can practically make these music files. I already published the results of my effort to see if XZ could beat RAR (RAR won, but only slightly, and I still went with XZ for the project) on the corpus of Super Nintendo chiptune sets. Next is the corpus of Nintendo DS chiptunes.

    Repacking Nintendo DS 2SF
    The prevailing chiptune format for storing Nintendo DS songs is the .2sf format. This is a subtype of the Portable Sound Format (PSF). The designers had the foresight to build compression directly into the format. Much of payload data in a PSF file is compressed with zlib. Since I already incorporated Embedded XZ into the player project, I decided to try repacking the PSF payload data from zlib -> xz.

    In an effort to not corrupt standards too much, I changed the ’PSF’ file signature (seen in the first 3 bytes of a file) to ’psf’.

    Results
    There are about 900 Nintendo DS games currently represented in my website’s archive. Total size of the original PSF archive, payloads packed with zlib : 2.992 GB. Total size of the same archive with payloads packed as xz : 2.059 GB.

    Using xz vs. zlib saved me nearly a gigabyte of storage. That extra storage doesn’t really impact my hosting plan very much (I have 1/2 TB, which is why I’m so nonchalant about hosting the massive MPlayer Samples Archive). However, smaller individual files translates to a better user experience since the files are faster to download.

    Here is a pretty picture to illustrate the space savings :



    The blue occasionally appears to dip below the orange but the data indicates that xz is always more efficient than zlib. Here’s the raw data (comes in vanilla CSV flavor too).

    Interface Impact
    So the good news for the end user is that the songs are faster to load up front. The downside is that there can be a noticeable delay when changing tracks. Even though all songs are packaged into one file for download, and the entire file is downloaded before playback begins, each song is individually compressed. Thus, changing tracks triggers another decompression operation. I’m toying the possibility of some sort of background process that decompresses song (n+1) while playing song (n) in order to help compensate for this.

    I don’t like the idea of decompressing everything up front because A) it would take even longer to start playing ; and B) it would take a huge amount of memory.

    Corner Case
    There was at least one case in which I found zlib to be better than xz. It looks like zlib’s minimum block size is smaller than xz’s. I think I discovered xz to be unable to compress a few bytes to a block any smaller than about 60-64 bytes while zlib got it down into the teens. However, in those cases, it was more efficient to just leave the data uncompressed anyway.

  • FFMPEG width not divisible by 2 (639x360)

    5 octobre 2020, par yasgur99

    I am using python wrapper command of ffmepeg. I followed the tutorial from here for a "Production ready HLS" : https://docs.peer5.com/guides/production-ready-hls-vod/

    


    This is my code :

    


     subprocess.call(['ffmpeg', '-y', '-i', download_path,
                     '-vf', 'scale=w=640:h=360:force_original_aspect_ratio=decrease', \
                     '-c:a', 'aac', '-ar', '48000', '-c:v', 'h264', \
                     '-profile:v', 'main', '-crf', '20', '-sc_threshold', '0', \
                     '-g', '48', '-keyint_min', '48', '-hls_time', '4', \
                     '-hls_playlist_type', 'vod',  '-b:v', '800k', \
                     '-maxrate', '856k', '-bufsize', '1200k', '-b:a', '96k', \
                     '-hls_segment_filename', upload_path + \
                     '/360p_%03d.ts', upload_path + '/360p.m3u8', \
                     '-vf', 'scale=w=842:h=480:force_original_aspect_ratio=decrease', \
                     '-c:a', 'aac', '-ar', '48000', '-c:v', 'h264', \
                     '-profile:v', 'main', '-crf', '20', '-sc_threshold', '0', \
                     '-g', '48', '-keyint_min', '48', '-hls_time', '4', \
                     '-hls_playlist_type', 'vod', '-b:v', '1400k', \
                     '-maxrate', '1498k', '-bufsize', '2100k', '-b:a', '128k', \
                     '-hls_segment_filename', upload_path + \
                     '/480p_%03d.ts', upload_path + '/480p.m3u8', \
                     '-vf', 'scale=w=1280:h=720:force_original_aspect_ratio=decrease', \
                     '-c:a', 'aac', '-ar', '48000', '-c:v', 'h264', \
                     '-profile:v', 'main', '-crf', '20', '-sc_threshold', '0', \
                     '-g', '48', '-keyint_min', '48', '-hls_time', '4', \
                     '-hls_playlist_type', 'vod', '-b:v', '2800k', \
                     '-maxrate', '2996k', '-bufsize', '4200k', '-b:a', '128k', \
                     '-hls_segment_filename', upload_path + \
                     '/720p_%03d.ts', upload_path + '/720p.m3u8', \
                     '-vf', 'scale=w=1920:h=1080:force_original_aspect_ratio=decrease', \
                     '-c:a', 'aac', '-ar', '48000', '-c:v', 'h264', \
                     '-profile:v', 'main', '-crf', '20', '-sc_threshold', '0', \
                     '-g', '48', '-keyint_min', '48', '-hls_time', '4', \
                     '-hls_playlist_type', 'vod', '-b:v', '5000k', \
                     '-maxrate', '5350k', '-bufsize', '7500k', '-b:a', '192k', \
                     '-hls_segment_filename', upload_path + '/1080p_%03d.ts', upload_path + '/1080p.m3u8'])


    


    And getting this output

    


    [libx264 @ 0x7fb95500c800] width not divisible by 2 (639x360)
Error initializing output stream 0:0 -- Error while opening encoder for output stream #0:0 - maybe incorrect parameters such as bit_rate, rate, width or height


    


    Any ideas of whats going wrong ?

    


  • Revision 2de18d1fd2 : Super resolution mode (+CONFIG_SR_MODE) CONFIG_SR_MODE=1, enable SR mode USE_PO

    12 août 2015, par Shunyao Li

    Changed Paths :
     Modify /configure


     Modify /vp9/common/vp9_blockd.h


     Modify /vp9/common/vp9_entropymode.c


     Modify /vp9/common/vp9_entropymode.h


     Modify /vp9/common/vp9_idct.c


     Modify /vp9/common/vp9_idct.h


     Modify /vp9/common/vp9_pred_common.h


     Modify /vp9/common/vp9_rtcd_defs.pl


     Add /vp9/common/vp9_sr_txfm.c


     Add /vp9/common/vp9_sr_txfm.h


     Modify /vp9/decoder/vp9_decodeframe.c


     Modify /vp9/decoder/vp9_decodemv.c


     Modify /vp9/encoder/vp9_bitstream.c


     Modify /vp9/encoder/vp9_block.h


     Modify /vp9/encoder/vp9_encodeframe.c


     Modify /vp9/encoder/vp9_encodemb.c


     Modify /vp9/encoder/vp9_encodemb.h


     Modify /vp9/encoder/vp9_encoder.c


     Modify /vp9/encoder/vp9_firstpass.c


     Modify /vp9/encoder/vp9_rdopt.c


     Modify /vp9/encoder/vp9_tokenize.c


     Modify /vp9/vp9_common.mk



    Super resolution mode (+CONFIG_SR_MODE)

    CONFIG_SR_MODE=1, enable SR mode
    USE_POST_F=1, enable SR post filter
    SR_USE_MULTI_F=1, enable SR post filter family
    Not compatible with other experiments yet

    Change-Id : I116f1d898cc2ff7dd114d7379664304907afe0ec