Recherche avancée

Médias (0)

Mot : - Tags -/latitude

Aucun média correspondant à vos critères n’est disponible sur le site.

Autres articles (60)

  • Ajouter notes et légendes aux images

    7 février 2011, par

    Pour pouvoir ajouter notes et légendes aux images, la première étape est d’installer le plugin "Légendes".
    Une fois le plugin activé, vous pouvez le configurer dans l’espace de configuration afin de modifier les droits de création / modification et de suppression des notes. Par défaut seuls les administrateurs du site peuvent ajouter des notes aux images.
    Modification lors de l’ajout d’un média
    Lors de l’ajout d’un média de type "image" un nouveau bouton apparait au dessus de la prévisualisation (...)

  • Configuration spécifique d’Apache

    4 février 2011, par

    Modules spécifiques
    Pour la configuration d’Apache, il est conseillé d’activer certains modules non spécifiques à MediaSPIP, mais permettant d’améliorer les performances : mod_deflate et mod_headers pour compresser automatiquement via Apache les pages. Cf ce tutoriel ; mode_expires pour gérer correctement l’expiration des hits. Cf ce tutoriel ;
    Il est également conseillé d’ajouter la prise en charge par apache du mime-type pour les fichiers WebM comme indiqué dans ce tutoriel.
    Création d’un (...)

  • 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 (...)

Sur d’autres sites (7747)

  • File Decryption in (AESMode.ctr) mode showing Exception Failed to decode data using encoding 'utf-8' in dart ?

    20 novembre 2020, par Jai

    While decoding the video file using aes-ctr mode am getting error like below,

    


    Unhandled Exception: FileSystemException: Failed to decode data using encoding 'utf-8'

    


    Used ffmpeg for encrypting file :

    


    ffmpeg -i samplevideo.mp4 -vcodec copy -acodec copy -encryption_scheme cenc-aes-ctr -encryption_key 76a6c65c5ea762046bd749a2e632ccbb -encryption_kid a7e61c373e219033c21091fa607bf3b8 enc_v1_file.mp4

    


    Used Dart to decode video file :

    


    Future<string> decryptFile(filePath) async {&#xA;    // filePath - Local encrypted file path&#xA;    var encodedKey = &#x27;NzZhNmM2NWM1ZWE3NjIwNDZiZDc0OWEyZTYzMmNjYmI=&#x27;;&#xA;    var encodedIv = &#x27;YTdlNjFjMzczZTIxOTAzM2MyMTA5MWZhNjA3YmYzYjg=&#x27;;&#xA;    var encryptedBase64EncodedString = new File(filePath).readAsStringSync();&#xA;    var decoded = base64.decode(encryptedBase64EncodedString); // Error in this line&#xA;    final key1 = enc.Key.fromBase64(encodedKey);&#xA;    final iv = enc.IV.fromBase64(encodedIv);&#xA;    final encrypter = enc.Encrypter(enc.AES(key1, mode: enc.AESMode.ctr));&#xA;    final decrypted = encrypter.decryptBytes(enc.Encrypted(decoded), iv: iv);&#xA;    final filename = &#x27;${p.basenameWithoutExtension(filePath)}.mp4&#x27;;&#xA;    final directoryName = p.dirname(filePath);&#xA;    final newFilePath = p.join(directoryName, filename);&#xA;    var newFile = new File(newFilePath);&#xA;    await newFile.writeAsBytes(decrypted);&#xA;    return newFilePath;&#xA;}&#xA;</string>

    &#xA;

  • How to merge video and audio without re-encoding ?

    6 mars 2024, par real_sm

    There are 2 files :

    &#xA;

    General&#xA;Complete name                            : D:\TEMP\videofile.mp4&#xA;Format                                   : MPEG-4&#xA;Format profile                           : Base Media&#xA;Codec ID                                 : isom (avc1/mp42/dash)&#xA;File size                                : 5.93 GiB&#xA;Duration                                 : 1 h 49 min&#xA;Overall bit rate                         : 7 776 kb/s&#xA;&#xA;Video&#xA;ID                                       : 1&#xA;Format                                   : AVC&#xA;Format/Info                              : Advanced Video Codec&#xA;Format profile                           : High@L4&#xA;Format settings                          : CABAC / 4 Ref Frames&#xA;Format settings, CABAC                   : Yes&#xA;Format settings, Reference frames        : 4 frames&#xA;Format settings, GOP                     : M=4, N=50&#xA;Codec ID                                 : avc1&#xA;Codec ID/Info                            : Advanced Video Coding&#xA;Duration                                 : 1 h 49 min&#xA;Bit rate                                 : 7 773 kb/s&#xA;Width                                    : 1 920 pixels&#xA;Height                                   : 1 080 pixels&#xA;Display aspect ratio                     : 16:9&#xA;Frame rate mode                          : Constant&#xA;Frame rate                               : 25.000 FPS&#xA;Color space                              : YUV&#xA;Chroma subsampling                       : 4:2:0&#xA;Bit depth                                : 8 bits&#xA;Scan type                                : Progressive&#xA;Bits/(Pixel*Frame)                       : 0.150&#xA;Stream size                              : 5.93 GiB (100%)&#xA;Title                                    : Anvato eDASH 2.1&#xA;Codec configuration box                  : avcC&#xA;&#xA;Text #1&#xA;ID                                       : 1-CC1&#xA;Format                                   : EIA-608&#xA;Muxing mode                              : SCTE 128 / DTVCC Transport&#xA;Muxing mode, more info                   : Muxed in Video #1&#xA;Duration                                 : 1 h 49 min&#xA;Bit rate mode                            : Constant&#xA;Stream size                              : 0.00 Byte (0%)&#xA;CaptionServiceName                       : CC1&#xA;&#xA;Text #2&#xA;ID                                       : 1-CC4&#xA;Format                                   : EIA-608&#xA;Muxing mode                              : SCTE 128 / DTVCC Transport&#xA;Muxing mode, more info                   : Muxed in Video #1&#xA;Duration                                 : 1 h 49 min&#xA;Bit rate mode                            : Constant&#xA;Stream size                              : 0.00 Byte (0%)&#xA;CaptionServiceName                       : CC4&#xA;

    &#xA;

    and

    &#xA;

    Audiofile Mediainfo : https://pastebin.com/Sn0rBAXg (moved to Pastebin, because SOF did not allow "so much code" in a question).

    &#xA;

    When I open them in PotPlayer - I can watch the video (though, it opens quite long, up to 40 seconds). But I want to merge these 2 files into 1, I tried using ffmpeg :

    &#xA;

    ffmpeg.exe -i videofile.mp4 -i audiofile.mp4 -map 0:v -map 1:a -c copy -y output.mp4&#xA;

    &#xA;

    And it produces video only 33 minutes long. How to merge these video and audio without re-encoding ?

    &#xA;

  • Cutting a video without re encoding using ffmpeg and nodejs (fluent-ffmpeg)

    22 septembre 2020, par foufrix

    I have a quick question,&#xA;I'm trying to do a cloud video editor, and i want to be able to cut out video usng nodejs.

    &#xA;

    I'm using fluent-ffmpeg. Here is my code :

    &#xA;

    const cutVideo = async (sourcePath, outputPath, startTime, duration) => {&#xA;  console.log(&#x27;start cut video&#x27;);&#xA;&#xA;  await new Promise((resolve, reject) => {&#xA;    ffmpeg(sourcePath)&#xA;      .setFfmpegPath(pathToFfmpeg)&#xA;      .setFfprobePath(ffprobe.path)&#xA;      .output(outputPath)&#xA;      .setStartTime(startTime)&#xA;      .setDuration(duration)&#xA;      .on(&#x27;end&#x27;, function (err) {&#xA;        if (!err) {&#xA;          console.log(&#x27;conversion Done&#x27;);&#xA;          resolve();&#xA;        }&#xA;      })&#xA;      .on(&#x27;error&#x27;, function (err) {&#xA;        console.log(&#x27;error: &#x27;, err);&#xA;        reject(err);&#xA;      })&#xA;      .run();&#xA;  });&#xA;};&#xA;

    &#xA;

    It's working but not optimal, and as soon as i try to edit to a long video (getting 10 min from a video instead of 1 min out) it's super long.

    &#xA;

    What i understand is that ffmpeg re encode everything, so that's why the longer the edit is the longer the process will.&#xA;Is there way to cut out using node-fluent-ffmpeg without re encoding everything ?

    &#xA;

    Thanks to the community !

    &#xA;