Recherche avancée

Médias (1)

Mot : - Tags -/publier

Autres articles (52)

  • Les autorisations surchargées par les plugins

    27 avril 2010, par

    Mediaspip core
    autoriser_auteur_modifier() afin que les visiteurs soient capables de modifier leurs informations sur la page d’auteurs

  • Publier sur MédiaSpip

    13 juin 2013

    Puis-je poster des contenus à partir d’une tablette Ipad ?
    Oui, si votre Médiaspip installé est à la version 0.2 ou supérieure. Contacter au besoin l’administrateur de votre MédiaSpip pour le savoir

  • Contribute to translation

    13 avril 2011

    You can help us to improve the language used in the software interface to make MediaSPIP more accessible and user-friendly. You can also translate the interface into any language that allows it to spread to new linguistic communities.
    To do this, we use the translation interface of SPIP where the all the language modules of MediaSPIP are available. Just subscribe to the mailing list and request further informantion on translation.
    MediaSPIP is currently available in French and English (...)

Sur d’autres sites (8199)

  • Best way to pipe audio and video chunks from within python to ffmpeg

    8 mai 2016, par basilikum

    Problem

    I’m getting audio and video chunks from a third-party server and I would like to pipe those chunks to ffmpeg to create a WebM live stream according to these instructions :

    http://wiki.webmproject.org/adaptive-streaming/instructions-to-do-webm-live-streaming-via-dash

    Here they are using input from webcam and microphone but I need to use the data chunks, so the ffmpeg command would look somehow like this :

       cmd = [
           "ffmpeg",
           "-f", "flv", "-i", "video.fifo",
           "-f", "s16le", "-ar", "16000", "-ac", "1", "-i", "audio.fifo",
           "-map", "0:0",
           "-pix_fmt", "yuv420p",
           "-c:v", "libvpx-vp9",
           "-s", "640x480", "-keyint_min", "40", "-g", "40", "-speed", "6",
           "-tile-columns", "4", "-frame-parallel", "1", "-threads", "8",
           "-static-thresh", "0", "-max-intra-rate", "300",
           "-deadline", "realtime", "-lag-in-frames", "0",
           "-error-resilient", "1",
           "-b:v", "3000k",
           "-f", "webm_chunk",
           "-header", self.video_header,
           "-chunk_start_index", "1",
           "video_360_%d.chk",
           "-map", "1:0",
           "-c:a", "libvorbis",
           "-b:a", "16k", "-ar", "16000",
           "-f", "webm_chunk",
           "-audio_chunk_duration", "2000",
           "-header", self.audio_header,
           "-chunk_start_index", "1",
           "audio_171_%d.chk"
       ]

    As you can see, I am using a "video.fifo" and "audio.fifo" file, because I thought it would be a good idea to pipe the chunks in via a named pipe, but I can’t get it to work. Here is what I’m doing :

    p = subprocess.Popen(cmd)
    fa = os.open("video.fifo", os.O_WRONLY)
    fv = os.open("audio.fifo", os.O_WRONLY)

    So I’m starting the subprocess first, so that it opens the fifo files for reading. After that, I should be able to open them for writing but I am not. More specifically, I am able to open the first one, but not the second one. So maybe that has something to do with how ffmpeg handles its inputs if there are more than one, but I just don’t know.

    Question

    How can I either solve the problem of non openable named pipes or how can I achieve what I wanted to achieve without named pipes.

  • Options for replacing RTMP for live streaming

    22 décembre 2016, par molokoV

    I have a backend streaming video to web browsers using RTMP. On the browsers we use jwplayer.
    As everybody know flash player is going to be deprecated soon.
    Im looking for options to modify the backend using another streaming solution.

    We have made some test using DASH but it has too much delay for live streamining compared to RTMP.

    What are the options for anyone using RTMP ?

  • Manifest error pops up when trying to download certain videos for discord.py music bot

    30 novembre 2020, par bork

    I'm trying to make a discord music bot. I'm using youtube-dl to retrieve the info and ffmpeg to play the audio out. My bot has no problems downloading videos and everything is working fine. But when I tried downloading certain videos, this error popped up :

    


    [dash @ 0x7fe45a801200] Manifest too large: 65055
https://manifest.googlevideo.com/api/manifest/dash/expire/1606336104/ei/CGq-X4G6Htauz7sPrZuCsA8/ip/14.192.212.39/id/64a943d43b8f53eb/source/youtube/requiressl/yes/playback_host/r5---sn-h5mpn-30ae.googlevideo.com/mh/Go/mm/31%2C29/mn/sn-h5mpn-30ae%2Csn-30a7rn7l/ms/au%2Crdu/mv/m/mvi/5/pl/24/hfr/all/as/fmp4_audio_clear%2Cwebm_audio_clear%2Cwebm2_audio_clear%2Cfmp4_sd_hd_clear%2Cwebm2_sd_hd_clear/initcwndbps/533750/vprv/1/mt/1606314038/fvip/5/keepalive/yes/beids/23927369/itag/0/sparams/expire%2Cei%2Cip%2Cid%2Csource%2Crequiressl%2Chfr%2Cas%2Cvprv%2Citag/sig/AOq0QJ8wRQIhAOn6Br0QsuXc-3unfhYdzXVXcydzVWioIQlKvv2U4i3OAiB6ApoiqFoPvE3YKYGPbRiId_bHQYO8zsawGGPMidYGAA%3D%3D/lsparams/playback_host%2Cmh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps/lsig/AG3C_xAwRQIhANmxfRNBI4wSJo6trsKkq8GinQ-ADMxgHRmelBwM-GEAAiAafey9YRrZz1h1S6PzV3u0S6IsZUKscGrrGP9Pofv2uQ%3D%3D: Invalid data found when processing input


    


    After trying to download other videos, which have no problem at all, I found out that the videos showing these errors have an extra step that downloads MPD manifest. I would try to download videos that are way larger and it would work, but it's just these certain videos, with the duration of about 7-10 minutes, that would have these errors. I'm really lost.

    


    This is my code for playing the videos in the voice channels :

    


    voice = get(client.voice_clients, guild = ctx.guild)
with YoutubeDL(ydl_opts) as ydl:
                info = ydl.extract_info(url[playlist], download = False)

URL = info['formats'][0]['url']
voice.play(FFmpegPCMAudio(URL, **FFMPEG_OPTIONS))