Recherche avancée

Médias (1)

Mot : - Tags -/3GS

Autres articles (51)

  • Personnaliser les catégories

    21 juin 2013, par

    Formulaire de création d’une catégorie
    Pour ceux qui connaissent bien SPIP, une catégorie peut être assimilée à une rubrique.
    Dans le cas d’un document de type catégorie, les champs proposés par défaut sont : Texte
    On peut modifier ce formulaire dans la partie :
    Administration > Configuration des masques de formulaire.
    Dans le cas d’un document de type média, les champs non affichés par défaut sont : Descriptif rapide
    Par ailleurs, c’est dans cette partie configuration qu’on peut indiquer le (...)

  • HTML5 audio and video support

    13 avril 2011, par

    MediaSPIP uses HTML5 video and audio tags to play multimedia files, taking advantage of the latest W3C innovations supported by modern browsers.
    The MediaSPIP player used has been created specifically for MediaSPIP and can be easily adapted to fit in with a specific theme.
    For older browsers the Flowplayer flash fallback is used.
    MediaSPIP allows for media playback on major mobile platforms with the above (...)

  • Support audio et vidéo HTML5

    10 avril 2011

    MediaSPIP utilise les balises HTML5 video et audio pour la lecture de documents multimedia en profitant des dernières innovations du W3C supportées par les navigateurs modernes.
    Pour les navigateurs plus anciens, le lecteur flash Flowplayer est utilisé.
    Le lecteur HTML5 utilisé a été spécifiquement créé pour MediaSPIP : il est complètement modifiable graphiquement pour correspondre à un thème choisi.
    Ces technologies permettent de distribuer vidéo et son à la fois sur des ordinateurs conventionnels (...)

Sur d’autres sites (8842)

  • In Flutter, how to get image pixel

    12 janvier 2024, par Pianone

    my code here

    


    var response = await Dio().get(
   url,
   options: Options(responseType: ResponseType.bytes)
);
Uint8List? srcImage = Uint8List.fromList(response.data);
Uint8List? watermark = await captureWaterMark();
Image i = Image.memory(srcImage!);
//how can I get the pixel (Image i) such like 1920*1080 or just width/hight pixel
...tell me how to do...
srcImage = await addWaterMarkByFfmpegCommand(srcImage, watermark);
   final result = await ImageGallerySaver.saveImage(
      srcImage!, name: name,
   );


    


    i need get the pic pixel so that i can use it in ffmpeg command, it a func that add a watermark into srcImage, but cause their pixel ratio too diff to adapted watermark

    


    i try to get pixel from ffmpeg... but i failed

    


    /// addWaterMark by using ffmpeg Command
Future addWaterMarkByFfmpegCommand(Uint8List srcImg, Uint8List watermark) async {
  try {
    final Directory tempDir = await Directory.systemTemp.createTemp();
    final File image1File = File('${tempDir.path}/srcImg.jpg');
    await image1File.writeAsBytes(srcImg);
    final File image2File = File('${tempDir.path}/watermark.png');
    await image2File.writeAsBytes(watermark);

    final String outputFilePath = '${tempDir.path}/output.jpg';
    //when i get srcImage pixel, the positions in bold(iw*1) in the following commands will be replaced to make watermark adapted
    final String command =
        '-i ${image1File.path} -i ${image2File.path} -filter_complex "[1:v]scale=**iw*1**:-1[v1];[0:v][v1]overlay=10:10" -frames:v 1 $outputFilePath';
    await FFmpegKit.execute(command);

    final File outputFile = File(outputFilePath);
    final Uint8List outputBytes = await outputFile.readAsBytes();
    return outputBytes;
  } catch (e) {
    print('Error executing ffmpeg command: $e');
  }
  return null;
}


    


    ps : i am new to flutter and ffmpeg, plz help me, I'd appreciate, thanks alot

    


  • Anomalie #4128 : Bug de génération de boucle avec les modèles Spip

    11 avril 2018, par b b

    Un truc que je ne comprends pas, c’est que tu signales dans les points 7 & 8 que "Cela fonctionne sur la version minimal mais pas sur la version production." & "Le bug n’apparait plus..". Tu as donc trouvé l’origine du problème ou non ?

  • How to install ffmpeg on UBI docker images ?

    7 janvier 2024, par S. D.

    I'm looking for a simple way to install ffmpeg in a UBI8 (ubi-minimal) docker image.

    


    I tried running in the dockerfile the following :

    


    RUN microdnf upgrade
RUN microdnf install ffmpeg


    


    And I'm getting :

    


    ------
 > [7/8] RUN microdnf install ffmpeg:
#11 0.375
#11 0.375 (microdnf:1): librhsm-WARNING **: 07:58:19.229: Found 0 entitlement certificates
#11 0.375
#11 0.375 (microdnf:1): librhsm-WARNING **: 07:58:19.230: Found 0 entitlement certificates
#11 0.519 error: No package matches 'ffmpeg'
------
executor failed running [/bin/sh -c microdnf install ffmpeg]: exit code: 1



    


    How can ffmpeg be easily installed on UBI 8 ?

    


    Note : I tried referring to numerous references on the web that explain how that may be done, such as this one and this as well, but UBI seems to be working differently.