Recherche avancée

Médias (2)

Mot : - Tags -/doc2img

Autres articles (67)

  • Use, discuss, criticize

    13 avril 2011, par

    Talk to people directly involved in MediaSPIP’s development, or to people around you who could use MediaSPIP to share, enhance or develop their creative projects.
    The bigger the community, the more MediaSPIP’s potential will be explored and the faster the software will evolve.
    A discussion list is available for all exchanges between users.

  • MediaSPIP Player : les contrôles

    26 mai 2010, par

    Les contrôles à la souris du lecteur
    En plus des actions au click sur les boutons visibles de l’interface du lecteur, il est également possible d’effectuer d’autres actions grâce à la souris : Click : en cliquant sur la vidéo ou sur le logo du son, celui ci se mettra en lecture ou en pause en fonction de son état actuel ; Molette (roulement) : en plaçant la souris sur l’espace utilisé par le média (hover), la molette de la souris n’exerce plus l’effet habituel de scroll de la page, mais diminue ou (...)

  • MediaSPIP version 0.1 Beta

    16 avril 2011, par

    MediaSPIP 0.1 beta est la première version de MediaSPIP décrétée comme "utilisable".
    Le fichier zip ici présent contient uniquement les sources de MediaSPIP en version standalone.
    Pour avoir une installation fonctionnelle, il est nécessaire d’installer manuellement l’ensemble des dépendances logicielles sur le serveur.
    Si vous souhaitez utiliser cette archive pour une installation en mode ferme, il vous faudra également procéder à d’autres modifications (...)

Sur d’autres sites (10117)

  • Why won’t this mp4 play in a video-js tag any longer

    18 octobre 2019, par Velocedge

    I’m using ffmpeg to convert files to MP4. I’ve made some modifications to the ffmpeg string but now it seems no matter what I use, the video won’t play in an HTML5 tag (Chrome browser). Normally, I just used "-vcodec libx264 -s 1280x720 -ar 22050". When I try to load it in the video tag, I get the following error on http://family.gotsport.net/lmw/GotSport/videoPlayer.asp?WS=1&URL=/VideoFiles/2/4_70_highlight :

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

    No matter what parameters I use (or don’t use), it still won’t play. However, if you just call the url directly, it will play in Chrome (http://family.gotsport.net/videofiles/2/2_70_highlight.mp4). I’m using the 7.0.0 version of video-js from their CDN (although older versions give the same result).

    Video tag looks like :

    <video class="video-js vjs-default-skin" autoplay="autoplay" controls="controls" preload="auto">
       <source src="/VideoFiles/2/4_70_highlight.mp4" type="video/mp4"></source>
    </video>

    Here is the MediaInfo output from the file that won’t play :

    General
    Complete name                            : E:\VideoFiles\2\2_70_highlight.mp4
    Format                                   : MPEG-4
    Format profile                           : Base Media
    Codec ID                                 : isom (isom/iso2/avc1/mp41)
    File size                                : 5.87 MiB
    Duration                                 : 27 s 60 ms
    Overall bit rate                         : 1 820 kb/s
    Writing application                      : Lavf58.29.100

    Video
    ID                                       : 1
    Format                                   : AVC
    Format/Info                              : Advanced Video Codec
    Format profile                           : High@L3.1
    Format settings                          : CABAC / 4 Ref Frames
    Format settings, CABAC                   : Yes
    Format settings, Reference frames        : 4 frames
    Codec ID                                 : avc1
    Codec ID/Info                            : Advanced Video Coding
    Duration                                 : 27 s 60 ms
    Bit rate                                 : 1 685 kb/s
    Width                                    : 1 280 pixels
    Height                                   : 720 pixels
    Display aspect ratio                     : 16:9
    Frame rate mode                          : Constant
    Frame rate                               : 29.970 (29970/1000) FPS
    Color space                              : YUV
    Chroma subsampling                       : 4:2:0
    Bit depth                                : 8 bits
    Scan type                                : Progressive
    Bits/(Pixel*Frame)                       : 0.061
    Stream size                              : 5.44 MiB (93%)
    Writing library                          : x264 core 158 r2984 3759fcb
    Encoding settings                        : 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=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 / 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
    Codec configuration box                  : avcC

    Audio
    ID                                       : 2
    Format                                   : AAC LC
    Format/Info                              : Advanced Audio Codec Low Complexity
    Codec ID                                 : mp4a-40-2
    Duration                                 : 27 s 22 ms
    Duration_LastFrame                       : -6 ms
    Bit rate mode                            : Constant
    Bit rate                                 : 128 kb/s
    Channel(s)                               : 2 channels
    Channel layout                           : L R
    Sampling rate                            : 22.05 kHz
    Frame rate                               : 21.533 FPS (1024 SPF)
    Compression mode                         : Lossy
    Stream size                              : 423 KiB (7%)
    Default                                  : Yes
    Alternate group                          : 1

    Do you see anything that would keep this format from playing in an HTML5 video tag ?

  • Able to get HLS to play on VLC viewer but not on browser

    6 mai 2022, par Tamothee

    so i have been trying to get ipcamera to connect to a react app and show live video. i found and followed this tutorial https://www.youtube.com/watch?v=-a5MAaEaizU&t=185s .

    &#xA;

    i am able to get vlc viewer to run the hls server link and display what the camera sees. however when i plug the link into my code or a browser hls viewer like https://hls-js.netlify.app/demo/ , the m3u8 link does not play. there is no error and when i inspect the network, i do receive the m3u8 and .ts links.&#xA;this is what i see on the network portion

    &#xA;

    ffmpeg -i rtsp://admin:Password1234@192.168.1.64:554/Streaming/Channels/101 -fflags flush_packets -max_delay 2 -flags -global_header -hls_time 2 -hls_list_size 3 -vcodec copy -y ./index.m3u8&#xA;

    &#xA;

    this is the ffmpeg command that i ran to convert my rtsp output to hls.

    &#xA;

    var http = require(&#x27;http&#x27;);&#xA;var fs = require(&#x27;fs&#x27;);&#xA;&#xA;const port = 1234&#xA;&#xA;http.createServer(function (request, response) {&#xA;console.log(&#x27;request starting...&#x27;);&#xA;&#xA;var filePath = &#x27;.&#x27; &#x2B; request.url;&#xA;&#xA;fs.readFile(filePath, function(error, content) {&#xA;    response.writeHead(200, { &#x27;Access-Control-Allow-Origin&#x27;: &#x27;*&#x27; });&#xA;    if (error) {&#xA;        if(error.code == &#x27;ENOENT&#x27;){&#xA;            fs.readFile(&#x27;./404.html&#x27;, function(error, content) {&#xA;                response.end(content, &#x27;utf-8&#x27;);&#xA;            });&#xA;        }&#xA;        else {&#xA;            response.writeHead(500);&#xA;            response.end(&#x27;Sorry, check with the site admin for error: &#x27;&#x2B;error.code&#x2B;&#x27; ..\n&#x27;);&#xA;            response.end(); &#xA;        }&#xA;    }&#xA;    else {&#xA;        response.end(content, &#x27;utf-8&#x27;);&#xA;    }&#xA;});&#xA;&#xA;}).listen(port);&#xA;console.log(`Server running at http://127.0.0.1:${port}/`);&#xA;

    &#xA;

    this is the code for the hls server that receives the request and sends the user the m3u8 and ts files.

    &#xA;

     &#xA;

    &#xA;

    and i'm trying to play the link like this using react-hls-player

    &#xA;

    hope this is not a stupid question as i'm a beginner and hope that someone could help me with this problem.

    &#xA;

  • Discord bot cannot play youtube video for more than 60sec

    18 octobre 2020, par Antoine Weber

    A few weeks back I started a discord bot as a side project for fun.&#xA;Since yesterday i've been trying to allow my bot to search youtube videos and play them in voice channels (mostly for songs).

    &#xA;

    The bot correctly searches youtube with the query and finds the youtube video, starts playing it, but for some reason, after 60 sec (no matter of the video, always the same time), the bot suddenly provides no more audio, and then gets stuck somewhere (not a single error message, but the bots just stops responding).

    &#xA;

    Here are the code snippets :

    &#xA;

    # first two words are activation keywords for the bot, then its the youtube query&#xA;query = &#x27; &#x27;.join(message.message.content.split()[2:])&#xA;youtube = build("youtube", "v3", developerKey=yt_token)&#xA;search_response = youtube.search().list(q=query, part="id,snippet", maxResults=5).execute()&#xA;video_id = search_response[&#x27;items&#x27;][0][&#x27;id&#x27;][&#x27;videoId&#x27;]&#xA;video_url = "https://www.youtube.com/watch?v=" &#x2B; video_id&#xA;&#xA;with youtube_dl.YoutubeDL(ydl_opts) as ydl:&#xA;     ydl.download([video_url])&#xA;await play_audio(message, &#x27;song.mp3&#x27;)&#xA;

    &#xA;

    (I delete the song.mp3 after playing)

    &#xA;

    my ydl options are

    &#xA;

    ydl_opts = {&#xA;    "postprocessors":[{&#xA;        "key": "FFmpegExtractAudio", # download audio only&#xA;        "preferredcodec": "mp3", # other acceptable types "wav" etc.&#xA;        "preferredquality": "192" # 192kbps audio&#xA;    }],&#xA;    "format": "bestaudio/best",&#xA;    "outtmpl": "song.mp3"&#xA;}&#xA;

    &#xA;

    and also my play_audio function is

    &#xA;

    async def play_audio(message, audio_name):&#xA;        channel = message.message.author.voice.channel&#xA;        vc = await channel.connect()&#xA;        time.sleep(0.5)&#xA;        vc.play(discord.FFmpegPCMAudio(audio_name))&#xA;        while vc.is_playing():&#xA;            time.sleep(1)&#xA;        vc.stop()&#xA;        await vc.disconnect()&#xA;

    &#xA;

    I know the time.sleep() call is blocking but I don't really core for now.

    &#xA;

    Any one had this issue ? For short videos (less than 60sec), everything works fine. Maybe an ffmpeg option ?

    &#xA;