Recherche avancée

Médias (1)

Mot : - Tags -/biographie

Autres articles (81)

  • MediaSPIP version 0.1 Beta

    16 avril 2011, par

    MediaSPIP 0.1 beta est la première version de MediaSPIP décrétée comme "utilisable".
    Le fichier zip ici présent contient uniquement les sources de MediaSPIP en version standalone.
    Pour avoir une installation fonctionnelle, il est nécessaire d’installer manuellement l’ensemble des dépendances logicielles sur le serveur.
    Si vous souhaitez utiliser cette archive pour une installation en mode ferme, il vous faudra également procéder à d’autres modifications (...)

  • Amélioration de la version de base

    13 septembre 2013

    Jolie sélection multiple
    Le plugin Chosen permet d’améliorer l’ergonomie des champs de sélection multiple. Voir les deux images suivantes pour comparer.
    Il suffit pour cela d’activer le plugin Chosen (Configuration générale du site > Gestion des plugins), puis de configurer le plugin (Les squelettes > Chosen) en activant l’utilisation de Chosen dans le site public et en spécifiant les éléments de formulaires à améliorer, par exemple select[multiple] pour les listes à sélection multiple (...)

  • 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

Sur d’autres sites (9560)

  • Telegram - ffmpeg - "not optimized for streaming" ? [duplicate]

    11 juillet 2021, par BinyominZeev

    I tried to convert my huge video file (recorded with smartphone) with ffmpeg as follows :

    


    ffmpeg -i input.mp4 -vcodec libx265 -crf 28 output.mp4


    


    Video converts, uploads to Telegram, but cannot play back and stream as usual. Rather, on computer it wants to download the whole video file, on phone I get the following strange error message :

    


    "Video not optimized for streaming. You may need to download it in full to play it"

    


    Which parameter should I use in ffmpeg in order to avoid this ?

    


    (I also tried the same with libx264, same issue.)

    


  • String is showing undefined

    30 octobre 2022, par Lol

    I am trying to create video using ffmpeg and returning its path to index.js but path is showing undefined.

    


    index.js

    


    app.get('/content/:myfact', async (req, res) => {
  let myfactdata = req.params.myfact;
  let myfact = myfactdata.replace("_", " ");
  const video = await generateVideo(myfact);
  console.log(video)
});


    


    This is my contentVideo.js

    


    const generateImage = require('./contentimage.js');
const { spawn } = require('child_process');

const generateVideo = async (myfact) => {
  await generateImage(myfact);
  const child = spawn('ffmpeg', [
    '-i', 'pictures/download/image.png', 'pictures/download/video.mp4'
  ]);
  child.on('close', function (code, signal) {
    const video = 'pictures/download/video.mp4'
    return video
  });
}

module.exports = generateVideo


    


  • PyInstaller has strange interaction with YT_DLP

    12 janvier 2023, par MDorcelian

    this is for debugging - it's so I can get some test variables when im not passing a json as an argument.

    


    try: 
    data_string = sys.argv[1]

    # Convert the string back into an object
    data = json.loads(data_string)

    URL = data['url']
    PATH = data['filePath'] + "/"

except:
    URL = "https://www.youtube.com/watch?v=o9oGBnXqCgU"
    PATH = "C:/Users/PC/Downloads/videos"



    


    this is the weird part.

    


    try:
  ydl_opts = {
            'outtmpl':PATH_VIDEO + '/%(title)s.%(ext)s',
            'noplaylist':True,
            'format': "bv*[height<=1080][ext=mp4]+ba[ext=m4a]/b[height<=1080][ext=mp4] / bv*+ba/b",
            'mergeoutputformat':'mp4',
            'restrictfilenames':True,
            'ignoreerrors': False,
            'verbose':True,
            
        }
        with yt_dlp.YoutubeDL(ydl_opts) as ydl:
            ydl.download(URL)

            info = ydl.extract_info(URL, download=False)
            final_path_os = ydl.prepare_filename(info)
    except yt_dlp.utils.DownloadError as e:
        setJsonData(str(e))


    


    when i download videos as a script with code runner, it downloads normally completely fine. After I compile it as an exe and click it, it downloads completely fine.

    


    but when i pass my json through it, it knows where to download, it knows what's downloading, but it ALWAYS leaves two seperate video and audio files that were supposed to be combined. i assume its FFMPEG but i've included FFMPEG with the exe of pyinstaller.

    


    pyinstaller  --add-data "ffmpeg.exe;." --add-data "ffmpeg.exe;." -F returnMessage.py 


    


    and i've put ffmpeg in the same folder just in case

    


    setJsonData() writes to a json i have but i don't know how to debug because IT NEVER WRITES AN ERROR THERE. my exe just keepes running in the background. i've spent a day on this and am so lost.

    


    I've tried Exception error as e, nothing. I can't check the console because the application that launches this runs it silently.

    


    I'm sure it's the ydl.download(URL) that's the problem because I've set it up to make a test_json before it and it worked. if i put it after, it doesn't.

    


    I've checked the os paths to see if anything was up, but it's downloading in the correct place, just not downloading fully.

    


    i've downloaded the ffmpeg that was compatible with yt_dlp as well.