Recherche avancée

Médias (0)

Mot : - Tags -/configuration

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

Autres articles (53)

  • Des sites réalisés avec MediaSPIP

    2 mai 2011, par

    Cette page présente quelques-uns des sites fonctionnant sous MediaSPIP.
    Vous pouvez bien entendu ajouter le votre grâce au formulaire en bas de page.

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

Sur d’autres sites (7947)

  • ffmpeg command with action subprocess

    1er juillet 2018, par MathJunkiey

    I want to run this command in a python script

    cmd = 'ffmpeg -ss ' + start_time + ' -i remove_takeoff.mp4 -filter_complex "[0]trim=0,setpts=PTS-STARTPTS[b];[b][0]overlay=shortest=1" -shortest -c:a trimmed_takeoff.mp4'

    I’m using the following code snippet

    import subprocess
    import shlex

    cmd = # the command
    suprocess.call(shlex.split(cmd))

    I’m getting the following error

    Trailing options were found on the commandline.

    The above error occurring because the shlex.split command is converting the double quotes of the part into single quote. How to avoid this from happening. Can anyone suggest me a solutions for this problem.

    Check the full error trace below.

    ffmpeg version 3.4.2 Copyright (c) 2000-2018 the FFmpeg developers
     built with gcc 4.8.2 (GCC) 20140120 (Red Hat 4.8.2-15)
     configuration: --prefix=/home/vkv/anaconda3
     libavutil      55. 78.100 / 55. 78.100
     libavcodec     57.107.100 / 57.107.100
     libavformat    57. 83.100 / 57. 83.100
     libavdevice    57. 10.100 / 57. 10.100
     libavfilter     6.107.100 /  6.107.100
     libavresample   3.  7.  0 /  3.  7.  0
     libswscale      4.  8.100 /  4.  8.100
     libswresample   2.  9.100 /  2.  9.100
     libpostproc    54.  7.100 / 54.  7.100
    Trailing options were found on the commandline.
    Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'remove_takeoff.mp4':
     Metadata:
       major_brand     : isom
       minor_version   : 512
       compatible_brands: isomiso2avc1mp41
       encoder         : Lavf57.67.100
     Duration: 00:00:14.00, start: 0.000000, bitrate: 15883 kb/s
       Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 1920x1080 [SAR 1:1 DAR 16:9], 15881 kb/s, 20 fps, 20 tbr, 10240 tbn, 40 tbc (default)
       Metadata:
         handler_name    : VideoHandler
    Filter overlay has an unconnected output
  • ffmpeg hls video recording timing information is inaccurate

    28 juin 2018, par Haris

    I am recording the rtsp stream in HLS format which is working fine with below command.

    ~/bin/ffmpeg -i rtsp://10.0.7.39:554/media/live/1/1 -c:a aac -c:v copy -hls_list_size 65535 -hls_time 2 live.m3u8

    But when I check the duration of each ts file with live.m3u8 file content the value is not accurate.

    Here is the live.m3u8

    #EXTM3U
    #EXT-X-VERSION:3
    #EXT-X-TARGETDURATION:2
    #EXT-X-MEDIA-SEQUENCE:0
    #EXTINF:2.000000,
    live0.ts
    #EXTINF:2.000000,
    live1.ts
    #EXTINF:1.200000,
    live2.ts
    #EXTINF:2.500000,
    live3.ts
    #EXTINF:2.000000,
    live4.ts
    #EXTINF:2.600000,
    live5.ts
    #EXTINF:1.700000,
    live6.ts
    #EXT-X-ENDLIST

    And when I check the timing information of the ts file live2.ts using the command,

     ~/bin/ffprobe -i live2.ts -show_entries format=duration -v quiet -of csv="p=0"

    I am getting the value 2.136000 where as in m3u8 file it is 1.20000.

    I have build the latest FFMPEG based on official guild https://trac.ffmpeg.org/wiki/CompilationGuide/Ubuntu.

    OS : Ubuntu 12.04

    ffmpeg Version

    $~/bin//ffmpeg -version


    ffmpeg version N-91369-g4ac88ba Copyright (c) 2000-2018 the FFmpeg developers
    built with gcc 4.8 (Ubuntu 4.8.1-2ubuntu1~12.04)
    configuration: --prefix=/home/haris/ffmpeg_build --pkg-config-flags=--static --extra-cflags=-I/home/haris/ffmpeg_build/include --extra-ldflags=-L/home/haris/ffmpeg_build/lib --extra-libs='-lpthread -lm' --bindir=/home/haris/bin --enable-gpl --enable-libaom --enable-libass --enable-libfdk-aac --enable-libfreetype --enable-libmp3lame --enable-libopus --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libx265 --enable-nonfree
    libavutil      56. 18.102 / 56. 18.102
    libavcodec     58. 20.104 / 58. 20.104
    libavformat    58. 17.101 / 58. 17.101
    libavdevice    58.  4.101 / 58.  4.101
    libavfilter     7. 25.100 /  7. 25.100
    libswscale      5.  2.100 /  5.  2.100
    libswresample   3.  2.100 /  3.  2.100
    libpostproc    55.  2.100 / 55.  2.100

    Note

    If I tested the same command in Ubuntu 16.04 where ffmpeg installed with apt-get every thing works fine.

    Here is the ffmpeg details

    $ ~/bin/ffmpeg -version
    ffmpeg version 2.8.14-0ubuntu0.16.04.1 Copyright (c) 2000-2018 the FFmpeg developers
    built with gcc 5.4.0 (Ubuntu 5.4.0-6ubuntu1~16.04.9) 20160609
    configuration: --prefix=/usr --extra-version=0ubuntu0.16.04.1 --build-suffix=-ffmpeg --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --cc=cc --cxx=g++ --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
    libavutil      54. 31.100 / 54. 31.100
    libavcodec     56. 60.100 / 56. 60.100
    libavformat    56. 40.101 / 56. 40.101
    libavdevice    56.  4.100 / 56.  4.100
    libavfilter     5. 40.101 /  5. 40.101
    libavresample   2.  1.  0 /  2.  1.  0
    libswscale      3.  1.101 /  3.  1.101
    libswresample   1.  2.101 /  1.  2.101
    libpostproc    53.  3.100 / 53.  3.100

    What could be the cause, any help will be appreciated.

  • Problems writing to pipe in ffmpeg

    28 juin 2018, par Mikkel Bachmann

    I have written a stream server that utilizes FFMPEG for transcoding. [StreamServer2 v.1.5]

    The way it works is that i have thru a control channel tell a DVR to open a stream, when the stream is open the DVR will respond with a sdp file- or the info for the sdp file.
    This is working when i run StreamServer2 on my windows 10 computer, byt when i run it on my 2016 server, i get an error saying : Output file #0 does not contain any stream

    I works on my Windows 10 computer, also I have an old version of StreamServer2 from before we created the control channel ; that one is opning a RTSP stream as you normally will do, bu calling the rtsp url, and that is currently running live on an server 2008R2 environment.

    The reason that we did change the way of getting a stream is that we have a new system where the DVRs IPAddress is dynamic and unpredictable.

    So i hope that somebody can help me find out why it does not work on Windows Server 2016

    The FFMPG Report file

    ffmpeg started on 2018-06-27 at 13:06:51
    Report written to "ffmpeg-20180627-130651.log"
    Command line:
    "E:\\r2pPrograms\\StreamServer2\\ffmpeg.exe" -stdin -y -loglevel info -report -protocol_whitelist file,udp,rtp -i 8936021605650268160_37.sdp -f mpeg1video -g 52 -movflags frag_keyframe+empty_moov -b:v 64k -q 5 -an -
    ffmpeg version N-91024-g293a6e8332 Copyright (c) 2000-2018 the FFmpeg developers
     built with gcc 7.3.0 (GCC)
     configuration: --enable-gpl --enable-version3 --enable-sdl2 --enable-bzlib --enable-fontconfig --enable-gnutls --enable-iconv --enable-libass --enable-libbluray --enable-libfreetype --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-libshine --enable-libsnappy --enable-libsoxr --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-libvorbis --enable-libvo-amrwbenc --enable-libmysofa --enable-libspeex --enable-libxvid --enable-libaom --enable-libmfx --enable-amf --enable-ffnvcodec --enable-cuvid --enable-d3d11va --enable-nvenc --enable-nvdec --enable-dxva2 --enable-avisynth
     libavutil      56. 18.100 / 56. 18.100
     libavcodec     58. 19.101 / 58. 19.101
     libavformat    58. 13.102 / 58. 13.102
     libavdevice    58.  4.100 / 58.  4.100
     libavfilter     7. 21.100 /  7. 21.100
     libswscale      5.  2.100 /  5.  2.100
     libswresample   3.  2.100 /  3.  2.100
     libpostproc    55.  2.100 / 55.  2.100
    Splitting the commandline.
    Reading option '-stdin' ... matched as option 'stdin' (enable or disable interaction on standard input) with argument '1'.
    Reading option '-y' ... matched as option 'y' (overwrite output files) with argument '1'.
    Reading option '-loglevel' ... matched as option 'loglevel' (set logging level) with argument 'info'.
    Reading option '-report' ... matched as option 'report' (generate a report) with argument '1'.
    Reading option '-protocol_whitelist' ... matched as AVOption 'protocol_whitelist' with argument 'file,udp,rtp'.
    Reading option '-i' ... matched as input url with argument '8936021605650268160_37.sdp'.
    Reading option '-f' ... matched as option 'f' (force format) with argument 'mpeg1video'.
    Reading option '-g' ... matched as AVOption 'g' with argument '52'.
    Reading option '-movflags' ... matched as AVOption 'movflags' with argument 'frag_keyframe+empty_moov'.
    Reading option '-b:v' ... matched as option 'b' (video bitrate (please use -b:v)) with argument '64k'.
    Reading option '-q' ... matched as option 'q' (use fixed quality scale (VBR)) with argument '5'.
    Reading option '-an' ... matched as option 'an' (disable audio) with argument '1'.
    Reading option '-' ... matched as output url.
    Finished splitting the commandline.
    Parsing a group of options: global .
    Applying option stdin (enable or disable interaction on standard input) with argument 1.
    Applying option y (overwrite output files) with argument 1.
    Applying option loglevel (set logging level) with argument info.
    Applying option report (generate a report) with argument 1.
    Successfully parsed a group of options.
    Parsing a group of options: input url 8936021605650268160_37.sdp.
    Successfully parsed a group of options.
    Opening an input file: 8936021605650268160_37.sdp.
    [NULL @ 000001484256c1c0] Opening '8936021605650268160_37.sdp' for reading
    [sdp @ 000001484256c1c0] Format sdp probed with size=2048 and score=50
    [sdp @ 000001484256c1c0] video codec set to: h264
    [udp @ 0000014842572700] 'circular_buffer_size' option was set but it is not supported on this build (pthread support is required)
    [udp @ 0000014842572700] end receive buffer size reported is 65536
    [udp @ 000001484258f140] 'circular_buffer_size' option was set but it is not supported on this build (pthread support is required)
    [udp @ 000001484258f140] end receive buffer size reported is 65536
    [sdp @ 000001484256c1c0] setting jitter buffer size to 500
    [sdp @ 000001484256c1c0] Before avformat_find_stream_info() pos: 152 bytes read:152 seeks:0 nb_streams:1
    [sdp @ 000001484256c1c0] Could not find codec parameters for stream 0 (Video: h264, none): unspecified size
    Consider increasing the value for the 'analyzeduration' and 'probesize' options
    [sdp @ 000001484256c1c0] After avformat_find_stream_info() pos: 152 bytes read:152 seeks:0 frames:0
    Input #0, sdp, from '8936021605650268160_37.sdp':
     Duration: N/A, bitrate: N/A
       Stream #0:0, 0, 1/90000: Video: h264, none, 90k tbr, 90k tbn, 180k tbc
    Successfully opened the file.
    Parsing a group of options: output url -.
    Applying option f (force format) with argument mpeg1video.
    Applying option b:v (video bitrate (please use -b:v)) with argument 64k.
    Applying option q (use fixed quality scale (VBR)) with argument 5.
    Applying option an (disable audio) with argument 1.
    Successfully parsed a group of options.
    Opening an output file: -.
    Output #0, mpeg1video, to 'pipe:':
    Output file #0 does not contain any stream
    [AVIOContext @ 0000014842574b80] Statistics: 152 bytes read, 0 seeks