Recherche avancée

Médias (17)

Mot : - Tags -/wired

Autres articles (66)

  • Qu’est ce qu’un éditorial

    21 juin 2013, par

    Ecrivez votre de point de vue dans un article. Celui-ci sera rangé dans une rubrique prévue à cet effet.
    Un éditorial est un article de type texte uniquement. Il a pour objectif de ranger les points de vue dans une rubrique dédiée. Un seul éditorial est placé à la une en page d’accueil. Pour consulter les précédents, consultez la rubrique dédiée.
    Vous pouvez personnaliser le formulaire de création d’un éditorial.
    Formulaire de création d’un éditorial Dans le cas d’un document de type éditorial, les (...)

  • Gestion des droits de création et d’édition des objets

    8 février 2011, par

    Par défaut, beaucoup de fonctionnalités sont limitées aux administrateurs mais restent configurables indépendamment pour modifier leur statut minimal d’utilisation notamment : la rédaction de contenus sur le site modifiables dans la gestion des templates de formulaires ; l’ajout de notes aux articles ; l’ajout de légendes et d’annotations sur les images ;

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

Sur d’autres sites (5408)

  • Restoring corrupted video after recovery

    22 août 2019, par Harold.Demure

    I have recently recovered the content of an old drive of mine using photorec.

    To my surprise, photorec recovered a lot of files with non-video extensions (.sqlite, .apple, .pdf, .torrent...) that contain fragments of video. I can see these fragments only using mplayer/mencoder (quicktime and vlc cannot). Some of the files are even hundreds of megabyte large, but mplayer only shows me a few seconds of the video.

    Is there any script/data carving tool that I can use to see if I can recover more video fragments from these files ? I am not afraid of trying solutions that require some coding or manual inspection (e.g., search for headers via hex editors).

    Thank you for your help, any suggestion is highly appreciated.
    Harol.

  • ffmpeg how to add mkv to formats

    30 décembre 2015, par Mahmoud Saad

    hello after installing ffmpeg in my linux server with centos 6 after searching google i run ffmpeg -formats so i need to add mkv i know i will need to recompile ffmpeg but i do not know how to do it
    thank you

    File formats:
    D. = Demuxing supported
    .E = Muxing supported
    --
     E 3g2             3GP2 format
     E 3gp             3GP format
    D  4xm             4X Technologies format
    D  IFF             IFF format
    D  ISS             Funcom ISS format
    D  MTV             MTV format
    DE RoQ             raw id RoQ format
    D  aac             raw ADTS AAC
    DE ac3             raw AC-3
     E adts            ADTS AAC
    D  aea             MD STUDIO audio
    DE aiff            Audio IFF
    DE alaw            PCM A-law format
    DE alsa            ALSA audio output
    DE amr             3GPP AMR file format
    D  anm             Deluxe Paint Animation
    D  apc             CRYO APC format
    D  ape             Monkey's Audio
    DE asf             ASF format
     E asf_stream      ASF format
    DE ass             SSA/ASS format
    DE au              SUN AU format
    DE avi             AVI format
     E avm2            Flash 9 (AVM2) format
    D  avs             AVS format
    D  bethsoftvid     Bethesda Softworks VID format
    D  bfi             Brute Force & Ignorance
    D  bink            Bink
    D  c93             Interplay C93
    D  caf             Apple Core Audio Format
    D  cavsvideo       raw Chinese AVS video
    D  cdg             CD Graphics Format
     E crc             CRC testing format
    DE daud            D-Cinema audio format
    DE dirac           raw Dirac
    DE dnxhd           raw DNxHD (SMPTE VC-3)
    D  dsicin          Delphine Software International CIN format
    DE dts             raw DTS
    DE dv              DV video format
    D  dv1394          DV1394 A/V grab
     E dvd             MPEG-2 PS format (DVD VOB)
    D  dxa             DXA
    D  ea              Electronic Arts Multimedia Format
    D  ea_cdata        Electronic Arts cdata
    DE eac3            raw E-AC-3
    DE f32be           PCM 32 bit floating-point big-endian format
    DE f32le           PCM 32 bit floating-point little-endian format
    DE f64be           PCM 64 bit floating-point big-endian format
    DE f64le           PCM 64 bit floating-point little-endian format
    DE ffm             FFM (FFserver live feed) format
    D  film_cpk        Sega FILM/CPK format
    DE filmstrip       Adobe Filmstrip
    DE flac            raw FLAC
    D  flic            FLI/FLC/FLX animation format
    DE flv             FLV format
     E framecrc        framecrc testing format
     E gif             GIF Animation
    D  gsm             raw GSM
    DE gxf             GXF format
    DE h261            raw H.261
    DE h263            raw H.263
    DE h264            raw H.264 video format
    D  idcin           id Cinematic format
    DE image2          image2 sequence
    DE image2pipe      piped image2 sequence
    D  ingenient       raw Ingenient MJPEG
    D  ipmovie         Interplay MVE format
     E ipod            iPod H.264 MP4 format
    D  iv8             A format generated by IndigoVision 8000 video server
    D  libdc1394       dc1394 v.2 A/V grab
    D  lmlm4           lmlm4 raw format
    DE m4v             raw MPEG-4 video format
    DE matroska        Matroska file format
    DE mjpeg           raw MJPEG video
    DE mlp             raw MLP
    D  mm              American Laser Games MM format
    DE mmf             Yamaha SMAF
     E mov             MOV format
    D  mov,mp4,m4a,3gp,3g2,mj2 QuickTime/MPEG-4/Motion JPEG 2000 format
     E mp2             MPEG audio layer 2
    DE mp3             MPEG audio layer 3
     E mp4             MP4 format
    D  mpc             Musepack
    D  mpc8            Musepack SV8
    DE mpeg            MPEG-1 System format
     E mpeg1video      raw MPEG-1 video
     E mpeg2video      raw MPEG-2 video
    DE mpegts          MPEG-2 transport stream format
    D  mpegtsraw       MPEG-2 raw transport stream format
    D  mpegvideo       raw MPEG video
     E mpjpeg          MIME multipart JPEG format
    D  msnwctcp        MSN TCP Webcam stream
    DE mulaw           PCM mu-law format
    D  mvi             Motion Pixels MVI format
    DE mxf             Material eXchange Format
     E mxf_d10         Material eXchange Format, D-10 Mapping
    D  nc              NC camera feed format
    D  nsv             Nullsoft Streaming Video
     E null            raw null video format
    DE nut             NUT format
    D  nuv             NuppelVideo format
    DE ogg             Ogg
    D  oma             Sony OpenMG audio
    DE oss             Open Sound System playback
     E psp             PSP MP4 format
    D  psxstr          Sony Playstation STR format
    D  pva             TechnoTrend PVA file and stream format
    D  qcp             QCP format
    D  r3d             REDCODE R3D format
    DE rawvideo        raw video format
     E rcv             VC-1 test bitstream
    D  rl2             RL2 format
    DE rm              RealMedia format
    D  rpl             RPL/ARMovie format
     E rtp             RTP output format
    DE rtsp            RTSP output format
    DE s16be           PCM signed 16 bit big-endian format
    DE s16le           PCM signed 16 bit little-endian format
    DE s24be           PCM signed 24 bit big-endian format
    DE s24le           PCM signed 24 bit little-endian format
    DE s32be           PCM signed 32 bit big-endian format
    DE s32le           PCM signed 32 bit little-endian format
    DE s8              PCM signed 8 bit format
    D  sdp             SDP
    D  shn             raw Shorten
    D  siff            Beam Software SIFF
    D  smk             Smacker video
    D  sol             Sierra SOL format
    DE sox             SoX native format
     E spdif           IEC958 - S/PDIF (IEC-61937)
     E svcd            MPEG-2 PS format (VOB)
    DE swf             Flash format
    D  thp             THP
    D  tiertexseq      Tiertex Limited SEQ format
    D  tmv             8088flex TMV
    DE truehd          raw TrueHD
    D  tta             True Audio
    D  txd             Renderware TeXture Dictionary
    DE u16be           PCM unsigned 16 bit big-endian format
    DE u16le           PCM unsigned 16 bit little-endian format
    DE u24be           PCM unsigned 24 bit big-endian format
    DE u24le           PCM unsigned 24 bit little-endian format
    DE u32be           PCM unsigned 32 bit big-endian format
    DE u32le           PCM unsigned 32 bit little-endian format
    DE u8              PCM unsigned 8 bit format
    D  vc1             raw VC-1
    D  vc1test         VC-1 test bitstream format
     E vcd             MPEG-1 System format (VCD)
    D  video4linux     Video4Linux device grab
    D  video4linux2    Video4Linux2 device grab
    D  vmd             Sierra VMD format
     E vob             MPEG-2 PS format (VOB)
    DE voc             Creative Voice file format
    D  vqf             Nippon Telegraph and Telephone Corporation (NTT) TwinVQ
    D  w64             Sony Wave64 format
    DE wav             WAV format
    D  wc3movie        Wing Commander III movie format
     E webm            WebM file format
    D  wsaud           Westwood Studios audio format
    D  wsvqa           Westwood Studios VQA format
    D  wv              WavPack
    D  x11grab         X11grab
    D  xa              Maxis XA File Format
    D  yop             Psygnosis YOP Format
    DE yuv4mpegpipe    YUV4MPEG pipe format
  • Precise method of segmenting & transcoding video+audio (via ffmpeg), into an on-demand HLS stream ?

    17 novembre 2019, par Felix

    recently I’ve been messing around with FFMPEG and streams through Nodejs. My ultimate goal is to serve a transcoded video stream - from any input filetype - via HTTP, generated in real-time as it’s needed in segments.

    I’m currently attempting to handle this using HLS. I pre-generate a dummy m3u8 manifest using the known duration of the input video. It contains a bunch of URLs that point to individual constant-duration segments. Then, once the client player starts requesting the individual URLs, I use the requested path to determine which time range of video the client needs. Then I transcode the video and stream that segment back to them.

    Now for the problem : This approach mostly works, but has a small audio bug. Currently, with most test input files, my code produces a video that - while playable - seems to have a very small (< .25 second) audio skip at the start of each segment.

    I think this may be an issue with splitting using time in ffmpeg, where possibly the audio stream cannot be accurately sliced at the exact frame the video is. So far, I’ve been unable to figure out a solution to this problem.

    If anybody has any direction they can steer me - or even a prexisting library/server that solves this use-case - I appreciate the guidance. My knowledge of video encoding is fairly limited.

    I’ll include an example of my relevant current code below, so others can see where I’m stuck. You should be able to run this as a Nodejs Express server, then point any HLS player at localhost:8080/master to load the manifest and begin playback. See the transcode.get('/segment/:seg.ts' line at the end, for the relevant transcoding bit.

    'use strict';
    const express = require('express');
    const ffmpeg = require('fluent-ffmpeg');
    let PORT = 8080;
    let HOST = 'localhost';
    const transcode = express();


    /*
    * This file demonstrates an Express-based server, which transcodes &amp; streams a video file.
    * All transcoding is handled in memory, in chunks, as needed by the player.
    *
    * It works by generating a fake manifest file for an HLS stream, at the endpoint "/m3u8".
    * This manifest contains links to each "segment" video clip, which browser-side HLS players will load as-needed.
    *
    * The "/segment/:seg.ts" endpoint is the request destination for each clip,
    * and uses FFMpeg to generate each segment on-the-fly, based off which segment is requested.
    */


    const pathToMovie = 'C:\\input-file.mp4';  // The input file to stream as HLS.
    const segmentDur = 5; //  Controls the duration (in seconds) that the file will be chopped into.


    const getMetadata = async(file) => {
       return new Promise( resolve => {
           ffmpeg.ffprobe(file, function(err, metadata) {
               console.log(metadata);
               resolve(metadata);
           });
       });
    };



    // Generate a "master" m3u8 file, which the player should point to:
    transcode.get('/master', async(req, res) => {
       res.set({"Content-Disposition":"attachment; filename=\"m3u8.m3u8\""});
       res.send(`#EXTM3U
    #EXT-X-STREAM-INF:BANDWIDTH=150000
    /m3u8?num=1
    #EXT-X-STREAM-INF:BANDWIDTH=240000
    /m3u8?num=2`)
    });

    // Generate an m3u8 file to emulate a premade video manifest. Guesses segments based off duration.
    transcode.get('/m3u8', async(req, res) => {
       let met = await getMetadata(pathToMovie);
       let duration = met.format.duration;

       let out = '#EXTM3U\n' +
           '#EXT-X-VERSION:3\n' +
           `#EXT-X-TARGETDURATION:${segmentDur}\n` +
           '#EXT-X-MEDIA-SEQUENCE:0\n' +
           '#EXT-X-PLAYLIST-TYPE:VOD\n';

       let splits = Math.max(duration / segmentDur);
       for(let i=0; i&lt; splits; i++){
           out += `#EXTINF:${segmentDur},\n/segment/${i}.ts\n`;
       }
       out+='#EXT-X-ENDLIST\n';

       res.set({"Content-Disposition":"attachment; filename=\"m3u8.m3u8\""});
       res.send(out);
    });

    // Transcode the input video file into segments, using the given segment number as time offset:
    transcode.get('/segment/:seg.ts', async(req, res) => {
       const segment = req.params.seg;
       const time = segment * segmentDur;

       let proc = new ffmpeg({source: pathToMovie})
           .seekInput(time)
           .duration(segmentDur)
           .outputOptions('-preset faster')
           .outputOptions('-g 50')
           .outputOptions('-profile:v main')
           .withAudioCodec('aac')
           .outputOptions('-ar 48000')
           .withAudioBitrate('155k')
           .withVideoBitrate('1000k')
           .outputOptions('-c:v h264')
           .outputOptions(`-output_ts_offset ${time}`)
           .format('mpegts')
           .on('error', function(err, st, ste) {
               console.log('an error happened:', err, st, ste);
           }).on('progress', function(progress) {
               console.log(progress);
           })
           .pipe(res, {end: true});
    });

    transcode.listen(PORT, HOST);
    console.log(`Running on http://${HOST}:${PORT}`);