
Recherche avancée
Médias (1)
-
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
Autres articles (54)
-
Les autorisations surchargées par les plugins
27 avril 2010, parMediaspip core
autoriser_auteur_modifier() afin que les visiteurs soient capables de modifier leurs informations sur la page d’auteurs -
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 (...) -
Automated installation script of MediaSPIP
25 avril 2011, parTo overcome the difficulties mainly due to the installation of server side software dependencies, an "all-in-one" installation script written in bash was created to facilitate this step on a server with a compatible Linux distribution.
You must have access to your server via SSH and a root account to use it, which will install the dependencies. Contact your provider if you do not have that.
The documentation of the use of this installation script is available here.
The code of this (...)
Sur d’autres sites (11405)
-
Flutter : Running FFmpeg.execute to generate thumbnails in a different isolate doesn't work ?
12 novembre 2024, par VasudevThis is the current code to generate thumbnails for Video and Audio files.. It is working fine in most cases.


@override
Future<imageprovider> thumbnail(String path,
{required double width, required double height}) async {


 final FFmpegSession session = await FFmpegKit.executeAsync(
 "-loglevel quiet -i '$filePath' -y -ss 00:00:00.000 -vframes 1 '$thumbnailPath'");


 final returnCode = await session.getReturnCode();
 if (returnCode == null || returnCode.isValueError()) {
 throw Exception("Thumbnail generation failed");
 }

/* Returns ImageProvider */
}
</imageprovider>


Now in iOS, for large files, the thumbnail generation doesn't really fail. But takes a long time and doesn't complete at all.


This causes performance issues. I would like to run this FFmpeg.execute() in a different isolate, but it doesn't work at all.


final FFmpegSession session = await Isolate.run(
 () async {
 return await FFmpegKit.executeAsync(
 "-loglevel quiet -i '$filePath' -y -ss 00:00:00.000 -vframes 1 '$thumbnailPath'");
 },
 );



-
ffmpeg timelapse discard garbage jpg [duplicate]
12 mai 2021, par pieknI'm successfully creating timelapse video (jpg->mp4) using command line
$ffmpeg -r $fps -f concat -safe 0 -i $concat_file -c:v libx264 -vf 'format=yuv420p' $thumbnail 2>&1 &


But some of source jpg are 'garbage' (look picture below what I mean) - part of the picture is lost.
part of picture is lost


As result, final clip contains damaged frames (see below)
final clip


As I see, the best for me is to discard these jpg. But I have no ideas how to define them ? - file system don't see them as 'broken', etc.


Any ideas ?


-
ffmpeg with Flutter - Error in my code - Video not created
30 juillet 2020, par csslerI try to create a video from images with flutter and
ffmpeg
. I think the logic of my code is correct, but I always get the return value1
which says that the execute was not successfull.

Do you find the error in my code ?


Future<void> _onCreateVideoFromImages() async {
 Directory tempDir = await getTemporaryDirectory();
 String tempPath = tempDir.path;

 final allPictures = await picturesData.getPicturesFromAlbum(albumID);

 List textFileMap = [];

 for (var i = 0; i < allPictures.length; i++) {
 var file = File(allPictures[i].path);

 final newFile = await file
 .copySync("$tempPath/img${i.toString().padLeft(4, '0')}.jpg");

 print("File has been moved successfully to temporary folder: $newFile");

 textFileMap.add("file '" + newFile.path + "'");
 }

 print("Final list:");
 print(textFileMap);

 print("Create txt file for ffmpeg");
 final File file = File('${tempPath}/images.txt');
 final textFile = await file.writeAsString(textFileMap.join("\n"));
 print("txt file created successfully: $textFile");

 await _flutterFFmpeg.execute(
 "ffmpeg -f concat -safe 0 -i $textFile -c copy $tempPath/output.mp4")
 .then((rc) {
 if (rc == 0) {
 print("Video completed");
 } else {
 print(rc); // Returns 1
 }
 });
 }
</void>


And here the console log


flutter: File has been moved successfully to temporary folder: File: '/var/mobile/Containers/Data/Application/C28A04D5-76DF-450B-8F63-75CD39BC927F/Library/Caches/img0001.jpg'
flutter: Final list::
flutter: [file '/var/mobile/Containers/Data/Application/C28A04D5-76DF-450B-8F63-75CD39BC927F/Library/Caches/img0000.jpg', file '/var/mobile/Containers/Data/Application/C28A04D5-76DF-450B-8F63-75CD39BC927F/Library/Caches/img0001.jpg']
flutter: Create txt file for ffmpeg"
flutter: txt file created successfully: '/var/mobile/Containers/Data/Application/C28A04D5-76DF-450B-8F63-75CD39BC927F/Library/Caches/images.txt'
flutter: Code: 1



I appreciate your help !