
Recherche avancée
Médias (91)
-
GetID3 - Boutons supplémentaires
9 avril 2013, par
Mis à jour : Avril 2013
Langue : français
Type : Image
-
Core Media Video
4 avril 2013, par
Mis à jour : Juin 2013
Langue : français
Type : Video
-
The pirate bay depuis la Belgique
1er avril 2013, par
Mis à jour : Avril 2013
Langue : français
Type : Image
-
Bug de détection d’ogg
22 mars 2013, par
Mis à jour : Avril 2013
Langue : français
Type : Video
-
Exemple de boutons d’action pour une collection collaborative
27 février 2013, par
Mis à jour : Mars 2013
Langue : français
Type : Image
-
Exemple de boutons d’action pour une collection personnelle
27 février 2013, par
Mis à jour : Février 2013
Langue : English
Type : Image
Autres articles (13)
-
Les vidéos
21 avril 2011, parComme les documents de type "audio", Mediaspip affiche dans la mesure du possible les vidéos grâce à la balise html5 .
Un des inconvénients de cette balise est qu’elle n’est pas reconnue correctement par certains navigateurs (Internet Explorer pour ne pas le nommer) et que chaque navigateur ne gère en natif que certains formats de vidéos.
Son avantage principal quant à lui est de bénéficier de la prise en charge native de vidéos dans les navigateur et donc de se passer de l’utilisation de Flash et (...) -
Participer à sa traduction
10 avril 2011Vous pouvez nous aider à améliorer les locutions utilisées dans le logiciel ou à traduire celui-ci dans n’importe qu’elle nouvelle langue permettant sa diffusion à de nouvelles communautés linguistiques.
Pour ce faire, on utilise l’interface de traduction de SPIP où l’ensemble des modules de langue de MediaSPIP sont à disposition. ll vous suffit de vous inscrire sur la liste de discussion des traducteurs pour demander plus d’informations.
Actuellement MediaSPIP n’est disponible qu’en français et (...) -
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 (...)
Sur d’autres sites (2960)
-
Using Unicast RTSP URIs via ffmpeg
6 août 2019, par Chris MarshallI’m fairly new to ffmpeg, so I’d certainly appreciate being given an "M" to "RTFM." The ffmpeg docs are...not-so-easy...to navigate, but I’m trying.
The goal is to develop a compiled server that incorporates ffmpeg, but first, I need to get it working via CLI.
I have a standard AXIS Surveillance camera (AXIS M5525-E), set up as an ONVIF device (but that isn’t really relevant to this issue).
When I query it, I get the following URI as its video streaming URI :
rtsp://192.168.4.12/onvif-media/media.amp?profile=profile_1_jpeg&streamtype=unicast
The IP is local to a sandboxed network.
I add the authentication parameters to it, like so :
rtsp://<login>:<password>@192.168.4.12/onvif-media/media.amp?profile=profile_1_jpeg&streamtype=unicast
</password></login>(Yeah, I know that’s not secure, but this is just for testing and feasibility study. The whole damn sandbox is an insecure mess).
Now, if I use VLC to open the URI, it works great (of course). Looking at it with a packet analyzer, I see the following negotiation between the device and my computer (at .2 - Clipped for brevity) :
Id = 11
Source = 192.168.4.12
Destination = 192.168.4.2
Captured Length = 82
Packet Length = 82
Protocol = TCP
Date Received = 2019-08-06 12:18:37 +0000
Time Delta = 1.342024087905884
Information = 554 -> 53755 ([ECN, ACK, SYN], Seq=696764098, Ack=3139240483, Win=28960)
°
°
°
Id = 48
Source = 192.168.4.12
Destination = 192.168.4.2
Captured Length = 366
Packet Length = 366
Protocol = TCP
Date Received = 2019-08-06 12:18:38 +0000
Time Delta = 2.09382700920105
Information = 554 -> 53755 ([ACK, PUSH], Seq=696765606, Ack=3139242268, Win=1073)Followed immediately by UDP stream packets.
If, however, I feed the same URI to ffmpeg :
ffmpeg -i rtsp://<login>:<password>@192.168.4.12/onvif-media/media.amp?profile=profile_1_jpeg&streamtype=unicast -c:v libx264 -crf 21 -preset veryfast -g 30 -sc_threshold 0 -f hls -hls_time 4 /Volumes/Development/webroot/fftest/stream.m3u8
</password></login>I get nothing. No negotiation at all between the device and my computer.
After that, if I then remove the
&streamtype=unicast
argument, I get a negotiation, and a stream :Id = 10
Source = 192.168.4.12
Destination = 192.168.4.2
Captured Length = 82
Packet Length = 82
Protocol = TCP
Date Received = 2019-08-06 10:37:48 +0000
Time Delta = 3.047425985336304
Information = 554 -> 49606 ([ECN, ACK, SYN], Seq=457514925, Ack=2138974173, Win=28960)
°
°
°
Id = 31
Source = 192.168.4.12
Destination = 192.168.4.2
Captured Length = 345
Packet Length = 345
Protocol = TCP
Date Received = 2019-08-06 10:37:49 +0000
Time Delta = 3.840152025222778
Information = 554 -> 49606 ([ACK, PUSH], Seq=457516393, Ack=2138975704, Win=1039)I will, of course, be continuing to work out why this is [not] happening, and will post any solutions that I find, but, like I said, I’m fairly new to this, so it’s entirely possible that I’m missing some basic stuff, and would appreciate any guidance.
Thanks !
-
Generating Video from Downloaded Images Using Fluent-FFmpeg : Issue with Multiple Image Inputs
11 août 2023, par Pratham BhagatI am having trouble creating Video from multiple images using fluent-ffmpeg in node.js.


Here, I am getting the images from rquest body and downloading them in **temp **directory


const imageUrls = req.body.imageUrls;
 const timeInBetween = parseFloat(req.query.time_in_between) || 1.0;

const tempDir = path.join(
 context.executionContext.functionDirectory,
 "temp"
 );

const downloadedImages = await Promise.all(
 imageUrls.map(async (imageUrl, index) => {
 try {
 const response = await axios.get(imageUrl, {
 responseType: "arraybuffer",
 });
 const imageName = `image_${index + 1}.png`;
 const imagePath = path.join(tempDir, imageName);
 await fs.writeFile(imagePath, response.data);
 return imagePath;
 } catch (error) {
 context.log(`Error downloading ${imageUrl}: ${error.message}`);
 return null;
 }
 })
 );



I want to combine these images that are in downloadedImages array and create a video


const outputVideoPath = path.join(tempDir, "output.mp4");

 let ffmpegCommand = ffmpeg();

 for (let i = 0; i < downloadedImages.length; i++) {
 context.log(downloadedImages.length);
 ffmpegCommand
 .input(downloadedImages[i])

 .inputOptions(["-framerate", `1/${timeInBetween}`])
 .inputFormat("image2")
 .videoCodec("libx264")
 .outputOptions(["-pix_fmt", "yuv420p"]);
 }

 ffmpegCommand
 .output(outputVideoPath)
 .on("end", () => {
 context.log("Video generation successful.");
 context.res = {
 status: 200,
 body: "Video generation and cleanup successful.",
 };
 })
 .on("error", (err) => {
 context.log.error("Error generating video:", err.message);
 context.res = {
 status: 500,
 body: "Error generating video: " + err.message,
 };
 })
 .run();



By running it and giving value of "time_in_between" as 2 I get video of 2 seconds with a single image.


- 

- Utilized Fluent-FFmpeg library to generate a video from a list of downloaded images.
- Expected the video to include all images, each displayed for a specified duration.
- Tried mapping through the image paths and using chained inputs for each image.
- Expected the video to have a sequence of images displayed.
- Observed that the generated video only contained the first image and was of 0 seconds duration.












-
Converting images to video in Android using FFmpeg
28 février 2024, par sneha Lathaval cm = "-f image2 -i \"$imagesFolder/JPEG_08%d_06%d_.jpg\" -vcodec mpeg4 -b 800k output.mp4"



this command is not able to .convert the images into video my images are in the format below :


JPEG_20240228_115618_ 
JPEG_20240228_115622_



Im using the below code :


fun convertImagesToVideo(imageList: List<file>, outputVideoPath: String, frameRate: Int) {
 val inputFiles = imageList.joinToString(" ") { it.absolutePath }
 val imagesFolder = File(getExternalFilesDir(Environment.DIRECTORY_PICTURES), "camerax")

 val cm = "-f image2 -i \"$imagesFolder/JPEG_08%d_06%d_.jpg\" -vcodec mpeg4 -b 800k output.mp4"


 val cmd = arrayOf(
 "-framerate", frameRate.toString(),
 inputFiles,
 "-c:v", "mpeg4",
 "-pix_fmt", "yuv420p",
 outputVideoPath
 ).joinToString(" ")

 executeFfmpegCommand(cm, outputVideoPath)
 }

 fun executeFfmpegCommand(exe: String, filePath: String) {

 //creating the progress dialog
 val progressDialog = ProgressDialog(this@FolderListActivity)
 progressDialog.setCancelable(false)
 progressDialog.setCanceledOnTouchOutside(false)
 progressDialog.show()

 /*
 Here, we have used he Async task to execute our query because if we use the regular method the progress dialog
 won't be visible. This happens because the regular method and progress dialog uses the same thread to execute
 and as a result only one is a allowed to work at a time.
 By using we Async task we create a different thread which resolves the issue.
 */
 FFmpegKit.executeAsync(exe, { session ->
 val returnCode = session.returnCode
 lifecycleScope.launch(Dispatchers.Main) {
 if (returnCode.isValueSuccess) {
 binding.videoView.setVideoPath(filePath)
 //change the video_url to filePath, so that we could do more manipulations in the
 //resultant video. By this we can apply as many effects as we want in a single video.
 //Actually there are multiple videos being formed in storage but while using app it
 //feels like we are doing manipulations in only one video
 input_video_uri = filePath
 //play the result video in VideoView
 binding.videoView.start()
 progressDialog.dismiss()
 Toast.makeText(this@FolderListActivity, "Filter Applied", Toast.LENGTH_SHORT).show()
 } else {
 progressDialog.dismiss()
 Log.d("TAG", session.allLogsAsString)
 Toast.makeText(this@FolderListActivity, "Something Went Wrong!", Toast.LENGTH_SHORT)
 .show()
 }
 }
 }, { log ->
 lifecycleScope.launch(Dispatchers.Main) {
 progressDialog.setMessage("Applying Filter..${log.message}")
 }
 }) { statistics -> Log.d("STATS", statistics.toString()) }
 }
</file>