
Recherche avancée
Médias (91)
-
Géodiversité
9 septembre 2011, par ,
Mis à jour : Août 2018
Langue : français
Type : Texte
-
USGS Real-time Earthquakes
8 septembre 2011, par
Mis à jour : Septembre 2011
Langue : français
Type : Texte
-
SWFUpload Process
6 septembre 2011, par
Mis à jour : Septembre 2011
Langue : français
Type : Texte
-
La conservation du net art au musée. Les stratégies à l’œuvre
26 mai 2011
Mis à jour : Juillet 2013
Langue : français
Type : Texte
-
Podcasting Legal guide
16 mai 2011, par
Mis à jour : Mai 2011
Langue : English
Type : Texte
-
Creativecommons informational flyer
16 mai 2011, par
Mis à jour : Juillet 2013
Langue : English
Type : Texte
Autres articles (32)
-
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 (...) -
Des sites réalisés avec MediaSPIP
2 mai 2011, parCette page présente quelques-uns des sites fonctionnant sous MediaSPIP.
Vous pouvez bien entendu ajouter le votre grâce au formulaire en bas de page. -
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 (...)
Sur d’autres sites (5307)
-
convert a heif file to png/jpg using ffmpeg
28 mars, par Ajitesh SinghThe use case is very straight forward. Imagemagick is able to do the conversion but I want to do it with ffmpeg. Here is the all commands I have tried and all of them gives moov atom not found error.


ffmpeg -i /Users/ajitesh/Downloads/sample1.heif -c:v png -pix_fmt rgb48 /Users/ajitesh/Downloads/sample.png



Output


[mov,mp4,m4a,3gp,3g2,mj2 @ 0x7f85aa813200] moov atom not found
/Users/ajitesh/Downloads/sample1.heif: Invalid data found when processing input



it seems like moov atom is actually not present by trying to extract the location of moov atom using the following command


ffmpeg -v trace -i /Users/ajitesh/Downloads/sample1.heif 2>&1 | grep -e type:\'mdat\' -e type:\'moov\'



Output


[mov,mp4,m4a,3gp,3g2,mj2 @ 0x7f824c00f000] type:'mdat' parent:'root' sz: 2503083 420 2503495
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x7f824c00f000] type:'mdat' parent:'root' sz: 2503083 420 2503495



-
Trying to merge two videos from my photo roll with Flutter ffmpeg without success
4 avril 2023, par Stéphane de LucaMy goal is to merge too video I pick from my photo roll.
My code starts as follows :


// videos[0] contains: "content://media/external/video/media/2779"
 final v1 = await videos[0].getMediaUrl();
 if (v1 == null) return;
 final v1Path = await LecleFlutterAbsolutePath.getAbsolutePath(uri: v1);



But printing
v1Path
give a path withjpeg
extension :
/data/user/0/com.example.shokaze/cache/OutputFile_1669939088711.jpeg' which I though would have bear
mp4` as it is a video.

Why is it so ?


Another question I have is how can I make a relevant path so that the ffmpeg video appears in my roll after its creation ? Should I do the following and provide
outputPath
to the code ?

The command it executes is :

-i /data/user/0/com.example.shokaze/cache/OutputFile_1669940421875.jpeg -i /data/user/0/com.example.shokaze/cache/OutputFile_1669940428723.jpeg -filter_complex '[0:0][1:0]concat=n=2:v=1:a=0[out]' -map '[out]' /data/user/0/com.example.shokaze/app_flutter/output.mp4


And I get an error :

I/flutter (30190): error 1


My code is as follows :


String output = "content://media/external/video/media/output";
 final outputPath = await LecleFlutterAbsolutePath.getAbsolutePath(uri: output);
 if (outputPath == null) return;



The full code is as follows :


// Makes the final video by merging all videos from the mixing table
 void makeFinalVideo() async {
 if (videos.length < 2) return;

 final v1 = await videos[0].getMediaUrl();
 if (v1 == null) return;
 final v1Path = await LecleFlutterAbsolutePath.getAbsolutePath(uri: v1);
 if (v1Path == null) return;
 //String v1 = "";
 final v2 = await videos[1].getMediaUrl();
 if (v2 == null) return;
 final v2Path = await LecleFlutterAbsolutePath.getAbsolutePath(uri: v2);
 if (v2Path == null) return;
 String output = "content://media/external/video/media/output";
 final outputPath = "";
 // await LecleFlutterAbsolutePath.getAbsolutePath(uri: output);
 // if (outputPath == null) return;

 Video.merge(v1Path, v2Path, outputPath);
 }



class Video {
 /// Merges the video [v1] with [v2] as [output] video located in app doc path
 static void merge(String v1, String v2, String output) async {
 final appDocDir = await getApplicationDocumentsDirectory();

 //final appDir = await syspaths.getApplicationDocumentsDirectory();
 String rawDocumentPath = appDocDir.path;
 final outputPath = '$rawDocumentPath/output.mp4';

 final command =
 '-i $v1 -i $v2 -filter_complex \'[0:0][1:0]concat=n=2:v=1:a=0[out]\' -map \'[out]\' $outputPath';
 //await execute(command);
 try {
 final r = await FFmpegKit.execute(command);

 //.then((rc) => print("FFmpeg process exited with rc $rc"));
 print("Result: $r");
 } catch (e) {
 print("Exception: $e");
 }
 }
}



-
FFMPEG to Youtube Live - YouTube is not currently receiving data
13 mars 2018, par Mickael TzanakakisSince a while, I would like to stream a video to the Youtube Live with FFMPEG. I tried a lot of configurations differents but nothing to the Youtube Dashboard. Every time Youtube feel something :
Launch in progress
and finally :
"YouTube is not currently receiving
data for this stream. If you believe this is incorrect, ensure you’re
sending a stream and that it is configured with the correct stream
key."I tried those scripts :
https://gist.github.com/olasd/9841772
https://github.com/scivision/PyLivestream
and a lot ffmpeg command but ... no result.
Exemple :
ffmpeg -r 24 -f image2 -s 1920x1080 -i test.mp4 -vcodec libx264 -crf 25 -pix_fmt yuv420p -f flv rtmp://a.rtmp.youtube.com/live2/KEY
ffmpeg -re -i test.mp4 -c:v libx264 -preset veryfast -maxrate 3000k \ -bufsize 6000k -pix_fmt yuv420p -g 50 -c:a aac -b:a 160k -ac 2 \ -ar 44100 -f flv rtmp://a.rtmp.youtube.com/live2/KEYIf I replace rtmp ://a.rtmp.youtube.com/live2/ by "stream.flv" for exemple, I have the good result in this file.
Unfortunately the differents topic on this didn’t help me ;
Any idea please ?Thank you !
PS : I success only with a desktop software : OBS Studio but is not my goal.