
Recherche avancée
Autres articles (93)
-
Publier sur MédiaSpip
13 juin 2013Puis-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 -
List of compatible distributions
26 avril 2011, parThe table below is the list of Linux distributions compatible with the automated installation script of MediaSPIP. Distribution nameVersion nameVersion number Debian Squeeze 6.x.x Debian Weezy 7.x.x Debian Jessie 8.x.x Ubuntu The Precise Pangolin 12.04 LTS Ubuntu The Trusty Tahr 14.04
If you want to help us improve this list, you can provide us access to a machine whose distribution is not mentioned above or send the necessary fixes to add (...) -
Emballe médias : à quoi cela sert ?
4 février 2011, parCe plugin vise à gérer des sites de mise en ligne de documents de tous types.
Il crée des "médias", à savoir : un "média" est un article au sens SPIP créé automatiquement lors du téléversement d’un document qu’il soit audio, vidéo, image ou textuel ; un seul document ne peut être lié à un article dit "média" ;
Sur d’autres sites (8119)
-
fluent-ffmpeg throw er when concatenate videos
2 mai 2020, par Romualdo Arrechea HernándezI'm using fluent-ffmpeg version 2.1.2.
When I execute the current code the output show off a error message :



var ffmpeg = require('fluent-ffmpeg');
var glob= require('glob');
ffmpeg.setFfmpegPath("/usr/bin/ffmpeg");
ffmpeg.setFfprobePath("/usr/bin/ffprobe");
var command = ffmpeg();

const path='/home/username/somefolder/*/output.mp4';

var videos=glob.sync(path);
var output="./output.mp4";
videos.map(video=>command.addInput(video));
command.mergeToFile(output);




the console output>



**events.js:287
 throw er; // Unhandled 'error' event
 ^

Error: ffmpeg exited with code 1: Conversion failed!

 at ChildProcess.<anonymous> (/home/r/Projects/prueba/node_modules/fluent-ffmpeg/lib/processor.js:182:22)
 at ChildProcess.emit (events.js:310:20)
 at Process.ChildProcess._handle.onexit (internal/child_process.js:275:12)
Emitted 'error' event on FfmpegCommand instance at:
 at emitEnd (/home/r/Projects/prueba/node_modules/fluent-ffmpeg/lib/processor.js:424:16)
 at endCB (/home/r/Projects/prueba/node_modules/fluent-ffmpeg/lib/processor.js:544:13)
 at handleExit (/home/r/Projects/prueba/node_modules/fluent-ffmpeg/lib/processor.js:170:11)
 at ChildProcess.<anonymous> (/home/r/Projects/prueba/node_modules/fluent-ffmpeg/lib/processor.js:182:11)
 at ChildProcess.emit (events.js:310:20)
 at Process.ChildProcess._handle.onexit (internal/child_process.js:275:12)**
</anonymous></anonymous>



The video should be created, but it's unable to concat. Some clue ?


-
uwp app throw error when install from package but works fine in any mode when run directly launching from visual studio
30 septembre 2020, par Abhishek SharmaI have created an app wrapping FFmpeg in uwp now for the requirement
I have all the major dll of FFmpeg and then set to content and copy always in property
now when I launch the app installed from the visual studio in any mode weather release, debug, x86,x64 it works fine but as I created a package and then install the app and run it, it throws an error where it says that dll not found not directly but says file not found which is because of dll because I face that problem in debug mode before and it's because of dll not available to uwp
you can look at the project here : https://github.com/AbhiSharma9350/Winfftool


-
fileapi::WriteFile() doesn't send an input, if processthreadsapi::STARTUPINFO::hStdError is set (ffmpeg)
23 avril 2021, par LidekysI'm trying to capture my screen using
ffmpeg
in a different thread (which I create usingprocessthreadsapi::CreateProcess())
so I'd be able to do something else in the main thread, and redirectffmpeg
output, so it wouldn't pop up in the console for the user to see. To stop filming, I send a 'q' input usingWriteFile()
, and after that I want to saveffmpeg
accumulated output usingReadFile()
.

However, if I set
STARTUPINFO::hStdError
(note, thatffmpeg
output goes tostderr
) to a pipe, from which I could read the accumulated data, the inputs I send usingWriteFile()
are no longer registered and ffmpeg.exe keeps running.

I've tried redirecting
ffmpeg
output in a simple command line, but I can still stop the process by pressing the q button.

Also, if I record for less than 8 seconds, the input is registered and
ffmpeg.exe
closes.

Is there something wrong with my code, or is it processthreadsapi issue, any hints will be kindly appreciared !


Here's a minimal code of how I am trying to do it :



#include <iostream>

#include 
#include 

using namespace std;

HANDLE g_hChildStd_IN_Rd = NULL;
HANDLE g_hChildStd_IN_Wr = NULL;
HANDLE g_hChildStd_OUT_Rd = NULL;
HANDLE g_hChildStd_OUT_Wr = NULL;

int main()
{
 //Create IN and OUT pipes
 SECURITY_ATTRIBUTES saAttr;
 saAttr.nLength = sizeof(SECURITY_ATTRIBUTES);
 saAttr.lpSecurityDescriptor = NULL;


 if (! CreatePipe(&g_hChildStd_OUT_Rd, &g_hChildStd_OUT_Wr, &saAttr, 0) )
 cout<<"StdoutRd CreatePipe error"</Start recording
 if(!CreateProcess(NULL,
 "ffmpeg -y -f gdigrab -framerate 2 -i desktop record.avi", // command line
 NULL, // process security attributes
 NULL, // primary thread security attributes
 TRUE, // handles are inherited
 0, // creation flags
 NULL, // use parent's environment
 NULL, // use parent's current directory
 &siStartInfo, // STARTUPINFO pointer
 &piProcInfo)) // receives PROCESS_INFORMATION
 {
 cout<<"Error create process"</Record for a while
 while(getch() != 'k'){
 cout<<"While press k"</Stop recording by emulating a Q button push
 DWORD dwWritten;
 CHAR chBufW[1] = {'q'};

 if ( ! WriteFile(g_hChildStd_IN_Wr, chBufW, 1, &dwWritten, NULL) )
 cout<<"Error write file"</Save stdError (ffmpeg) data
 DWORD dwRead;
 char stdErrorData[4096];
 bool bSuccess;

 bSuccess = ReadFile( g_hChildStd_OUT_Wr, stdErrorData, 4096, &dwRead, NULL);

 if(!bSuccess || dwRead == 0)
 cout<<"Read failed"<code></iostream>