Recherche avancée

Médias (17)

Mot : - Tags -/wired

Autres articles (55)

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

  • Librairies et binaires spécifiques au traitement vidéo et sonore

    31 janvier 2010, par

    Les logiciels et librairies suivantes sont utilisées par SPIPmotion d’une manière ou d’une autre.
    Binaires obligatoires FFMpeg : encodeur principal, permet de transcoder presque tous les types de fichiers vidéo et sonores dans les formats lisibles sur Internet. CF ce tutoriel pour son installation ; Oggz-tools : outils d’inspection de fichiers ogg ; Mediainfo : récupération d’informations depuis la plupart des formats vidéos et sonores ;
    Binaires complémentaires et facultatifs flvtool2 : (...)

  • Pas question de marché, de cloud etc...

    10 avril 2011

    Le vocabulaire utilisé sur ce site essaie d’éviter toute référence à la mode qui fleurit allègrement
    sur le web 2.0 et dans les entreprises qui en vivent.
    Vous êtes donc invité à bannir l’utilisation des termes "Brand", "Cloud", "Marché" etc...
    Notre motivation est avant tout de créer un outil simple, accessible à pour tout le monde, favorisant
    le partage de créations sur Internet et permettant aux auteurs de garder une autonomie optimale.
    Aucun "contrat Gold ou Premium" n’est donc prévu, aucun (...)

Sur d’autres sites (3907)

  • Node JS partial video streaming to safari

    12 juin 2021, par Thor Bilsby

    I'm trying to stream a video directly to a browser using node.js as the backend. I would like the video to be streamed from a specific time and would also like it to be partially streamed since it is a pretty large file. Right now I am doing this with fluent-ffmpeg, like this :

    


    const ffmpeg = require('fluent-ffmpeg');

app.get('/clock/', (req, res) => {
  const videoPath = 'video.mp4'; 
  const now = new Date();

  ffmpeg(videoPath)
    .videoCodec('libx264')
    .withAudioCodec('aac')
    .setStartTime(`${(now.getHours() - 10) % 24}:${now.getMinutes() - 1}:${now.getSeconds()}`)
    .format('mp4')
    .outputOptions(['-frag_duration 100','-movflags frag_keyframe+faststart','-pix_fmt yuv420p'])
    .on('end', () => {
      console.log("File has been converted succesfully");
    })
    .on('error', (err) => {
      if (err.message.toLowerCase().includes('output stream closed')) return;
      console.log('An error occoured', err);
    })
    .pipe(res, { end: true });
});


    


    This will work with Chrome, but Safari just doesn't want to stream it.
I know that the reason why it doesn't work on Safari is that Safari needs the range header. I've therefore tried to do that, but :

    


      

    1. I can't get it to work with fluent-ffmpeg.
    2. 


    3. When I try to do it the "normal" way, without fluent-ffmpeg, it needs to load the whole video file before it plays.
    4. 


    


    The video doesn't need to start at the specific timestamp. It would be nice tho, but I have a workaround for that if it's not possible :)

    


    So my question is : How can I get the code above to work with Safari. And if that is impossible : How can I code something that doesn't need to be loaded fully, before it can be played in Safari browsers, aka. partial video streaming.

    


  • Simple Question About Subprocess popen + screen +ffmpeg + youtube-dl

    2 juin 2021, par El_Barto_404
    ffmpeg -i "$(youtube-dl -x -g "https://youtu.be/xhXq9BNndhw")" -f s16le -ac 2 -ar 48000 -acodec pcm_s16le input.raw


    


    can anyone put this inside a popen process after a screen -S Convert ?

    


    I tried already with ' ', with commas.. but nothing

    


    I built a bot on telegram which if you send :

    


    .mandala youtubelink


    


    it takes the link and converts the video from YouTube into a uncompressed file, I need it for a music bot which streams those uncompressed files.

    


    if I run in console :

    


    ffmpeg -i "$(youtube-dl -x -g "https://youtu.be/xhXq9BNndhw")" -f s16le -ac 2 -ar 48000 -acodec pcm_s16le input.raw 


    


    it works but when I try with screen and popen it doesn't.. why ?

    


    @helper.register(pattern=r'.mandala (.+)')
async def mu2342sicbfffffffot(e):
    cheater = e.pattern_match.group(1)
    cheat = cheater
    myorder2224 = ''' "$(youtube-dl -x -g "{}")" '''
    doit = (myorder2224.format(cheater))

    ###  I already try to format the variable 
    ###  and put doit after -i and 
    ###  everything was in '' and commas 
    ###  like 'ffmpeg', 'i*, doit, '-f'...
    ###  and so on but nothing.. but nope doesn't work.

    p = subprocess.call(['screen','-S','onveter',' ffmpeg -i "$(youtube-dl -x -g "https://www.youtube.com/watch?v=Sw5HQbYGoCA")" -f s16le -ac 1 -acodec pcm_s16le -ar 96k  input.pcm'],shell=True)
  await helper.control_panel.send_message(config.chat, "La sto a manna")
  time.sleep(14)
  


    


    I REPEAT ONE MORE TIME :
HOW CAN I USE THAT FFMPEG COMMAND INSIDE A POPEN SUBPROCESS AFTER A Screen -S Convert ?

    


    IF SOMEONE WANT TO KNOW WHY :
Because I want to convert youTube videos to file .raw / .pcm

    


  • Not best results for [screen capture] streaming with ffmpeg js

    13 mai 2021, par Nikola Lukic

    Platform : Windows 10
Ffmpeg version 4.4-full_build-www.gyan.dev

    


    This app works fine on macos.

    


    node websocket-relay.js supersecret 8081 8082

http-server --host=https://localhost --port 8080

ffmpeg -f  gdigrab  -i desktop -framerate 30 -video_size 640x480 -f mpegts -codec:v mpeg2video -s 640x480 -rtbufsize 100M -b:v 1000k -bf 0 http://localhost:8081/supersecret


    


    Logs :

    


    frame= 5515 fps= 20 q=31.0 size=    8302kB time=00:04:36.20 
frame= 5526 fps= 20 q=31.0 size=    8317kB time=00:04:36.77 
frame= 5537 fps= 20 q=31.0 size=    8331kB time=00:04:37.31 
frame= 5548 fps= 20 q=24.8 size=    8346kB time=00:04:37.87 
frame= 5558 fps= 20 q=31.0 size=    8352kB time=00:04:38.37 
frame= 5569 fps= 20 q=31.0 size=    8368kB time=00:04:38.91 
frame= 5579 fps= 20 q=31.0 size=    8382kB time=00:04:39.41 
frame= 5590 fps= 20 q=31.0 size=    8397kB time=00:04:39.97 
frame= 5600 fps= 20 q=31.0 size=    8411kB time=00:04:40.48 


    


    Finally in my browser i got something like that :

    


    enter image description here

    


    Any suggestion !
I am new for ffmpeg topic...