
Recherche avancée
Autres articles (66)
-
Qualité du média après traitement
21 juin 2013, parLe bon réglage du logiciel qui traite les média est important pour un équilibre entre les partis ( bande passante de l’hébergeur, qualité du média pour le rédacteur et le visiteur, accessibilité pour le visiteur ). Comment régler la qualité de son média ?
Plus la qualité du média est importante, plus la bande passante sera utilisée. Le visiteur avec une connexion internet à petit débit devra attendre plus longtemps. Inversement plus, la qualité du média est pauvre et donc le média devient dégradé voire (...) -
Websites made with MediaSPIP
2 mai 2011, parThis page lists some websites based on MediaSPIP.
-
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.
Sur d’autres sites (13699)
-
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 !