Recherche avancée

Médias (0)

Mot : - Tags -/navigation

Aucun média correspondant à vos critères n’est disponible sur le site.

Autres articles (80)

  • Demande de création d’un canal

    12 mars 2010, par

    En fonction de la configuration de la plateforme, l’utilisateur peu avoir à sa disposition deux méthodes différentes de demande de création de canal. La première est au moment de son inscription, la seconde, après son inscription en remplissant un formulaire de demande.
    Les deux manières demandent les mêmes choses fonctionnent à peu près de la même manière, le futur utilisateur doit remplir une série de champ de formulaire permettant tout d’abord aux administrateurs d’avoir des informations quant à (...)

  • Le profil des utilisateurs

    12 avril 2011, par

    Chaque utilisateur dispose d’une page de profil lui permettant de modifier ses informations personnelle. Dans le menu de haut de page par défaut, un élément de menu est automatiquement créé à l’initialisation de MediaSPIP, visible uniquement si le visiteur est identifié sur le site.
    L’utilisateur a accès à la modification de profil depuis sa page auteur, un lien dans la navigation "Modifier votre profil" est (...)

  • Support de tous types de médias

    10 avril 2011

    Contrairement à beaucoup de logiciels et autres plate-formes modernes de partage de documents, MediaSPIP a l’ambition de gérer un maximum de formats de documents différents qu’ils soient de type : images (png, gif, jpg, bmp et autres...) ; audio (MP3, Ogg, Wav et autres...) ; vidéo (Avi, MP4, Ogv, mpg, mov, wmv et autres...) ; contenu textuel, code ou autres (open office, microsoft office (tableur, présentation), web (html, css), LaTeX, Google Earth) (...)

Sur d’autres sites (6684)

  • How to avoid downloading the same video with different file extension (remux) in yt-dlp

    23 décembre 2022, par Daniel

    This is the command I'm using to download my videos :
yt-dlp —remux "webm>avi" -o "%(upload_date)s %(title)s.%(ext)s" -f bv[format !*=248] -a List.txt

    


    I have text files with tons of links
So, if the videos are already downloaded in avi format
yt-dlp doesn't detect it, instead it downloads the video again creating a webm.part file, then it remuxes the file and overwrites the old avi downloaded video

    


    I know the cause of this is the ".%(ext)s" command but I cannot remove that part

    


    So what I need is for yt-dlp to recognize the file name instead of the extension, because from time to time I will need to check those video lists again with yt-dlp, to check for missing videos, or if I add new link videos to those lists

    


  • Concat audio files then call create file

    11 mai 2020, par bleepbloopbleep

    I am new and am trying to concat a folder of audio files and then stream the create file with ffmpeg in node.js.

    



    I thought I could call the function that creates the file with await and then when it's done the code would continue allowing me to call the created file. However thats not whats happening. I am getting a "file undefined"

    



    Main function

    



    //CONCATS THE FILES
  await concatAudio(supportedFileTypes.supportedAudioTypes, `${path}${config[typeKey].audio_directory}`);

  // CALLS THE FILE CREATED FROM concatAudio
  const randomSong = await getRandomFileWithExtensionFromPath(
    supportedFileTypes.supportedAudioTypes,
    `${path}${config[typeKey].audio_final}`
  );


    



    concatAudio function

    



    var audioconcat = require('audioconcat');
const getRandomFileWithExtensionFromPath = require('./randomFile');
const find = require('find');

// Async Function to get a random file from a path
module.exports = async (extensions, path) => {
  // Find al of our files with the extensions
  let allFiles = [];

  extensions.forEach(extension => {
    allFiles = [...allFiles, ...find.fileSync(extension, path)];
  });

  await audioconcat(allFiles)
    .concat('./live-stream-radio/final/all.mp3')
    .on('start', function(command) {
      console.log('ffmpeg process started:', command);
    })
    .on('error', function(err, stdout, stderr) {
      console.error('Error:', err);
      console.error('ffmpeg stderr:', stderr);
    })
    .on('end', function(output) {
      console.error('Audio created in:', output);
    });

  // Return a random file

  // return '/Users/Semmes/Downloads/live-stream-radio-ffmpeg-builds/live-stream-radio/final/all.mp3';
};


    


  • Parsing file-like object into create_ffmpeg_player in discord.py not working

    3 août 2018, par user4757174

    The API documentation for create_ffmpeg_player says it allows passing file-like objects into create_ffmpeg_player as it will be passed to stdin.

    create_ffmpeg_player(filename, *, use_avconv=False, pipe=False, stderr=None, options=None, before_options=None, headers=None, after=None)

    filename – The filename that ffmpeg will take and convert to PCM bytes. If pipe is True then this is a file-like object that is passed to the stdin of ffmpeg

    here’s what I am inputting :

    buffer = BytesIO()
    c.setopt(c.WRITEDATA, buffer)
    c.perform()
    player = voice.create_ffmpeg_player(buffer,pipe=True)

    The PycURL object writes data to buffer which is the BytesIO object.

    Then I try to parse the file-like object into create_ffmpeg_player() but I get the following error :

       Traceback (most recent call last):
     File "C:\Users\user\AppData\Local\Programs\Python\Python36\lib\site-packages\discord\client.py", line 307, in _run_event
       yield from getattr(self, event)(*args, **kwargs)
     File "test.py", line 116, in on_message
       player = voice.create_ffmpeg_player(buffer,pipe=True)
     File "C:\Users\user\AppData\Local\Programs\Python\Python36\lib\site-packages\discord\voice_client.py", line 431, in create_ffmpeg_player
       p = subprocess.Popen(args, stdin=stdin, stdout=subprocess.PIPE, stderr=stderr)
     File "C:\Users\user\AppData\Local\Programs\Python\Python36\lib\subprocess.py", line 667, in __init__
       errread, errwrite) = self._get_handles(stdin, stdout, stderr)
     File "C:\Users\user\AppData\Local\Programs\Python\Python36\lib\subprocess.py", line 904, in _get_handles
       p2cread = msvcrt.get_osfhandle(stdin.fileno())
    io.UnsupportedOperation: fileno

    The error shows me that somewhere in the stack, a routine is trying to get the fileno() of the object, but since this is not a real file, there is no file handle, or "fileno". For a temporary work-around I am creating a physical file on disk and parsing that file into the function, but for this program, the function will be run many times so doing physical read/writes is not practical. Is it possible to work around this, or at least create a file on memory with the ability to get/spoof a fileno ?