
Recherche avancée
Médias (2)
-
Core Media Video
4 avril 2013, par
Mis à jour : Juin 2013
Langue : français
Type : Video
-
Video d’abeille en portrait
14 mai 2011, par
Mis à jour : Février 2012
Langue : français
Type : Video
Autres articles (69)
-
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 (...) -
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 -
Supporting all media types
13 avril 2011, parUnlike most software and media-sharing platforms, MediaSPIP aims to manage as many different media types as possible. The following are just a few examples from an ever-expanding list of supported formats : images : png, gif, jpg, bmp and more audio : MP3, Ogg, Wav and more video : AVI, MP4, OGV, mpg, mov, wmv and more text, code and other data : OpenOffice, Microsoft Office (Word, PowerPoint, Excel), web (html, CSS), LaTeX, Google Earth and (...)
Sur d’autres sites (11393)
-
#/bin/sh in one line
27 juillet 2012, par GoodGuyGregI'm working on some Haskell project using FFmpeg. I need to batch create from a media folder with MP4 files and create screenshots from all of them. I got the code and am using it on a terminal in Unix. It works, but how do I make it in one line to be executed in system "xxxx" in Haskell ?
If not using several system"xx"...
#/bin/sh
for i in $(ls *.mp4)
do
ffmpeg -i $i -vframes 7 -y -ss 10 -s 150x150 -an -sameq -f image2 -r 1/5 $i%1d.jpg
doneI tried :
import System.Cmd
function = do{system "#/bin/sh";
system "for i in $(ls *.mp4)";
system "do";
system "ffmpeg -i $i -vframes 7 -y -ss 10 -s 150x150 -an -sameq -f image2 -r 1/5 $i%1d.jpg";
system "done";}but it gives a error :
-vframes: No such file or directory
/bin/sh: Syntax error: "done" unexpected -
How to convert .fbx to frame images
24 mai 2024, par Ittefaq TechnologiesI wanna to need help that i wanna to convert .fbx to video through script and i found a soluotion to do it through FFmpeg but it not supports .fbx so i need help in to get frame images so i can make video through ffmpeg or if i am goin in wrong direction you can help me


I tried to convert a .fbx file to .obj using three.js and then create a video from the .obj file, but it didn't work.


<code class="echappe-js"><script>&#xA; // Function to load FBX using FBXLoader&#xA; function loadFBX(blob, loader, callback) {&#xA; var url = URL.createObjectURL(blob);&#xA; loader.load(url, function(object) {&#xA; callback(object);&#xA; });&#xA; }&#xA;&#xA; // Function to export THREE.Object3D to OBJ format using OBJExporter&#xA; function exportToOBJ(object, callback) {&#xA; var exporter = new THREE.OBJExporter();&#xA; var result = exporter.parse(object);&#xA; callback(result);&#xA; }&#xA;&#xA; // Function to send OBJ file to PHP script&#xA; function sendToPHP(objBlob, fileName) {&#xA; var formData = new FormData();&#xA; formData.append(&#x27;objFile&#x27;, objBlob, fileName);&#xA;&#xA; var xhr = new XMLHttpRequest();&#xA; xhr.open(&#x27;POST&#x27;, &#x27;convert.php&#x27;, true);&#xA; xhr.onload = function() {&#xA; if (xhr.status === 200) {&#xA; console.log(&#x27;Conversion successful:&#x27;, xhr.responseText);&#xA; } else {&#xA; console.error(&#x27;Conversion failed:&#x27;, xhr.responseText);&#xA; }&#xA; };&#xA; xhr.send(formData);&#xA; }&#xA;&#xA; // Function to convert FBX to OBJ&#xA; function convertToOBJ() {&#xA; var fileInput = document.getElementById(&#x27;fileInput&#x27;);&#xA; var file = fileInput.files[0];&#xA;&#xA; if (file) {&#xA; var reader = new FileReader();&#xA; reader.onload = function(event) {&#xA; var arrayBuffer = event.target.result;&#xA; var blob = new Blob([arrayBuffer]);&#xA; var loader = new THREE.FBXLoader();&#xA; loadFBX(blob, loader, function(object) {&#xA; exportToOBJ(object, function(objText) {&#xA; var objBlob = new Blob([objText], { type: &#x27;text/plain&#x27; });&#xA; sendToPHP(objBlob, file.name.split(&#x27;.&#x27;)[0] &#x2B; &#x27;.obj&#x27;);&#xA; });&#xA; });&#xA; };&#xA; reader.readAsArrayBuffer(file);&#xA; } else {&#xA; alert(&#x27;Please select an FBX file to convert.&#x27;);&#xA; }&#xA; }&#xA; </script>



<?php


// Check if form submitted and file uploaded
if ($_SERVER["REQUEST_METHOD"] == "POST" && isset($_FILES["objFile"])) {
 $objFile = $_FILES["objFile"];
 $objFilePath = $objFile["tmp_name"];
 $outputVideo = 'output.mp4';

 // Execute FFmpeg command to convert OBJ to video
 exec("ffmpeg -i \"$objFilePath\" $outputVideo", $output, $returnCode);

 if ($returnCode === 0) {
 echo 'Conversion successful';
 } else {
 echo 'Conversion failed';
 }
} else {
 echo 'No OBJ file uploaded';
}
?>




-
Basic "pass-through" use of FFmpegReader/FFmpegWriter in scikit-video
6 février 2021, par JonathanZ supports MonicaCI am starting to use scikit-video and am having trouble writing files. I have reduced the problem to the simplest possible example


vid_file = "6710185719062326259_stamp_25pct.mp4"
output_file = "out_temp3.mp4"
reader = skvideo.io.FFmpegReader(vid_file)
writer = skvideo.io.FFmpegWriter(output_file)
for frame in reader.nextFrame():
 writer.writeFrame(frame)
writer.close()



I'm playing the files in VLC, and the
vid_file
is valid but the output file, though playable, is mostly big green blocks (though I can discern some details from the original video in it).

My goal, or course, is to do "interesting" manipulations of the frame before I write it out, but I need to get the "no modifications" version working correctly first. I'm also going to be using this on large files, so the
vread/vwrite
functions that process an entire file at once are not appropriate.

I'm guessing I need to set the appropriate values in the
outputdict
parameter for the FFmpegWriter, but there are so many that I don't know where to start. I have tried

writer = skvideo.io.FFmpegWriter(output_file, outputdict={'-crf': '0', '-pix_fmt': 'rgb24'})



(
-crf 0
to suppress any compression,-pixfmt rgb24
as that's what FFmpegReader says it delivers by default, but these don't work either.

Any ideas on how to make this work ?


Here's the
skvideo.io.ffprobe
video information for the input file.

{
 "@index": "0",
 "@codec_name": "h264",
 "@codec_long_name": "H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10",
 "@profile": "High",
 "@codec_type": "video",
 "@codec_time_base": "1/30",
 "@codec_tag_string": "avc1",
 "@codec_tag": "0x31637661",
 "@width": "480",
 "@height": "270",
 "@coded_width": "480",
 "@coded_height": "272",
 "@has_b_frames": "2",
 "@pix_fmt": "yuv420p",
 "@level": "21",
 "@chroma_location": "left",
 "@refs": "1",
 "@is_avc": "true",
 "@nal_length_size": "4",
 "@r_frame_rate": "15/1",
 "@avg_frame_rate": "15/1",
 "@time_base": "1/15360",
 "@start_pts": "0",
 "@start_time": "0.000000",
 "@duration_ts": "122880",
 "@duration": "8.000000",
 "@bit_rate": "183806",
 "@bits_per_raw_sample": "8",
 "@nb_frames": "120",
 "disposition": {
 "@default": "1",
 "@dub": "0",
 "@original": "0",
 "@comment": "0",
 "@lyrics": "0",
 "@karaoke": "0",
 "@forced": "0",
 "@hearing_impaired": "0",
 "@visual_impaired": "0",
 "@clean_effects": "0",
 "@attached_pic": "0",
 "@timed_thumbnails": "0"
 },
 "tag": [
 {
 "@key": "language",
 "@value": "und"
 },
 {
 "@key": "handler_name",
 "@value": "VideoHandler"
 }
 ]
}



I will mention that when I ffprobe the output file the only differences I see are 1) the timing data is different, which isn't surprising, and 2) the output file has


"@has_b_frames": "0",
 "@pix_fmt": "yuv444p",



I'm pretty confident the reader is working okay, because if I write out the data with


skimage.io.imsave('x.png', frame, check_contrast=False)



it looks good.