Recherche avancée

Médias (0)

Mot : - Tags -/upload

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

Autres articles (37)

  • Support audio et vidéo HTML5

    10 avril 2011

    MediaSPIP utilise les balises HTML5 video et audio pour la lecture de documents multimedia en profitant des dernières innovations du W3C supportées par les navigateurs modernes.
    Pour les navigateurs plus anciens, le lecteur flash Flowplayer est utilisé.
    Le lecteur HTML5 utilisé a été spécifiquement créé pour MediaSPIP : il est complètement modifiable graphiquement pour correspondre à un thème choisi.
    Ces technologies permettent de distribuer vidéo et son à la fois sur des ordinateurs conventionnels (...)

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

  • De l’upload à la vidéo finale [version standalone]

    31 janvier 2010, par

    Le chemin d’un document audio ou vidéo dans SPIPMotion est divisé en trois étapes distinctes.
    Upload et récupération d’informations de la vidéo source
    Dans un premier temps, il est nécessaire de créer un article SPIP et de lui joindre le document vidéo "source".
    Au moment où ce document est joint à l’article, deux actions supplémentaires au comportement normal sont exécutées : La récupération des informations techniques des flux audio et video du fichier ; La génération d’une vignette : extraction d’une (...)

Sur d’autres sites (3735)

  • ffmpeg is reading SDP from RTSP stream but unable to save a screenshot. is it network or utility issue ?

    8 juillet 2017, par Paul Serikov

    My task is to get a screenshot from IP camera rtsp stream via ffmpeg.
    I got following error when I’m trying to do that on DigitalOcean droplet :

    root@docker-512mb-fra1-01:~# ffmpeg -hide_banner -loglevel debug -i rtsp://10.132.193.9//ch0.h264 -f image2 latest.jpg
    Splitting the commandline.
    Reading option '-hide_banner' ... matched as option 'hide_banner' (do not show program banner) with argument '1'.
    Reading option '-loglevel' ... matched as option 'loglevel' (set logging level) with argument 'debug'.
    Reading option '-i' ... matched as input url with argument 'rtsp://10.132.193.9//ch0.h264'.
    Reading option '-f' ... matched as option 'f' (force format) with argument 'image2'.
    Reading option 'latest.jpg' ... matched as output url.
    Finished splitting the commandline.
    Parsing a group of options: global .
    Applying option hide_banner (do not show program banner) with argument 1.
    Applying option loglevel (set logging level) with argument debug.
    Successfully parsed a group of options.
    Parsing a group of options: input url rtsp://10.132.193.9//ch0.h264.
    Successfully parsed a group of options.
    Opening an input file: rtsp://10.132.193.9//ch0.h264.
    [rtsp @ 0x1298440] SDP:
    v=0
    o=- 1499314217993040 1 IN IP4 192.168.1.128
    s=H.264 Program Stream, streamed by the LIVE555 Media Server
    i=ch0.h264
    t=0 0
    a=DevVer:pusher2
    a=GroupName:IPCAM
    a=NickName:CIF
    a=CfgSection:PROG_CHN0
    a=tool:LIVE555 Streaming Media v2011.08.13
    a=type:broadcast
    a=control:*
    a=range:npt=0-
    a=x-qt-text-nam:H.264 Program Stream, streamed by the LIVE555 Media Server
    a=x-qt-text-inf:ch0.h264
    m=video 0 RTP/AVP 96
    c=IN IP4 0.0.0.0
    b=AS:4000
    a=rtpmap:96 H264/90000
    a=control:trackID=1
    a=fmtp:96 packetization-mode=1;profile-level-id=64001F;sprop-parameter-sets=Z2QAH6wrUCgC3IA=,aO48MA==
    a=framesize:96 1280-720
    a=cliprect:0,0,1280,720
    m=audio 0 RTP/AVP 97
    a=rtpmap:97 mpeg4-generic/8000/2
    a=fmtp:97 streamtype=5;profile-level-id=1;cpresent=0;mode=AAC-hbr;sizelength=13;indexlength=3;indexdeltalength=3;config=1590
    a=control:trackID=2

    Failed to parse interval end specification ''
    [rtsp @ 0x1298440] video codec set to: h264
    [rtsp @ 0x1298440] RTP Packetization Mode: 1
    [rtsp @ 0x1298440] RTP Profile IDC: 64 Profile IOP: 0 Level: 1f
    [rtsp @ 0x1298440] Extradata set to 0x1298a20 (size: 23)
    [rtsp @ 0x1298440] audio codec set to: aac
    [rtsp @ 0x1298440] audio samplerate set to: 8000
    [rtsp @ 0x1298440] audio channels set to: 2
    [udp @ 0x129e7e0] end receive buffer size reported is 131072
    [udp @ 0x129e680] end receive buffer size reported is 131072
    [udp @ 0x12bf380] end receive buffer size reported is 131072
    [udp @ 0x12bf1c0] end receive buffer size reported is 131072
    [rtsp @ 0x1298440] hello state=0
    [rtsp @ 0x1298440] UDP timeout, retrying with TCP
    [rtsp @ 0x1298440] hello state=0
    [rtsp @ 0x1298440] Could not find codec parameters for stream 0 (Video: h264, 1 reference frame, none(left), 1280x720, 1/180000): unspecified pixel format
    Consider increasing the value for the 'analyzeduration' and 'probesize' options
    Input #0, rtsp, from 'rtsp://10.132.193.9//ch0.h264':
     Metadata:
       title           : H.264 Program Stream, streamed by the LIVE555 Media Server
       comment         : ch0.h264
     Duration: N/A, start: 0.000000, bitrate: N/A
       Stream #0:0, 0, 1/90000: Video: h264, 1 reference frame, none(left), 1280x720, 1/180000, 90k tbr, 90k tbn, 180k tbc
       Stream #0:1, 0, 1/8000: Audio: aac, 8000 Hz, stereo, fltp
    Successfully opened the file.
    Parsing a group of options: output url latest.jpg.
    Applying option f (force format) with argument image2.
    Successfully parsed a group of options.
    Opening an output file: latest.jpg.
    Successfully opened the file.
    detected 1 logical cores
    [graph 0 input from stream 0:0 @ 0x1298280] Setting 'video_size' to value '1280x720'
    [graph 0 input from stream 0:0 @ 0x1298280] Setting 'pix_fmt' to value '-1'
    [buffer @ 0x12f9680] Unable to parse option value "-1" as pixel format
    [graph 0 input from stream 0:0 @ 0x1298280] Setting 'time_base' to value '1/90000'
    [graph 0 input from stream 0:0 @ 0x1298280] Setting 'pixel_aspect' to value '0/1'
    [graph 0 input from stream 0:0 @ 0x1298280] Setting 'sws_param' to value 'flags=2'
    [graph 0 input from stream 0:0 @ 0x1298280] Setting 'frame_rate' to value '180000/2'
    [buffer @ 0x12f9680] Unable to parse option value "-1" as pixel format
    [buffer @ 0x12f9680] Error setting option pix_fmt to value -1.
    [graph 0 input from stream 0:0 @ 0x1298280] Error applying options to the filter.
    Error opening filters!
    Exiting normally, received signal 2.

    As you see, ffmpeg is able to read SDP metadata, but for some reason is unable to save a screenshot

    Also same command works fine on my laptop with same VPN configuration !

    Just in case, IP camera doesn’t have a public IP address and accessible via VPN.

    What could be wrong and how to debug ?

    I tried to increase -analyzeduration and -probesize options from default 5s to 30s, but it doesn’t work.

  • ffmpeg : aspect ratio of image in a slideshow

    26 juin 2020, par worov

    I have a bunch of images PNG files. I'm trying to make a slideshow with these using ffmpeg. The images are 3000*4000. These images don't have all the same aspect ratio.

    



    Some are like these :

    



    enter image description here

    



    Some are like this :

    



    enter image description here

    



    I used the command :

    



    ffmpeg -loop 1 -framerate 1/10 -i img%3d.png -i audio.wav -vf scale=w=3840:h=-1 -vcodec libx264 -crf 14 -r 60 -pix_fmt yuv420p -shortest output.mp4


    



    It returns me this :

    



       ffmpeg version 3.3.2 Copyright (c) 2000-2017 the FFmpeg developers
  built with gcc 6.3.0 (Debian 6.3.0-18) 20170516
  configuration: --disable-decoder=amrnb --disable-decoder=libopenjpeg --disable-mips32r2 --disable-mips32r6 --disable-mips64r6 --disable-mipsdsp --disable-mipsdspr2 --disable-mipsfpu --disable-msa --disable-libopencv --disable-podpages --disable-stripping --enable-avfilter --enable-avresample --enable-gcrypt --enable-gnutls --enable-gpl --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libfdk-aac --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libilbc --enable-libkvazaar --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenh264 --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libtesseract --enable-libtheora --enable-libvidstab --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libx265 --enable-libxvid --enable-libzvbi --enable-nonfree --enable-opengl --enable-openssl --enable-postproc --enable-pthreads --enable-shared --enable-version3 --incdir=/usr/include/x86_64-linux-gnu --libdir=/usr/lib/x86_64-linux-gnu --prefix=/usr --toolchain=hardened --enable-frei0r --enable-chromaprint --enable-libx264 --enable-libiec61883 --enable-libdc1394 --enable-vaapi --disable-opencl --enable-libmfx --disable-altivec --shlibdir=/usr/lib/x86_64-linux-gnu
  libavutil      55. 58.100 / 55. 58.100
  libavcodec     57. 89.100 / 57. 89.100
  libavformat    57. 71.100 / 57. 71.100
  libavdevice    57.  6.100 / 57.  6.100
  libavfilter     6. 82.100 /  6. 82.100
  libavresample   3.  5.  0 /  3.  5.  0
  libswscale      4.  6.100 /  4.  6.100
  libswresample   2.  7.100 /  2.  7.100
  libpostproc    54.  5.100 / 54.  5.100
Input #0, image2, from 'img%3d.png':
  Duration: 00:02:30.00, start: 0.000000, bitrate: N/A
    Stream #0:0: Video: png, rgb24(pc), 4000x3000 [SAR 7087:7087 DAR 4:3], 0.10 tbr, 0.10 tbn, 0.10 tbc
Guessed Channel Layout for Input Stream #1.0 : stereo
Input #1, wav, from 'audio.wav':
  Duration: 01:54:44.14, bitrate: 1536 kb/s
    Stream #1:0: Audio: pcm_s16le ([1][0][0][0] / 0x0001), 48000 Hz, stereo, s16, 1536 kb/s
Stream mapping:
  Stream #0:0 -> #0:0 (png (native) -> h264 (libx264))
  Stream #1:0 -> #0:1 (pcm_s16le (native) -> aac (native))
Press [q] to stop, [?] for help
[libx264 @ 0x55c1be935420] using SAR=1/1
[libx264 @ 0x55c1be935420] frame MB size (240x180) > level limit (36864)
[libx264 @ 0x55c1be935420] MB rate (2592000) > level limit (2073600)
[libx264 @ 0x55c1be935420] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2
[libx264 @ 0x55c1be935420] profile High, level 5.2
[libx264 @ 0x55c1be935420] 264 - core 150 - H.264/MPEG-4 AVC codec - Copyleft 2003-2017 - http://www.videolan.org/x264.html - options: cabac=1 ref=3 deblock=1:0:0 analyse=0x3:0x113 me=hex subme=7 psy=1 psy_rd=1.00:0.00 mixed_ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=1 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2 threads=6 lookahead_threads=1 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=3 b_pyramid=2 b_adapt=1 b_bias=0 direct=1 weightb=1 open_gop=0 weightp=2 keyint=250 keyint_min=25 scenecut=40 intra_refresh=0 rc_lookahead=40 rc=crf mbtree=1 crf=14.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00
Output #0, mp4, to 'output.mp4':
  Metadata:
    encoder         : Lavf57.71.100
    Stream #0:0: Video: h264 (libx264) ([33][0][0][0] / 0x0021), yuv420p(progressive), 3840x2880 [SAR 1:1 DAR 4:3], q=-1--1, 60 fps, 15360 tbn, 60 tbc
    Metadata:
      encoder         : Lavc57.89.100 libx264
    Side data:
      cpb: bitrate max/min/avg: 0/0/0 buffer size: 0 vbv_delay: -1
    Stream #0:1: Audio: aac (LC) ([64][0][0][0] / 0x0040), 48000 Hz, stereo, fltp, 128 kb/s
    Metadata:
      encoder         : Lavc57.89.100 aac
[image2 @ 0x55c1be8edde0] Thread message queue blocking; consider raising the thread_queue_size option (current value: 8)
More than 1000 frames duplicated    5309kB time=00:00:09.13 bitrate=4762.0kbits/s dup=599 drop=0 speed=0.164x   
More than 10000 frames duplicated 137722kB time=00:02:39.13 bitrate=7089.8kbits/s dup=9584 drop=0 speed=0.174x   
More than 100000 frames duplicated429964kB time=00:27:39.13 bitrate=7060.5kbits/s dup=99434 drop=0 speed=0.173x   
frame=413401 fps= 10 q=-1.0 Lsize= 5962186kB time=01:54:49.96 bitrate=7088.9kbits/s dup=413310 drop=0 speed=0.173x   
video:5831116kB audio:117825kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.222641%
[libx264 @ 0x55c1be935420] frame I:2068  Avg QP: 6.65  size:2816521
[libx264 @ 0x55c1be935420] frame P:104040 Avg QP:10.85  size:   470
[libx264 @ 0x55c1be935420] frame B:307293 Avg QP:16.51  size:   318
[libx264 @ 0x55c1be935420] consecutive B-frames:  0.8%  0.0%  0.5% 98.7%
[libx264 @ 0x55c1be935420] mb I  I16..4:  7.3% 54.6% 38.1%
[libx264 @ 0x55c1be935420] mb P  I16..4:  0.0%  0.0%  0.0%  P16..4:  0.2%  0.0%  0.0%  0.0%  0.0%    skip:99.8%
[libx264 @ 0x55c1be935420] mb B  I16..4:  0.0%  0.0%  0.0%  B16..8:  0.0%  0.0%  0.0%  direct: 0.0%  skip:100.0%  L0:49.5% L1:50.5% BI: 0.0%
[libx264 @ 0x55c1be935420] 8x8 transform intra:54.6% inter:97.9%
[libx264 @ 0x55c1be935420] coded y,uvDC,uvAC intra: 98.2% 92.7% 92.2% inter: 0.0% 0.0% 0.0%
[libx264 @ 0x55c1be935420] i16 v,h,dc,p: 17% 12% 36% 35%
[libx264 @ 0x55c1be935420] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 18% 26% 13%  5%  6%  6%  9%  6% 11%
[libx264 @ 0x55c1be935420] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 15% 24% 11%  7%  9%  7% 10%  7% 11%
[libx264 @ 0x55c1be935420] i8c dc,h,v,p: 40% 33% 18% 10%
[libx264 @ 0x55c1be935420] Weighted P-Frames: Y:0.0% UV:0.0%
[libx264 @ 0x55c1be935420] ref P L0: 99.6%  0.0%  0.4%  0.0%
[libx264 @ 0x55c1be935420] ref B L0: 21.9% 78.1%  0.0%
[libx264 @ 0x55c1be935420] ref B L1: 99.5%  0.5%
[libx264 @ 0x55c1be935420] kb/s:6933.00
[aac @ 0x55c1be938aa0] Qavg: 640.546


    



    But the second image is distorted in the video (I can't show you because I don't have enough reputation to post more links).

    



    So I would like to preserve the aspect ratio of each picture : the images shouldn't be distorted. What command should I use for this ?

    



    Thanks in advance.

    


  • How to display live frame rate on top of video using ffmpeg ? [closed]

    2 juin 2021, par walking lime

    I want to display live frame rate over video using ffmpeg.I am using following command to get the frame number.Is it possible to get the frame rate as well ?.Thanks.

    


    ffmpeg -re -stream_loop -1 -i /dev/video0 -c:v libx264 -preset veryfast -tune zerolatency -profile:v baseline -pix_fmt yuv420p -bf 0 -x264-params keyint=30:scenecut=0 -vf "drawtext=fontfile=/usr/share/fonts/truetype/freefont/FreeMonoBold.ttf: text='%{frame_num}': start_number=1: x=(w-tw)/2: y=h-(2*lh): fontcolor=black: fontsize=20: box=1: boxcolor=white: boxborderw=5"   -an -f mpegts udp://localhost:4000?pkt_size=1316