Recherche avancée

Médias (0)

Mot : - Tags -/content

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

Autres articles (87)

  • Encoding and processing into web-friendly formats

    13 avril 2011, par

    MediaSPIP automatically converts uploaded files to internet-compatible formats.
    Video files are encoded in MP4, Ogv and WebM (supported by HTML5) and MP4 (supported by Flash).
    Audio files are encoded in MP3 and Ogg (supported by HTML5) and MP3 (supported by Flash).
    Where possible, text is analyzed in order to retrieve the data needed for search engine detection, and then exported as a series of image files.
    All uploaded files are stored online in their original format, so you can (...)

  • 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

  • Gestion de la ferme

    2 mars 2010, par

    La ferme est gérée dans son ensemble par des "super admins".
    Certains réglages peuvent être fais afin de réguler les besoins des différents canaux.
    Dans un premier temps il utilise le plugin "Gestion de mutualisation"

Sur d’autres sites (4807)

  • Electron ffmpeg integration

    27 avril 2017, par Raider Dave

    I am in way over my head here. I am normally a coldfusion/javascript/jquery developer but now have taken on a task that assumes I know more than I do.

    I am trying to write an application in electron that will allow me to select a group of video files and convert them to mp4 files while also compressing them. The files are football plays and a normal game consists of about 160 plays and 18gb. We need to compress these down to about 4gb. I have used programs like Prism to do this, but the intended users are not technically savvy nor do they all have windows - some have Macs.

    I have an electron project that I have started and got the first part to work. I can start the app and select the input files. But I have tried all kinds of different solutions found online to call ffmpeg and pass it the parms to convert a file. Is there an easy way to call ffmpeg with parms and then wait for it to finish before continuing ?

    I am on Windows 10 but will also need to run on Apple OS. Please, if you have a simple example of how to do this, I would appreciate it.

    Thanks !
    Dave

  • Merge videos on computer automatically

    14 mai 2024, par Skyturkish

    I have some videos regularly downloaded to my computer, these are short videos, around 10-15 seconds each. I usually use https://online-video-cutter.com/merge-videos to merge them, and it serves my purpose well. I just drag and drop the videos I want and hit the download button without any additional steps.

    


    My goal is to automate this process, so I thought I could merge the videos locally on my computer using ffmpeg. I've tried with JavaScript libraries like ffmpeg-static and ffmpeg-fluent, but I couldn't get the desired result ; I keep encountering an error.

    


    What I want is automation of this process. How can I achieve this ? What can I use and how ? I attribute my inability to accomplish this to myself since what I want seems quite simple. Thank you in advance. Below, I'm leaving the JavaScript code I tried, but it gives me an error : 'ffmpeg exited with code 234 : Error opening output file ./merged-video.mp4. Error opening output files : Invalid argument.'

    


    The number of videos is not fixed ; if an example is needed, let's say the first 30 files under a folder.

    


    The videos are in mp4 format, and their frame sizes vary

    


    I don't have much knowledge about videos, but other things could be different too, not just the frame sizes. The website I shared above handles all of these somehow. It's a bit off-topic, but is it possible to learn how the process on the mentioned website works(look at the source code somehow, Idk) ?

    


    If there's any other way to automatically merge these videos, I would appreciate it if you could share it.

    


    const fs = require('fs')
const path = require('path')
const ffmpeg = require('fluent-ffmpeg')

function mergeVideos(folderPath, outputFile) {
  fs.readdir(folderPath, (err, files) => {
    if (err) {
      console.error('Error:', err)
      return
    }

    const videoFiles = files.filter((file) => {
      const ext = path.extname(file).toLowerCase()
      return ext === '.mp4'
    })

    const command = ffmpeg().outputOptions('-movflags frag_keyframe+empty_moov')
    videoFiles.forEach((file) => {
      command.input(path.join(folderPath, file))
    })

    command.on('error', (err) => {
      console.error('ffmpeg error:', err.message)
    })

    command.on('end', () => {
      console.log('merged')
    })

    command
      .complexFilter(
        '[0:v]scale=w=1920:h=1080:force_original_aspect_ratio=decrease[v0];[1:v]scale=w=1920:h=1080:force_original_aspect_ratio=decrease[v1];[v0][v1]hstack=inputs=2[v]'
      )
      .outputOptions('-map', '[v]')
    command.mergeToFile(outputFile, folderPath)
  })
}

const folderPath = '../../upload-videos/1/2'
const outputFile = './merged-video.mp4'
mergeVideos(folderPath, outputFile)


    


  • Play m3u8 audio streaming in python without saving audio content

    3 septembre 2021, par AlexMercer

    there is an online radio station and i have a m3u8 url from that like below :

    


    http://example.com/live/playlist.m3u8


    


    I can capture the audio with ffmpeg with this command :

    


    ffmpeg -i "http://example.com/live/playlist.m3u8" -c copy test.aac


    


    I want to play this streaming with in my PyQt app and i don't need to store the content.

    


    But i don't know how to pass the content from ffmpeg to my python app and play that with QMediaPlayer.