Recherche avancée

Médias (1)

Mot : - Tags -/iphone

Autres articles (103)

  • Publier sur MédiaSpip

    13 juin 2013

    Puis-je poster des contenus à partir d’une tablette Ipad ?
    Oui, si votre Médiaspip installé est à la version 0.2 ou supérieure. Contacter au besoin l’administrateur de votre MédiaSpip pour le savoir

  • Encoding and processing into web-friendly formats

    13 avril 2011, par

    MediaSPIP automatically converts uploaded files to internet-compatible formats.
    Video files are encoded in MP4, Ogv and WebM (supported by HTML5) and MP4 (supported by Flash).
    Audio files are encoded in MP3 and Ogg (supported by HTML5) and MP3 (supported by Flash).
    Where possible, text is analyzed in order to retrieve the data needed for search engine detection, and then exported as a series of image files.
    All uploaded files are stored online in their original format, so you can (...)

  • Les formats acceptés

    28 janvier 2010, par

    Les commandes suivantes permettent d’avoir des informations sur les formats et codecs gérés par l’installation local de ffmpeg :
    ffmpeg -codecs ffmpeg -formats
    Les format videos acceptés en entrée
    Cette liste est non exhaustive, elle met en exergue les principaux formats utilisés : h264 : H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10 m4v : raw MPEG-4 video format flv : Flash Video (FLV) / Sorenson Spark / Sorenson H.263 Theora wmv :
    Les formats vidéos de sortie possibles
    Dans un premier temps on (...)

Sur d’autres sites (8341)

  • I need to implement video compression for files that exceed 5 MB in size

    27 septembre 2024, par KAVYA P

    I need to implement video compression for files that exceed 5 MB in size. I have tried several packages for this purpose, but they either do not work as expected or have significant security vulnerabilities. It's crucial for me to find a reliable and secure solution for compressing videos that meet this file size requirement. If you have any recommendations for libraries or tools that effectively handle video compression without compromising security, please let me know.

    


     const handleFileChange = async (&#xA;    event: React.ChangeEvent<htmlinputelement>&#xA;  ) => {&#xA;    const file = event.target.files?.[0];&#xA;    if (file) {&#xA;      const isImage = file.type.startsWith(&#x27;image/&#x27;);&#xA;      const MAX_FILE_SIZE = isImage ? 2 * 1024 * 1024 : 5 * 1024 * 1024; // 2 MB for images, 5 MB for videos&#xA;&#xA;      if (file.size > MAX_FILE_SIZE) {&#xA;        if (isImage) {&#xA;          alert(&#x27;Image file size exceeds 2 MB. Compressing the file...&#x27;);&#xA;          try {&#xA;            const compressedFile = await imageCompression(file, {&#xA;              maxSizeMB: 2,&#xA;              maxWidthOrHeight: 1920,&#xA;              useWebWorker: true,&#xA;            });&#xA;            onSelectFile({&#xA;              ...event,&#xA;              target: {&#xA;                ...event.target,&#xA;                files: [compressedFile] as unknown as FileList,&#xA;              },&#xA;            });&#xA;          } catch (error) {&#xA;            console.error(&#x27;Error compressing the image:&#x27;, error);&#xA;          }&#xA;        } else {&#xA;          alert(&#x27;Video file size exceeds 5 MB. Please choose a smaller video.&#x27;);&#xA;        }&#xA;      } else {&#xA;        onSelectFile(event); // Proceed with the file selection&#xA;      }&#xA;    }&#xA;  };&#xA;</htmlinputelement>

    &#xA;

  • How to use Hardware codec during video compression in Android

    2 septembre 2024, par Filnik

    I was wondering how to use hardware acceleration in the best way to compress a video on Android. I've tried Transformer by ExoPlayer and is quite slow.

    &#xA;

    With ffmpegKit unfortunately libopenh264 is quite slow (and doesn't use hardware codec) and I'm not able to make h264_mediacodec work. Any idea on how to make the mediacodec work ?

    &#xA;

    This is the code I'm using right now for the tests but it fails with mediacodec (generic error). I've compiled manually FFMpegKit to add mediacodec already.

    &#xA;

    companion object {&#xA;    private const val VIDEO_WIDTH = 1080&#xA;    private const val VIDEO_HEIGHT = 1920&#xA;    private const val BITRATE_MBS = 7 * 1000000&#xA;    private const val COMPRESSION_FILE_NAME = "compression"&#xA;    private const val VIDEO_EXTENSION = ".mp4"&#xA;}&#xA;&#xA;suspend fun compressVideo(videoUri: Uri): String? = withContext(defaultDispatcher) {&#xA;    val tempInputFile = copyUriToFile(context, videoUri)&#xA;    val outputFile = File.createTempFile(COMPRESSION_FILE_NAME, VIDEO_EXTENSION, context.cacheDir)&#xA;    val outputPath = outputFile.absolutePath&#xA;&#xA;    val cmd = mutableListOf(&#xA;        "-y",&#xA;        "-i", tempInputFile.absolutePath,&#xA;        "-vf", "scale=w=$VIDEO_WIDTH:h=$VIDEO_HEIGHT:force_original_aspect_ratio=decrease",&#xA;        "-c:v", "h264_mediacodec",&#xA;        "-b:v", "$BITRATE_MBS",&#xA;        outputPath&#xA;    )&#xA;&#xA;    val session: FFmpegSession = FFmpegKit.execute(cmd.joinToString(" "))&#xA;&#xA;    tempInputFile.delete()&#xA;&#xA;    return@withContext if (ReturnCode.isSuccess(session.returnCode)) {&#xA;        outputPath&#xA;    } else {&#xA;        FirebaseCrashlytics.getInstance().recordException(Exception("FFmpeg compression failed: ${session.allLogsAsString}"))&#xA;        null&#xA;    }&#xA;}&#xA;

    &#xA;

  • avcodec/dovi_rpuenc : add a flag to enable compression

    18 juin 2024, par Niklas Haas
    avcodec/dovi_rpuenc : add a flag to enable compression
    

    Keyframes must reset the metadata compression state, so we need to
    also signal this at rpu generation time.

    Default to uncompressed, because encoders cannot generally know if
    a given frame will be a keyframe before they finish encoding, but also
    cannot retroactively attach the RPU. (Within the confines of current
    APIs)

    • [DH] libavcodec/dovi_rpu.h
    • [DH] libavcodec/dovi_rpuenc.c