Recherche avancée

Médias (91)

Autres articles (35)

  • Support de tous types de médias

    10 avril 2011

    Contrairement à beaucoup de logiciels et autres plate-formes modernes de partage de documents, MediaSPIP a l’ambition de gérer un maximum de formats de documents différents qu’ils soient de type : images (png, gif, jpg, bmp et autres...) ; audio (MP3, Ogg, Wav et autres...) ; vidéo (Avi, MP4, Ogv, mpg, mov, wmv et autres...) ; contenu textuel, code ou autres (open office, microsoft office (tableur, présentation), web (html, css), LaTeX, Google Earth) (...)

  • Supporting all media types

    13 avril 2011, par

    Unlike most software and media-sharing platforms, MediaSPIP aims to manage as many different media types as possible. The following are just a few examples from an ever-expanding list of supported formats : images : png, gif, jpg, bmp and more audio : MP3, Ogg, Wav and more video : AVI, MP4, OGV, mpg, mov, wmv and more text, code and other data : OpenOffice, Microsoft Office (Word, PowerPoint, Excel), web (html, CSS), LaTeX, Google Earth and (...)

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

  • hwcontext_vulkan : properly support STORAGE usage for mutliplane images

    5 octobre 2023, par Lynne
    hwcontext_vulkan : properly support STORAGE usage for mutliplane images
    

    Fixes multiplane support on Nvidia.

    Also, remove the ENCODE usage, even if the driver signals it as supported.
    Currently, it's not used, and when it is used, it'll be gated behind
    two extension checks.

    • [DH] libavfilter/vulkan_filter.c
    • [DH] libavutil/hwcontext_vulkan.c
  • FFmpeg transcode GIF into Mp4 and Mp4 to AVI using GPU

    9 octobre 2023, par Cristian

    I'm trying to convert GIF animated to mp4 and mp4 to AVI with FFmpeg.

    


    I started to use just the CPU, but I have to process millions of GIFs/mp4 content pieces. So, I started to have a lot of errors processing them, and it ended as a bottleneck. Therefore, I'm trying to use GPU to process the videos.

    


    Converting GIF to mp4 with CPU, I run the following command :

    


    ffmpeg -i animated.gif -movflags faststart -pix_fmt yuv420p -vf "scale=trunc(iw/2)*2:trunc(ih/2)*2" video.mp4


    


    Using the GPU I'm trying the following :

    


    ffmpeg
  -y
  -hwaccel nvdec
  -hwaccel_output_format cuda
  -i gifInputPath
  -threads 1
  -filter_threads 1
  -c:v h264_nvenc
  -vf hwupload_cuda,scale_cuda=-2:320:240:format=yuv420p
  -gpu 0
   mp4VideoPath


    


    The above command generates an exit status 1.

    


    The following is the dmesg command log

    


    Converting mp4 videos to AVI videos I'm running the following command

    


    ffmpeg
-i videoInputPath
-vcodec rawvideo
-pix_fmt yuv420p
-acodec pcm_s16le
-ar 44100
-ac 2
-s 320x240
-r 4
-f avi
aviOutputVideoPath


    


    For GPU I tried :

    


    ffmpeg
 -y
 -hwaccel cuda
 -hwaccel_output_format cuda
 -i videoInputPath
 -threads 1
 -filter_threads 1
 -c:a pcm_s16le
 -ac 2
 -ar 44100
 -c:v h264_nvenc
 -vf hwupload_cudascale_cuda=-2:320:240:format=yuv420p
 -r 4
 -f avi
 -gpu 0
 aviOutputVideoPath


    


    The following is the dmseg output is log

    


      

    1. What should be the best command for converting the GIF into Mp4 and Mp4 into AVI based on CPU configuration using the GPU(Amazon Nvidia t4) for best performance, low CPU, and moderated GPU consumption ?

      


    2. 


    3. What are the best suggestions to Process these content pieces concurrently using GPU ?

      


    4. 


    


    Note : I'm using Golang to execute the FFmpeg commands.

    


  • MoviePY write_videofile using GPU for faster encoding [closed]

    5 mai, par kaushal

    I'm creating a video from scratch using moviePY. I am generating all the required frames, adding required audio (including a voiceover and background music), adding a logo and finally writing the video file in 4K.

    


    Everything works fine, except the write_videofile takes a lot of time.

    


    I have read many related posts which mentions using the right codec etc. I have NVidia card, so tried both h264_nvenc and hevc_nvenc. Quality of the output video dropped with the first one, so I'm sticking to hevc_nvenc. I'm using below line to write the file.

    


            video_clip.write_videofile(targetfile, codec="hevc_nvenc", threads=32, fps=24)


    


    What I have noticed is, it does seem to be using the gpu, but very little. Compared to this, when I run stable diffusion or vegas rendering, it uses gpu a lot more.

    


    That's why I think there is definitely some scope of improvement here. If you see below screenshot, when the video file write starts, the gpu utilisation increases a tiny bit, but it can take a lot more I think, isn't it ?

    


    I can try various parameters that I've seen in other threads, like logger=None, progress_bar = False, ffmpeg_params=['-b:v','10000k'] etc., but they are not going to improve gpu utilisation in any shape or form. I've been wondering what am I missing.

    


    Any ideas or suggestions please ?

    


    enter image description here