Recherche avancée

Médias (1)

Mot : - Tags -/biomaping

Autres articles (102)

  • 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

  • Les autorisations surchargées par les plugins

    27 avril 2010, par

    Mediaspip core
    autoriser_auteur_modifier() afin que les visiteurs soient capables de modifier leurs informations sur la page d’auteurs

  • Soumettre bugs et patchs

    10 avril 2011

    Un logiciel n’est malheureusement jamais parfait...
    Si vous pensez avoir mis la main sur un bug, reportez le dans notre système de tickets en prenant bien soin de nous remonter certaines informations pertinentes : le type de navigateur et sa version exacte avec lequel vous avez l’anomalie ; une explication la plus précise possible du problème rencontré ; si possibles les étapes pour reproduire le problème ; un lien vers le site / la page en question ;
    Si vous pensez avoir résolu vous même le bug (...)

Sur d’autres sites (7688)

  • avutil : remove deprecated FF_API_H274_FILM_GRAIN_VCS

    19 février, par James Almer
    avutil : remove deprecated FF_API_H274_FILM_GRAIN_VCS
    

    Deprecated since 2024-03-23.

    Signed-off-by : James Almer <jamrial@gmail.com>

    • [DH] libavcodec/h2645_sei.c
    • [DH] libavutil/film_grain_params.h
    • [DH] libavutil/version.h
  • Transcoding/ Converting mpeg to h264 using ffmpeg h264_nvenc

    15 septembre 2024, par Mustafa

    I'm trying to transcode a video rendered by Davinci Resolve, using ffmpeg from mpeg4 to h264, on Ubuntu, using the following command.

    &#xA;

    ffmpeg -y -vsync 0 -hwaccel cuda -hwaccel_output_format cuda -i input.mov -c:a copy -c:v h264_nvenc -b:v 8M -preset 7 output-h264_nvenc-p7.mp4 -v verbose&#xA;

    &#xA;

    And my Nvidia card is NVIDIA GeForce GTX 1650.

    &#xA;

    I'm gettting the following error :

    &#xA;

    [mpeg4 @ 0x55a893ed3200] Video width 3840 not within range from 48 to 2032&#xA;[mpeg4 @ 0x55a893ed3200] Failed setup for format cuda: hwaccel initialisation returned error.&#xA;

    &#xA;

    And here's the complete output. The command produces an output but its quality is significantly less than the original.

    &#xA;

      built with gcc 13 (Ubuntu 13.2.0-23ubuntu4)&#xA;  configuration: --enable-nonfree --enable-cuda-nvcc --enable-libnpp --extra-cflags=-I/usr/local/cuda/include --extra-ldflags=-L/usr/local/cuda/lib64 --disable-static --enable-shared --enable-gpl --enable-libx264&#xA;  libavutil      59. 36.100 / 59. 36.100&#xA;  libavcodec     61. 13.100 / 61. 13.100&#xA;  libavformat    61.  5.101 / 61.  5.101&#xA;  libavdevice    61.  2.101 / 61.  2.101&#xA;  libavfilter    10.  2.102 / 10.  2.102&#xA;  libswscale      8.  2.100 /  8.  2.100&#xA;  libswresample   5.  2.100 /  5.  2.100&#xA;  libpostproc    58.  2.100 / 58.  2.100&#xA;-vsync is deprecated. Use -fps_mode&#xA;Passing a number to -vsync is deprecated, use a string argument as described in the manual.&#xA;Selecting decoder &#x27;mpeg4&#x27; because of requested hwaccel method cuda&#xA;Input #0, mov,mp4,m4a,3gp,3g2,mj2, from &#x27;input.mov&#x27;:&#xA;  Metadata:&#xA;    major_brand     : qt  &#xA;    minor_version   : 512&#xA;    compatible_brands: qt  &#xA;    creation_time   : 2024-09-15T04:25:29.000000Z&#xA;    encoder         : Blackmagic Design DaVinci Resolve&#xA;  Duration: 00:20:34.87, start: 0.000000, bitrate: 347243 kb/s&#xA;  Stream #0:0[0x1]: Video: mpeg4 (Simple Profile), 1 reference frame (mp4v / 0x7634706D), yuv420p(bt709/bt709/unknown, left), 3840x2160 [SAR 1:1 DAR 16:9], 345703 kb/s, 60 fps, 60 tbr, 15360 tbn (default)&#xA;      Metadata:&#xA;        creation_time   : 2024-09-15T04:25:29.000000Z&#xA;        handler_name    : VideoHandler&#xA;        vendor_id       :     &#xA;        encoder         : MPEG4 Video&#xA;        timecode        : 01:00:00:00&#xA;  Stream #0:1[0x2]: Audio: pcm_s16le (lpcm / 0x6D63706C), 48000 Hz, stereo, s16, 1536 kb/s (default)&#xA;      Metadata:&#xA;        creation_time   : 2024-09-15T04:25:29.000000Z&#xA;        handler_name    : SoundHandler&#xA;        vendor_id       : [0][0][0][0]&#xA;  Stream #0:2[0x3](eng): Data: none (tmcd / 0x64636D74) (default)&#xA;      Metadata:&#xA;        creation_time   : 2024-09-15T04:25:29.000000Z&#xA;        handler_name    : TimeCodeHandler&#xA;        timecode        : 01:00:00:00&#xA;[out#0/mp4 @ 0x55a8929e8d80] No explicit maps, mapping streams automatically...&#xA;[vost#0:0/h264_nvenc @ 0x55a8929f5880] Created video stream from input stream 0:0&#xA;[aost#0:1/copy @ 0x55a893867080] Created audio stream from input stream 0:1&#xA;Stream mapping:&#xA;  Stream #0:0 -> #0:0 (mpeg4 (native) -> h264 (h264_nvenc))&#xA;  Stream #0:1 -> #0:1 (copy)&#xA;[vost#0:0/h264_nvenc @ 0x55a8929f5880] Starting thread...&#xA;[vf#0:0 @ 0x55a8929f17c0] Starting thread...&#xA;[vist#0:0/mpeg4 @ 0x55a89293a100] [dec:mpeg4 @ 0x55a8929f4440] Starting thread...&#xA;[in#0/mov,mp4,m4a,3gp,3g2,mj2 @ 0x55a8929e0600] Starting thread...&#xA;Press [q] to stop, [?] for help&#xA;[mpeg4 @ 0x55a893ed3200] NVDEC capabilities:&#xA;[mpeg4 @ 0x55a893ed3200] format supported: yes, max_mb_count: 8192&#xA;[mpeg4 @ 0x55a893ed3200] min_width: 48, max_width: 2032&#xA;[mpeg4 @ 0x55a893ed3200] min_height: 16, max_height: 2032&#xA;[mpeg4 @ 0x55a893ed3200] Video width 3840 not within range from 48 to 2032&#xA;[mpeg4 @ 0x55a893ed3200] Failed setup for format cuda: hwaccel initialisation returned error.&#xA;[graph -1 input from stream 0:0 @ 0x75c970002e40] w:3840 h:2160 pixfmt:yuv420p tb:1/15360 fr:60/1 sar:1/1 csp:bt709 range:unknown&#xA;[graph -1 input from stream 0:0 @ 0x75c970002e40] video frame properties congruent with link at pts_time: 0&#xA;[h264_nvenc @ 0x55a8929e62c0] Using device cuda0 (type cuda) with h264_nvenc encoder.&#xA;[h264_nvenc @ 0x55a8929e62c0] Loaded Nvenc version 12.2&#xA;[h264_nvenc @ 0x55a8929e62c0] Nvenc initialized successfully&#xA;[h264_nvenc @ 0x55a8929e62c0] The selected preset is deprecated. Use p1 to p7 &#x2B; -tune or fast/medium/slow.&#xA;Output #0, mp4, to &#x27;output-h264_nvenc-p7.mp4&#x27;:&#xA;  Metadata:&#xA;    major_brand     : qt  &#xA;    minor_version   : 512&#xA;    compatible_brands: qt  &#xA;    encoder         : Lavf61.5.101&#xA;  Stream #0:0: Video: h264 (Main), 1 reference frame (avc1 / 0x31637661), yuv420p(tv, bt709/bt709/unknown, progressive, left), 3840x2160 [SAR 1:1 DAR 16:9], q=2-31, 8000 kb/s, 60 fps, 15360 tbn (default)&#xA;      Metadata:&#xA;        creation_time   : 2024-09-15T04:25:29.000000Z&#xA;        handler_name    : VideoHandler&#xA;        vendor_id       :     &#xA;        timecode        : 01:00:00:00&#xA;        encoder         : Lavc61.13.100 h264_nvenc&#xA;      Side data:&#xA;        cpb: bitrate max/min/avg: 0/0/8000000 buffer size: 16000000 vbv_delay: N/A&#xA;  Stream #0:1: Audio: pcm_s16le (ipcm / 0x6D637069), 48000 Hz, stereo, s16, 1536 kb/s (default)&#xA;      Metadata:&#xA;        creation_time   : 2024-09-15T04:25:29.000000Z&#xA;        handler_name    : SoundHandler&#xA;        vendor_id       : [0][0][0][0]&#xA;

    &#xA;

    How can I find the cause of the error and resolve it ?

    &#xA;

    Also is there a way to improve the quality of the output video as it's much lower than the original ? I tried doing the same conversion using libxh264 (using the CPU) and that produced a far better video.

    &#xA;

  • Resizing AVIF images with transparency with FFmpeg [closed]

    4 octobre 2024, par Calebmer

    I'm trying to resize an image with transparency with FFmpeg, however the output looks to only be a resized version of the alpha layer.

    &#xA;

    When I try to do a noop transform of the AVIF image with an alpha layer :

    &#xA;

    ffmpeg -i input.avif output.avif&#xA;

    &#xA;

    output.avif appears to be the alpha layer with black representing alpha 0 and white representing alpha 1.

    &#xA;

    ffprobe input.avif gives me :

    &#xA;

    ffprobe version 7.0.2 Copyright (c) 2007-2024 the FFmpeg developers&#xA;  built with Apple clang version 15.0.0 (clang-1500.3.9.4)&#xA;  configuration: --prefix=/opt/homebrew/Cellar/ffmpeg/7.0.2 --enable-shared --enable-pthreads --enable-version3 --cc=clang --host-cflags= --host-ldflags=&#x27;-Wl,-ld_classic&#x27; --enable-ffplay --enable-gnutls --enable-gpl --enable-libaom --enable-libaribb24 --enable-libbluray --enable-libdav1d --enable-libharfbuzz --enable-libjxl --enable-libmp3lame --enable-libopus --enable-librav1e --enable-librist --enable-librubberband --enable-libsnappy --enable-libsrt --enable-libssh --enable-libsvtav1 --enable-libtesseract --enable-libtheora --enable-libvidstab --enable-libvmaf --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxml2 --enable-libxvid --enable-lzma --enable-libfontconfig --enable-libfreetype --enable-frei0r --enable-libass --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libspeex --enable-libsoxr --enable-libzmq --enable-libzimg --disable-libjack --disable-indev=jack --enable-videotoolbox --enable-audiotoolbox --enable-neon&#xA;  libavutil      59.  8.100 / 59.  8.100&#xA;  libavcodec     61.  3.100 / 61.  3.100&#xA;  libavformat    61.  1.100 / 61.  1.100&#xA;  libavdevice    61.  1.100 / 61.  1.100&#xA;  libavfilter    10.  1.100 / 10.  1.100&#xA;  libswscale      8.  1.100 /  8.  1.100&#xA;  libswresample   5.  1.100 /  5.  1.100&#xA;  libpostproc    58.  1.100 / 58.  1.100&#xA;Input #0, mov,mp4,m4a,3gp,3g2,mj2, from &#x27;input.avif&#x27;:&#xA;  Metadata:&#xA;    major_brand     : avif&#xA;    minor_version   : 0&#xA;    compatible_brands: avifmif1miaf&#xA;  Duration: N/A, start: 0.000000, bitrate: N/A&#xA;  Stream #0:0[0x1]: Video: av1 (libdav1d) (Main) (av01 / 0x31307661), gray(pc), 336x252 [SAR 1:1 DAR 4:3], 1 fps, 1 tbr, 1 tbn (default)&#xA;  Stream #0:1[0x2]: Video: av1 (libdav1d) (High) (av01 / 0x31307661), yuv444p(pc, smpte170m/bt709/iec61966-2-1), 336x252 [SAR 1:1 DAR 4:3], 1 fps, 1 tbr, 1 tbn&#xA;

    &#xA;

    Seeing there are two streams (the first stream being gray(pc), probably the alpha layer) I next tried :

    &#xA;

    ffmpeg -i input.avif -map 0:v:1 output.avif&#xA;

    &#xA;

    To see the second stream and it gave me the image without any alpha channel. Transparent pixels were black.

    &#xA;

    Ultimately I want to resize the AVIF file with ffmpeg -i input.avif -vf "scale=iw/2:-1" output.avif but that appears to only resize the greyscale alpha channel. Furthermore, this will be part of a script that operates on some AVIF files without an alpha channel and some AVIF files with an alpha channel and I don't know which files have an alpha channel ahead of time. ffmpeg -i input.avif -vf "scale=iw/2:-1" output.avif works for files without an alpha channel.

    &#xA;