Recherche avancée

Médias (91)

Autres articles (56)

  • 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

  • Supporting all media types

    13 avril 2011, par

    Unlike most software and media-sharing platforms, MediaSPIP aims to manage as many different media types as possible. The following are just a few examples from an ever-expanding list of supported formats : images : png, gif, jpg, bmp and more audio : MP3, Ogg, Wav and more video : AVI, MP4, OGV, mpg, mov, wmv and more text, code and other data : OpenOffice, Microsoft Office (Word, PowerPoint, Excel), web (html, CSS), LaTeX, Google Earth and (...)

Sur d’autres sites (11611)

  • My bot doesn't play any music when hosted on Heroku

    25 août 2022, par Lucas Silva

    I am creating a music command, working great locally but not on Heroku. I have the following buildpacks :
enter image description here

    


    This is my code :

    


    @commands.command(name="musga", help="coloque um url da musica que deseja reproduzir!")
async def play(self, ctx, arg):
    global vc
    
    try:
        voice_channel = ctx.author.voice.channel
        vc = await voice_channel.connect()
    except:
        print('[ERROR]') #debug

    if vc.is_playing():
        await ctx.send(f'{ctx.author.mention}, Já estou cantando.')

    else:
        with YoutubeDL(self.YDL_OPTIONS) as ydl:
            info = ydl.extract_info(arg, download=False)
        
        URL = info['formats'][0]['url']

        vc.play(discord.FFmpegPCMAudio(executable="ffmpeg", source = URL, **self.FFMPEG_OPTIONS))
                
        while vc.is_playing():
            await sleep(1)


    


    And requirements.txt :

    


    discord.py[voice]
PyNaCL
youtube_dl
ffmpeg


    


    When using the command, my bot joins the channel but doesn't play the music and doesn't print any traceback.

    


  • mp4 video doesn't play on mobile, but it plays locally [closed]

    20 août 2023, par Simon

    I built a mp4 video from jpg images using this command :

    


    ffmpeg -framerate 1 -i img%d.jpg -c:v libx264 -pix_fmt yuv420p -r 1 output.mp4


    


    I can open and play video on my computer (in VLC and in a browser), but I can't play it on mobile (Chrome on Android). There's an info about duration, I can press the "play" button, but the video doesn't play at all.

    


    How to fix that ?

    


  • Livestream doesn't start unless I open the YouTube Live Dashboard [closed]

    20 mars 2024, par Gavin Trujillo

    I have a camera feed that streams 24/7 on YouTube. Everything works fine, except the stream often goes down due to internet reliability issues. I can detect that the stream is down with the v3/search endpoint, then an automated command is sent from my server to restart it, but the stream doesn't start like it should.

    


    I've discovered that the live stream will only start if I open the YouTube Live Dashboard first.
Before opening the dashboard, my streaming software will upload data using the stream key, but there's no live stream. Upon opening the YouTube Live Dashboard, it shows "Good Connection" but with no video feed. My automation script is continuously restarting the stream, so it comes up very shortly after opening the dashboard every time.

    


    Streaming software : I use ffmpeg to translate an RTSP stream directly to YouTube.

    


    ffmpeg -rtsp_transport tcp -re -i "rtsp://$cameraLink" -f lavfi -i anullsrc=channel_layout=stereo:sample_rate=44100 -force_key_frames "expr:gte(t,n_forced*2)" -nostdin -f flv -map 0:v:0 -map 1:a:0 -c:v libx264 -preset ultrafast -crf 43 -s 1280x724 -r 30 -c:a aac "rtmp://a.rtmp.youtube.com/live2/$streamKey"


    


    Since entering into the YouTube Live Dashboard seems to start some sort of "active state", I've tried various Oauth2 and key API methods to start the live stream. I haven't gotten anything to work so far.