
Recherche avancée
Autres articles (53)
-
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 -
L’utiliser, en parler, le critiquer
10 avril 2011La première attitude à adopter est d’en parler, soit directement avec les personnes impliquées dans son développement, soit autour de vous pour convaincre de nouvelles personnes à l’utiliser.
Plus la communauté sera nombreuse et plus les évolutions seront rapides ...
Une liste de discussion est disponible pour tout échange entre utilisateurs. -
Création définitive du canal
12 mars 2010, parLorsque votre demande est validée, vous pouvez alors procéder à la création proprement dite du canal. Chaque canal est un site à part entière placé sous votre responsabilité. Les administrateurs de la plateforme n’y ont aucun accès.
A la validation, vous recevez un email vous invitant donc à créer votre canal.
Pour ce faire il vous suffit de vous rendre à son adresse, dans notre exemple "http://votre_sous_domaine.mediaspip.net".
A ce moment là un mot de passe vous est demandé, il vous suffit d’y (...)
Sur d’autres sites (10685)
-
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 !