Recherche avancée

Médias (3)

Mot : - Tags -/collection

Autres articles (71)

  • Websites made ​​with MediaSPIP

    2 mai 2011, par

    This page lists some websites based on MediaSPIP.

  • Creating farms of unique websites

    13 avril 2011, par

    MediaSPIP platforms can be installed as a farm, with a single "core" hosted on a dedicated server and used by multiple websites.
    This allows (among other things) : implementation costs to be shared between several different projects / individuals rapid deployment of multiple unique sites creation of groups of like-minded sites, making it possible to browse media in a more controlled and selective environment than the major "open" (...)

  • Ecrire une actualité

    21 juin 2013, par

    Présentez les changements dans votre MédiaSPIP ou les actualités de vos projets sur votre MédiaSPIP grâce à la rubrique actualités.
    Dans le thème par défaut spipeo de MédiaSPIP, les actualités sont affichées en bas de la page principale sous les éditoriaux.
    Vous pouvez personnaliser le formulaire de création d’une actualité.
    Formulaire de création d’une actualité Dans le cas d’un document de type actualité, les champs proposés par défaut sont : Date de publication ( personnaliser la date de publication ) (...)

Sur d’autres sites (15026)

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

  • Adding Text to Video with ffmpeg in Flutter

    9 mars 2024, par Aiman

    I am trying to add text to a video using ffmpeg package but it returns an error i.e. Return Code 1&#xA;Here's my code.

    &#xA;

      final videoPath = _controller.file.path;&#xA;  final outputName = videoPath.hashCode.toString();&#xA;&#xA;  final output =&#xA;        File(&#x27;${(await getTemporaryDirectory()).path}/$outputName.mp4&#x27;);&#xA;&#xA;  String command =&#xA;        "-y -i $videoPath -filter_complex &#x27;[0]scale=540:-1[s];[s]drawtext=fontfile=/storage/emulated/0/Download/SuperDessert.ttf:text=&#x27;MY_TEXT&#x27;:fontsize=24:fontcolor=white:x=(w-text_w)/2:y=(h-text_h)/2&#x27; ${output.path}";&#xA;&#xA;  final session = await FFmpegKit.execute(command);&#xA;&#xA;  final returnCode = await session.getReturnCode();&#xA;&#xA;  if (ReturnCode.isSuccess(returnCode)) {&#xA;    log("Success full text added");&#xA;  } else {&#xA;    log("Error adding text: ${await session.getFailStackTrace()}");&#xA;  }&#xA;

    &#xA;

    I have tried changing the output directory, changed fontfile to font

    &#xA;

  • Use FFmpeg concat two video, is output video level mistake ?

    27 février, par 哇哈哈
    video1&#xA;{&#xA;    "index": 0,&#xA;    "codec_name": "hevc",&#xA;    "codec_long_name": "H.265 / HEVC (High Efficiency Video Coding)",&#xA;    "profile": "Main",&#xA;    "codec_type": "video",&#xA;    "codec_tag_string": "hev1",&#xA;    "codec_tag": "0x31766568",&#xA;    "width": 1920,&#xA;    "height": 1080,&#xA;    "coded_width": 1920,&#xA;    "coded_height": 1080,&#xA;    "has_b_frames": 2,&#xA;    "sample_aspect_ratio": "1:1",&#xA;    "display_aspect_ratio": "16:9",&#xA;    "pix_fmt": "yuv420p",&#xA;    "level": 120,&#xA;    "color_range": "tv",&#xA;    "chroma_location": "left",&#xA;    "field_order": "progressive",&#xA;    "refs": 1,&#xA;    "view_ids_available": "",&#xA;    "view_pos_available": "",&#xA;    "id": "0x1",&#xA;    "r_frame_rate": "30/1",&#xA;    "avg_frame_rate": "30/1",&#xA;    "time_base": "1/15360",&#xA;    "start_pts": 0,&#xA;    "start_time": "0.000000",&#xA;    "duration_ts": 200192,&#xA;    "duration": "13.033333",&#xA;    "bit_rate": "10794613",&#xA;    "nb_frames": "391",&#xA;    "extradata_size": 2496,&#xA;    "disposition": {&#xA;        "default": 1,&#xA;        "dub": 0,&#xA;        "original": 0,&#xA;        "comment": 0,&#xA;        "lyrics": 0,&#xA;        "karaoke": 0,&#xA;        "forced": 0,&#xA;        "hearing_impaired": 0,&#xA;        "visual_impaired": 0,&#xA;        "clean_effects": 0,&#xA;        "attached_pic": 0,&#xA;        "timed_thumbnails": 0,&#xA;        "non_diegetic": 0,&#xA;        "captions": 0,&#xA;        "descriptions": 0,&#xA;        "metadata": 0,&#xA;        "dependent": 0,&#xA;        "still_image": 0,&#xA;        "multilayer": 0&#xA;    },&#xA;    "tags": {&#xA;        "language": "eng",&#xA;        "handler_name": "VideoHandler",&#xA;        "vendor_id": "[0][0][0][0]",&#xA;        "encoder": "Lavc61.33.100 libx265",&#xA;        "timecode": "00:00:00;00"&#xA;    }&#xA;}&#xA;&#xA;video2 &#xA;{&#xA;    "index": 0,&#xA;    "codec_name": "hevc",&#xA;    "codec_long_name": "H.265 / HEVC (High Efficiency Video Coding)",&#xA;    "profile": "Main",&#xA;    "codec_type": "video",&#xA;    "codec_tag_string": "hev1",&#xA;    "codec_tag": "0x31766568",&#xA;    "width": 1920,&#xA;    "height": 1080,&#xA;    "coded_width": 1920,&#xA;    "coded_height": 1080,&#xA;    "has_b_frames": 2,&#xA;    "sample_aspect_ratio": "1:1",&#xA;    "display_aspect_ratio": "16:9",&#xA;    "pix_fmt": "yuv420p",&#xA;    "level": 120,&#xA;    "color_range": "tv",&#xA;    "chroma_location": "left",&#xA;    "field_order": "progressive",&#xA;    "refs": 1,&#xA;    "view_ids_available": "",&#xA;    "view_pos_available": "",&#xA;    "id": "0x1",&#xA;    "r_frame_rate": "25/1",&#xA;    "avg_frame_rate": "25/1",&#xA;    "time_base": "1/12800",&#xA;    "start_pts": 0,&#xA;    "start_time": "0.000000",&#xA;    "duration_ts": 1309696,&#xA;    "duration": "102.320000",&#xA;    "bit_rate": "1024122",&#xA;    "nb_frames": "2558",&#xA;    "extradata_size": 2496,&#xA;    "disposition": {&#xA;        "default": 1,&#xA;        "dub": 0,&#xA;        "original": 0,&#xA;        "comment": 0,&#xA;        "lyrics": 0,&#xA;        "karaoke": 0,&#xA;        "forced": 0,&#xA;        "hearing_impaired": 0,&#xA;        "visual_impaired": 0,&#xA;        "clean_effects": 0,&#xA;        "attached_pic": 0,&#xA;        "timed_thumbnails": 0,&#xA;        "non_diegetic": 0,&#xA;        "captions": 0,&#xA;        "descriptions": 0,&#xA;        "metadata": 0,&#xA;        "dependent": 0,&#xA;        "still_image": 0,&#xA;        "multilayer": 0&#xA;    },&#xA;    "tags": {&#xA;        "language": "und",&#xA;        "handler_name": "VideoHandler",&#xA;        "vendor_id": "[0][0][0][0]",&#xA;        "encoder": "Lavc61.33.100 libx265"&#xA;    }&#xA;}&#xA;&#xA;out:&#xA;{&#xA;    "index": 0,&#xA;    "codec_name": "hevc",&#xA;    "codec_long_name": "H.265 / HEVC (High Efficiency Video Coding)",&#xA;    "profile": "Main",&#xA;    "codec_type": "video",&#xA;    "codec_tag_string": "hev1",&#xA;    "codec_tag": "0x31766568",&#xA;    "width": 1920,&#xA;    "height": 1080,&#xA;    "coded_width": 1920,&#xA;    "coded_height": 1080,&#xA;    "has_b_frames": 2,&#xA;    "sample_aspect_ratio": "1:1",&#xA;    "display_aspect_ratio": "16:9",&#xA;    "pix_fmt": "yuv420p",&#xA;    "level": 186,&#xA;    "color_range": "tv",&#xA;    "chroma_location": "left",&#xA;    "field_order": "progressive",&#xA;    "refs": 1,&#xA;    "view_ids_available": "",&#xA;    "view_pos_available": "",&#xA;    "id": "0x1",&#xA;    "r_frame_rate": "30/1",&#xA;    "avg_frame_rate": "147450/5767",&#xA;    "time_base": "1/1000000",&#xA;    "start_pts": 0,&#xA;    "start_time": "0.000000",&#xA;    "duration_ts": 115340000,&#xA;    "duration": "115.340000",&#xA;    "bit_rate": "1060604",&#xA;    "nb_frames": "2949",&#xA;    "extradata_size": 2500,&#xA;    "disposition": {&#xA;        "default": 1,&#xA;        "dub": 0,&#xA;        "original": 0,&#xA;        "comment": 0,&#xA;        "lyrics": 0,&#xA;        "karaoke": 0,&#xA;        "forced": 0,&#xA;        "hearing_impaired": 0,&#xA;        "visual_impaired": 0,&#xA;        "clean_effects": 0,&#xA;        "attached_pic": 0,&#xA;        "timed_thumbnails": 0,&#xA;        "non_diegetic": 0,&#xA;        "captions": 0,&#xA;        "descriptions": 0,&#xA;        "metadata": 0,&#xA;        "dependent": 0,&#xA;        "still_image": 0,&#xA;        "multilayer": 0&#xA;    },&#xA;    "tags": {&#xA;        "language": "und",&#xA;        "handler_name": "VideoHandler",&#xA;        "vendor_id": "[0][0][0][0]",&#xA;        "encoder": "Lavc61.33.100 libx265"&#xA;    }&#xA;}&#xA;

    &#xA;

    output video level is 6.2 ? i wiki level refer to fps resolusion or bitrate,but not suit this output video.&#xA;0。0 ! Could Someone HELP me ?

    &#xA;

    ffmpeg -i .\HEVC_1080p_30P_yellowtree.mp4 -i .\HEVC_1080p_24fps_happy.mp4 -filter_complex "[0:v][1:v]concat=n=2:v=1:a=0[outv]" -map "[outv]" -c:v libx265 concat_output.mp4

    &#xA;

    ffmpeg version N-118448-g43be8d0728-20250209 Copyright (c) 2000-2025 the FFmpeg developers&#xA;built with gcc 14.2.0 (crosstool-NG 1.26.0.120_4d36f27)&#xA;configuration : —prefix=/ffbuild/prefix —pkg-config-flags=—static —pkg-config=pkg-config —cross-prefix=x86_64-w64-mingw32- —arch=x86_64 —target-os=mingw32 —enable-gpl —enable-version3 —disable-debug —enable-shared —disable-static —disable-w32threads —enable-pthreads —enable-iconv —enable-zlib —enable-libfreetype —enable-libfribidi —enable-gmp —enable-libxml2 —enable-lzma —enable-fontconfig —enable-libharfbuzz —enable-libvorbis —enable-opencl —disable-libpulse —enable-libvmaf —disable-libxcb —disable-xlib —enable-amf —enable-libaom —enable-libaribb24 —enable-avisynth —enable-chromaprint —enable-libdav1d —enable-libdavs2 —enable-libdvdread —enable-libdvdnav —disable-libfdk-aac —enable-ffnvcodec —enable-cuda-llvm —enable-frei0r —enable-libgme —enable-libkvazaar —enable-libaribcaption —enable-libass —enable-libbluray —enable-libjxl —enable-libmp3lame —enable-libopus —enable-librist —enable-libssh —enable-libtheora —enable-libvpx —enable-libwebp —enable-libzmq —enable-lv2 —enable-libvpl —enable-openal —enable-libopencore-amrnb —enable-libopencore-amrwb —enable-libopenh264 —enable-libopenjpeg —enable-libopenmpt —enable-librav1e —enable-librubberband —enable-schannel —enable-sdl2 —enable-libsnappy —enable-libsoxr —enable-libsrt —enable-libsvtav1 —enable-libtwolame —enable-libuavs3d —disable-libdrm —enable-vaapi —enable-libvidstab —enable-vulkan —enable-libshaderc —enable-libplacebo —disable-libvvenc —enable-libx264 —enable-libx265 —enable-libxavs2 —enable-libxvid —enable-libzimg —enable-libzvbi —extra-cflags=-DLIBTWOLAME_STATIC —extra-cxxflags= —extra-libs=-lgomp —extra-ldflags=-pthread —extra-ldexeflags= —cc=x86_64-w64-mingw32-gcc —cxx=x86_64-w64-mingw32-g++ —ar=x86_64-w64-mingw32-gcc-ar —ranlib=x86_64-w64-mingw32-gcc-ranlib —nm=x86_64-w64-mingw32-gcc-nm —extra-version=20250209&#xA;libavutil 59. 56.100 / 59. 56.100&#xA;libavcodec 61. 33.100 / 61. 33.100&#xA;libavformat 61. 9.107 / 61. 9.107&#xA;libavdevice 61. 4.100 / 61. 4.100&#xA;libavfilter 10. 9.100 / 10. 9.100&#xA;libswscale 8. 13.100 / 8. 13.100&#xA;libswresample 5. 4.100 / 5. 4.100&#xA;libpostproc 58. 4.100 / 58. 4.100

    &#xA;