
Recherche avancée
Autres articles (73)
-
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 (13002)
-
Uncaught Exception : TypeError : Cannot read properties of undefined (reading 'format')
19 mai 2024, par gzhe1056I've been having trouble with sending the video files to be read by ffprobe. I have fluent-ffmpeg and ffprobe installed but this error shows. I'm not sure what I'm missing


index.js


const electron = require('electron')
const {app, BrowserWindow, ipcMain} = electron
const ffmpeg = require('fluent-ffmpeg')
let mainWindow
// const ffmpeg = require('@ffmpeg-installer/ffmpeg');
// app.on('ready', function(){
// console.log('App is ready')
// })
app.on('ready', function(){
 mainWindow = new BrowserWindow({
 webPreferences:{
 nodeIntegration: true,
 contextIsolation: false
 }
 })
 mainWindow.loadURL(`file://${__dirname}/index.html`)
})

ipcMain.on('video:submit', (event, path)=>{
 ffmpeg.ffprobe(path, (err, metadata)=>{
 let duration = metadata.format.duration
 console.log(err)
 mainWindow.webContents.send(
 'video:metadata',
 duration
 )
 })
})



index.html






 <h1>Video info</h1>
 <form>
 <div>
 <label>Select new video</label>
 <input type="file" accept="video/*" />
 </div>
 <input type="submit" value="Get info" />
 </form>
 <h1></h1>
 <code class="echappe-js"><script>&#xA; const electron = require(&#x27;electron&#x27;)&#xA; const {ipcRenderer} = electron&#xA; document.querySelector(&#x27;form&#x27;).addEventListener(&#x27;submit&#x27;, (event)=>{&#xA; event.preventDefault()&#xA; const {path} = document.querySelector(&#x27;input&#x27;).files[0]&#xA; ipcRenderer.send(&#x27;video:submit&#x27;, path)&#xA; })&#xA;&#xA; ipcRenderer.on(&#x27;video:metadata&#x27;, (event,duration)=>{&#xA; document.querySelector(&#x27;#result&#x27;).innerHTML = `Video duration is ${duration} seconds`&#xA; })&#xA; </script>




I tried to reinstall and udpate the ffmpeg nodes but the error still persists


-
C# FFmpeg bitmap frames to picturebox
8 janvier 2019, par DennissI have an existing C# winforms app with live videostreams from 4 ip cameras via VLC.net (rtsp) and we take every 100ms a snapshot to analize. This is working fine. Now we like to do this instead of VLC.net with FFmpeg to have more possibilities with the (faster) captured frame. I have already a working ffmpeg wrapper sending every frame as bitmap via an event. Then I have a class "FmpegVideoWindow" inherits from PictureBox, here we listen for incoming frames and draw them on the picturebox. So instead of using the vlc-control in the form we use now a picturebox :
private void ffMpegWrapper_NewFrame1(object sender, NewFrameEventArgs e)
{
if (e != null)
{
try
{
using (Bitmap bm = new Bitmap(e.Frame))
{
frame = (Bitmap)bm.Clone();
}
}
catch
{
}
}
Invalidate();
}
protected override void OnPaint(PaintEventArgs pe)
{
base.OnPaint(pe);
if (frame != null)
{
pe.Graphics.DrawImage(frame, 0, 0, this.Width, this.Height);
//todo : disposing frame
}
}This is working ok to see the cameras live, they have @25fps and a D1 resolution 704*576.
The problem is that every time we have other processing like opening a (settings)form, or analyzing the snapshot, the picture in the picturebox is freezing for a short time. The same program with VLC.net was never a problem.The Ffmpeg process is done in another thread. Why does the VLC.net control running smooth in the GUI thread, and this new approach not ? And what can we do to fix it ? The analyzing is also done in another thread, writing the results from the analyzer to the database is done in the GUI thread. And I don’t like to change that because with VLC.net it was also not needed to do that.
Thank you in advance. -
FFmpeg audio problems
9 juin 2017, par temp accountMain question is, im not getting audio when the bat file first downloads the video, it only gets the video and not the audio
Here is my code for my bat file that gets a youtube video URL from their servers via youtube-dl.exe
It then moves that URL to FFmpeg.exe to download the video.
@ECHO off
:Input
ECHO.
SET url=
ECHO Enter Youtube-url:
SET /P url=
IF "%url%" EQU "" GOTO End
IF "%url: =%" NEQ "%url%" GOTO Input
ECHO Enter start time (in seconds, or in hh:mm:ss[.xxx] form):
SET /P start=
ECHO Enter duration (in seconds, or in hh:mm:ss[.xxx] form):
SET /P dur=
ECHO.
FOR /F "delims==" %%A IN ('youtube-dl.exe --no-warnings --get-filename "%url%"') DO SET filename=%%A
FOR /F %%B IN ('youtube-dl.exe -g "%url%"') DO (
ffmpeg.exe -hide_banner -ss "%start%" -i "%%B" -c:v copy -c:a aac -strict experimental -t "%dur%" "%filename%"
)
GOTO Input
:EndThis is the main part of the bat file thats probably responsible for my audio problem
ffmpeg.exe -hide_banner -ss "%start%" -i "%%B" -c:v copy -c:a aac -strict experimental -t "%dur%" "%filename%"
When the video is done downloading, it will ask me
File 'whatever_video_is_called.mp4' already exists. Overwrite ? [y/N]
and then it will overwrite the video I just downloaded with its audio file.