Recherche avancée

Médias (1)

Mot : - Tags -/artwork

Autres articles (109)

  • Personnaliser les catégories

    21 juin 2013, par

    Formulaire de création d’une catégorie
    Pour ceux qui connaissent bien SPIP, une catégorie peut être assimilée à une rubrique.
    Dans le cas d’un document de type catégorie, les champs proposés par défaut sont : Texte
    On peut modifier ce formulaire dans la partie :
    Administration > Configuration des masques de formulaire.
    Dans le cas d’un document de type média, les champs non affichés par défaut sont : Descriptif rapide
    Par ailleurs, c’est dans cette partie configuration qu’on peut indiquer le (...)

  • Les statuts des instances de mutualisation

    13 mars 2010, par

    Pour des raisons de compatibilité générale du plugin de gestion de mutualisations avec les fonctions originales de SPIP, les statuts des instances sont les mêmes que pour tout autre objets (articles...), seuls leurs noms dans l’interface change quelque peu.
    Les différents statuts possibles sont : prepa (demandé) qui correspond à une instance demandée par un utilisateur. Si le site a déjà été créé par le passé, il est passé en mode désactivé. publie (validé) qui correspond à une instance validée par un (...)

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

  • yt-dlp how to download a specific video using timestamps, and limiting the download resolution ?

    30 septembre 2023, par ignacM

    I am running a python program to download a video, this is the command I use :

    


    command = ['powershell.exe ffmpeg',
                   '-ss', str(start),
                   '-i', '$(yt-dlp',
                   '-f', 'bestvideo[ext=webm]',

                   '-g', '"%s")' % (url_base + video_identifier),
                   '-t', str(end - start),
                   '-c:v', 'libx264', '-c:a', 'copy', '%s' % output_filename]

command = ' '.join(command)
output = subprocess.check_output(command, shell=True, stderr=subprocess.STDOUT)


    


    This prints something like
powershell.exe ffmpeg -ss 10 -i $(yt-dlp -f bestvideo[ext=webm] -g "https://www.youtube.com/watch?v=Z15erfLqNKo") -t 10 -c:v libx264 -c:a copy C :\Users...\video.mp4

    


    This works perfectly fine. However, I tried to download a video that had very high resolution (4K) and I want to limit the resolution when downloading. I have found that placing [height<=1080] as so should work :

    &#xA;

    powershell.exe ffmpeg -ss 10 -i $(yt-dlp -f bestvideo[ext=webm][height<=1080] -g "https://www.youtube.com/watch?v=Z15erfLqNKo") -t 10 -c:v libx264 -c:a copy C :\Users...\video.mp4

    &#xA;

    However this does not work for me and gives me the error :&#xA;Error command "" returned non-zero exit status 1.&#xA;Output : b'The system cannot find the file specified.\r\n'

    &#xA;

    I also have noticed that only limiting the resolution does not work for me either :

    &#xA;

    powershell.exe ffmpeg -ss 10 -i $(yt-dlp -f bestvideo[height<=1080] -g "https://www.youtube.com/watch?v=Z15erfLqNKo") -t 10 -c:v libx264 -c:a copy C :\Users...\video.mp4

    &#xA;

    Actually, placing [height<=1080] after bestvideo never works, no matter what I do.

    &#xA;

    What could be the problem ? Or what command can I run to achieve both tasks (limit resolution and download specific timeframe (not whole video and cutting it)) ?

    &#xA;

  • FFMPEG, MPV, SVP 4 Pro : not converting as original resolution problem, yuv420p10 -> p010 [closed]

    12 août 2023, par LeeShey

    I am using SVP4 Pro(Frame rate conversion).&#xA;The SVP 4 Pro setting :&#xA;RIFE AI engine setting&#xA;encoder commands&#xA;Transcoding 4K(3840x2160) video exports 3840x2144 resolution.&#xA;I think converting yuv420p10 -> p010 causes video height loss.

    &#xA;

    I did transcoding FHD video(just for test), but it worked lossless.&#xA;Problems to 4K, but not FHD ??

    &#xA;

    Here's the log :

    &#xA;

    19:36:05.942: ===== Starting mpv ======&#xA;19:36:05.942: Command line: C:\Program Files (x86)\SVP 4\mpv64\mpv.exe D:/Candy/prob3.mov --o=D:/Candy/prob3.SVP.VO.mov --no-audio --no-sub --no-sub-auto --input-ipc-server=mpvencodepipe --input-media-keys=no --no-msg-color --vf=lavfi=[yadif=send_frame],vapoursynth:[C:\Users\????\AppData\Roaming\SVP4\scripts\ffff.py]:4:16 --ovc=hevc_nvenc --ovcopts=preset=lossless,time_base=1000/120000,threads=16&#xA;19:36:05.982: (&#x2B;) Video --vid=1 (*) (prores 3840x2160 60.000fps)&#xA;19:36:05.982: Audio --aid=1 --alang=eng (*) (pcm_s16le 2ch 48000Hz)&#xA;19:36:06.277: vstrt: TensorRT version mismatch, built with 2135 but loaded with 2136; continue but fingers crossed...&#xA;19:36:06.856: CUDA lazy loading is not enabled. Enabling it can significantly reduce device memory usage. See `CUDA_MODULE_LOADING` in https://docs.nvidia.com/cuda/cuda-c-programming-guide/index.html#env-vars&#xA;19:36:06.930: CUDA lazy loading is not enabled. Enabling it can significantly reduce device memory usage. See `CUDA_MODULE_LOADING` in https://docs.nvidia.com/cuda/cuda-c-programming-guide/index.html#env-vars&#xA;19:36:07.005: CUDA lazy loading is not enabled. Enabling it can significantly reduce device memory usage. See `CUDA_MODULE_LOADING` in https://docs.nvidia.com/cuda/cuda-c-programming-guide/index.html#env-vars&#xA;19:36:07.079: CUDA lazy loading is not enabled. Enabling it can significantly reduce device memory usage. See `CUDA_MODULE_LOADING` in https://docs.nvidia.com/cuda/cuda-c-programming-guide/index.html#env-vars&#xA;19:36:09.683: [autoconvert] Converting yuv420p10 -> p010&#xA;19:36:09.693: VO: [lavc] 3840x2144 p010&#xA;19:36:09.693: [vo/lavc] Opening encoder: NVIDIA NVENC hevc encoder [hevc_nvenc]&#xA;19:36:09.695: [ffmpeg] hevc_nvenc: The selected preset is deprecated. Use p1 to p7 &#x2B; -tune or fast/medium/slow.&#xA;19:36:10.130: [encode] Opening output file: D:/Candy/prob3.movprob3.SVP.VO.mov&#xA;19:36:10.131: [encode] Opening muxer: QuickTime / MOV [mov]&#xA;19:36:10.131: [ffmpeg] mov: WARNING codec timebase is very high. If duration is too long,&#xA;19:36:10.131: [ffmpeg] file may not be playable by quicktime. Specify a shorter timebase&#xA;19:36:10.131: [ffmpeg] or choose different container.&#xA;19:36:10.136: [autoconvert] Converting yuv420p10 -> p010&#xA;19:36:10.145: V: 00:00:00 / 00:00:15 (0%) {0.0min 0.0MB}&#xA;19:36:11.087: -- PAUSED --&#xA;&#xA;

    &#xA;

  • How to use ffmpeg to upscale video resolution with libplacebo ?

    30 juillet 2023, par Ironbox

    In Vapoursynth, it is convenient to download and use plugins to change the frame rate of videos. However, it seems that using FFmpeg has more limitations (or maybe I haven't found the right method). Anime4K is a video enhancement algorithm suitable for anime and similar videos. In MPV, their plugins can be imported and used for real-time frame rate conversion.

    &#xA;

    In FFmpeg, how can I use the algorithms in glsl files to change the video frame rate, instead of using FFmpeg's built-in algorithms ?

    &#xA;

    In FFmpeg, i can use libplacebo filters can also be used to apply GLSL shaders. In my tests, using command like :

    &#xA;

    libplacebo=custom_shader_path=Anime4K_Upscale_CNN_x2_VL.glsl&#xA;

    &#xA;

    this leads to noticeable GPU usage, but the output video resolution remains the same as the original.

    &#xA;

    I can pass in the w and h parameters when calling the libplacebo filter :

    &#xA;

    libplacebo=w=iw*2:h=ih*2:custom_shader_path=shaders/Anime4K_Upscale_CNN_x2_VL.glsl&#xA;

    &#xA;

    This achieves the purpose of super resolution, but is it essentially using anime4k for upscaling behind the processing ?&#xA;Is it using the upscaling algorithm in libplacebo first, before applying anime4k ? How can I achieve my original goal that only use anime4k to upscale ?&#xA;here's my full command (in python) :

    &#xA;

    [&#xA;    &#x27;ffmpeg -hide_banner&#x27;,&#xA;    &#x27;-hwaccel&#x27;, &#x27;cuda&#x27;,&#xA;    &#x27;-i&#x27;, &#x27;"{input_ab_path}"&#x27;,&#xA;    &#x27;-filter_complex&#x27;,&#xA;    &#x27;"[0:v]libplacebo=custom_shader_path=libplacebo=custom_shader_path=shaders/Anime4K_Upscale_CNN_x2_VL.glsl,subtitles="{sub_file}":si=0[out]"&#x27;,&#xA;    &#x27;-map&#x27;, &#x27;0:a&#x27;,&#xA;    &#x27;-map&#x27;, &#x27;"[out]"&#x27;,&#xA;    &#x27;-c:v&#x27;, &#x27;libsvtav1&#x27;,&#xA;    &#x27;-svtav1-params&#x27;, &#x27;scm=2:scd=1:enable-overlays=1:enable-tf=0:tune=0:preset=7:crf=18&#x27;,&#xA;    &#x27;-c:a&#x27;, &#x27;libvorbis&#x27;,&#xA;    &#x27;-qscale:a&#x27;, &#x27;10&#x27;,&#xA;    &#x27;-pix_fmt&#x27;, &#x27;yuv420p10le&#x27;,&#xA;    &#x27;-y&#x27;, &#x27;"{output_ab_path}"&#x27;&#xA;]&#xA;

    &#xA;