
Recherche avancée
Autres articles (29)
-
La file d’attente de SPIPmotion
28 novembre 2010, parUne file d’attente stockée dans la base de donnée
Lors de son installation, SPIPmotion crée une nouvelle table dans la base de donnée intitulée spip_spipmotion_attentes.
Cette nouvelle table est constituée des champs suivants : id_spipmotion_attente, l’identifiant numérique unique de la tâche à traiter ; id_document, l’identifiant numérique du document original à encoder ; id_objet l’identifiant unique de l’objet auquel le document encodé devra être attaché automatiquement ; objet, le type d’objet auquel (...) -
Contribute to documentation
13 avril 2011Documentation is vital to the development of improved technical capabilities.
MediaSPIP welcomes documentation by users as well as developers - including : critique of existing features and functions articles contributed by developers, administrators, content producers and editors screenshots to illustrate the above translations of existing documentation into other languages
To contribute, register to the project users’ mailing (...) -
Changer son thème graphique
22 février 2011, parLe thème graphique ne touche pas à la disposition à proprement dite des éléments dans la page. Il ne fait que modifier l’apparence des éléments.
Le placement peut être modifié effectivement, mais cette modification n’est que visuelle et non pas au niveau de la représentation sémantique de la page.
Modifier le thème graphique utilisé
Pour modifier le thème graphique utilisé, il est nécessaire que le plugin zen-garden soit activé sur le site.
Il suffit ensuite de se rendre dans l’espace de configuration du (...)
Sur d’autres sites (5013)
-
FFMPEG FTP is not working
16 mai 2014, par SENTHIL SARAVANANI want convert video files using FFMPEG and upload into my server using FTP. For this i used the following ffmpeg command
ffmpeg -i C:\Users\sen\Desktop\sss\input.mov ftp://root:xxxxxxxxxxx@xxx.xxx.xxx.24/output.flv
But ffmpeg shows like authentication failed, i hope i give valid server credentials only. Please refer the ffmpeg screen for more detail
How can solve this issue.
-
How can I change the length of my ffmpeg video ? The concatenation is not working
24 janvier 2024, par LukeI am trying to use the ffmpeg library whereby I take three images, and make a 9 second video of them. However, it is just showing the first video for three seconds, then finishing. What in my code do I need to change ? The code uses AWS Lambda to store the files in temporary storage. I've logged everything before, and it all seems to be working. I have a feeling it is this line of code that is not working :
.outputOptions(["-c:v libx264", "-t 12", "-pix_fmt yuv420p", "-vf scale=1280:720", "-r 1"])
combined with the concatenation process.

async function processImages(imageStreams) {
 for (let i = 0; i < imageStreams.length; i++) {
 await processSingleImage(imageStreams[i], `/tmp/temp_video_${i}.mp4`, i);
 }
 await concatenateVideos(imageStreams.length);
}


async function processSingleImage(imageStream, outputPath, index) {
 return new Promise((resolve, reject) => {
 const command = ffmpeg(imageStream);
 command
 .outputOptions(["-c:v libx264", "-t 12", "-pix_fmt yuv420p", "-vf scale=1280:720", "-r 1"])
 .on("end", () => {
 resolve();
 })
 .on("error", (err) => {
 console.error(`Error during processing of image ${index}:`, err);
 reject(err);
 })
 .saveToFile(outputPath);
 });
}

async function concatenateVideos(numberOfVideos) {
 const fileList = "/tmp/file_list.txt";
 let fileContent = "";
 for (let i = 0; i < numberOfVideos; i++) {
 fileContent += `file '/tmp/temp_video_${i}.mp4'\n`;
 }

 await fs.writeFile(fileList, fileContent);

 return new Promise((resolve, reject) => {
 ffmpeg()
 .input(fileList)
 .inputOptions(["-f concat", "-safe 0"])
 .outputOptions(["-c copy"])
 .saveToFile("/tmp/output.mp4");
 });
}



-
VideoCapture is not working in OpenCV 2.4.2
31 mai 2016, par FroyoI recently installed OpenCV 2.4.2 in Ubuntu 12.04.
cap = VideoCapture(0)
is working. but I can’t grab frames from some video source.
cap = VideoCapture("input.avi")
img = cap.read()gives me a numpy with all zero elements.
I have also installed ffmpeg 0.11, Latest snapshot of x264, v4l-0.8.8 (All are latest stable versions)
cmake -D WITH_QT=ON -D WITH_FFMPEG=ON -D WITH_OPENGL=ON -D WITH_TBB=ON -D BUILD_EXAMPLES=OFF WITH_V4L=ON ..
make
sudo make installWhen I do cmake, I get this
— Detected version of GNU GCC : 46 (406)
— Found OpenEXR : /usr/lib/libIlmImf.so
— Looking for linux/videodev.h
— Looking for linux/videodev.h - not found
— Looking for linux/videodev2.h
— Looking for linux/videodev2.h - found
— Looking for libavformat/avformat.h
— Looking for libavformat/avformat.h - found
— Looking for ffmpeg/avformat.h
— Looking for ffmpeg/avformat.h - not found
— checking for module ’tbb’
— package ’tbb’ not foundAnd
-- Video I/O:
-- DC1394 1.x: NO
-- DC1394 2.x: YES (ver 2.2.0)
-- FFMPEG: YES
-- codec: YES (ver 54.23.100)
-- format: YES (ver 54.6.100)
-- util: YES (ver 51.54.100)
-- swscale: YES (ver 2.1.100)
-- gentoo-style: YES
-- GStreamer:
-- base: YES (ver 0.10.36)
-- app: YES (ver 0.10.36)
-- video: YES (ver 0.10.36)
-- OpenNI: NO
-- OpenNI PrimeSensor Modules: NO
-- PvAPI: NO
-- UniCap: NO
-- UniCap ucil: NO
-- V4L/V4L2: Using libv4l (ver 0.8.8)
-- XIMEA: NO
-- Xine: NOI looked for videodev.h, etc
- /usr/include/linux/videodev2.h exists
- /usr/include/libavformat/avformat.h exists
- /usr/local/include/libavformat/avformat.h exists
But I couldn’t find
ffmpeg/avformat.h
What’s the problem here ?