Recherche avancée

Médias (0)

Mot : - Tags -/tags

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

Autres articles (103)

  • Les tâches Cron régulières de la ferme

    1er décembre 2010, par

    La gestion de la ferme passe par l’exécution à intervalle régulier de plusieurs tâches répétitives dites Cron.
    Le super Cron (gestion_mutu_super_cron)
    Cette tâche, planifiée chaque minute, a pour simple effet d’appeler le Cron de l’ensemble des instances de la mutualisation régulièrement. Couplée avec un Cron système sur le site central de la mutualisation, cela permet de simplement générer des visites régulières sur les différents sites et éviter que les tâches des sites peu visités soient trop (...)

  • Emballe médias : à quoi cela sert ?

    4 février 2011, par

    Ce plugin vise à gérer des sites de mise en ligne de documents de tous types.
    Il crée des "médias", à savoir : un "média" est un article au sens SPIP créé automatiquement lors du téléversement d’un document qu’il soit audio, vidéo, image ou textuel ; un seul document ne peut être lié à un article dit "média" ;

  • Soumettre bugs et patchs

    10 avril 2011

    Un logiciel n’est malheureusement jamais parfait...
    Si vous pensez avoir mis la main sur un bug, reportez le dans notre système de tickets en prenant bien soin de nous remonter certaines informations pertinentes : le type de navigateur et sa version exacte avec lequel vous avez l’anomalie ; une explication la plus précise possible du problème rencontré ; si possibles les étapes pour reproduire le problème ; un lien vers le site / la page en question ;
    Si vous pensez avoir résolu vous même le bug (...)

Sur d’autres sites (6798)

  • Stream video content through Web API 2

    12 février 2016, par FaNIX

    I’m in the process of working out what the best way is going to be to do the following :

    I have a bunch of CCTV footage files (MP4 files, ranging from 4MB-50MB in size), which I want to make available through a web portal. My first thought was to stream the file through Web API, so I found the link below :

    http://www.strathweb.com/2013/01/asynchronously-streaming-video-with-asp-net-web-api/

    After implementing a sample project, I realised that the example was based on Web API 1, and not Web API 2.1, which is what I’m using. After doing some more research, I got the code to compile with WebAPI 2.1. I then realised that if I want to do streaming I cannot use MP4 files, there is a fair amount of technical detail behind this, so here is the thread :

    Best approach to real time http streaming to HTML5 video client

    It seems for this to work I need to encode my MP4 files to something like WebM, but that is going to take too much time. Icecast (http://icecast.org/), which is a streaming server, but I haven’t tried it out yet, again not sure if this is what I need to do.

    Now that I think of it, I actually don’t need live streaming, I just need to allow the client to play the video file through their browser, perhaps using HTML5 video element ? The thing is, my application needs to work on IOS as well, so I reckon that means I cant even encode my MP4 to FLV and just use flash.

    All I really need is to have all my video clips as thumbnails on a web page, and if the client clicks on one, it begins to play ASAP, without having to download the entire file. Think of the "Watch Trailer" feature on imdb.com. Simply just play a video file, thats really what I want. I don’t need LIVE streaming, which is what I think WebM is for ? Again, not sure.

  • FFprobe reading incorrect resolution value despite players rendering it correctly

    24 juillet 2015, par Boehmi

    I’m creating a video from a stream with the help of FFMPEG and I also use FFPROBE to gather information for use on a status page like resolution, codecs et cetera.

    When FFProbe parses my video for information, I get a resolution value of 544x576 (almost a square !), but an aspect ratio of 16:9.

    These values are consistent on both the input stream and my saved video.

    When I watch the video in the standard HTML5 Player, VLC or FFPLAY however, I get a video with the proportions of 16:9 and a resolution (measured using an image editing program) of 1024x576 that does look native and not stretched in any way.

    Even if I re-encode the video using slightly different codecs, this incorrect resolution value persists, even though every player I use displays it correctly.

    This is slightly inconvenient because I am relying on getting the correct resolution value from the video for further processing.

    I’m also using a recent FFMPEG+FFPROBE version that was compiled on the 15th of July.

    Is this a bug within FFMPEG or is there anything I’m doing wrong ?

    Used command lines :

    FFMPEG :

    ffmpeg -i source -loglevel debug -vcodec copy -acodec copy -bsf:a aac_adtstoasc -movflags +faststart -t 360 -y video.mp4

    FFPROBE (I parse the output of this directly and save the values) :

    ffprobe -i source -show_format -show_streams

    FFProbe output :

    width=544
    height=576
    coded_width=544
    coded_height=576
    has_b_frames=2
    sample_aspect_ratio=32:17
    display_aspect_ratio=16:9

    I can see that the sample aspect ratio is different from the display aspect ratio, but how come the video looks proper in 16:9 when it’s supposedly encoded at a near square resolution ?

  • Stream to Azure Media Service from ffmpeg, stream can not be played

    24 juillet 2015, par Simon

    i try to send a stream from my RaspberryPI with debian wheezy to the AzureMediaService.
    I followed the instructions of this nice post.
    http://gtrifonov.com/2015/07/02/streaming-live-video-from-raspberrypi-to-azure-media-services/

    After a lot of trouble with the ffmpeg and libx264 builds i think i have it working now, to stream to the rtmp urls.

    INGESTURI="rtmp://office-klokklokmediastream.channel.mediaservices.windows.net:1935/live/3e541bc149754ebd975b95ec3583c949/mystream1"
    ffmpeg -framerate 30 -r 30 -s 640x480 -i /dev/video0 -vcodec libx264 -preset ultrafast -acodec libfaac -ab 48k -b:v 500k -maxrate 500k -bufsize 500k -r 30 -g 60 -keyint_min 60 -sc_threshold 0 -f flv $INGESTURI

    But when i try to watch the link in azure portal publish link or with the azure amsmediaplayer it tells me (i have reseted the channel already) :

    "The video could not be loaded, either because the server or network failed or because the format is not supported."

    The public stream url is :

    http://klokklokmediastream.streaming.mediaservices.windows.net/30c3920e-420a-4d33-8938-e79d0db240ff/c9fd3479-0d4b-4643-a3f9-5fd5831985d0.ism/Manifest

    In the linux shell i see the following output while streaming, looks for me as send stream is working :

    "root@raspberrypi:/home/pi/klokklok# ./azure_ffmpeg
    ffmpeg version N-73894-g830d3a0 Copyright (c) 2000-2015 the FFmpeg developers
     built with gcc 4.6 (Debian 4.6.3-14+rpi1)
     configuration: --arch=armel --target-os=linux --enable-gpl --enable-libx264 --enable-nonfree
     libavutil      54. 28.100 / 54. 28.100
     libavcodec     56. 50.101 / 56. 50.101
     libavformat    56. 40.101 / 56. 40.101
     libavdevice    56.  4.100 / 56.  4.100
     libavfilter     5. 25.100 /  5. 25.100
     libswscale      3.  1.101 /  3.  1.101
     libswresample   1.  2.101 /  1.  2.101
     libpostproc    53.  3.100 / 53.  3.100
    Input #0, video4linux2,v4l2, from '/dev/video0':
     Duration: N/A, start: -140462028.282167, bitrate: 110592 kb/s
       Stream #0:0: Video: rawvideo (I420 / 0x30323449), yuv420p, 640x480, 110592 kb/s, 30 fps, 30 tbr, 1000k tbn, 1000k tbc
    [libx264 @ 0x3321920] using cpu capabilities: none!
    [libx264 @ 0x3321920] profile Constrained Baseline, level 3.0
    [libx264 @ 0x3321920] 264 - core 146 r2538 121396c - H.264/MPEG-4 AVC codec - Copyleft 2003-2015 - http://www.videolan.org/x264.html - options: cabac=0 ref=1 deblock=0:0:0 analyse=0:0 me=dia subme=0 psy=1 psy_rd=1.00:0.00 mixed_ref=0 me_range=16 chroma_me=1 trellis=0 8x8dct=0 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=0 threads=1 lookahead_threads=1 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=0 weightp=0 keyint=60 keyint_min=31 scenecut=0 intra_refresh=0 rc_lookahead=0 rc=cbr mbtree=0 bitrate=500 ratetol=1.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 vbv_maxrate=500 vbv_bufsize=500 nal_hrd=none filler=0 ip_ratio=1.40 aq=0
    Output #0, flv, to 'rtmp://office-klokklokmediastream.channel.mediaservices.windows.net:1935/live/3e501bc149754ebd975b95ec3583c949/mystream1':
     Metadata:
       encoder         : Lavf56.40.101
       Stream #0:0: Video: h264 (libx264) ([7][0][0][0] / 0x0007), yuv420p, 640x480, q=-1--1, 500 kb/s, 30 fps, 1k tbn, 30 tbc
       Metadata:
         encoder         : Lavc56.50.101 libx264
    Stream mapping:
     Stream #0:0 -> #0:0 (rawvideo (native) -> h264 (libx264))
    Press [q] to stop, [?] for help
    DTS 140462610481701, next:33333 st:0 invalid dropping
    PTS 140462610481701, next:33333 invalid dropping st:0
    DTS 140462610515017, next:66666 st:0 invalid dropping
    PTS 140462610515017, next:66666 invalid dropping st:0
    DTS 140462610548333, next:99999 st:0 invalid dropping
    PTS 140462610548333, next:99999 invalid dropping st:0
    frame=    4 fps=0.0 q=31.0 size=       7kB time=00:00:00.10 bitrate= 554.6kbits/DTS 140462610581650, next:133332 st:0 invalid dropping
    PTS 140462610581650, next:133332 invalid dropping st:0
    DTS 140462610614965, next:166665 st:0 invalid dropping
    PTS 140462610614965, next:166665 invalid dropping st:0
    frame=    6 fps=5.1 q=29.0 size=       9kB time=00:00:00.16 bitrate= 462.5kbits/DTS 140462610648281, next:199998 st:0 invalid dropping
    PTS 140462610648281, next:199998 invalid dropping st:0
    DTS 140462610681598, next:233331 st:0 invalid dropping
    PTS 140462610681598, next:233331 invalid dropping st:0
    DTS 140462610714914, next:266664 st:0 invalid dropping
    PTS 140462610714914, next:266664 invalid dropping st:0
    frame=   14 fps=4.6 q=23.0 size=      21kB time=00:00:00.43 bitrate= 396.0kbits/DTS 140462610914810, next:466662 st:0 invalid dropping
    PTS 140462610914810, next:466662 invalid dropping st:0
    [flv @ 0x3320ae0] Failed to update header with correct duration.
    [flv @ 0x3320ae0] Failed to update header with correct filesize.
    frame=   15 fps=3.9 q=22.0 Lsize=      25kB time=00:00:00.50 bitrate= 407.8kbits/s
    video:24kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 2.373589%
    [libx264 @ 0x3321920] frame I:1     Avg QP:31.00  size:  2777
    [libx264 @ 0x3321920] frame P:14    Avg QP:26.68  size:  1531
    [libx264 @ 0x3321920] mb I  I16..4: 100.0%  0.0%  0.0%
    [libx264 @ 0x3321920] mb P  I16..4: 12.4%  0.0%  0.0%  P16..4: 29.7%  0.0%  0.0%  0.0%  0.0%    skip:57.9%
    [libx264 @ 0x3321920] coded y,uvDC,uvAC intra: 6.3% 13.9% 0.5% inter: 5.7% 21.4% 0.1%
    [libx264 @ 0x3321920] i16 v,h,dc,p: 52% 17% 16% 14%
    [libx264 @ 0x3321920] i8c dc,h,v,p: 63% 14% 20%  3%
    [libx264 @ 0x3321920] kb/s:387.47
    Exiting normally, received signal 2.
    "

    I cant find a solution for that so thanks a lot for any advice.