Recherche avancée

Médias (3)

Mot : - Tags -/spip

Autres articles (59)

  • Supporting all media types

    13 avril 2011, par

    Unlike most software and media-sharing platforms, MediaSPIP aims to manage as many different media types as possible. The following are just a few examples from an ever-expanding list of supported formats : images : png, gif, jpg, bmp and more audio : MP3, Ogg, Wav and more video : AVI, MP4, OGV, mpg, mov, wmv and more text, code and other data : OpenOffice, Microsoft Office (Word, PowerPoint, Excel), web (html, CSS), LaTeX, Google Earth and (...)

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

  • De l’upload à la vidéo finale [version standalone]

    31 janvier 2010, par

    Le chemin d’un document audio ou vidéo dans SPIPMotion est divisé en trois étapes distinctes.
    Upload et récupération d’informations de la vidéo source
    Dans un premier temps, il est nécessaire de créer un article SPIP et de lui joindre le document vidéo "source".
    Au moment où ce document est joint à l’article, deux actions supplémentaires au comportement normal sont exécutées : La récupération des informations techniques des flux audio et video du fichier ; La génération d’une vignette : extraction d’une (...)

Sur d’autres sites (8611)

  • 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;