Recherche avancée

Médias (0)

Mot : - Tags -/flash

Aucun média correspondant à vos critères n’est disponible sur le site.

Autres articles (60)

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

  • Ajouter notes et légendes aux images

    7 février 2011, par

    Pour pouvoir ajouter notes et légendes aux images, la première étape est d’installer le plugin "Légendes".
    Une fois le plugin activé, vous pouvez le configurer dans l’espace de configuration afin de modifier les droits de création / modification et de suppression des notes. Par défaut seuls les administrateurs du site peuvent ajouter des notes aux images.
    Modification lors de l’ajout d’un média
    Lors de l’ajout d’un média de type "image" un nouveau bouton apparait au dessus de la prévisualisation (...)

  • Configuration spécifique d’Apache

    4 février 2011, par

    Modules spécifiques
    Pour la configuration d’Apache, il est conseillé d’activer certains modules non spécifiques à MediaSPIP, mais permettant d’améliorer les performances : mod_deflate et mod_headers pour compresser automatiquement via Apache les pages. Cf ce tutoriel ; mode_expires pour gérer correctement l’expiration des hits. Cf ce tutoriel ;
    Il est également conseillé d’ajouter la prise en charge par apache du mime-type pour les fichiers WebM comme indiqué dans ce tutoriel.
    Création d’un (...)

Sur d’autres sites (9080)

  • ffmpeg H264 - How to add user unregistered SEI Message while encoding stream

    19 avril 2022, par cruxeon

    I'm working on an application where I need to insert some user unregistered SEI data in every frame before encoding it. I can't seem to find any API to add the SEI data. What I need to do is probably option 1 to the answer of this post ; but I'm not sure on how to proceed.?

    



    I've tried setting "sei" through the AvCodecContext priv_data, using av_opt_set as follows : (as well as changing the parameters quite a bit).

    



    AVCodecContext* c;

char *sei_msg = (char *)malloc(lenData);   // just a sample usage of how...
memcpy(sei_msg, data, lenData);            // ...i have my sei_message

av_opt_set(c,"sei", sei_msg, 0)


    



    Not sure if this is the correct direction for this ?

    



    How do I set the data that i'm adding is a Nal of type SEI (6) and that the SEI is of type User_Data_Unregistered (5). And then go about adding this data ?

    


  • Fully GPU accelerated (decoding,deinterlacing,scaling,encoding) HLS variable stream with ffmpeg

    6 juillet 2021, par Milan Čížek

    I'm trying to create a variable HLS MBR live stream using ffmpeg, which will be fully accelerated at the GPU level. This means accelerated decoding, deinterlacing, scaling and encoding. Here is my broken example ...

    


    ffmpeg -loglevel debug -hwaccel cuvid -c:v h264_cuvid -hwaccel_output_format cuda -vsync 0 -i "udp://@239.250.4.152:1234?fifo_size=1000000&overrun_nonfatal=1" \
-filter_complex "[0:v]yadif_cuda=0:-1:0,split=3[v1][v2][v3],[v1]copy[v1out],[v2]scale_npp=1280:720[v2out],[v3]scale_npp=720:405[v3out]" \
-map [v1out] -c:v:0 hevc_nvenc -b:v:0 4000k -g 48 \
-map [v2out] -c:v:1 hevc_nvenc -b:v:0 3000k -g 48 \
-map [v3out] -c:v:2 hevc_nvenc -b:v:0 2000k -g 48 \
-map a:0 -c:a:0 aac -b:a:0 128k -ac 2 \
-map a:0 -c:a:1 aac -b:a:1 96k -ac 2 \
-map a:0 -c:a:2 aac -b:a:2 64k -ac 2 \
-f hls \
-hls_playlist_type event \
-hls_segment_type mpegts \
-hls_time $seglen \
-hls_list_size $numsegs \
-hls_flags delete_segments+independent_segments \
-hls_segment_filename "$dst/stream_%v/$segments" \
-hls_base_url "$url" \
-master_pl_name "$dst/$index" \
-var_stream_map "v:0,a:0 v:1,a:1 v:2,a:2" \
"$dst/$index"


    


    Note : My graphics card can handle more than 2 concurrent encodings.
I'm getting a classic error "Impossible to convert between the formats supported by the filter 'Parsed_split_1' and the filter 'auto_scaler_0'".

    


    Is my goal real ? Or what is the proper way to use the GPU in this scenario as efficiently as possible ? Thanks for the help.

    


    Stream mapping:
   Stream # 0: 3 (h264_cuvid) -> yadif_cuda (graph 0)
   copy (graph 0) -> Stream # 0: 0 (h264_nvenc)
   scale_npp (graph 0) -> Stream # 0: 1 (h264_nvenc)
   scale_npp (graph 0) -> Stream # 0: 2 (h264_nvenc)
   Stream # 0: 4 -> # 0: 3 (ac3 (native) -> aac (native))
   Stream # 0: 4 -> # 0: 4 (ac3 (native) -> aac (native))
   Stream # 0: 4 -> # 0: 5 (ac3 (native) -> aac (native))


    


  • does ffmpeg allocate memory and will not release immediately when encoding and decoding ?

    24 juin 2021, par Tangtoo

    i want to transform videos to jpeg and wav as output. I wrote the programm by myself with FFmpeg-api. The video(.webm e.g.) is decoded and video and audio frames are encoded to jpeg and wav. With running of the program, more and more videos are converted but more and more rss are used(top cmd in linux).

    


    I have also used valgrind to test if there is memory leak. And there is None.

    


    The rss increases not linear and like follows(just example) :

    


    1 video : 30m
2 video : 150m
3 video : 200m
4 video : 220m
5 video : 220m
6 video : 230m

    


    The programm run in docker container and k8s with memory limit(2G). After days(about 30000 videos are processed for example) the pod will be force restarted.

    


    Is it real memory leak ? Or these memory are keeped by ffmpeg lib as memory pool or something ?
Thanks