Recherche avancée

Médias (0)

Mot : - Tags -/xmlrpc

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

Autres articles (91)

  • Other interesting software

    13 avril 2011, par

    We don’t claim to be the only ones doing what we do ... and especially not to assert claims to be the best either ... What we do, we just try to do it well and getting better ...
    The following list represents softwares that tend to be more or less as MediaSPIP or that MediaSPIP tries more or less to do the same, whatever ...
    We don’t know them, we didn’t try them, but you can take a peek.
    Videopress
    Website : http://videopress.com/
    License : GNU/GPL v2
    Source code : (...)

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

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

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

  • Speed up start of a stream recording with ffmpeg

    12 mai 2021, 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 ?

    


  • Popen.write - operation on closed file | images to video using FFmpeg

    10 juin 2014, par f.rodrigues

    I’m trying to create a video file from images from my webcam(using SimpleCV), the images are converted to PIL format and then tostring() [rawformat]

    I’m using python subprocess and Popen to create the video using the FFmpeg.

    I can pipe the one image to the FFmpeg and make a video out of it
    But when I try to do a bunch of them I get a error :

    ValueError: I/O operation on closed file

    here’s my code.

    import subprocess as sp
    from SimpleCV import *
    from Image import Image

    FFMPEG_BIN = "ffmpeg.exe"

    img = Camera().getImage().toRGB()


    command = [FFMPEG_BIN, '-y',  # (optional) overwrite output file if it exists
              '-f', 'rawvideo', '-vcodec', 'rawvideo', '-s', '%sx%s'%(img.width,img.height),  # size of one frame
              '-pix_fmt', 'rgb24', '-r', '24',  # frames per second
              '-i', '-',  # The imput comes from a pipe
              '-an',  # Tells FFMPEG not to expect any audio
              '-vcodec', 'libx264rgb',
              'my_output_videofile.mp4']


    pipe = sp.Popen(command, stdin=sp.PIPE)#, stderr=sp.PIPE)


    for n in xrange(10):
       img = Camera().getImage().toRGB().getPIL().tostring()
       pipe.stdin.write(img)


    pipe.terminate()

    It’s wierd because the pipe.terminate() is in the end of the code, and it should close the file right away.

    EDIT :
    Removed the stderr

     ffmpeg version N-63208-gbe1fbc0 Copyright (c) 2000-2014 the FFmpeg developers
     built on May 17 2014 01:30:26 with gcc 4.8.2 (GCC)
     configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-avisynth --enable-bzlib
     --enable-fontconfig --enable-frei0r --enable-gnutls --enable-iconv --enable-libass --enable-libbluray
     --enable-libcaca --enable-libfreetype --enable-libgme --enable-libgsm --enable-libilbc --enable-libmodplug
     --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus
     --enable-librtmp --enable-libschroedinger --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame
     --enable-libvidstab --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx
     --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxavs --enable-libxvid
     --enable-decklink --enable-zlib
     libavutil      52. 83.100 / 52. 83.100
     libavcodec     55. 62.100 / 55. 62.100
     libavformat    55. 38.100 / 55. 38.100
     libavdevice    55. 13.101 / 55. 13.101
     libavfilter     4.  5.100 /  4.  5.100
     libswscale      2.  6.100 /  2.  6.100
     libswresample   0. 19.100 /  0. 19.100
     libpostproc    52.  3.100 / 52.  3.100
    Input #0, rawvideo, from 'pipe:':
     Duration: N/A, start: 0.000000, bitrate: 44236 kb/s
       Stream #0:0: Video: rawvideo (RGB[24] / 0x18424752), rgb24, 320x240, 44236 kb/s, 24 tbr, 24 tbn, 24 tbc
    No pixel format specified, rgb24 for H.264 encoding chosen.
    Use -pix_fmt yuv420p for compatibility with outdated media players.
    [libx264rgb @ 0000000000359de0] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2
    [libx264rgb @ 0000000000359de0] profile High 4:4:4 Predictive, level 1.3, 4:4:4 8-bit
    [libx264rgb @ 0000000000359de0] 264 - core 142 r2431 ac76440 - H.264/MPEG-4 AVC codec - Copyleft 2003-2014 -
    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=24 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
    Output #0, mp4, to 'my_output_videofile.mp4':
     Metadata:
       encoder         : Lavf55.38.100
       Stream #0:0: Video: h264 (libx264rgb) ([33][0][0][0] / 0x0021), rgb24, 320x240, q=-1--1, 12288 tbn, 24 tbc
    Stream mapping:
     Stream #0:0 -> #0:0 (rawvideo -> libx264rgb)
    frame=    7 fps=0.0 q=0.0 size=       0kB time=00:00:00.00 bitrate=N/A