Recherche avancée

Médias (91)

Autres articles (73)

  • Supporting all media types

    13 avril 2011, par

    Unlike most software and media-sharing platforms, MediaSPIP aims to manage as many different media types as possible. The following are just a few examples from an ever-expanding list of supported formats : images : png, gif, jpg, bmp and more audio : MP3, Ogg, Wav and more video : AVI, MP4, OGV, mpg, mov, wmv and more text, code and other data : OpenOffice, Microsoft Office (Word, PowerPoint, Excel), web (html, CSS), LaTeX, Google Earth and (...)

  • Dépôt de média et thèmes par FTP

    31 mai 2013, par

    L’outil MédiaSPIP traite aussi les média transférés par la voie FTP. Si vous préférez déposer par cette voie, récupérez les identifiants d’accès vers votre site MédiaSPIP et utilisez votre client FTP favori.
    Vous trouverez dès le départ les dossiers suivants dans votre espace FTP : config/ : dossier de configuration du site IMG/ : dossier des média déjà traités et en ligne sur le site local/ : répertoire cache du site web themes/ : les thèmes ou les feuilles de style personnalisées tmp/ : dossier de travail (...)

  • Keeping control of your media in your hands

    13 avril 2011, par

    The vocabulary used on this site and around MediaSPIP in general, aims to avoid reference to Web 2.0 and the companies that profit from media-sharing.
    While using MediaSPIP, you are invited to avoid using words like "Brand", "Cloud" and "Market".
    MediaSPIP is designed to facilitate the sharing of creative media online, while allowing authors to retain complete control of their work.
    MediaSPIP aims to be accessible to as many people as possible and development is based on expanding the (...)

Sur d’autres sites (5121)

  • avcodec : add Media 100i decoder

    21 septembre 2022, par Paul B Mahol
    avcodec : add Media 100i decoder
    
    • [DH] Changelog
    • [DH] libavcodec/Makefile
    • [DH] libavcodec/allcodecs.c
    • [DH] libavcodec/codec_desc.c
    • [DH] libavcodec/codec_id.h
    • [DH] libavcodec/media100.c
    • [DH] libavcodec/version.h
    • [DH] libavformat/isom_tags.c
  • Unable to decode media issue on chrome browser

    20 octobre 2018, par Shrikant D

    I am experiencing an issue while playing media on my application. I am using html5 player which works fine on another browser but the media not worked on Google Chrome. Below is the ffmpeg output.

    ffmpeg version 3.4.1 Copyright (c) 2000-2017 the FFmpeg developers

     built with Apple LLVM version 8.0.0 (clang-800.0.42.1)

     configuration: --prefix=/usr/local/Cellar/ffmpeg/3.4.1 --enable-shared --enable-pthreads --enable-version3 --enable-hardcoded-tables --enable-avresample --cc=clang --host-cflags= --host-ldflags= --enable-gpl --enable-libmp3lame --enable-libx264 --enable-libxvid --enable-opencl --enable-videotoolbox --disable-lzma

     libavutil      55. 78.100 / 55. 78.100

     libavcodec     57.107.100 / 57.107.100

     libavformat    57. 83.100 / 57. 83.100

     libavdevice    57. 10.100 / 57. 10.100

     libavfilter     6.107.100 /  6.107.100

     libavresample   3.  7.  0 /  3.  7.  0

     libswscale      4.  8.100 /  4.  8.100

     libswresample   2.  9.100 /  2.  9.100

     libpostproc    54.  7.100 / 54.  7.100

    Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'sources-5a6b388fb093f.mp4':

     Metadata:

       major_brand     : mp42

       minor_version   : 0

       compatible_brands: mp42mp41

       creation_time   : 2017-10-31T01:45:10.000000Z

     Duration: 00:04:55.72, start: 0.000000, bitrate: 10300 kb/s

       Stream #0:0(eng): Video: h264 (Main) (avc1 / 0x31637661), yuv420p(tv, bt709), 1920x1080, 9975 kb/s, 59.94 fps, 59.94 tbr, 60k tbn, 119.88 tbc (default)

       Metadata:

         creation_time   : 2017-10-31T01:45:10.000000Z

         handler_name    : Alias Data Handler

         encoder         : AVC Coding

       Stream #0:1(eng): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 317 kb/s (default)

       Metadata:

         creation_time   : 2017-10-31T01:45:10.000000Z

         handler_name    : Alias Data Handler

    The issue is replicable on Windows, Linux/Ubuntu and Mac on Google Chrome browser.

    UPDATED :

    render_id: 56
    player_id: 0
    origin_url: https://example.com/
    frame_url: https://example.com/node/83810
    frame_title:
    url: https://example.com/sites/default/files/sources-5a6b388fb093f.mp4
    total_bytes: 380754023
    streaming: false
    single_origin: true
    passed_cors_access_check: false
    range_header_supported: true
    pipeline_state: kStopped
    info: Selected FFmpegVideoDecoder for video decoding, config: codec: h264 format: 1 profile: h264 main coded size: [1920,1080] visible rect: [0,0,1920,1080] natural size: [1920,1080] has extra data? true encryption scheme: Unencrypted rotation: 0°
    audio_channels_count: 2
    audio_codec_name: aac
    audio_sample_format: Float 32-bit planar
    audio_samples_per_second: 48000
    bitrate: 10300299
    found_audio_stream: true
    found_video_stream: true
    height: 1080
    max_duration: 295.722667
    start_time: 0
    time_base: 1/60000
    video_codec_name: h264
    video_format: PIXEL_FORMAT_I420
    video_is_encrypted: false
    width: 1920
    audio_dds: false
    audio_decoder: FFmpegAudioDecoder
    video_dds: false
    video_decoder: FFmpegVideoDecoder
    audio_buffering_state: BUFFERING_HAVE_ENOUGH
    video_buffering_state: BUFFERING_HAVE_ENOUGH
    for_suspended_start: false
    pipeline_buffering_state: BUFFERING_HAVE_ENOUGH
    duration: 295.722667
    event: PAUSE
    error: video decode error
    pipeline_error: PIPELINE_ERROR_DECODE

    Added chrome Player Properties for specific media.

  • How to convert a video and audio file to be smoothly played via Media Source Extension API ?

    4 octobre 2018, par Aman

    I have built a web video player using the Media Source Extension API. I have been testing my video player using local video and audio files on my PC. Everything works perfectly expect the video keeps buffering. I’m playing a 4k 60fps video, which I downloaded from YouTube. My PC is not 4k resolution, but the video smoothly plays through YouTube and VLC Media Player. I’m just surprised to why my Media Source Extension Video Player buffers even through the video and audio file are not being retrieved via network. I’m assuming that the video and audio files I’m using are causing this problem. So I will explain how I created my video and audio files first :

    1. I downloaded the video from https://www.youtube.com/watch?v=KaCQ8SQ6ZHQ&t=3s using the 4K Video Downloader https://www.4kdownload.com/products/product-videodownloader.

    2. Convert the mkv (the 4K Video Downloader only allows the 4k 60fps video to be downloaded in mkv format, for me) file to mp4 using ffmpeg in CMD : ffmpeg -i test.mkv -codec copy test.mp4.

    3. Converting the test.mp4 file to my preferred 4K resolution 3840x2160 from 3840x1632 using ffmpeg in CMD : ffmpeg -i test.mp4 -s 3840x2160 -c:a copy test_changed.mp4. (NOT SO IMPORTANT)

    4. Separating the video and audio of test_changed.mp4 to video.mp4 for video and audio.mp4 for audio using MP4Box in CMD : Video - MP4Box -single 1 test_changed.mp4 -out video.mp4 and Audio - MP4Box -single 2 test_changed.mp4 -out audio.mp4.

    5. Splitting both video.mp4 and audio.mp4 into 30 split parts each containing 5 seconds of the video and audio file. So I end up having (video_1.mp4,audio_1.mp4), (video_2.mp4,audio_2.mp4), (video_3.mp4,audio_3.mp4), ..... (video_29.mp4,audio_29.mp4), (video_30.mp4,audio_30.mp4). Using ffmpeg and one by one specifying the time range for each part in CMD :

      [For Part 1 : ffmpeg -ss 00:00:00 -to 00:00:05 -i video.mp4 video_1.mp4, ffmpeg -ss 00:00:00 -to 00:00:05 -i audio.mp4 audio_1.mp4],

      [For Part 2 : ffmpeg -ss 00:00:05 -to 00:00:10 -i video.mp4 video_2.mp4, ffmpeg -ss 00:00:05 -to 00:00:10 -i audio.mp4 audio_2.mp4],

      [For Part 3 : ffmpeg -ss 00:00:10 -to 00:00:15 -i video.mp4 video_3.mp4, ffmpeg -ss 00:00:10 -to 00:00:15 -i audio.mp4 audio_3.mp4],

      .....

      [For Part 29 : ffmpeg -ss 00:02:20 -to 00:02:25 -i video.mp4 video_29.mp4, ffmpeg -ss 00:02:20 -to 00:02:25 -i audio.mp4 audio_29.mp4],

      [For Part 30 : ffmpeg -ss 00:02:25 -to 00:02:30 -i video.mp4 video_30.mp4, ffmpeg -ss 00:02:25 -to 00:02:30 -i audio.mp4 audio_30.mp4].

    6. Fragmenting each of the video and audio parts using MP4Box in CMD(As far as I know, fragmented mp4 files are only files played via Media Source Extension API) :

      [For Part 1 : MP4Box -dash 1000 -rap -frag-rap video_1.mp4, MP4Box -dash 1000 -rap -frag-rap audio_1.mp4],

      [For Part 2 : MP4Box -dash 1000 -rap -frag-rap video_2.mp4, MP4Box -dash 1000 -rap -frag-rap audio_2.mp4],

      [For Part 3 : MP4Box -dash 1000 -rap -frag-rap video_3.mp4, MP4Box -dash 1000 -rap -frag-rap audio_3.mp4],

      .....

      [For Part 29 : MP4Box -dash 1000 -rap -frag-rap video_29.mp4, MP4Box -dash 1000 -rap -frag-rap audio_29.mp4],

      [For Part 30 : MP4Box -dash 1000 -rap -frag-rap video_30.mp4, MP4Box -dash 1000 -rap -frag-rap audio_30.mp4].

    7. I receive a fragmented file for each file with "_dashinit" being in it e.g. For Part 1 : video_1_dashinit.mp4 and audio_1_dashinit.mp4. These are the files I’m playing through Media Source Extension API.

    So I’m appending these files into my sourceBuffers and playing it with the video. I have given the test.zip file here (https://drive.google.com/file/d/1tyPBTxgpS601Xs5VEWznYhWw9PwhMHsB/view?usp=sharing) containing the test sample.

    I’m using this command in CMD to run Chrome and test my file : chrome.exe --allow-file-access-from-files

    Anyone can use this test sample and see if the video is buffering for them too. Please comment about anything I’m doing wrong, or help me construct a better 5 seconds video and audio files for MSE playable. Thanks