Recherche avancée

Médias (91)

Autres articles (87)

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

  • De l’upload à la vidéo finale [version standalone]

    31 janvier 2010, par

    Le chemin d’un document audio ou vidéo dans SPIPMotion est divisé en trois étapes distinctes.
    Upload et récupération d’informations de la vidéo source
    Dans un premier temps, il est nécessaire de créer un article SPIP et de lui joindre le document vidéo "source".
    Au moment où ce document est joint à l’article, deux actions supplémentaires au comportement normal sont exécutées : La récupération des informations techniques des flux audio et video du fichier ; La génération d’une vignette : extraction d’une (...)

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

Sur d’autres sites (11544)

  • ffmpeg command line code translate to fluent-ffmpeg

    8 novembre 2020, par Berk Coşar

    I have trouble understanding fluent-ffmpeg.

    


    I'm trying to make a screen recorder with Fluent-ffmpeg but couldn't find the correct code. The output should consist of a screen, webcam and microphone.

    


    ffmpeg command line code works successfully.
enter image description here

    


    ffmpeg code :

    


    ffmpeg -ss 00:00:3 -thread_queue_size 4096 -f avfoundation -framerate 25 -i 1 -thread_queue_size 4096 -f avfoundation -framerate 25 -video_size 320x240 -i 0:0 -c:v libx264 -crf 18 -preset ultrafast -filter_complex 'overlay=main_w-overlay_w-10:main_h-overlay_h-10' -r 25 video.mp4


    


    my fluent-ffmpeg code :(ı know bad code) :

    


     command = ffmpeg("1")
        .videoCodec('libx264')
        .inputFPS(25)
        .size("1280x800")
        .inputFormat('avfoundation')  
         .input("0")
         .inputFormat('avfoundation')  
         .inputFPS(25)
          .size("320x240")
         .addOptions(["-filter_complex", "overlay=main_w-overlay_w-10:main_h-overlay_h-10 "])
        
     
        .addOption([  "-preset" , "ultrafast"  ])
       .save(`/Users/macbook/Pictures${new Date().toLocaleString().split('-').join('').split(':').join('')}.mp4`)


    


    i tried this but also this not worked :

    


         //.size("320x240")

   .complexFilter(['scale=320:240[rescaled]',
{
   filter: 'overlay', options: { x: 'main_w-overlay_w-10', y: 'main_h-overlay_h-10' },
   inputs: ['[0:v]','[1:v]'], outputs: '[a1][a2]'
 }
],'[a1][a2]')


    


    I would be very happy if you show me the right method. I will be happier if you also add a microphone.
thank you so much

    


  • Output a new mp3 file from a lengthy mp3 mix which previews the audio at 5 different points of the mix

    17 novembre 2020, par Paul Hinett

    I basically have a large collection of audio mix files in mp3 format, say approx 2 hours worth of music per mp3.

    


    I am trying to work out the best way using the command line to output a preview MP3 file, this mp3 should have 5-10 second previews of the full mix at 6 or so points during the mix.

    


    Example
00:00:10 - 00:00:20
00:30:00 - 00:30:10
00:50:00 - 00:50:10
...

    


    So with the small mp3 file, you can kind of get an idea of the whole mix in a very short preview.

    


    I have seen ffmpeg etc that can preview say 5 seconds up to 15 seconds of an audio, but not sure if this is capable of doing multiple points of the audio.

    


    Any ideas or help is appreciated.

    


  • KeyError : 1 on Python when the code points to a value that exists [closed]

    10 décembre 2020, par oo92

    I am using the following code to traverse a list JSON output. There are about 100 streamers I want to take screens from but the code fails after the first one where I call the ffmpeg. I put a code after the ffmpeg to see if Python is running it at all and it does :

    


    Traceback (most recent call last):&#xA;  File "/home/onur/Desktop/pythonProject/main.py", line 12, in <module>&#xA;    username = streams_now[i][&#x27;channel&#x27;][&#x27;display_name&#x27;]&#xA;KeyError: 1&#xA;auronplay it is &#xA;</module>

    &#xA;

    This is my code :

    &#xA;

    import streamlink, os&#xA;from twitch import TwitchClient&#xA;&#xA;client = TwitchClient(client_id=&#x27;frl3dqgn21bbpp6tajjvg5pdevczac&#x27;)&#xA;&#xA;streams_now = client.streams.get_live_streams(limit=100)&#xA;&#xA;print(streams_now[2][&#x27;channel&#x27;][&#x27;display_name&#x27;])&#xA;&#xA;for i in range(0, 99):&#xA;  username = streams_now[i][&#x27;channel&#x27;][&#x27;display_name&#x27;]&#xA;  streams_now = streamlink.streams(&#x27;http://twitch.tv/&#x27; &#x2B; username)&#xA;  stream = streams_now["best"].url&#xA;  dir_path = os.getcwd() &#x2B; &#x27;/&#x27; &#x2B; username&#xA;  os.mkdir(dir_path)&#xA;  os.system(&#x27;ffmpeg -i &#x27; &#x2B; stream &#x2B; f&#x27; -ss 20 -vframes 10 -r 0.2 -f image2 {dir_path}/&#x27; &#x2B; username &#x2B; &#x27;_output_%09d.jpg&#x27;)&#xA;  print(username &#x2B; &#x27; it is &#x27;)&#xA;

    &#xA;

    The line that throws the error is username = streams_now[i][&#x27;channel&#x27;][&#x27;display_name&#x27;]. However, this line cannot throw an error because I am testing it before the for loop :

    &#xA;

    print(streams_now[2][&#x27;channel&#x27;][&#x27;display_name&#x27;])

    &#xA;

    and I get this : shroud

    &#xA;