Recherche avancée

Médias (3)

Mot : - Tags -/spip

Autres articles (96)

  • MediaSPIP : Modification des droits de création d’objets et de publication définitive

    11 novembre 2010, par

    Par défaut, MediaSPIP permet de créer 5 types d’objets.
    Toujours par défaut les droits de création et de publication définitive de ces objets sont réservés aux administrateurs, mais ils sont bien entendu configurables par les webmestres.
    Ces droits sont ainsi bloqués pour plusieurs raisons : parce que le fait d’autoriser à publier doit être la volonté du webmestre pas de l’ensemble de la plateforme et donc ne pas être un choix par défaut ; parce qu’avoir un compte peut servir à autre choses également, (...)

  • Soumettre améliorations et plugins supplémentaires

    10 avril 2011

    Si vous avez développé une nouvelle extension permettant d’ajouter une ou plusieurs fonctionnalités utiles à MediaSPIP, faites le nous savoir et son intégration dans la distribution officielle sera envisagée.
    Vous pouvez utiliser la liste de discussion de développement afin de le faire savoir ou demander de l’aide quant à la réalisation de ce plugin. MediaSPIP étant basé sur SPIP, il est également possible d’utiliser le liste de discussion SPIP-zone de SPIP pour (...)

  • MediaSPIP Player : problèmes potentiels

    22 février 2011, par

    Le lecteur ne fonctionne pas sur Internet Explorer
    Sur Internet Explorer (8 et 7 au moins), le plugin utilise le lecteur Flash flowplayer pour lire vidéos et son. Si le lecteur ne semble pas fonctionner, cela peut venir de la configuration du mod_deflate d’Apache.
    Si dans la configuration de ce module Apache vous avez une ligne qui ressemble à la suivante, essayez de la supprimer ou de la commenter pour voir si le lecteur fonctionne correctement : /** * GeSHi (C) 2004 - 2007 Nigel McNie, (...)

Sur d’autres sites (8251)

  • libavcodec/sanm : clear codec47 diff buffers with specific color

    8 novembre 2024, par Manuel Lauss
    libavcodec/sanm : clear codec47 diff buffers with specific color
    

    The codec47 header provides colors to use to clear the
    2 difference buffers. This fixes artifacts (black hair, faces) in
    Curse of Monkey Island "CURSERNG.SAN" video.

    Signed-off-by : Manuel Lauss <manuel.lauss@gmail.com>
    Signed-off-by : Anton Khirnov <anton@khirnov.net>

    • [DH] libavcodec/sanm.c
  • OSError : [Errno 9] Bad file descriptor when downloading using pytube and playing with discord.py

    15 septembre 2022, par Trevor Mathisen

    When using pytube to download a YouTube video and discord.py to play it, I am getting a OSError : [Errno 9] Bad file descriptor error. I've had this working at one point and can't seem to figure out what I changed which broke it.

    &#xA;

    Full traceback :

    &#xA;

    2022-09-15 20:20:44 INFO       discord.voice_client The voice handshake is being terminated for Channel ID 902294184994693224 (Guild ID 902294184994693220)&#xA;2022-09-15T20:20:44.010142763Z 2022-09-15 20:20:44 INFO     discord.voice_client Disconnecting from voice normally, close code 1000.&#xA;2022-09-15T20:20:44.058592513Z 2022-09-15 20:20:44 ERROR    discord.player Exception in voice thread Thread-5&#xA;2022-09-15T20:20:44.058623864Z Traceback (most recent call last):&#xA;2022-09-15T20:20:44.058629130Z   File "/usr/local/lib/python3.10/dist-packages/discord/player.py", line 698, in run&#xA;2022-09-15T20:20:44.058632003Z     self._do_run()&#xA;2022-09-15T20:20:44.058634500Z   File "/usr/local/lib/python3.10/dist-packages/discord/player.py", line 691, in _do_run&#xA;2022-09-15T20:20:44.058637013Z     play_audio(data, encode=not self.source.is_opus())&#xA;2022-09-15T20:20:44.058639334Z   File "/usr/local/lib/python3.10/dist-packages/discord/voice_client.py", line 683, in send_audio_packet&#xA;2022-09-15T20:20:44.058648759Z     self.socket.sendto(packet, (self.endpoint_ip, self.voice_port))&#xA;2022-09-15T20:20:44.058653057Z OSError: [Errno 9] Bad file descriptor&#xA;2022-09-15T20:20:44.058673762Z 2022-09-15 20:20:44 INFO     discord.player ffmpeg process 12 has not terminated. Waiting to terminate...&#xA;2022-09-15T20:20:44.062083854Z 2022-09-15 20:20:44 INFO     discord.player ffmpeg process 12 should have terminated with a return code of -9.&#xA;

    &#xA;

    Dockerfile :

    &#xA;

    ENV MEDIA_DIR=&#x27;/media/&#x27;&#xA;RUN mkdir -p /media&#xA;

    &#xA;

    Download function (check_path returns True, showing the file is there) :

    &#xA;

    def download_videos(stream, filename):&#xA;    print(f&#x27;downloading {filename}&#x27;)&#xA;    filepath = stream.download(output_path=config_db.environ_path, filename=f&#x27;{filename}.mp4&#x27;)&#xA;    print(f&#x27;completed download of {filepath}&#x27;)&#xA;    check_path = Path(filepath)&#xA;    if check_path.is_file():&#xA;        print(check_path)&#xA;    return filepath&#xA;

    &#xA;

    Play function :

    &#xA;

    async def play(voice_channel, message, control = None):&#xA;    vc = get_vc()&#xA;    if not vc:&#xA;        vc = await voice_channel.connect()&#xA;    next_yt = YouTube(next_song)&#xA;    next_file = sub(r&#x27;\W&#x2B;&#x27;, &#x27;&#x27;, next_yt.title.replace(&#x27; &#x27;, &#x27;_&#x27;).replace(&#x27;__&#x27;, &#x27;_&#x27;)).lower()&#xA;    next_song_path = download_videos(next_yt.streams.filter(only_audio=True, file_extension=&#x27;mp4&#x27;)[0], next_file)&#xA;&#xA;    await message.channel.send(f&#x27;Done getting ready, I\&#x27;ll be there in a moment.&#x27;)&#xA;&#xA;while next_song:&#xA;    while vc.is_playing():&#xA;        await asynciosleep(0.5)&#xA;        continue&#xA;&#xA;    try:&#xA;        vc.play(FFmpegPCMAudio(next_song_path))&#xA;        print(f&#x27;Playing {next_song_path} with latency of {vc.average_latency}&#x27;)&#xA;        vc.source = PCMVolumeTransformer(vc.source, volume=0.15)&#xA;    except Exception as e:&#xA;        print(e)&#xA;        await vc.disconnect()&#xA;        next_song = None&#xA;        return&#xA;    next_song = sounds_db.get_next_song()&#xA;    next_yt = YouTube(next_song) if next_song else None&#xA;    next_file = sub(r&#x27;\W&#x2B;&#x27;, &#x27;&#x27;, next_yt.title.replace(&#x27; &#x27;, &#x27;_&#x27;).replace(&#x27;__&#x27;, &#x27;_&#x27;)).lower() if next_song else None&#xA;    next_song_path = download_videos(next_yt.streams.filter(only_audio=True, file_extension=&#x27;mp4&#x27;)[0], next_file) if next_song else None&#xA;

    &#xA;

    I've mounted the /media/ dir during docker -v and can see the file is getting downloaded and when I copy the file to my local machine I can play it in an audio player.

    &#xA;

    The program can access the SQLite database right next to the files in question just fine.

    &#xA;

    I've deployed the container locally and to two different VPS's with the same file structure with the same behavior. I'm ripping my hair out.

    &#xA;

  • The Mystery of the No such file or directory exception

    22 avril 2022, par JohnWick

    No idea what's going on here. Set a breakpoint after the for of loop in the following function. temp/concat.txt exists but the following exception is thrown :

    &#xA;

    &#xA;

    Uncaught Error Error : ffmpeg exited with code 1 : temp/concat.txt : No&#xA;such file or directory

    &#xA;

    &#xA;

    Outputting stderr gives a bit more info :

    &#xA;

    &#xA;

    [concat @ 000001e2e30124c0] Impossible to open&#xA;'temp/concat.txt#voiceover #funny #fall #lol.mp4' index.js:19&#xA;temp/concat.txt : No such file or directory

    &#xA;

    &#xA;

    And here is the contents of concat.txt, standard ffmpeg concat demuxer format :

    &#xA;

    file &#x27;#voiceover #funny #fall #lol.mp4&#x27;&#xA;file &#x27;part 2 repost &#128580; #fyp #funny @jordond262 @princemoonjq add my snap heroicdw333.mp4&#x27;&#xA;file &#x27;This is my hair wet wet WOAHHH #GrowUpWithMe #fyp #foryoupage #love #funny #puppy #goldenretriever #cute #dog #wetwet.mp4&#x27;&#xA;file &#x27;POV calling your friends when your 90#FootlongShuffle #GhostMode #funny #grandma  #fyp #halloween #collegegotmelike #tiktok #foryoupage.mp4&#x27;&#xA;file &#x27;Sam Ki Singing Kaisi Lgi &#128514;&#128540; insta-samayranarula #foryou #trending #lockdown #queen_samayra #tiktokindia #funny #gharbaithoindia &#127968; #comedyindia.mp4&#x27;&#xA;file &#x27;Reply to @juswa646  #fyp#funny #relatable.mp4&#x27;&#xA;file &#x27;RaNdOm ViDeOs! #fy #fypシ #viral #meme #funny #xyzbca #funnyvideos #randomvideo.mp4&#x27;&#xA;file &#x27;Reply to @bratzdoll.maya what should I do next &#128580; #fyp #foryoupage #leethe4th #memes #tall #funny #lol.mp4&#x27;&#xA;file &#x27;Part 2 #fyp #foryou #viral #foryoupageofficiall #funny #trending.mp4&#x27;&#xA;file &#x27;Lmfao &#128514; (via @danibreezy01) #lmao #lmfao #funny #cousins #family #fyp #foryou #foryoupage.mp4&#x27;&#xA;file &#x27;When you are a clumsy kitty #trend #joke #Khaleesi #funny #kittensoftiktok #foryou #fyp #foryoupage #cute #catsoftiktok.mp4&#x27;&#xA;file &#x27;Tag That Friend That Always Be Falling Asleep &#128514; #foryou #funny #fail #nap #sleep #pennsylvania #SHEINcares #viral #trending #meme #memes #foryoupage.mp4&#x27;&#xA;file &#x27;#funny #funnyvideos #girlfriend #crzy #Birdshit.mp4&#x27;&#xA;file &#x27;He forgot he was a dog.                #dog #fyp #talkingdog #cute #pet #funny.mp4&#x27;&#xA;file &#x27;Bad Day #part1 #badday #falling #funny #memes #viral #jokes #comedy #trending #fyp #foryou #share #likes #us #uk #xyzbca  #epic #pourtoi #fail #wee.mp4&#x27;&#xA;file &#x27;I think he got offended ( #catsoftiktok #fyp #funny #catlover #MyJob #yellow #foryoupage.mp4&#x27;&#xA;file &#x27;They took OFF today &#128054;&#129312;&#128054; #joshbutlertv #roxyandremi #funny #comedy #dogs #viral #memes.mp4&#x27;&#xA;file &#x27;Had to make sure momma was there #funny #fyp #raccoons #love #bff #foryoupage #ThisorThatSBLV.mp4&#x27;&#xA;file &#x27;That\&#x27;s not how you get out... #mysterymakers #escaperoom #foryou #fyp #crazystory #friends #funny #crazy #teammate.mp4&#x27;&#xA;

    &#xA;

    The function throwing the exception.

    &#xA;

    async function makeCompilation(paths, outPath) {&#xA;  for (const filePath of paths) {&#xA;    await fs.appendFile(&#xA;      "temp/concat.txt",&#xA;      `file &#x27;${path.basename(filePath).replace("&#x27;", "\\&#x27;")}&#x27;${os.EOL}`&#xA;    );&#xA;  }&#xA;  return new Promise((resolve, reject) => {&#xA;    ffmpeg("temp/concat.txt")&#xA;      .inputOptions(["-f concat", "-safe 0"])&#xA;      .outputOption("-c copy")&#xA;      .on("stderr", (line) => console.log(line))&#xA;      .on("end", async () => {&#xA;        await fs.rm("temp/concat.txt");&#xA;        resolve();&#xA;      })&#xA;      .save(outPath);&#xA;  });&#xA;}&#xA;

    &#xA;