Recherche avancée

Médias (1)

Mot : - Tags -/lev manovitch

Autres articles (65)

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

  • ffmpeg hls output files - hosting on cdn and conflicting fileNamespaces

    24 avril 2018, par Robert Rowntree

    env - ffmpeg running on cloud
    ffmpeg outputs 2, tmp files < m3u8, binData.ts >

    CDN hosting means the cloud-temp files above need to be uploaded from temp FS on cloud host where ffmpeg is run to final CDN for media. This uploading changes the file names , breaking the fileRef contained in the .m3u8 pointing to ’binData.ts’

    Possible workaround -

    upload binData.ts to the CDN as a single, unacompanied file, wait for CDN response to this file POST , using the response with ’newPrefixCDN-binData.ts’ to run a SED-script editing the original .m3u8 < details on edit below >

    and then uploading the edited m3u8 to the CDN where it correctly points at its binData.ts.

    Im reluctant to code this workaround.

    Is there a better way of doing this ? like using some lib

    Details

    ffmpeg ... -hls_playlist_type vod -hls_segment_filename binData_%03d.ts my.m3u8

    #EXTM3U
    #EXT-X-VERSION:3
    #EXT-X-MEDIA-SEQUENCE:0
    #EXT-X-ALLOW-CACHE:YES
    #EXT-X-TARGETDURATION:10
    #EXTINF:10.000000,
    binData_000.ts

    but then uploading ’binData.ts’ to CDN results in name change to

    /S3-bucket/dd911142f64f-binData_000.ts

    and without an edit , the original m3u8 output from ffmpeg now points at nothing ??

    #EXT-X-TARGETDURATION:10
    #EXTINF:10.000000,
    binData_000.ts   ****  changed after upload to CDN, could be edited

    —PS—
    AFAIK .. native, mobile browsers and html5 syntax seem to want 2, related , static files on the CDN that preserve a line in .m3u8 pointing to the static dot-ts file...

    <video class="vjs-tech" tabindex="-1"><source src="https://s3.eu-west-2.amazonaws.com/mybucket/my.m3u8" type="application/x-mpegURL"></source></video>
    ...

       #EXT-X-TARGETDURATION:10
       #EXTINF:10.000000,
       {CDN-prefix}-binData_000.ts

    ...

    static file in CDN of type ’.ts’ with the prefixed, CDN name above

    CDN-prefix-binData_000.ts

  • How to find mp4 metadata with ffmpeg-light in haskell ?

    21 décembre 2015, par Noughtmare

    I’m using ffmpeg-light, JuicyPixels and gloss to display a video with Haskell. I want to find the metadata of videos I’m playing automatically, but I have not yet found a way to do so.

    I would like to access metadata like the resolution and the framerate of the video.

    Can you help me ?

    EDIT :

    I have tried your solution @CRDrost, but the video is now playing at 2x normal speed. I assume the function imageReaderTime is giving the wrong timestamps.

    EDIT 2 :

    The abnormal playing speed is a bug in the ffmpeg-light library. I’ve opened an issue at the github repository.

    My updated code :

    import Graphics.Gloss
    import Codec.FFmpeg
    import Codec.FFmpeg.Juicy
    import Codec.Picture
    import Control.Applicative
    import Data.Maybe
    import Graphics.Gloss.Juicy
    import Control.Monad
    -- import System.IO.Unsafe (unsafePerformIO)-- for debugging purposes

    resolution :: (Int,Int)
    resolution = (640, 360)

    frameCount :: Int
    frameCount = 100

    main :: IO ()
    main = do
       initFFmpeg
       (getFrame, cleanup) &lt;- imageReaderTime "big_buck_bunny.mp4"
       frames &lt;- replicateM frameCount $ nextFrame getFrame
       cleanup
       animate (InWindow "Nice Window" resolution (10,10)) white (frameAt frames)

    nextFrame :: IO (Maybe (Image PixelRGB8, Double)) -> IO (Picture, Float)
    nextFrame getFrame = mapSnd realToFrac . mapFst fromImageRGB8 . fromJust &lt;$> getFrame

    frameAt :: [(Picture, Float)] -> Float -> Picture
    frameAt list time = fst . head . dropWhile ((&lt; time) . snd) $ list

    mapFst :: (a -> c) -> (a, b) -> (c, b)
    mapFst f (a, b) = (f a, b) -- applies f to first element of a 2-tuple

    mapSnd :: (b -> c) -> (a, b) -> (a, c)
    mapSnd f (a, b) = (a, f b) -- applies f to the second element of a 2-tuple
  • Youtube dl for python : set mp3 last modif date date

    24 janvier 2021, par Vladimir Tarasov

    I'm using Youtube-dl (and ffmpeg) in a python project.

    &#xA;

    The problem I have is that, on download, the downloaded file takes as default the youtube's release date of the video instead of the download date.

    &#xA;

    My youtube-dl options

    &#xA;

    ydl_opts = {&#xA;    &#x27;format&#x27;: &#x27;bestaudio/best&#x27;,&#xA;    &#x27;outtmpl&#x27;: path &#x2B; urlToTitleYT(link) &#x2B; &#x27;.mp3&#x27;,&#xA;    &#x27;postprocessors&#x27;: [{&#xA;        &#x27;key&#x27;: &#x27;FFmpegExtractAudio&#x27;,&#xA;        &#x27;preferredcodec&#x27;: &#x27;mp3&#x27;,&#xA;        &#x27;preferredquality&#x27;: &#x27;320&#x27;,&#xA;    }],&#xA;}&#xA;

    &#xA;

    Which opt could i use in order to change the file last modification date to the download date ?&#xA;(Or do i have to edit it manually ?)

    &#xA;