Recherche avancée

Médias (1)

Mot : - Tags -/epub

Autres articles (108)

  • MediaSPIP 0.1 Beta version

    25 avril 2011, par

    MediaSPIP 0.1 beta is the first version of MediaSPIP proclaimed as "usable".
    The zip file provided here only contains the sources of MediaSPIP in its standalone version.
    To get a working installation, you must manually install all-software dependencies on the server.
    If you want to use this archive for an installation in "farm mode", you will also need to proceed to other manual (...)

  • MediaSPIP version 0.1 Beta

    16 avril 2011, par

    MediaSPIP 0.1 beta est la première version de MediaSPIP décrétée comme "utilisable".
    Le fichier zip ici présent contient uniquement les sources de MediaSPIP en version standalone.
    Pour avoir une installation fonctionnelle, il est nécessaire d’installer manuellement l’ensemble des dépendances logicielles sur le serveur.
    Si vous souhaitez utiliser cette archive pour une installation en mode ferme, il vous faudra également procéder à d’autres modifications (...)

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

  • 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;

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

    &#xA;

    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.

    &#xA;

    Example&#xA;00:00:10 - 00:00:20&#xA;00:30:00 - 00:30:10&#xA;00:50:00 - 00:50:10&#xA;...

    &#xA;

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

    &#xA;

    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.

    &#xA;

    Any ideas or help is appreciated.

    &#xA;

  • ffmpeg command line code translate to fluent-ffmpeg

    8 novembre 2020, par Berk Coşar

    I have trouble understanding fluent-ffmpeg.

    &#xA;

    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.

    &#xA;

    ffmpeg command line code works successfully.&#xA;enter image description here

    &#xA;

    ffmpeg code :

    &#xA;

    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 &#x27;overlay=main_w-overlay_w-10:main_h-overlay_h-10&#x27; -r 25 video.mp4&#xA;

    &#xA;

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

    &#xA;

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

    &#xA;

    i tried this but also this not worked :

    &#xA;

         //.size("320x240")&#xA;&#xA;   .complexFilter([&#x27;scale=320:240[rescaled]&#x27;,&#xA;{&#xA;   filter: &#x27;overlay&#x27;, options: { x: &#x27;main_w-overlay_w-10&#x27;, y: &#x27;main_h-overlay_h-10&#x27; },&#xA;   inputs: [&#x27;[0:v]&#x27;,&#x27;[1:v]&#x27;], outputs: &#x27;[a1][a2]&#x27;&#xA; }&#xA;],&#x27;[a1][a2]&#x27;)&#xA;

    &#xA;

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

    &#xA;