Recherche avancée

Médias (91)

Autres articles (71)

  • Qu’est ce qu’un masque de formulaire

    13 juin 2013, par

    Un masque de formulaire consiste en la personnalisation du formulaire de mise en ligne des médias, rubriques, actualités, éditoriaux et liens vers des sites.
    Chaque formulaire de publication d’objet peut donc être personnalisé.
    Pour accéder à la personnalisation des champs de formulaires, il est nécessaire d’aller dans l’administration de votre MediaSPIP puis de sélectionner "Configuration des masques de formulaires".
    Sélectionnez ensuite le formulaire à modifier en cliquant sur sont type d’objet. (...)

  • MediaSPIP v0.2

    21 juin 2013, par

    MediaSPIP 0.2 is the first MediaSPIP stable release.
    Its official release date is June 21, 2013 and is announced here.
    The zip file provided here only contains the sources of MediaSPIP in its standalone version.
    To get a working installation, you must manually install all-software dependencies on the server.
    If you want to use this archive for an installation in "farm mode", you will also need to proceed to other manual (...)

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

  • Speed up start of a stream recording with ffmpeg

    15 janvier 2014, par neutron

    I try to record a video stream (from the web or a local webcam stream) and save it to a .mp4 / .flv file. I use FFmpeg with the version"N-59696-gc0a33c4".

    The problem isn't the recording of the stream, it is, how log it tooks to start the recording.

    This are the parameters i used to capture the stream (the stream is some random stream I found on the web) :

    ffmpeg.exe -i mmsh://live.camstreams.com/cscamscape?MSWMExt=.asf -r 25 -t 60 C:\temp\video.mp4

    And leads to this output :

    ffmpeg.exe -i mmsh://live.camstreams.com/cscams
    cape?MSWMExt=.asf -r 25 -t 60 C:\temp\video.mp4
    ffmpeg version N-59696-gc0a33c4 Copyright (c) 2000-2014 the FFmpeg developers
     built on Jan  8 2014 22:01:50 with gcc 4.8.2 (GCC)
     configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-av
    isynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enab
    le-iconv --enable-libass --enable-libbluray --enable-libcaca --enable-libfreetyp
    e --enable-libgsm --enable-libilbc --enable-libmodplug --enable-libmp3lame --ena
    ble-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-l
    ibopus --enable-librtmp --enable-libschroedinger --enable-libsoxr --enable-libsp
    eex --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvo-aa
    cenc --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libwavp
    ack --enable-libx264 --enable-libxavs --enable-libxvid --enable-zlib
     libavutil      52. 62.100 / 52. 62.100
     libavcodec     55. 47.100 / 55. 47.100
     libavformat    55. 22.102 / 55. 22.102
     libavdevice    55.  5.102 / 55.  5.102
     libavfilter     4.  0.103 /  4.  0.103
     libswscale      2.  5.101 /  2.  5.101
     libswresample   0. 17.104 /  0. 17.104
     libpostproc    52.  3.100 / 52.  3.100
    [wmv3 @ 0275db40] Extra data: 8 bits left, value: 0
    Input #0, asf, from 'mmsh://live.camstreams.com/cscamscape?MSWMExt=.asf':
     Metadata:
       title           : Live Fish Cam
       WMFSDKNeeded    : 0.0.0.0000
       DeviceConformanceTemplate: SP
       WMFSDKVersion   : 11.0.5721.5275
       IsVBR           : 0
     Duration: N/A, start: 3887858.274000, bitrate: 512 kb/s
       Stream #0:0(eng): Video: wmv3 (Simple) (WMV3 / 0x33564D57), yuv420p, 640x360
    , 512 kb/s, 62.50 tbr, 1k tbn, 1k tbc
    [libx264 @ 0275e400] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX
    [libx264 @ 0275e400] profile High, level 3.0
    [libx264 @ 0275e400] 264 - core 140 r2377 1ca7bb9 - H.264/MPEG-4 AVC codec - Cop
    yleft 2003-2013 - http://www.videolan.org/x264.html - options: cabac=1 ref=3 deb
    lock=1:0:0 analyse=0x3:0x113 me=hex subme=7 psy=1 psy_rd=1.00:0.00 mixed_ref=1 m
    e_range=16 chroma_me=1 trellis=1 8x8dct=1 cqm=0 deadzone=21,11 fast_pskip=1 chro
    ma_qp_offset=-2 threads=12 lookahead_threads=2 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 scene
    cut=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
    [wmv3 @ 0275db40] Extra data: 8 bits left, value: 0
    Output #0, mp4, to 'C:\temp\video.mp4':
     Metadata:
       title           : Live Fish Cam
       WMFSDKNeeded    : 0.0.0.0000
       DeviceConformanceTemplate: SP
       WMFSDKVersion   : 11.0.5721.5275
       IsVBR           : 0
       encoder         : Lavf55.22.102
       Stream #0:0(eng): Video: h264 (libx264) ([33][0][0][0] / 0x0021), yuv420p, 6
    40x360, q=-1--1, 12800 tbn, 25 tbc
    Stream mapping:
     Stream #0:0 -> #0:0 (wmv3 -> libx264)
    Press [q] to stop, [?] for help
    frame=  148 fps=0.0 q=28.0 size=     228kB time=00:00:03.60 bitrate= 518.3kbits/
    frame=  151 fps=117 q=28.0 size=     236kB time=00:00:03.72 bitrate= 519.2kbits/
    frame=  178 fps= 91 q=28.0 size=     298kB time=00:00:04.80 bitrate= 508.3kbits/
    frame=  204 fps= 64 q=28.0 size=     347kB time=00:00:05.84 bitrate= 487.4kbits/
    ...
    ... And so on ...

    The problem now is, that it takes around 6-10 seconds until the recording starts after I entered the command.

    Is there a way to speed up this process ?

  • FFMPEG error while converting flv1 (flv) -> h264 (libx264)

    3 juillet 2016, par Kalivarapu

    I am trying to covert flv format video to h264 codec with mp4 format video, but am facing the following error :

    Command I executed :

    ffmpeg -i input_video.flv -c:v libx264 output.mp4

    Error :
    Error while opening encoder for output stream #0:1 - maybe incorrect parameters such as bit_rate, rate, width or height

    Logs :

    ffmpeg version 2.7.2 Copyright (c) 2000-2015 the FFmpeg developers
     built with Apple LLVM version 6.1.0 (clang-602.0.53) (based on LLVM 3.6.0svn)
     configuration: --prefix=/usr/local/Cellar/ffmpeg/2.7.2 --enable-shared --enable-pthreads --enable-gpl --enable-version3 --enable-hardcoded-tables --enable-avresample --enable-opencl --cc=clang --host-cflags= --host-ldflags= --enable-libx264 --enable-libmp3lame --enable-libvo-aacenc --enable-libxvid --enable-vda
     libavutil      54. 27.100 / 54. 27.100
     libavcodec     56. 41.100 / 56. 41.100
     libavformat    56. 36.100 / 56. 36.100
     libavdevice    56.  4.100 / 56.  4.100
     libavfilter     5. 16.101 /  5. 16.101
     libavresample   2.  1.  0 /  2.  1.  0
     libswscale      3.  1.101 /  3.  1.101
     libswresample   1.  2.100 /  1.  2.100
     libpostproc    53.  3.100 / 53.  3.100
    Input #0, flv, from 'input.flv':
     Metadata:
       encoder         : Lavf53.24.2
     Duration: 00:00:53.32, start: 0.000000, bitrate: 787 kb/s
       Stream #0:0: Video: flv1, yuv420p, 320x240, 500 kb/s, 25 fps, 25 tbr, 1k tbn, 1k tbc
       Stream #0:1: Audio: aac (LC), 48000 Hz, 5.1, fltp, 384 kb/s
    [libx264 @ 0x7ff885000c00] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 AVX2 LZCNT BMI2
    [libx264 @ 0x7ff885000c00] profile High, level 1.3
    [libx264 @ 0x7ff885000c00] 264 - core 144 r2533 c8a773e - H.264/MPEG-4 AVC codec - Copyleft 2003-2015 - 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=23.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00
    [libvo_aacenc @ 0x7ff885001e00] Unable to set encoding parameters
    Output #0, mp4, to 'output1.mp4':
     Metadata:
       encoder         : Lavf53.24.2
       Stream #0:0: Video: h264 (libx264), yuv420p, 320x240, q=-1--1, 25 fps, 25 tbn, 25 tbc
       Metadata:
         encoder         : Lavc56.41.100 libx264
       Stream #0:1: Audio: aac, 0 channels, 128 kb/s
       Metadata:
         encoder         : Lavc56.41.100 libvo_aacenc
    Stream mapping:
     Stream #0:0 -> #0:0 (flv1 (flv) -> h264 (libx264))
     Stream #0:1 -> #0:1 (aac (native) -> aac (libvo_aacenc))
    Error while opening encoder for output stream #0:1 - maybe incorrect parameters such as bit_rate, rate, width or height

    What could be the reason for this ?

  • Using ffmpeg for stream encryption by srtp in windows

    11 avril 2015, par user3248865

    I have been trying to make encrypted stream via ffmpeg and I´ve found srtp support in this library (ffmpeg documentation). Unfortunately, it seems that encryption doesn´t work at all. I´m using the following command to send stream :

    ffmpeg -re -i "output.mpg" -vcodec libx264 -f flv "srtp://192.168.0.100:7777?srtp_out_suite=AES_CM_128_HMAC_SHA1_80&srtp_out_params=00108310518720928b30d38f41149351559761969b71d79f8218a39259a7"

    and this one for stream receiving :

    ffplay "srtp://192.168.0.100:7777?srtp_in_suite=AES_CM_128_HMAC_SHA1_80&srtp_in_params=00108310518720928b30d38f41149351559761969b71d79f8218a39259a7"

    They work good.
    But, If I change the command for ffplay to this one :

    ffplay udp://192.168.0.100:7777

    it works too and I can watch the video. So, it means that encryption for srtp doesn´t work ?

    1. Is the stream encryption by using ffmpeg possible (not only srtp) ?
    2. If so, What am I doing wrong ?

    Thanks in advance.

    An output from ffmpeg -re -i ... command is :

    Input #0, mpeg, from 'outpu.mpg':
    Duration: 00:03:20.01, start: 0.529089, bitrate: 475 kb/s
    Stream #0:0[0x1e0]: Video: mpeg1video, yuv420p(tv), 352x288 [SAR 1:1 DAR 11:
    9], 104857 kb/s, 25 fps, 25 tbr, 90k tbn, 25 tbc
    Stream #0:1[0x1c0]: Audio: mp2, 44100 Hz, stereo, s16p, 64 kb/s
    [libx264 @ 023633e0] using SAR=1/1
    [libx264 @ 023633e0] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX
    [libx264 @ 023633e0] profile High, level 1.3
    [libx264 @ 023633e0] 264 - core 138 r2358 9e941d1 - H.264/MPEG-4 AVC codec - Cop
    yleft 2003-2013 - http://www.videolan.org/x264.html - options: cabac=1 ref=3 deb
    lock=1:0:0 analyse=0x3:0x113 me=hex subme=7 psy=1 psy_rd=1.00:0.00 mixed_ref=1 m
    e_range=16 chroma_me=1 trellis=1 8x8dct=1 cqm=0 deadzone=21,11 fast_pskip=1 chro
    ma_qp_offset=-2 threads=6 lookahead_threads=1 sliced_threads=0 nr=0 decimate=1 i
    nterlaced=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 scenec
    ut=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
    Output #0, flv, to 'srtp://192.168.0.106:7777?srtp_out_suite=AES_CM_128_HMAC_SHA
    1_80&srtp_out_params=00108310518720928b30d38f41149351559761969b71d79f8218a39259a
    7':
     Metadata:
       encoder         : Lavf55.19.100
      Stream #0:0: Video: h264 (libx264) ([7][0][0][0] / 0x0007), yuv420p, 352x288
    [SAR 1:1 DAR 11:9], q=-1--1, 1k tbn, 25 tbc
      Stream #0:1: Audio: mp3 (libmp3lame) ([2][0][0][0] / 0x0002), 44100 Hz, ster
      eo, s16p
    Stream mapping:
     Stream #0:0 -> #0:0 (mpeg1video -> libx264)
     Stream #0:1 -> #0:1 (mp2 -> libmp3lame)
    Press [q] to stop, [?] for help
    frame=   14 fps=0.0 q=0.0 size=       0kB time=00:00:00.13 bitrate=  23.2kbits/s
    frame=   27 fps= 27 q=0.0 size=       0kB time=00:00:00.65 bitrate=   4.7kbits/s
    frame=   40 fps= 26 q=0.0 size=       0kB time=00:00:01.15 bitrate=   2.7kbits/s
    frame=   52 fps= 26 q=28.0 size=       3kB time=00:00:01.67 bitrate=  16.8kbits/
    ...

    Edit :

    I have tried the above ffmpeg command with srtp_out_suite=NmcxMmQ2ZjVnYjEyNmRmMTV2czY1YWR2ZjFhc2Rm, but udp stream is still playing well.