Recherche avancée

Médias (1)

Mot : - Tags -/Rennes

Autres articles (66)

  • Des sites réalisés avec MediaSPIP

    2 mai 2011, par

    Cette page présente quelques-uns des sites fonctionnant sous MediaSPIP.
    Vous pouvez bien entendu ajouter le votre grâce au formulaire en bas de page.

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

Sur d’autres sites (10546)

  • Discord.py rewrite play audio from youtube into voice chat

    23 avril 2021, par John Henry 5

    I'm trying to get a bot that can join a voice chat on command and then play some audio extracted from a youtube video. I don't know how to do this and all the code that I've gotten does not seem to work. Does anyone know how to do this ?

    


    @client.command() async def play(ctx):
   channel = ctx.message.author.voice.channel
   voice_client = await channel.connect()

   opts = {'format': 'bestaudio'}
   FFMPEG_OPTIONS = {'before_options': '-reconnect 1 -reconnect_streamed 1 - 
   reconnect_delay_max 5', 'options': '-vn'}

   with youtube_dl.YoutubeDL(opts) as ydl:
      song_info = ydl.extract_info('video', download=False)
      URL = song_info['formats'][0]['url']
   
   voice_client.play(FFmpegPCMAudio(URL, **FFMPEG_OPTIONS))


    


  • Set the filename downloaded via youtube-dl to a variable [closed]

    22 septembre 2020, par Jim Jamil

    This is the current script, it's a Windows batch file that prompts for a Youtube url and then downloads the best audio in m4a. It's basically cobbled together and uses aria2 to manage the download.

    


    @echo off
SETLOCAL ENABLEDELAYEDEXPANSION
(set /p var1="Url? " && youtube-dl -f bestaudio[ext=m4a] --external-downloader aria2c --external-downloader-args "-j 16 -s 16 -x 16 -k 5M" --restrict-filenames -o "%%(title)s.%%(ext)s" --add-metadata --embed-thumbnail !Var1!)
ENDLOCAL
pause


    


    After asking for the url, I want to also prompt the user to input the start and end times to trim the audio, which would be done by ffmpeg post download.

    


    Something like :

    


    ffmpeg -i file.m4a -ss 00:00:20 -to 00:00:40 -c copy file-2.m4a


    


    Based on this : https://unix.stackexchange.com/questions/182602/trim-audio-file-using-start-and-stop-times/302469#302469

    


    The beginning and end times would need to be variables set by user input in 00:00:00 format, but not sure how to add the ffmpeg post-processing at the end or how it would all fit together. I want to add this trimming feature to remove some of the preamble on podcasts and get straight to the guest part of the show.

    


    The --embed-thumbnail is optional, and won't work anyway unless Atomic Parsley is present. FFmpeg often has trouble with Album Art anyway so I usually just use -vn on the final output file.

    


  • Youtube WatchMe android project Login issue

    16 septembre 2015, par Kichu

    I created live streaming application using https://github.com/youtube/yt-watchme. And its installed on android phone.If I logged into this app.I’s still shows the "Not Signed in" Message. After login its showing the following error in android studio console

    09-16 16:48:01.970   25937-3107/com.google.android.apps.watchme E/WatchMe﹕ com.google.api.client.googleapis.json.GoogleJsonResponseException: 403 Forbidden
       {
       "code": 403,
       "errors": [
       {
       "domain": "usageLimits",
       "message": "Access Not Configured. The API (YouTube Data API) is not enabled for your project. Please use the Google Developers Console to update your configuration.",
       "reason": "accessNotConfigured",
       "extendedHelp": "https://console.developers.google.com"
       }
       ],
       "message": "Access Not Configured. The API (YouTube Data API) is not enabled for your project. Please use the Google Developers Console to update your configuration."
       }
               at com.google.api.client.googleapis.services.json.AbstractGoogleJsonClientRequest.newExceptionOnError(AbstractGoogleJsonClientRequest.java:113)
               at com.google.api.client.googleapis.services.json.AbstractGoogleJsonClientRequest.newExceptionOnError(AbstractGoogleJsonClientRequest.java:40)
               at com.google.api.client.googleapis.services.AbstractGoogleClientRequest$1.interceptResponse(AbstractGoogleClientRequest.java:321)
               at com.google.api.client.http.HttpRequest.execute(HttpRequest.java:1056)
               at com.google.api.client.googleapis.services.AbstractGoogleClientRequest.executeUnparsed(AbstractGoogleClientRequest.java:419)
               at com.google.api.client.googleapis.services.AbstractGoogleClientRequest.executeUnparsed(AbstractGoogleClientRequest.java:352)
               at com.google.api.client.googleapis.services.AbstractGoogleClientRequest.execute(AbstractGoogleClientRequest.java:469)
               at com.google.android.apps.watchme.util.YouTubeApi.getLiveEvents(YouTubeApi.java:155)
               at com.google.android.apps.watchme.MainActivity$GetLiveEventsTask.doInBackground(MainActivity.java:312)
               at com.google.android.apps.watchme.MainActivity$GetLiveEventsTask.doInBackground(MainActivity.java:295)
               at android.os.AsyncTask$2.call(AsyncTask.java:288)
               at java.util.concurrent.FutureTask.run(FutureTask.java:237)
               at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:231)
               at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)
               at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)
               at java.lang.Thread.run(Thread.java:841)

    How can i solve this issue please help.

    This application is connecting to YouTube Watch Me project.Is it possible to connect my project using client Id and client secret(How can i configure my client id to this app ?) ?

    Please suggest