Recherche avancée

Médias (0)

Mot : - Tags -/latitude

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

Autres articles (60)

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

  • HTML5 audio and video support

    13 avril 2011, par

    MediaSPIP uses HTML5 video and audio tags to play multimedia files, taking advantage of the latest W3C innovations supported by modern browsers.
    The MediaSPIP player used has been created specifically for MediaSPIP and can be easily adapted to fit in with a specific theme.
    For older browsers the Flowplayer flash fallback is used.
    MediaSPIP allows for media playback on major mobile platforms with the above (...)

Sur d’autres sites (7747)

  • Forward youtube-dl output to ffmpeg with hardware-accelerated encoding [closed]

    16 mars 2021, par Yehor

    I'm trying to download some videos from youtube and simultaneously forward those to ffmpeg for hardware decoding to h265 (just for purpose of seeing how it works).

    


    My command, that works, but uses (as I understand) software encoding :

    


    youtube-dl -o "./%(playlist)s/%(title)s.%(ext)s" --merge-output-format mkv --postprocessor-args "-c:v libx265 -c:a opus -strict experimental" "target_url"


    


    When I specify the hardware acceleration, I receive the error "Invalid argument". The command is :

    


    youtube-dl -o "./%(playlist)s/%(title)s.%(ext)s" --merge-output-format mkv --postprocessor-args "-hwaccel cuda -c:v hevc_nvenc -c:a opus -strict experimental" "target_url"


    


    What I've done wrong ?

    


    System info :

    


      

    • OS : Windows 10 x64
    • 


    • GPU : Nvidia GeForce 960M (installed the latest driver and CUDA) and should be supported by CUDA
    • 


    • latest youtube-dl and ffmpeg build
    • 


    


    The ffmpeg -encoders output contains 265 codecs, so they also should be supported :

    


    V..... libx265              libx265 H.265 / HEVC (codec hevc)
V..... nvenc_hevc           NVIDIA NVENC hevc encoder (codec hevc)
V..... hevc_amf             AMD AMF HEVC encoder (codec hevc)
V..... hevc_nvenc           NVIDIA NVENC hevc encoder (codec hevc)
V..... hevc_qsv             HEVC (Intel Quick Sync Video acceleration) (codec hevc)


    


  • Recording multiple cameras using gstreamer/ffmpeg, encoding problems

    11 février 2021, par kepitto

    I have an incoming UDP-MJPEG-Stream of 4-10 Kameras and I need to live-store these in a way to be able to store atleast a few days of data, preferably up to a week atleast. I'm testing the setup with 1 camera right now and have following issues :

    


    If I were to save the incoming stream via matroska without transcoding it I receive : 171,9GB/day, which is way too much if I want to run this with 10 cameras.
    
So I've looked a lot into different codecs and compared a few (x264, x265, vp8, vp9) and also checked the CPU usage and realized this won't be managable without Hardware Acceleration if I want to run 10 cameras on an embedded device. My target device will probably have H.264 and maybe VP8 encoding/decoding

    


    Which leads me to my first questions, how capable are hardware encoder/decoder ? Will I be able to transcode 10 camera-streams at the same time (raspberry pi h.264 hardware accel for example ; i'll use a more capable device for the final implementation) ? Maybe store chunks and transcode the files instead of stream ?

    


    gst-launch-1.0 udpsrc port=52000 do-timestamp=true caps=image/jpeg,framerate=30/1 blocksize=4096 ! queue ! jpegparse ! queue ! jpegdec ! queue ! videoconvert ! x265enc ! queue ! h265parse ! queue ! matroskamux ! filesink location=x.mkv  


    


    This pipeline works, but the file is 20% bigger than the same file with x264enc (without parse before mux-parsing shouldn't make a difference though).
    
As a comparison on ffmpeg I get a file which is 11 times smaller in size with following command :

    


    ffmpeg -framerate 30 -i udp -pix_fmt yuv420p -vcodec libx265 out.mkv


    


    Also vp8/vp9 encoding doesn't work on gstreamer at all. I use the same pipeline as above with vp8enc/vp9enc instead. I get videos which are too short and with a lot of random frames. Maybe performanceissue ?

    


    On ffmpeg I can capture and transcode to vp8, but vp9 doesn't work either. (Frames drop too low followed by errors, most likely performance issue)

    


    Does live-transcoding make sense and is it achievable on an embedded device ?

    


  • FFMPEG, H264 Encoding : If frame size exceeds level limit, does it lead to video encoding failed ?

    4 février 2021, par Nafia Mahjabin

    I want to reencode an mp4 file with h264 encoding.
Run the following command :

    


    


    ffmpeg -i input.mp4 -f mp4 -vcodec h264 -profile:v baseline -level 3.0 -pix_fmt yuv420p -color_range 2 -vf scale=1080:1920 -acodec aac -async 1 output.mp4

    


    


    Process fails saying Video encoding failed.
Error Message given by ffmpeg :

    


    [h264 @ 0x7a467000] Reinit context to 640x1152, pix_fmt: yuv420p\n
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'input.mp4':\n 
 Metadata:\n 
 major_brand     : mp42\n 
   minor_version   : 0\n 
   compatible_brands: mp42mp41iso4\n   
   creation_time   : 2020-07-26T20:32:55.000000Z\n 
   Duration: 00:00:36.20, start: 0.000000, bitrate: 938 kb/s\n 
   Stream #0:0(und): Video: h264, 1 reference frame (avc1 / 0x31637661), yuv420p(left), 640x1138 (640x1152), 935 kb/s, 30 fps, 30 tbr, 15360 tbn, 60 tbc (default)\n 
   Metadata:\n     
   creation_time   : 2020-07-26T20:32:55.000000Z\n    
   handler_name    : Vireo Eyes v2.5.3\n   
   encoder         : AVC Coding\n
   Matched encoder 'libx264' for codec 'h264'.\n
   Stream mapping:\n  
   Stream #0:0 -> #0:0 (h264 (native) -> h264 (libx264))\nPress [q] to stop, [?] for help\n
   [Parsed_scale_0 @ 0x80be6220] w:1080 h:1920 flags:'bicubic' interl:0\n
   [graph 0 input from stream 0:0 @ 0x80be6280] w:640 h:1138 pixfmt:yuv420p tb:1/15360 fr:30/1 sar:0/1\n
   [graph 0 input from stream 0:0 @ 0x80be6280] sws_param option is deprecated and ignored\n[Parsed_scale_0 @ 0x80be6220] w:640 h:1138 fmt:yuv420p sar:0/1 -> w:1080 h:1920 fmt:yuv420p sar:0/1 flags:0x4\n
   [libx264 @ 0x7a1d4000] frame MB size (68x120) > level limit (1620)\n
   [libx264 @ 0x7a1d4000] DPB size (1 frames, 8160 mbs) > level limit (0 frames, 8100 mbs)\n
   [libx264 @ 0x7a1d4000] MB rate (244800) > level limit (40500)\n[libx264 @ 0x7a1d4000] using cpu capabilities: ARMv6 NEON\n
   [libx264 @ 0x7a1d4000] profile Constrained Baseline, level 3.0, 4:2:0, 8-bit\n[libx264 @ 0x7a1d4000] 264 - core 160 - H.264/MPEG-4 AVC codec - Copyleft 2003-2020 - http://www.videolan.org/x264.html - options: cabac=0 ref=1 deblock=1:0:0 analyse=0x1:0x111 me=hex subme=7 psy=1 psy_rd=1.00:0.00 mixed_ref=0 me_range=16 chroma_me=1 trellis=1 8x8dct=0 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2 threads=12 lookahead_threads=2 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=0 weightp=0 keyint=250 keyint_min=25 scenecut=40 intra_refresh=0 rc_lookahead=40 rc=crf mbtree=1 crf=23.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00\n
   Output #0, mp4, to 'output.mp4':\n 
   Metadata:\n 
   major_brand     : mp42\n   
   minor_version   : 0\n 
   compatible_brands: mp42mp41iso4\n   
   encoder         : Lavf58.48.100\n   
   Stream #0:0(und): Video: h264 (libx264), 1 reference frame (avc1 / 0x31637661), yuv420p(pc, left), 1080x1920, q=-1--1, 30 fps, 15360 tbn, 30 tbc (default)\n
   Metadata:\n   
   creation_time   : 2020-07-26T20:32:55.000000Z\n    
   handler_name    : Vireo Eyes v2.5.3\n  
   encoder         : Lavc58.96.100 libx264\n    
   Side data:\n 
   cpb: bitrate max/min/avg: 0/0/0 buffer size: 0 vbv_delay: N/A\n
   frame=    3 fps=0.0 q=0.0 size=       0kB time=00:00:00.00 bitrate=N/A speed=   0x    \n
   frame=    7 fps=6.2 q=0.0 size=       0kB time=00:00:00.00 bitrate=N/A speed=   0x    \n
   frame=   11 fps=6.2 q=0.0 size=       0kB time=00:00:00.00 bitrate=N/A speed=   0x    \n
   frame=   15 fps=6.3 q=0.0 size=       0kB time=00:00:00.00 bitrate=N/A speed=   0x    \n
   frame=   19 fps=6.3 q=0.0 size=       0kB time=00:00:00.00 bitrate=N/A speed=   0x    \n
   frame=   23 fps=6.3 q=0.0 size=       0kB time=00:00:00.00 bitrate=N/A speed=   0x    \n
   frame=   26 fps=6.2 q=0.0 size=       0kB time=00:00:00.00 bitrate=N/A speed=   0x    \n
   frame=   30 fps=6.2 q=0.0 size=       0kB time=00:00:00.00 bitrate=N/A speed=   0x    \n
   frame=   33 fps=6.2 q=0.0 size=       0kB time=00:00:00.00 bitrate=N/A speed=   0x    \n
   Video encoding failed\n[AVIOContext @ 0x7a42cd80] Statistics: 0 seeks, 1 writeouts\n
   [AVIOContext @ 0x7a42ccc0] Statistics: 229376 bytes read, 0 seeks\nConversion failed!\n\n\n\n\n


    


    I tried to figure out the reason for fail. I'm guessing from error message from the line frame MB size (68x120) > level limit (1620), frame size exceeds h264 level limits may be the issue.

    


    Is it the issue ? if it is, what's the solution for this ? if it's not, what went wrong ?

    


    Can somebody help please ? Thank you !