
Recherche avancée
Autres articles (87)
-
MediaSPIP 0.1 Beta version
25 avril 2011, parMediaSPIP 0.1 beta is the first version of MediaSPIP proclaimed as "usable".
The zip file provided here only contains the sources of MediaSPIP in its standalone version.
To get a working installation, you must manually install all-software dependencies on the server.
If you want to use this archive for an installation in "farm mode", you will also need to proceed to other manual (...) -
MediaSPIP version 0.1 Beta
16 avril 2011, parMediaSPIP 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 2013Jolie 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 (...)
Sur d’autres sites (16882)
-
Merge videos on computer automatically
14 mai 2024, par SkyturkishI 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)



-
RTMP stream monitoring in python
18 mars 2015, par lasgunI don’t have experience with python, but I found this online :
https://gist.github.com/sinkers/d647a80fdb180b4cc3a6
Assuming it works with the current version of ffmpeg (ffprobe), I tried to just modify the code a bit, so it doesn’t log in to Amazon SNS to send a message. Just simply opening an audio file when the stream goes down, with the following command (I found it on this site) would do just fine :os.system("start /sound/xyz.mp3")
I tried to do this-and-that, but I can’t seem to succeed. I have 3.x installed.
I know it’s probably silly, but do I need to enter the relative, or absolute file locations ? For ffprobe and the sound file, is it C :\... or what’s the correct format and path ?
Any help to solve this would be greatly appreciated.
-
Play m3u8 audio streaming in python without saving audio content
3 septembre 2021, par AlexMercerthere 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.