Recherche avancée

Médias (3)

Mot : - Tags -/spip

Autres articles (76)

  • Websites made ​​with MediaSPIP

    2 mai 2011, par

    This page lists some websites based on MediaSPIP.

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

  • Creating farms of unique websites

    13 avril 2011, par

    MediaSPIP platforms can be installed as a farm, with a single "core" hosted on a dedicated server and used by multiple websites.
    This allows (among other things) : implementation costs to be shared between several different projects / individuals rapid deployment of multiple unique sites creation of groups of like-minded sites, making it possible to browse media in a more controlled and selective environment than the major "open" (...)

Sur d’autres sites (10368)

  • Can't play mp4 video using html5 video tag

    7 août 2020, par John Doe

    I am trying to present an mp4 video (h264) using html5 :

    


    <video width="320" controls="controls">&#xA;            <source src="/home/nabil/FWork/hikvision/ch01_00000100068000101.mp4" type="video/mp4">&#xA;</source></video>&#xA;

    &#xA;

    analyzing video codec with ffmpeg gives the following :

    &#xA;

    ffprobe ch01_00000100068000101.mp4 &#xA;ffprobe version 2.8.17-0ubuntu0.1 Copyright (c) 2007-2020 the FFmpeg developers&#xA;  built with gcc 5.4.0 (Ubuntu 5.4.0-6ubuntu1~16.04.12) 20160609&#xA;  configuration: --prefix=/usr --extra-version=0ubuntu0.1 --build-suffix=-ffmpeg --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --cc=cc --cxx=g&#x2B;&#x2B; --enable-gpl --enable-shared --disable-stripping --disable-decoder=libopenjpeg --disable-decoder=libschroedinger --enable-avresample --enable-avisynth --enable-gnutls --enable-ladspa --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libmodplug --enable-libmp3lame --enable-libopenjpeg --enable-libopus --enable-libpulse --enable-librtmp --enable-libschroedinger --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxvid --enable-libzvbi --enable-openal --enable-opengl --enable-x11grab --enable-libdc1394 --enable-libiec61883 --enable-libzmq --enable-frei0r --enable-libx264 --enable-libopencv&#xA;  libavutil      54. 31.100 / 54. 31.100&#xA;  libavcodec     56. 60.100 / 56. 60.100&#xA;  libavformat    56. 40.101 / 56. 40.101&#xA;  libavdevice    56.  4.100 / 56.  4.100&#xA;  libavfilter     5. 40.101 /  5. 40.101&#xA;  libavresample   2.  1.  0 /  2.  1.  0&#xA;  libswscale      3.  1.101 /  3.  1.101&#xA;  libswresample   1.  2.101 /  1.  2.101&#xA;  libpostproc    53.  3.100 / 53.  3.100&#xA;Invalid UE golomb code&#xA;    Last message repeated 3 times&#xA;Input #0, mpeg, from &#x27;ch01_00000100068000101.mp4&#x27;:&#xA;  Duration: 00:09:27.33, start: 35024.106667, bitrate: 507 kb/s&#xA;    Stream #0:0[0x1e0]: Video: h264 (Baseline), yuv420p, 1280x720, 10 fps, 10 tbr, 90k tbn, 20 tbc&#xA;

    &#xA;

    a possible relevant detail is that playing the video using ubuntu's default video reader (ffmpeg in the background) doesn't show any video controls

    &#xA;

  • record long videos from multiple webcams with FFmpeg

    4 août 2020, par Nagamoto

    I am using

    &#xA;

    ffmpeg -f dshow -vcodec mjpeg -t 6000 -rtbufsize 2.14748e&#x2B;09  -video_size 1920x1080 -framerate 60 -i video=camID-0 -f dshow -vcodec mjpeg -t 6000 -rtbufsize 2.14748e&#x2B;09  -video_size 1920x1080 -framerate 60 -i video=camID-1 -map 0  -c:v libx264 -preset ultrafast -y -r 30 fileName_0.mp4 -map 1  -c:v libx264 -preset ultrafast -y -r 30 fileName_1.mp4

    &#xA;

    to record video from two webcams. Since the output will be compressed further down the line I am mostly concerned with quality and not losing frames. But after about 2min the real-time buffer is full :

    &#xA;

    [dshow @ 00000221716edf80] real-time buffer [@device_pnp_\\?\usb#vid_15aa&amp;pid_1555&amp;mi_00#6&amp;b8e4142&amp;0&amp;0000#{65e8773d-8f56-11d0-a3b9-00a0c9223196}\global] [video input] too full or near too full (75% of size: 2147480000 [rtbufsize parameter])! frame dropped!&#xA;

    &#xA;

    On the other hand capturing uncompressed video results in huge filesizes (1.3 TB for an hour) but encoding with the settings above the computer can't keep up.&#xA;Currently the webcams capture 60fps- which is not a must but I can't set them to anything lower.

    &#xA;

    How can I record long video (max 1.5h) with good quality while keeping file-sizes manageable ?

    &#xA;

    ffmpeg -f dshow -list_options true -i video="3.0 USB Camera"&#xA;&#xA;&#xA;&#xA;ffmpeg version 4.3 Copyright (c) 2000-2020 the FFmpeg developers&#xA;  built with gcc 9.3.1 (GCC) 20200621&#xA;  configuration: --enable-gpl --enable-version3 --enable-sdl2 --enable-fontconfig --enable-gnutls --enable-iconv --enable-libass --enable-libdav1d --enable-libbluray --enable-libfreetype --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libsrt --enable-libtheora --enable-libtwolame --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxml2 --enable-libzimg --enable-lzma --enable-zlib --enable-gmp --enable-libvidstab --enable-libvmaf --enable-libvorbis --enable-libvo-amrwbenc --enable-libmysofa --enable-libspeex --enable-libxvid --enable-libaom --enable-libgsm --disable-w32threads --enable-libmfx --enable-ffnvcodec --enable-cuda-llvm --enable-cuvid --enable-d3d11va --enable-nvenc --enable-nvdec --enable-dxva2 --enable-avisynth --enable-libopenmpt --enable-amf&#xA;  libavutil      56. 51.100 / 56. 51.100&#xA;  libavcodec     58. 91.100 / 58. 91.100&#xA;  libavformat    58. 45.100 / 58. 45.100&#xA;  libavdevice    58. 10.100 / 58. 10.100&#xA;  libavfilter     7. 85.100 /  7. 85.100&#xA;  libswscale      5.  7.100 /  5.  7.100&#xA;  libswresample   3.  7.100 /  3.  7.100&#xA;  libpostproc    55.  7.100 / 55.  7.100&#xA;[dshow @ 000001f32953c380] DirectShow video device options (from video devices)&#xA;[dshow @ 000001f32953c380]  Pin "Capture" (alternative pin name "0")&#xA;[dshow @ 000001f32953c380]   vcodec=mjpeg  min s=1920x1080 fps=60.0002 max s=1920x1080 fps=60.0002&#xA;[dshow @ 000001f32953c380]   vcodec=mjpeg  min s=1920x1080 fps=60.0002 max s=1920x1080 fps=60.0002&#xA;[dshow @ 000001f32953c380]   vcodec=mjpeg  min s=1280x720 fps=60.0002 max s=1280x720 fps=60.0002&#xA;[dshow @ 000001f32953c380]   vcodec=mjpeg  min s=1280x720 fps=60.0002 max s=1280x720 fps=60.0002&#xA;[dshow @ 000001f32953c380]   vcodec=mjpeg  min s=640x480 fps=60.0002 max s=640x480 fps=60.0002&#xA;[dshow @ 000001f32953c380]   vcodec=mjpeg  min s=640x480 fps=60.0002 max s=640x480 fps=60.0002&#xA;[dshow @ 000001f32953c380]   pixel_format=yuyv422  min s=1920x1080 fps=60.0002 max s=1920x1080 fps=60.0002&#xA;[dshow @ 000001f32953c380]   pixel_format=yuyv422  min s=1920x1080 fps=60.0002 max s=1920x1080 fps=60.0002&#xA;[dshow @ 000001f32953c380]   pixel_format=yuyv422  min s=1280x720 fps=60.0002 max s=1280x720 fps=60.0002&#xA;[dshow @ 000001f32953c380]   pixel_format=yuyv422  min s=1280x720 fps=60.0002 max s=1280x720 fps=60.0002&#xA;[dshow @ 000001f32953c380]   pixel_format=yuyv422  min s=640x480 fps=60.0002 max s=640x480 fps=60.0002&#xA;[dshow @ 000001f32953c380]   pixel_format=yuyv422  min s=640x480 fps=60.0002 max s=640x480 fps=60.0002&#xA;video=3.0 USB Camera: Immediate exit requested&#xA;

    &#xA;

  • FFmpeg continues to process after time specified at "-to"

    4 août 2020, par Yamahabest

    I have a video, where I want to cut a part from the beginning, and from the end. And I want to apply some fade ins/fade outs, and add some text.

    &#xA;

    So, I came up with the following syntax :

    &#xA;

    -ss 10 -to 40 &#xA;-i "D:\DATA\Software\VideoProcessor_Files\20171015 Zelhem Tandem Frans met Mirthe.MP4" &#xA;-loop 1 -i "Input_Files\logo maurik large.png" &#xA;-loop 1 -i "Input_Files\logo maurik small.png" &#xA;-filter_complex "&#xA;    color=0x7F7F7F@0.95:1920x1080[grey_for_fade_out];&#xA;    [grey_for_fade_out]fade=t=out:st=12:d=2:alpha=1[grey_fade_out];&#xA;    [0:v][grey_fade_out]overlay[video_grey_fade_out];&#xA;    color=0x7F7F7F@0.95:1920x1080[grey_for_fade_in];&#xA;    [grey_for_fade_in]fade=t=in:st=37:d=2:alpha=1[grey_fade_in];&#xA;    [video_grey_fade_out][grey_fade_in]overlay[video_grey_fade_out_in];&#xA;    [1:v]fade=t=out:st=13:d=2:alpha=1[over];&#xA;    [over]scale=iw/1.5:-1[scaled];&#xA;    [video_grey_fade_out_in][scaled]overlay=(main_w-overlay_w)/2:(main_h-overlay_h)/10[video_grey_fade_out_in_logo];&#xA;    [1:v]fade=t=in:st=36:d=2:alpha=1[over2];&#xA;    [over2]scale=iw/1.5:-1[scaled2];&#xA;    [video_grey_fade_out_in_logo][scaled2]overlay=(main_w-overlay_w)/2:(main_h-overlay_h)/2[video_grey_fade_out_in_logo2];&#xA;    [2:v]colorchannelmixer=aa=0.5,fade=t=in:st=14:d=2:alpha=1,fade=t=out:st=35:d=2:alpha=1[over3];&#xA;    [over3]scale=iw/10:-1[scaled3];&#xA;    [video_grey_fade_out_in_logo2][scaled3]overlay=10:10[video_complete];&#xA;    [video_complete]drawtext=fontfile=Input_Files/Sansation-Bold.ttf:text=&#x27;Tandemvlucht met Mirthe&#x27;:fontsize=96:fontcolor=white:alpha=&#x27;if(lt(t,11),1,(2-(t-11))/2)&#x27;:x=(w-text_w)/2:y=((h-text_h)/2)&#x2B;125,drawtext=fontfile=Input_Files/Sansation-Bold.ttf:text=&#x27;Zeddam&#x27;:fontsize=96:fontcolor=white:alpha=&#x27;if(lt(t,11),1,(2-(t-11))/2)&#x27;:x=(w-text_w)/2:y=((h-text_h)/2)&#x2B;250,drawtext=fontfile=Input_Files/Sansation-Bold.ttf:text=&#x27;4 augustus 2020&#x27;:fontsize=96:fontcolor=white:alpha=&#x27;if(lt(t,11),1,(2-(t-11))/2)&#x27;:x=(w-text_w)/2:y=((h-text_h)/2)&#x2B;375,drawtext=fontfile=Input_Files/Sansation-Bold.ttf:text=&#x27;Ook een keer meevliegen?&#x27;:fontsize=96:fontcolor=white:alpha=&#x27;if(lt(t,37),0,(t-37)/2)&#x27;:x=(w-text_w)/2:y=((h-text_h)/6),drawtext=fontfile=Input_Files/Sansation-Bold.ttf:text=&#x27;Of bel 085 - 049 55 69&#x27;:fontsize=96:fontcolor=white:alpha=&#x27;if(lt(t,37),0,(t-37)/2)&#x27;:x=(w-text_w)/2:y=((h-text_h)/2)&#x2B;350"&#xA;-preset medium &#xA;-crf 18 &#xA;-c:a copy &#xA;-y ".\Output_Files\Video\Zeddam\2020-08-04\Mirthe\27ed390a-8497-4550-b93f-4f87d9f2c9f0\MP_Tandemvlucht met_Mirthe_Zeddam_2020-08-04.mp4"&#xA;

    &#xA;

    I am quite sure this has worked in the past, but now FFmpeg just keeps on processing endlessly. If I then stop the FFmpeg process, and look at the resulting file, I see that the last frame (of the end of the specified period) just keeps on duplicating.

    &#xA;

    The drop counter in the console output of FFmpeg also starts increasing at the end of the specified period :

    &#xA;

    frame=  987 fps= 15 q=-1.0 Lsize=   31357kB time=00:00:41.04 bitrate=6259.0kbits/s dup=0 drop=10 speed=0.644x&#xA;

    &#xA;

    I am kind of lost on why this doesn't work anymore. I might have upgraded the FFmpeg executable in the mean time. Maybe my syntax was/is not correct, but I believe it just worked.

    &#xA;

    It has to be in the complex filter, because when I remove that, it works alright.&#xA;It is not in the drawtext part of the complex filter, because it still occurs when I remove that. And when I only do the drawtext, FFmpeg stops correctly at the specified time.

    &#xA;

    I have tried this, but then it still occurs :

    &#xA;

    -filter_complex "&#xA;    color=0x7F7F7F@0.95:1920x1080[grey_for_fade_out];&#xA;    [grey_for_fade_out]fade=t=out:st=12:d=2:alpha=1[grey_fade_out];&#xA;    [0:v][grey_fade_out]overlay[video_grey_fade_out];&#xA;    color=0x7F7F7F@0.95:1920x1080[grey_for_fade_in];&#xA;    [grey_for_fade_in]fade=t=in:st=37:d=2:alpha=1[grey_fade_in];&#xA;    [video_grey_fade_out][grey_fade_in]overlay"&#xA;

    &#xA;

    Also with this, it still occurs :

    &#xA;

    -filter_complex "&#xA;    [1:v]fade=t=out:st=13:d=2:alpha=1[over];&#xA;    [over]scale=iw/1.5:-1[scaled];&#xA;    [0:v][scaled]overlay=(main_w-overlay_w)/2:(main_h-overlay_h)/10[video_grey_fade_out_in_logo];&#xA;    [1:v]fade=t=in:st=36:d=2:alpha=1[over2];&#xA;    [over2]scale=iw/1.5:-1[scaled2];&#xA;    [video_grey_fade_out_in_logo][scaled2]overlay=(main_w-overlay_w)/2:(main_h-overlay_h)/2[video_grey_fade_out_in_logo2];&#xA;    [2:v]colorchannelmixer=aa=0.5,fade=t=in:st=14:d=2:alpha=1,fade=t=out:st=35:d=2:alpha=1[over3];&#xA;    [over3]scale=iw/10:-1[scaled3];&#xA;    [video_grey_fade_out_in_logo2][scaled3]overlay=10:10"&#xA;

    &#xA;

    I just don't understand. All my fade-ins/-outs seem to be within the specified range :

    &#xA;

      &#xA;
    • fade=t=out:st=12:d=2 : start at 12 seconds, duration 2 seconds. This ends at 14 seconds, which is smaller than 40 seconds.
    • &#xA;

    • fade=t=in:st=37:d=2 : start at 37 seconds, duration 2 seconds. This ends at 39 seconds, which is smaller than 40 seconds.
    • &#xA;

    • fade=t=out:st=13:d=2 : start at 13 seconds, duration 2 seconds. This ends at 15 seconds, which is smaller than 40 seconds.
    • &#xA;

    • fade=t=in:st=36:d=2 : start at 36 seconds, duration 2 seconds. This ends at 38 seconds, which is smaller than 40 seconds.
    • &#xA;

    &#xA;

    It is just like some sequence is not ended properly, which is causing FFmpeg to just continue.

    &#xA;