Recherche avancée

Médias (16)

Mot : - Tags -/mp3

Autres articles (44)

  • Publier sur MédiaSpip

    13 juin 2013

    Puis-je poster des contenus à partir d’une tablette Ipad ?
    Oui, si votre Médiaspip installé est à la version 0.2 ou supérieure. Contacter au besoin l’administrateur de votre MédiaSpip pour le savoir

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

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

Sur d’autres sites (7687)

  • Powershell : Start-Job a script, cannot connect to youtube

    16 mai 2016, par Kostas Georgokitsos

    I am a bit new to PS, so please bear with me. I have written a script that starts an ffmpeg proccess, and in an endless loop waits for the process, and restarts it as ffmpeg is a bit shaky. ffmpeg is taking an rtsp stream from a camera and forwards it to youtube.

    # initialization
    $buffer_size = "30720k" # 60 sec * 512kbps
    $ffm = "C:\Users\kostas\Downloads\_software\ffmpeg-20160308-git-5061579-win32-static\bin\ffmpeg.exe"
    $params = "-f lavfi -i aevalsrc=0  -thread_queue_size 512 -i rtsp://$($usr):$($pw)@$($cam_ip):554/mpeg-4/ch1/main//av_stream/ -f flv -vcodec copy -acodec aac -bufsize $($buffer_size) rtmp://a.rtmp.youtube.com/live2/$($youtube_key)"
    $params_bak = $params.Replace('/live2/','/live2/?backup=1/')
    # start stream(s)
    while (1 -eq 1) {
     $err_log = "C:\Users\kostas\Documents\logs\Stream_Error-$(Get-Date -Format dd-MM-yyyy_HH-mm-ss).log"
     $out_log = "C:\Users\kostas\Documents\logs\Stream-$(Get-Date -Format dd-MM-yyyy_HH-mm-ss).log"
     $strm_app = Start-Process $ffm $params -PassThru -WindowStyle Minimized -RedirectStandardError $err_log -RedirectStandardOutput $out_log
     Wait-Process $strm_app.Id
    }

    When I call the script from the powershell prompt directly like .\youtube_cam_1.ps1 all is well, but the powershell prompt locks, obviously.

    When I start like Start-Job -FilePath C:\Users\kostas\Documents\youtube_cam_1.ps1 the job starts allright and I also see the ffmpeg process starting and running, but the youtube channel stays offline. Now to the funny bit : doing Stop-Job does not kill the ffmpeg process, and suddenly ffmpeg can connect to youtube.

    I want to start and run several camera streams (i.e. ffmpeg instances) in the end and need the looping script to somehow go into the background. Is Start-Job the wrong way to do it ?

    What is happening ?

  • 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!
  • Unable to connect to RTSP server ffmpeg

    22 avril 2016, par JSC

    I am trying to stream video from my Android device to my laptop. I am using libstreaming for the RTSP client on my Android device and I am using ffmpeg for the server.

    I am trying to start the server using the following command(I’ve also included the output after running the command)

    ffmpeg -rtsp_flags listen -i rtsp://localhost:3001/test.sdp output.sdp

       ffmpeg version 2.8.6 Copyright (c) 2000-2016 the FFmpeg developers
       built with Apple LLVM version 7.0.2 (clang-700.1.81)
       configuration: --prefix=/usr/local/Cellar/ffmpeg/2.8.6 --enable-shared
       --enable-pthreads --enable-gpl --enable-version3 --enable-hardcoded-tables
       --enable-avresample --cc=clang --host-cflags= --host-ldflags= --enable-opencl
       --enable-libx264 --enable-libmp3lame --enable-libvo-aacenc --enable-libxvid
       --enable-libfaac --enable-nonfree --enable-vda
       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

    However, my Android cannot connect to the server. Using nmap, I see that the port 3001 is closed. What am doing wrong ?