Recherche avancée

Médias (91)

Autres articles (67)

  • Ecrire une actualité

    21 juin 2013, par

    Présentez les changements dans votre MédiaSPIP ou les actualités de vos projets sur votre MédiaSPIP grâce à la rubrique actualités.
    Dans le thème par défaut spipeo de MédiaSPIP, les actualités sont affichées en bas de la page principale sous les éditoriaux.
    Vous pouvez personnaliser le formulaire de création d’une actualité.
    Formulaire de création d’une actualité Dans le cas d’un document de type actualité, les champs proposés par défaut sont : Date de publication ( personnaliser la date de publication ) (...)

  • Publier sur MédiaSpip

    13 juin 2013

    Puis-je poster des contenus à partir d’une tablette Ipad ?
    Oui, si votre Médiaspip installé est à la version 0.2 ou supérieure. Contacter au besoin l’administrateur de votre MédiaSpip pour le savoir

  • Encoding and processing into web-friendly formats

    13 avril 2011, par

    MediaSPIP automatically converts uploaded files to internet-compatible formats.
    Video files are encoded in MP4, Ogv and WebM (supported by HTML5) and MP4 (supported by Flash).
    Audio files are encoded in MP3 and Ogg (supported by HTML5) and MP3 (supported by Flash).
    Where possible, text is analyzed in order to retrieve the data needed for search engine detection, and then exported as a series of image files.
    All uploaded files are stored online in their original format, so you can (...)

Sur d’autres sites (14803)

  • DXV decoder

    26 août 2015, par Vittorio Giovara
    DXV decoder
    

    Support all DXDI and DXD3 normal quality videos.

    • [DBH] Changelog
    • [DBH] configure
    • [DBH] doc/general.texi
    • [DBH] libavcodec/Makefile
    • [DBH] libavcodec/allcodecs.c
    • [DBH] libavcodec/avcodec.h
    • [DBH] libavcodec/dxv.c
    • [DBH] libavcodec/version.h
    • [DBH] libavformat/isom.c
    • [DBH] tests/fate/video.mak
    • [DBH] tests/ref/fate/dxv-dxt1
    • [DBH] tests/ref/fate/dxv-dxt5
    • [DBH] tests/ref/fate/dxv3-dxt1
    • [DBH] tests/ref/fate/dxv3-dxt5
  • Failed encoding Carrierwave-video FFMPEG

    12 septembre 2018, par Cole Phiper

    I’m using Carrierwave-video and Carrierwave-ffmpegthumbnailer. The problem I am having, is the transcoder is now refusing to work & I can’t locate the origin of the error. I tried removing some of the custom settings, but nothing seems to work. How can I fix the transcoder to allow video uploads ?

    story_video_uploader.rb

    require 'mime/types'
    class StoryVideoUploader < CarrierWave::Uploader::Base

     # Include RMagick or MiniMagick support:
     # include CarrierWave::RMagick
     include CarrierWave::MiniMagick
     include CarrierWave::Video
     include CarrierWave::Video::Thumbnailer
     # include CarrierWave::FFMPEG

     # Choose what kind of storage to use for this uploader:
     storage :postgresql_lo
     # storage :fog

     # Override the directory where uploaded files will be stored.
     # This is a sensible default for uploaders that are meant to be mounted:

     version :thumb do
       process thumbnail: [{ format: 'png', quality: 10, size: 200, strip: false, logger: Rails.logger }]
       def full_filename(for_file)
         png_name(for_file, version_name)
       end
       process :apply_png_content_type
     end

     version :mp4 do
       process encode_video: [:mp4, resolution: '1024x1366', preserve_aspect_ratio: :width, watermark: { path: File.join(Rails.root, 'app/assets/images/', 'logo_94x70_WHITE.png'),  position: :bottom_right, pixles_from_edge: 10  }]
     end


     def png_name(for_file, version_name)
       %Q{#{version_name}_#{for_file.chomp(File.extname(for_file))}.png}
     end

     def store_dir
       "uploads/#{model.class.to_s.underscore}/#{mounted_as}/#{model.id}"
     end

     def extension_white_list
       [/png\Z/, /jpe?g\Z/, /gif\Z/, /mp4\Z/, /mov\Z/, /ogg\Z/, /webm\Z/, /avi\Z/, /3gp\Z/, /mkv\Z/]
     end

     def apply_png_content_type(*)
       file.instance_variable_set(:@content_type, 'image/png')
     end
    end

    Rails Console and Error output

    irb(main):020:0> >> story.story_video = File.open("/home/cole/Downloads/Video_Of_People_Walking.mp4")
    Running....ffmpegthumbnailer -i "/home/cole/Desktop/TestApp/tmp/1536704274-2522-0003-3784/thumb/Video_Of_People_Walking.mp4" -o "/home/cole/Desktop/TestApp/tmp/1536704274-2522-0003-3784/thumb/tmpfile.png" -c png -q 10 -s 200
    Success!
    I, [2018-09-11T18:17:58.675474 #2522]  INFO -- : Running transcoding...
    ["/usr/bin/ffmpeg", "-y", "-i", "/home/cole/Desktop/TestApp/tmp/1536704274-2522-0003-3784/mp4/Video_Of_People_Walking.mp4", "-vcodec", "libx264", "-acodec", "aac", "-s", "1024x576", "-r", "30", "-strict", "-2", "-map_metadata", "-1", "-vf", "\"movie=/home/cole/Desktop/TestApp/app/assets/images/logo_94x70_WHITE.png [logo]; [in][logo] overlay=main_w-overlay_w-10:main_h-overlay_h-10 [out]\"", "-aspect", "1.7777777777777777", "/home/cole/Desktop/TestApp/tmp/1536704274-2522-0003-3784/mp4/tmpfile.mp4"]

    E, [2018-09-11T18:18:00.233135 #2522] ERROR -- : Failed encoding...
    ["/usr/bin/ffmpeg", "-y", "-i", "/home/cole/Desktop/TestApp/tmp/1536704274-2522-0003-3784/mp4/Video_Of_People_Walking.mp4", "-vcodec", "libx264", "-acodec", "aac", "-s", "1024x576", "-r", "30", "-strict", "-2", "-map_metadata", "-1", "-vf", "\"movie=/home/cole/Desktop/TestApp/app/assets/images/logo_94x70_WHITE.png [logo]; [in][logo] overlay=main_w-overlay_w-10:main_h-overlay_h-10 [out]\"", "-aspect", "1.7777777777777777", "/home/cole/Desktop/TestApp/tmp/1536704274-2522-0003-3784/mp4/tmpfile.mp4"]

    ffmpeg version 3.4.4-0ubuntu0.18.04.1 Copyright (c) 2000-2018 the FFmpeg developers
     built with gcc 7 (Ubuntu 7.3.0-16ubuntu3)
     configuration: --prefix=/usr --extra-version=0ubuntu0.18.04.1 --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --enable-gpl --disable-stripping --enable-avresample --enable-avisynth --enable-gnutls --enable-ladspa --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librubberband --enable-librsvg --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzmq --enable-libzvbi --enable-omx --enable-openal --enable-opengl --enable-sdl2 --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libopencv --enable-libx264 --enable-shared
     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 '/home/cole/Desktop/TestApp/tmp/1536704274-2522-0003-3784/mp4/Video_Of_People_Walking.mp4':
     Metadata:
       major_brand     : mp42
       minor_version   : 0
       compatible_brands: mp42mp41isomavc1
       creation_time   : 2017-03-09T02:02:54.000000Z
     Duration: 00:00:19.19, start: 0.000000, bitrate: 3454 kb/s
       Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p(tv, bt709), 1920x1080 [SAR 1:1 DAR 16:9], 3451 kb/s, 23.98 fps, 23.98 tbr, 24k tbn, 47.95 tbc (default)
       Metadata:
         creation_time   : 2017-03-09T02:02:54.000000Z
         handler_name    : L-SMASH Video Handler
         encoder         : AVC Coding
    Stream mapping:
     Stream #0:0 -> #0:0 (h264 (native) -> h264 (libx264))
    Press [q] to stop, [?] for help
    [AVFilterGraph @ 0x56309b654840] No such filter: '"movie'
    Error reinitializing filters!
    Failed to inject frame into filter network: Invalid argument
    Error while processing the decoded data for stream #0:0
    Conversion failed!

    Errors: encoded file is invalid.

    FFMPEG::Error: Failed encoding.Errors: encoded file is invalid. Full output: ffmpeg version 3.4.4-0ubuntu0.18.04.1 Copyright (c) 2000-2018 the FFmpeg developers
     built with gcc 7 (Ubuntu 7.3.0-16ubuntu3)
     configuration: --prefix=/usr --extra-version=0ubuntu0.18.04.1 --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --enable-gpl --disable-stripping --enable-avresample --enable-avisynth --enable-gnutls --enable-ladspa --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librubberband --enable-librsvg --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzmq --enable-libzvbi --enable-omx --enable-openal --enable-opengl --enable-sdl2 --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libopencv --enable-libx264 --enable-shared
     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 '/home/cole/Desktop/TestApp/tmp/1536704274-2522-0003-3784/mp4/Video_Of_People_Walking.mp4':
     Metadata:
       major_brand     : mp42
       minor_version   : 0
       compatible_brands: mp42mp41isomavc1
       creation_time   : 2017-03-09T02:02:54.000000Z
     Duration: 00:00:19.19, start: 0.000000, bitrate: 3454 kb/s
       Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p(tv, bt709), 1920x1080 [SAR 1:1 DAR 16:9], 3451 kb/s, 23.98 fps, 23.98 tbr, 24k tbn, 47.95 tbc (default)
       Metadata:
         creation_time   : 2017-03-09T02:02:54.000000Z
         handler_name    : L-SMASH Video Handler
         encoder         : AVC Coding
    Stream mapping:
     Stream #0:0 -> #0:0 (h264 (native) -> h264 (libx264))
    Press [q] to stop, [?] for help
    [AVFilterGraph @ 0x56309b654840] No such filter: '"movie'
    Error reinitializing filters!
    Failed to inject frame into filter network: Invalid argument
    Error while processing the decoded data for stream #0:0
    Conversion failed!

       from (irb):20
    irb(main):021:0>
  • How to use FFmpeg to live HLS stream with subtitle ?

    17 août 2023, par iHad 169

    I want to use FFmpeg to live HLS stream with subtitle.
I have a Media. The Media have one video track, two audio track, four subtitle.
But, I tryed this command :

    



    ffmpeg -i input0.mkv \
-map 0:v:0 -c:v libx264 -strict -2 -s 426x240   -f hls -hls_time 10 -hls_list_size 6 -hls_wrap 10 -hls_segment_filename video/videoTrack240p_%d.ts      video/videoTrack240p.m3u8 \
-map 0:v:0 -c:v libx264 -strict -2 -s 1280x720  -f hls -hls_time 10 -hls_list_size 6 -hls_wrap 10 -hls_segment_filename video/videoTrack720p_%d.ts      video/videoTrack720p.m3u8 \
-map 0:v:0 -c:v libx264 -strict -2 -s 1920x1080 -f hls -hls_time 10 -hls_list_size 6 -hls_wrap 10 -hls_segment_filename video/videoTrack1080p_%d.ts     video/videoTrack1080p.m3u8 \
-map 0:a:0 -c:a aac                             -f hls -hls_time 10 -hls_list_size 6 -hls_wrap 10 -hls_segment_filename audio/audioTrack1_%d.aac        audio/audioTrack0.m3u8 \
-map 0:a:1 -c:a aac                             -f hls -hls_time 10 -hls_list_size 6 -hls_wrap 10 -hls_segment_filename audio/audioTrack0_%d.aac        audio/audioTrack1.m3u8 \
-map 0:s:0 -c:s webvtt                          -f hls -hls_time 10 -hls_list_size 6 -hls_wrap 10 -hls_segment_filename subtitle/subtitleTrack0_%d.vtt  subtitle/subtitleTrack0.m3u8 \
-map 0:s:1 -c:s webvtt                          -f hls -hls_time 10 -hls_list_size 6 -hls_wrap 10 -hls_segment_filename subtitle/subtitleTrack1_%d.vtt  subtitle/subtitleTrack1.m3u8 \
-map 0:s:2 -c:s webvtt                          -f hls -hls_time 10 -hls_list_size 6 -hls_wrap 10 -hls_segment_filename subtitle/subtitleTrack2_%d.vtt  subtitle/subtitleTrack2.m3u8 \
-map 0:s:3 -c:s webvtt                          -f hls -hls_time 10 -hls_list_size 6 -hls_wrap 10 -hls_segment_filename subtitle/subtitleTrack3_%d.vtt  subtitle/subtitleTrack3.m3u8


    



    It show this Error :

    



    ffmpeg version 3.4.4-0ubuntu0.18.04.1 Copyright (c) 2000-2018 the FFmpeg developers
  built with gcc 7 (Ubuntu 7.3.0-16ubuntu3)
  configuration: --prefix=/usr --extra-version=0ubuntu0.18.04.1 --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --enable-gpl --disable-stripping --enable-avresample --enable-avisynth --enable-gnutls --enable-ladspa --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librubberband --enable-librsvg --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzmq --enable-libzvbi --enable-omx --enable-openal --enable-opengl --enable-sdl2 --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libopencv --enable-libx264 --enable-shared
  WARNING: library configuration mismatch
  avcodec     configuration: --prefix=/usr --extra-version=0ubuntu0.18.04.1 --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --enable-gpl --disable-stripping --enable-avresample --enable-avisynth --enable-gnutls --enable-ladspa --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librubberband --enable-librsvg --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzmq --enable-libzvbi --enable-omx --enable-openal --enable-opengl --enable-sdl2 --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libopencv --enable-libx264 --enable-shared --enable-version3 --disable-doc --disable-programs --enable-libopencore_amrnb --enable-libopencore_amrwb --enable-libtesseract --enable-libvo_amrwbenc
  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
[matroska,webm @ 0x5631128c1460] Could not find codec parameters for stream 5 (Subtitle: hdmv_pgs_subtitle (pgssub)): unspecified size
Consider increasing the value for the 'analyzeduration' and 'probesize' options
[matroska,webm @ 0x5631128c1460] Could not find codec parameters for stream 6 (Subtitle: hdmv_pgs_subtitle (pgssub)): unspecified size
Consider increasing the value for the 'analyzeduration' and 'probesize' options
Input #0, matroska,webm, from 'input0.mkv':
  Metadata:
    title           : GRAVITY DAZE The Animation Ouverture
    encoder         : libebml v1.2.3 + libmatroska v1.3.0
    creation_time   : 2017-03-30T06:22:52.000000Z
  Duration: 00:17:23.58, start: 0.000000, bitrate: 2155 kb/s
    Stream #0:0(eng): Video: h264 (High), yuv420p(progressive), 1280x720 [SAR 1:1 DAR 16:9], 24 fps, 24 tbr, 1k tbn, 48 tbc (default)
    Stream #0:1(jpn): Audio: aac (LC), 48000 Hz, stereo, fltp (default)
    Stream #0:2(jpn): Audio: aac (LC), 48000 Hz, stereo, fltp
    Stream #0:3(chi): Subtitle: ass (default)
    Metadata:
      title           : CHT
    Stream #0:4(chi): Subtitle: ass
    Metadata:
      title           : CHS
    Stream #0:5(jpn): Subtitle: hdmv_pgs_subtitle
    Stream #0:6(eng): Subtitle: hdmv_pgs_subtitle
[hls @ 0x5631128fc840] Opening 'subtitle/subtitleTrack0_0.vtt' for writing
[hls @ 0x5631128fc840] Opening 'subtitle/subtitleTrack00.vtt' for writing
[mpegts @ 0x56311296bda0] No streams to mux were specified
Could not write header for output file #5 (incorrect codec parameters ?): Invalid argument
Stream mapping:
  Stream #0:0 -> #0:0 (h264 (native) -> h264 (libx264))
  Stream #0:0 -> #1:0 (h264 (native) -> h264 (libx264))
  Stream #0:0 -> #2:0 (h264 (native) -> h264 (libx264))
  Stream #0:1 -> #3:0 (aac (native) -> aac (native))
  Stream #0:2 -> #4:0 (aac (native) -> aac (native))
  Stream #0:3 -> #5:0 (ass (ssa) -> webvtt (native))
  Stream #0:4 -> #6:0 (ass (ssa) -> webvtt (native))
  Stream #0:5 -> #7:0 (hdmv_pgs_subtitle (pgssub) -> webvtt (native))
  Stream #0:6 -> #8:0 (hdmv_pgs_subtitle (pgssub) -> webvtt (native))
    Last message repeated 1 times


    



    If the command not add subtitle :

    



    ffmpeg -i input0.mkv \
-map 0:v:0 -c:v libx264 -strict -2 -s 426x240   -f hls -hls_time 10 -hls_list_size 6 -hls_wrap 10 -hls_segment_filename video/videoTrack240p_%d.ts      video/videoTrack240p.m3u8 \
-map 0:v:0 -c:v libx264 -strict -2 -s 1280x720  -f hls -hls_time 10 -hls_list_size 6 -hls_wrap 10 -hls_segment_filename video/videoTrack720p_%d.ts      video/videoTrack720p.m3u8 \
-map 0:v:0 -c:v libx264 -strict -2 -s 1920x1080 -f hls -hls_time 10 -hls_list_size 6 -hls_wrap 10 -hls_segment_filename video/videoTrack1080p_%d.ts     video/videoTrack1080p.m3u8 \
-map 0:a:0 -c:a aac                             -f hls -hls_time 10 -hls_list_size 6 -hls_wrap 10 -hls_segment_filename audio/audioTrack1_%d.aac        audio/audioTrack0.m3u8 \
-map 0:a:1 -c:a aac                             -f hls -hls_time 10 -hls_list_size 6 -hls_wrap 10 -hls_segment_filename audio/audioTrack0_%d.aac        audio/audioTrack1.m3u8


    



    The streaming is work without error.
I cannot find FFmpeg streaming with subtitle example on long time.