Recherche avancée

Médias (29)

Mot : - Tags -/Musique

Autres articles (28)

  • Personnaliser en ajoutant son logo, sa bannière ou son image de fond

    5 septembre 2013, par

    Certains thèmes prennent en compte trois éléments de personnalisation : l’ajout d’un logo ; l’ajout d’une bannière l’ajout d’une image de fond ;

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

  • 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

Sur d’autres sites (6568)

  • Correct syntax for using ffmpeg CUDA to crop and scale videos [closed]

    9 septembre 2024, par Stuart

    My NVIDIA and FFMPEG configuration is as follows :

    


    Linux TestBox1 6.8.0-41-generic #41-Ubuntu SMP PREEMPT_DYNAMIC Fri Aug 2 20:41:06 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux

    


    NVIDIA-Linux-x86_64-560.31.02

    


    ffmpeg version git-2024-08-19-507c2a577
encoders:
 V....D av1_nvenc            NVIDIA NVENC av1 encoder (codec av1)
 V....D h264_nvenc           NVIDIA NVENC H.264 encoder (codec h264)
 V....D hevc_nvenc           NVIDIA NVENC hevc encoder (codec hevc)
decoders:
 V..... av1_cuvid            Nvidia CUVID AV1 decoder (codec av1)
 V..... h264_cuvid           Nvidia CUVID H264 decoder (codec h264)
 V..... hevc_cuvid           Nvidia CUVID HEVC decoder (codec hevc)
 V..... mjpeg_cuvid          Nvidia CUVID MJPEG decoder (codec mjpeg)
 V..... mpeg1_cuvid          Nvidia CUVID MPEG1VIDEO decoder (codec mpeg1video)
 V..... mpeg2_cuvid          Nvidia CUVID MPEG2VIDEO decoder (codec mpeg2video)
 V..... mpeg4_cuvid          Nvidia CUVID MPEG4 decoder (codec mpeg4)
 V..... vc1_cuvid            Nvidia CUVID VC1 decoder (codec vc1)
 V..... vp8_cuvid            Nvidia CUVID VP8 decoder (codec vp8)
 V..... vp9_cuvid            Nvidia CUVID VP9 decoder (codec vp9)
filters:
 ... bilateral_cuda    V->V       GPU accelerated bilateral filter
 T.. bwdif_cuda        V->V       Deinterlace CUDA frames
 ... chromakey_cuda    V->V       GPU accelerated chromakey filter
 ... colorspace_cuda   V->V       CUDA accelerated video color converter
 ..C crop              V->V       Crop the input video.
 T.C cropdetect        V->V       Auto-detect crop size.
 ... hwupload_cuda     V->V       Upload a system memory frame to a CUDA device.
 ... overlay_cuda      VV->V      Overlay one video on top of another using CUDA
 ... scale_cuda        V->V       GPU accelerated video resizer
 ... scale_npp         V->V       NVIDIA Performance Primitives video scaling and format conversion
 ... scale2ref_npp     VV->VV     NVIDIA Performance Primitives video scaling and format conversion to the given reference.
 ... sharpen_npp       V->V       NVIDIA Performance Primitives video sharpening filter.
 ... thumbnail_cuda    V->V       Select the most representative frame in a given sequence of consecutive frames.
 ... transpose_npp     V->V       NVIDIA Performance Primitives video transpose
 T.. yadif_cuda        V->V       Deinterlace CUDA frames


    


    I would like to be able to use CUDA to crop and scale videos but I cannot find the correct syntax.
My efforts usually work in terms of the scale but not the crop, here is an example of the type of problems I have been having :

    


    The source file in this example is a short mpeg2 video (960x540 with black bars top and bottom). The command is currently run from a bash script.

    


    ffmpeg -y -hwaccel cuda -hwaccel_output_format cuda -c:v mpeg2_cuvid -crop 960x408x0x66 -i $1 -vf scale_npp=1280x544 -c:a copy -c:v h264_nvenc -b:v 2M -preset slow $2


    


    This is throwing the following error :

    


    [mpeg2_cuvid @ 0x5e6d9deb56c0] cuvid decode callback error
[vist#0:0/mpeg2video @ 0x5e6d9de85b40] [dec:mpeg2_cuvid @ 0x5e6d9de7b7c0] Decoding error:        Generic error in an external library


    


    Have I a problem with my ffmpeg build, should the list of filters include something like crop_cuda or crop_npp or have I just got the wrong syntax to perform everything on the GPU (is it even possible).

    


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