Recherche avancée

Médias (91)

Autres articles (109)

  • L’agrémenter visuellement

    10 avril 2011

    MediaSPIP est basé sur un système de thèmes et de squelettes. Les squelettes définissent le placement des informations dans la page, définissant un usage spécifique de la plateforme, et les thèmes l’habillage graphique général.
    Chacun peut proposer un nouveau thème graphique ou un squelette et le mettre à disposition de la communauté.

  • Ajouter des informations spécifiques aux utilisateurs et autres modifications de comportement liées aux auteurs

    12 avril 2011, par

    La manière la plus simple d’ajouter des informations aux auteurs est d’installer le plugin Inscription3. Il permet également de modifier certains comportements liés aux utilisateurs (référez-vous à sa documentation pour plus d’informations).
    Il est également possible d’ajouter des champs aux auteurs en installant les plugins champs extras 2 et Interface pour champs extras.

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

Sur d’autres sites (11917)

  • avfilter/vf_subtitles : pass storage size to libass

    14 mars 2022, par Oneric
    avfilter/vf_subtitles : pass storage size to libass
    

    Due to a quirk of the ASS format some tags depend on the exact storage
    resolution of the video, so tell libass via ass_set_storage_size.

    Reviewed-by : Soft Works <softworkz@hotmail.com>
    Signed-off-by : James Almer <jamrial@gmail.com>

    • [DH] libavfilter/vf_subtitles.c
  • FFMpeg crop a portrait (vertical) video square 1:1

    1er avril 2022, par hugger

    SOLVED... It was a UI issue... Not an FFpeg issue.

    &#xA;

    I am new to FFMpeg. I am stuck on cropping a portrait video taken from a portrait device square.

    &#xA;

    I would like my video output to be 1080x1080.

    &#xA;

    First, I tried this.

    &#xA;

    FFmpegKit.execute(`-y -i ${media.path} -vf "crop=1080:1080:exact=1" ${path}`)&#xA;

    &#xA;

    As I hoped, this worked for photos. (but strangely rotates the photo) - looking into that...

    &#xA;

    BUT, for videos it does not work. instead it turns the video landscape.

    &#xA;

    I then tried to add scale :

    &#xA;

    FFmpegKit.execute(`-y -i ${media.path} -vf "crop=1080:1080:exact=1, scale=1080:1080" ${path}`)&#xA;

    &#xA;

    But this left me with the same result.

    &#xA;

    Here are the console logs for some more information :

    &#xA;

     LOG  Input #0, mov,mp4,m4a,3gp,3g2,mj2, from &#x27;file:///private/var/mobile/Containers/Data/Application/71E462FC-4824-41FE-B28D-57AF7B6078C3/tmp/ReactNative/329ACC6F-42B6-4B12-A289-889DADE1BC3A.mov&#x27;:&#xA; LOG    Metadata:&#xA; LOG      major_brand     :&#xA; LOG  qt&#xA; LOG  &#xA; LOG      minor_version   :&#xA; LOG  0&#xA; LOG  &#xA; LOG      compatible_brands:&#xA; LOG  qt&#xA; LOG  &#xA; LOG      creation_time   :&#xA; LOG  2022-04-01T03:41:12.000000Z&#xA; LOG  &#xA; LOG    Duration:&#xA; LOG  00:00:02.35&#xA; LOG  , start:&#xA; LOG  0.000000&#xA; LOG  , bitrate:&#xA; LOG  21200 kb/s&#xA; LOG  &#xA; LOG    Stream #0:0&#xA; LOG  [0x1]&#xA; LOG  (und)&#xA; LOG  : Video: hevc (hvc1 / 0x31637668), yuv420p(tv, bt709), 1080x1920, 21140 kb/s&#xA; LOG  ,&#xA; LOG  59.96 fps,&#xA; LOG  59.94 tbr,&#xA; LOG  600 tbn&#xA; LOG   (default)&#xA; LOG  &#xA; LOG      Metadata:&#xA; LOG        creation_time   :&#xA; LOG  2022-04-01T03:41:13.000000Z&#xA; LOG  &#xA; LOG        handler_name    :&#xA; LOG  Core Media Video&#xA; LOG  &#xA; LOG        vendor_id       :&#xA; LOG  [0][0][0][0]&#xA; LOG  &#xA; LOG        encoder         :&#xA; LOG  HEVC&#xA; LOG  &#xA; LOG    Stream #0:1&#xA; LOG  [0x2]&#xA; LOG  (und)&#xA; LOG  : Audio: aac (mp4a / 0x6134706D), 48000 Hz, mono, fltp, 61 kb/s&#xA; LOG   (default)&#xA; LOG  &#xA; LOG      Metadata:&#xA; LOG        creation_time   :&#xA; LOG  2022-04-01T03:41:13.000000Z&#xA; LOG  &#xA; LOG        handler_name    :&#xA; LOG  Core Media Audio&#xA; LOG  &#xA; LOG        vendor_id       :&#xA; LOG  [0][0][0][0]&#xA; LOG  &#xA; LOG  [hevc @ 0x118ce07d0] The "sub_text_format" option is deprecated: Deprecated, does nothing&#xA; LOG  [aac @ 0x10d30e190] The "sub_text_format" option is deprecated: Deprecated, does nothing&#xA; LOG  Stream mapping:&#xA; LOG    Stream #0:0 -> #0:0&#xA; LOG   (hevc (native) -> mpeg4 (native))&#xA; LOG  &#xA; LOG    Stream #0:1 -> #0:1&#xA; LOG   (aac (native) -> aac (native))&#xA; LOG  &#xA; LOG  Press [q] to stop, [?] for help&#xA; LOG  Output #0, mp4, to &#x27;/var/mobile/Containers/Data/Application/71E462FC-4824-41FE-B28D-57AF7B6078C3/Documents/after.mp4&#x27;:&#xA; LOG    Metadata:&#xA; LOG      major_brand     :&#xA; LOG  qt&#xA; LOG  &#xA; LOG      minor_version   :&#xA; LOG  0&#xA; LOG  &#xA; LOG      compatible_brands:&#xA; LOG  qt&#xA; LOG  &#xA; LOG      encoder         :&#xA; LOG  Lavf59.10.100&#xA; LOG  &#xA; LOG    Stream #0:0&#xA; LOG  (und)&#xA; LOG  : Video: mpeg4 (mp4v / 0x7634706D), yuv420p(tv, bt709, progressive), 1080x1080, q=2-31, 10000 kb/s&#xA; LOG  ,&#xA; LOG  59.94 fps,&#xA; LOG  60k tbn&#xA; LOG   (default)&#xA; LOG  &#xA; LOG      Metadata:&#xA; LOG        creation_time   :&#xA; LOG  2022-04-01T03:41:13.000000Z&#xA; LOG  &#xA; LOG        handler_name    :&#xA; LOG  Core Media Video&#xA; LOG  &#xA; LOG        vendor_id       :&#xA; LOG  [0][0][0][0]&#xA; LOG  &#xA; LOG        encoder         :&#xA; LOG  Lavc59.15.102 mpeg4&#xA; LOG  &#xA; LOG      Side data:&#xA; LOG  &#xA; LOG  cpb:&#xA; LOG  bitrate max/min/avg: 0/0/10000000 buffer size: 0&#xA; LOG  vbv_delay: N/A&#xA; LOG  &#xA; LOG    Stream #0:1&#xA; LOG  (und)&#xA; LOG  : Audio: aac (mp4a / 0x6134706D), 48000 Hz, mono, fltp, 69 kb/s&#xA; LOG   (default)&#xA; LOG  &#xA; LOG      Metadata:&#xA; LOG        creation_time   :&#xA; LOG  2022-04-01T03:41:13.000000Z&#xA; LOG  &#xA; LOG        handler_name    :&#xA; LOG  Core Media Audio&#xA; LOG  &#xA; LOG        vendor_id       :&#xA; LOG  [0][0][0][0]&#xA; LOG  &#xA; LOG        encoder         :&#xA; LOG  Lavc59.15.102 aac&#xA; LOG  &#xA; LOG  frame=    1 fps=0.0 q=3.6 size=       0kB time=00:00:01.06 bitrate=   0.3kbits/s speed=9.23x&#xA; LOG  frame=   47 fps=0.0 q=2.0 size=     768kB time=00:00:01.85 bitrate=3390.0kbits/s speed=3.01x&#xA; LOG  frame=   95 fps= 81 q=2.2 size=    1792kB time=00:00:02.32 bitrate=6313.3kbits/s speed=1.99x&#xA; LOG  frame=  129 fps= 77 q=2.5 size=    2560kB time=00:00:02.32 bitrate=9018.9kbits/s speed=1.39x&#xA; LOG  frame=  139 fps= 78 q=2.6 Lsize=    2953kB time=00:00:02.38 bitrate=10124.6kbits/s speed=1.34x&#xA; LOG  video:2929kB audio:20kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead:&#xA; LOG  0.136336%&#xA; LOG  &#xA; LOG  [aac @ 0x112820f50] Qavg: 113.412&#xA; LOG  COMPLETED&#xA; LOG  {}&#xA;

    &#xA;

    This is the result, when i replace&#xA;-i {media} with&#xA;-f lavfi -i smptebars=r=60000/1001:s=1080x1920:d=1

    &#xA;

    enter image description here

    &#xA;

    ALMOST but not 1:1...

    &#xA;

    I have not had any luck online trying to find a solution for this so I have decided to post on here.

    &#xA;

    I hope I can get some guidance here !

    &#xA;

    Cheers.

    &#xA;

  • I'm having problem encoding video using Laravel FFMPEG to save it to Minio storage

    8 juillet 2022, par Ibrahim Ahmad

    I am trying to convert video from .mp4 extension into HLS format (.m3u8) using Laravel FFMPEG.

    &#xA;

    FFMpeg::fromDisk(&#x27;minio&#x27;)&#xA;          ->open($videoFile)&#xA;          ->exportForHLS()&#xA;          ->onProgress(function ($percentage) use ($movie) {&#xA;               Cache::put(&#x27;progress-&#x27; . $movie->id, $percentage);&#xA;&#xA;               if($percentage >= 100) {&#xA;                 Cache::forget(&#x27;progress-&#x27; . $movie->id);&#xA;                }&#xA;             })&#xA;             ->toDisk(&#x27;minio&#x27;)&#xA;             ->addFormat($lowBitrate, function (HLSVideoFilters $filter) {&#xA;                 $filter->resize(480, 360);&#xA;             })&#xA;             ->addFormat($midBitrate, function (HLSVideoFilters $filter) {&#xA;                 $filter->resize(852, 480);&#xA;              })&#xA;              ->addFormat($highBitrate, function (HLSVideoFilters $filter) {&#xA;                  $filter->resize(1920, 1080);&#xA;              })&#xA;              ->save($newFile);&#xA;

    &#xA;

    I have a .mp4 video stored in Minio S3 storage, want to export to Minio S3 storage again. And I came up with this error

    &#xA;

    RecursiveDirectoryIterator::__construct(C:\Windows\Temp/52325dd01cfde90a\): Access is deni (code: 5)&#xA;

    &#xA;

    What does the error message say ? But when I export the video file to local, it works totally fine. How do I solve this problem. Thanks.

    &#xA;

    Update :&#xA;The export process requires windows temporary folder, and I cleared the temporary folder, the problem is solved for now. This probably the temporary folder can't hold many files.

    &#xA;