Recherche avancée

Médias (91)

Autres articles (58)

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

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

  • FFserver : cannot connect via rtsp

    27 avril 2016, par newfoundstory

    so im currrently trying to stream my windows desktop using ffmpeg into a raspberry pi running ffserver.
    The client software im using needs to use RTSP, however i cannot connect to the stream no matter what i try.
    I even used VLC in the messages it just says it cannot connect to the stream.
    Any help would be greatly appreciated !
    Im attempting to access the stream with rtsp :// 169.254.70.227 :8544/test.flv, as soon as i do it stops the ffmpeg feed

    FFserver conf

    `RTSPPort 8544
    HTTPPort 8090                      # Port to bind the server to
    HTTPBindAddress 0.0.0.0
    MaxHTTPConnections 2000
    MaxClients 1000
    MaxBandwidth 10000             # Maximum bandwidth per client
                                  # set this high enough to exceed stream bitrate
    CustomLog -                       # Remove this if you want FFserver to daemoni$

    <feed>               # This is the input feed where FFmpeg will send
      File ./feed1.ffm            # video stream.
      FileMaxSize 100000K              # Maximum file size for buffering video
      ACL allow 192 .168.0.8
      ACL allow 192 .168.0.17
      ACL allow 169 .254.70.227
      ACL allow 169 .254.9.29
      ACL allow 169 .254.165.231
      ACL allow 10 .14.2.197
      ACL allow 192 .168.0.13
      ACL allow 10 .14.2.197
      ACL allow 192.16 8.0.13
      ACL allow 192.1 68.1.3
      ACL allow 192. 168.1.4
      ACL allow 192 .168.1.2
    </feed>

    <stream>                       # Output stream URL definition
      Format rtp
      Feed feed1.ffm
    NoAudio

      # Video settings
      VideoCodec libx264
      VideoSize 720x576           # Video resolution
    VideoBufferSize 2000

    VideoFrameRate 30           # Video FPS
       # Parameters passed to encoder
      AVOptionVideo qmin 10
      AVOptionVideo qmax 42

      PreRoll 15
      StartSendOnKey
    MulticastAddress 224 .124.0.1
    MulticastPort 5000
    MulticastTTL 16
      VideoBitRate 450            # Video bitrate
    </stream>

    <stream>                    # Server status URL
      Format status
      # Only allow local people to get the status
      ACL allow localhost
     # Only allow local people to get the status
      ACL allow localhost
      ACL allow 192.168. 0.0 192.168. 255.255
    </stream>

    <redirect html="html">    # Just an URL redirect for index
      # Redirect index.html to the appropriate site
      URL http   ://www.  ffmpeg .org/
    </redirect>`

    FFmpeg feed

    ffmpeg -rtbufsize 2100M -f dshow -r 29.970 -i video=screen-capture-recorder -c video=screen-capture-recorder.flv http  ://  169 .254.70.227:8090/ feed1.ffm

    FFserver output

     configuration: --arch=armel --target-os=linux --enable-gpl --enable-libx264 --enable-nonfree
     libavutil      55. 22.101 / 55. 22.101
     libavcodec     57. 35.100 / 57. 35.100
     libavformat    57. 34.103 / 57. 34.103
     libavdevice    57.  0.101 / 57.  0.101
     libavfilter     6. 44.100 /  6. 44.100
     libswscale      4.  1.100 /  4.  1.100
     libswresample   2.  0.101 /  2.  0.101
     libpostproc    54.  0.100 / 54.  0.100
    /etc/ffserver.conf:48: Setting default value for video bit rate tolerance = 112500. Use NoDefaults to disable it.
    /etc/ffserver.conf:48: Setting default value for video rate control equation = tex^qComp. Use NoDefaults to disable it.
    /etc/ffserver.conf:48: Setting default value for video max rate = 20744848. Use NoDefaults to disable it.
    Wed Apr 27 10:33:46 2016 FFserver started.
    Wed Apr 27 10:33:46 2016 224.124.0.1:5000 - - "PLAY test.flv/streamid=0 RTP/MCAST"
    Wed Apr 27 10:33:46 2016 [rtp @ 0x13d4660]Using AVStream.codec to pass codec parameters to muxers is deprecated, use AVStream.codecpar instead.
    Wed Apr 27 10:33:49 2016 169.254.165.231 - - [GET] "/feed1. ffm HTTP/1.1" 200 4175

    FFMpeg output

    Stream mapping:
     Stream #0:0 -> #0:0 (rawvideo (native) -> h264 (libx264))
    Press [q] to stop, [?] for help
    [swscaler @ 000000000252f5e0] Warning: data is not aligned! This can lead to a speedloss
    av_interleaved_write_frame(): Unknown errortime=00:00:05.00 bitrate= 249.0kbits/s speed=0.393x
    Error writing trailer of http:  //169. 254.70.227:8090/feed1.ffm: Error number -10053 occurredframe=  204 fps= 15 q=26.0 Lsize=     164kB time=00:00:05.03 bitrate= 266.9kbits/s speed=0.365x
    video:155kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 5.475512%
    [libx264 @ 00000000025187e0] frame I:1     Avg QP:34.24  size: 32151
    [libx264 @ 00000000025187e0] frame P:59    Avg QP:27.14  size:  1807
    [libx264 @ 00000000025187e0] frame B:144   Avg QP:32.16  size:   168
    [libx264 @ 00000000025187e0] consecutive B-frames:  4.9%  2.0%  2.9% 90.2%
    [libx264 @ 00000000025187e0] mb I  I16..4: 26.0% 23.1% 50.9%
    [libx264 @ 00000000025187e0] mb P  I16..4:  1.9%  1.6%  1.1%  P16..4:  4.3%  0.6%  0.4%  0.0%  0.0%    skip:90.2%
    [libx264 @ 00000000025187e0] mb B  I16..4:  0.2%  0.1%  0.1%  B16..8:  3.1%  0.1%  0.0%  direct: 0.1%  skip:96.3%  L0:26.0% L1:73.5% BI: 0.5%
    [libx264 @ 00000000025187e0] final ratefactor: 24.13
    [libx264 @ 00000000025187e0] 8x8 transform intra:31.8% inter:47.1%
    [libx264 @ 00000000025187e0] coded y,u,v intra: 28.1% 8.2% 6.3% inter: 0.6% 0.2% 0.1%
    [libx264 @ 00000000025187e0] i16 v,h,dc,p: 30% 63%  6%  1%
    [libx264 @ 00000000025187e0] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 16% 16% 63%  1%  0%  0%  1%  0%  3%
    [libx264 @ 00000000025187e0] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 28% 39% 15%  2%  2%  3%  4%  3%  4%
    [libx264 @ 00000000025187e0] Weighted P-Frames: Y:0.0% UV:0.0%
    [libx264 @ 00000000025187e0] ref P L0: 66.3% 13.1% 16.9%  3.6%
    [libx264 @ 00000000025187e0] ref B L0: 66.6% 29.7%  3.8%
    [libx264 @ 00000000025187e0] ref B L1: 91.7%  8.3%
    [libx264 @ 00000000025187e0] kb/s:191.78
    Conversion failed!
  • ffmpeg mpegts muxer to dvb receiver

    15 avril 2022, par Illikkal

    transport stream over ip generated by ffmpeg is not detected by DVB Receiver.Receiver status is PCR not detected.I am using the following command

    &#xA;

    ffmpeg -re -i testvideo.mp4 -map 0:v:0 -map 0:a:0 -pix_fmt yuv420p -r 25 -s 720x576 -aspect 4:3 -qmin 2 -qmax 35 -b:v 1000k -minrate 1000k -maxrate 1000k -bufsize 500k -vcodec libx264 -acodec aac -ab 128k -ac 2 -f mpegts -mpegts_original_network_id 1 -mpegts_transport_stream_id 1 -mpegts_service_id 1 -mpegts_pmt_start_pid 4096 -streamid 0:289 -streamid 1:337 -program title="service1":st=0:st=1 -metadata service_provider="MYCALL" -muxrate 2000k -metadata service_name="My Station ID" -y udp ://239.0.0.1:5000 ?pkt_size=1316&localaddr=192.168.100.114

    &#xA;

  • FFMPEG- Could not write header for output file #0 (incorrect codec parameters ?) : Operation not permitted Error initializing output stream 0:2 —

    30 septembre 2021, par Danny

    Hello guys I am trying to create a web-dash manifest for VOD with ffmpeg, but I am getting this error Could not write header for output file #0 (incorrect codec parameters ?): Operation not permitted Error initializing output stream 0:2 -- while using vp9 codec and doesn't understand the error and how to resolve it. Can someone help me out ? If I use vp8 instead of vp9 codec, I get the same error, but the ffmpeg log doesn't show any error.

    &#xA;

    subprocess.call([&#xA;                FFMPEG_PATH,&#xA;                "-f", "webm_dash_manifest", "-i", 480p_path,&#xA;                "-f", "webm_dash_manifest", "-i", 720p_path,&#xA;                "-f", "webm_dash_manifest", "-i", audio_path,&#xA;                "-c", "copy", "-map", "0", "-map", "1", "-map", "2",&#xA;                "-adaptation_sets", "id=0, streams=0,1, id=1, streams=2",&#xA;                "-f", "webm_dash_manifest", dash_path&#xA;                ])&#xA;

    &#xA;

    Thanks in advance

    &#xA;

    UPDATE :&#xA;This is from the ffmpeg log.

    &#xA;

    ffmpeg version 2021-09-27-git-b786bc7433-full_build-www.gyan.dev &#xA;Copyright (c) 2000-2021 the FFmpeg developers&#xA;  built with gcc 10.3.0 (Rev5, Built by MSYS2 project)&#xA;  configuration: --enable-gpl --enable-version3 --enable-static --disable-w32threads --disable-autodetect --enable-fontconfig --enable-iconv --enable-gnutls --enable-libxml2 --enable-gmp --enable-lzma --enable-libsnappy --enable-zlib --enable-librist --enable-libsrt --enable-libssh --enable-libzmq --enable-avisynth --enable-libbluray --enable-libcaca --enable-sdl2 --enable-libdav1d --enable-libzvbi --enable-librav1e --enable-libsvtav1 --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxvid --enable-libaom --enable-libopenjpeg --enable-libvpx --enable-libass --enable-frei0r --enable-libfreetype --enable-libfribidi --enable-libvidstab --enable-libvmaf --enable-libzimg --enable-amf --enable-cuda-llvm --enable-cuvid --enable-ffnvcodec --enable-nvdec --enable-nvenc --enable-d3d11va --enable-dxva2 --enable-libmfx --enable-libglslang --enable-vulkan --enable-opencl --enable-libcdio --enable-libgme --enable-libmodplug --enable-libopenmpt --enable-libopencore-amrwb --enable-libmp3lame --enable-libshine --enable-libtheora --enable-libtwolame --enable-libvo-amrwbenc --enable-libilbc --enable-libgsm --enable-libopencore-amrnb --enable-libopus --enable-libspeex --enable-libvorbis --enable-ladspa --enable-libbs2b --enable-libflite --enable-libmysofa --enable-librubberband --enable-libsoxr --enable-chromaprint&#xA;  libavutil      57.  7.100 / 57.  7.100&#xA;  libavcodec     59.  9.101 / 59.  9.101&#xA;  libavformat    59.  5.100 / 59.  5.100&#xA;  libavdevice    59.  0.101 / 59.  0.101&#xA;  libavfilter     8.  9.100 /  8.  9.100&#xA;  libswscale      6.  1.100 /  6.  1.100&#xA;  libswresample   4.  0.100 /  4.  0.100&#xA;  libpostproc    56.  0.100 / 56.  0.100&#xA;Trailing option(s) found in the command: may be ignored.&#xA;[webm_dash_manifest @ 000002242a67e500] Could not find codec parameters for stream 0 (Video: vp9, none(tv, bt709, progressive), 854x480): unspecified pixel format&#xA;Consider increasing the value for the &#x27;analyzeduration&#x27; (0) and &#x27;probesize&#x27; (5000000) options&#xA;Input #0, webm_dash_manifest, from &#x27;480p.webm&#x27;:&#xA;  Metadata:&#xA;    HANDLER         : Created by Tester&#xA;    MAJOR_BRAND     : isom&#xA;    MINOR_VERSION   : 512&#xA;    COMPATIBLE_BRANDS: isomiso2avc1mp41&#xA;    HW              : 1&#xA;                    :&#xA;    BITRATE         : 4000000&#xA;                    :&#xA;    COMMENT         : vid:v09044240000bq2bmhglths5sm54mgk0&#xA;    COPYRIGHT       : 638e55167a0287a903e7b6895ed5d02e&#xA;    MAXRATE         : 15000000&#xA;                    :&#xA;    TE_IS_REENCODE  : 1&#xA;                    :&#xA;    ENCODER         : Lavf59.2.101&#xA;  Duration: 00:00:20.17, bitrate: 907 kb/s&#xA;  Stream #0:0: Video: vp9, none(tv, bt709, progressive), 854x480, SAR 1:1 DAR 427:240, 30 fps, 30 tbr, 1k tbn (default)&#xA;    Metadata:&#xA;      HANDLER_NAME    : VideoHandler&#xA;      VENDOR_ID       : [0][0][0][0]&#xA;      ENCODER         : Lavc59.1.100 libvpx-vp9&#xA;      DURATION        : 00:00:20.166000000&#xA;      webm_dash_manifest_duration: 20166&#xA;      webm_dash_manifest_initialization_range: 1008&#xA;      webm_dash_manifest_file_name: 480p.webm&#xA;      webm_dash_manifest_track_number: 1&#xA;      webm_dash_manifest_cues_start: 2286344&#xA;      webm_dash_manifest_cues_end: 2286441&#xA;      webm_dash_manifest_bandwidth: 862822&#xA;      webm_dash_manifest_cluster_keyframe: 1&#xA;      webm_dash_manifest_cue_timestamps: 0,5000,10000,15000,20000&#xA;[webm_dash_manifest @ 000002242a69b840] Could not find codec parameters for stream 0 (Video: vp9, none(tv, bt709, progressive), 1280x720): unspecified pixel format&#xA;Consider increasing the value for the &#x27;analyzeduration&#x27; (0) and &#x27;probesize&#x27; (5000000) options&#xA;Input #1, webm_dash_manifest, from &#x27;720p.webm&#x27;:&#xA;  Metadata:&#xA;    HANDLER         : Created by Tester&#xA;    MAJOR_BRAND     : isom&#xA;    MINOR_VERSION   : 512&#xA;    COMPATIBLE_BRANDS: isomiso2avc1mp41&#xA;    HW              : 1&#xA;                    :&#xA;    BITRATE         : 4000000&#xA;                    :&#xA;    COMMENT         : vid:v09044240000bq2bmhglths5sm54mgk0&#xA;    COPYRIGHT       : 638e55167a0287a903e7b6895ed5d02e&#xA;    MAXRATE         : 15000000&#xA;                    :&#xA;    TE_IS_REENCODE  : 1&#xA;                    :&#xA;    ENCODER         : Lavf59.2.101&#xA;  Duration: 00:00:20.17, bitrate: 1548 kb/s&#xA;  Stream #1:0: Video: vp9, none(tv, bt709, progressive), 1280x720, SAR 1:1 DAR 16:9, 30 fps, 30 tbr, 1k tbn (default)&#xA;    Metadata:&#xA;      HANDLER_NAME    : VideoHandler&#xA;      VENDOR_ID       : [0][0][0][0]&#xA;      ENCODER         : Lavc59.1.100 libvpx-vp9&#xA;      DURATION        : 00:00:20.166000000&#xA;      webm_dash_manifest_duration: 20166&#xA;      webm_dash_manifest_initialization_range: 1008&#xA;      webm_dash_manifest_file_name: 720p.webm&#xA;      webm_dash_manifest_track_number: 1&#xA;      webm_dash_manifest_cues_start: 3903085&#xA;      webm_dash_manifest_cues_end: 3903182&#xA;      webm_dash_manifest_bandwidth: 1473835&#xA;      webm_dash_manifest_cluster_keyframe: 1&#xA;      webm_dash_manifest_cue_timestamps: 0,5000,10000,15000,20000&#xA;Input #2, webm_dash_manifest, from &#x27;audio.webm&#x27;:&#xA;  Metadata:&#xA;    HANDLER         : Created by Tester&#xA;    MAJOR_BRAND     : isom&#xA;    MINOR_VERSION   : 512&#xA;    COMPATIBLE_BRANDS: isomiso2avc1mp41&#xA;    HW              : 1&#xA;                    :&#xA;    BITRATE         : 4000000&#xA;                    :&#xA;    COMMENT         : vid:v09044240000bq2bmhglths5sm54mgk0&#xA;    COPYRIGHT       : 638e55167a0287a903e7b6895ed5d02e&#xA;    MAXRATE         : 15000000&#xA;                    :&#xA;    TE_IS_REENCODE  : 1&#xA;                    :&#xA;    ENCODER         : Lavf59.2.101&#xA;  Duration: 00:00:20.16, bitrate: 118 kb/s&#xA;  Stream #2:0: Audio: vorbis, 44100 Hz, stereo, fltp (default)&#xA;    Metadata:&#xA;      HANDLER_NAME    : SoundHandler&#xA;      VENDOR_ID       : [0][0][0][0]&#xA;      ENCODER         : Lavc59.1.100 libvorbis&#xA;      DURATION        : 00:00:20.158000000&#xA;      webm_dash_manifest_duration: 20158&#xA;      webm_dash_manifest_initialization_range: 5244&#xA;      webm_dash_manifest_file_name: audio.webm&#xA;      webm_dash_manifest_track_number: 1&#xA;      webm_dash_manifest_cues_start: 298527&#xA;      webm_dash_manifest_cues_end: 298624&#xA;      webm_dash_manifest_bandwidth: 110530&#xA;      webm_dash_manifest_cluster_keyframe: 1&#xA;      webm_dash_manifest_cue_timestamps: 0,4994,9983,14978,19971&#xA;At least one output file must be specified&#xA;

    &#xA;

    The command for converting videos and audio to specific resolutions run without issues.

    &#xA;

    FFMPEG command directly run in cli.

    &#xA;

    ffmpeg -f webm_dash_manifest -i 480p.webm -f webm_dash_manifest -i 720p.webm -f webm_dash_manifest -i audio.webm -c copy -map 0 -map 1 -map 2 -f webm_dash_manifest -adaptation_sets "id=0,streams=0,1 id=1,streams=2 my_manifest.mpd&#xA;

    &#xA;