
Recherche avancée
Médias (2)
-
Valkaama DVD Label
4 octobre 2011, par
Mis à jour : Février 2013
Langue : English
Type : Image
-
Podcasting Legal guide
16 mai 2011, par
Mis à jour : Mai 2011
Langue : English
Type : Texte
Autres articles (67)
-
Use, discuss, criticize
13 avril 2011, parTalk 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, parLes 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, parMediaSPIP 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 VelocedgeI’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 : 1Do 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 Tamotheeso 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 .


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.
this is what i see on the network portion


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



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


var http = require('http');
var fs = require('fs');

const port = 1234

http.createServer(function (request, response) {
console.log('request starting...');

var filePath = '.' + request.url;

fs.readFile(filePath, function(error, content) {
 response.writeHead(200, { 'Access-Control-Allow-Origin': '*' });
 if (error) {
 if(error.code == 'ENOENT'){
 fs.readFile('./404.html', function(error, content) {
 response.end(content, 'utf-8');
 });
 }
 else {
 response.writeHead(500);
 response.end('Sorry, check with the site admin for error: '+error.code+' ..\n');
 response.end(); 
 }
 }
 else {
 response.end(content, 'utf-8');
 }
});

}).listen(port);
console.log(`Server running at http://127.0.0.1:${port}/`);



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






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


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


-
Discord bot cannot play youtube video for more than 60sec
18 octobre 2020, par Antoine WeberA few weeks back I started a discord bot as a side project for fun.
Since yesterday i've been trying to allow my bot to search youtube videos and play them in voice channels (mostly for songs).


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


Here are the code snippets :


# first two words are activation keywords for the bot, then its the youtube query
query = ' '.join(message.message.content.split()[2:])
youtube = build("youtube", "v3", developerKey=yt_token)
search_response = youtube.search().list(q=query, part="id,snippet", maxResults=5).execute()
video_id = search_response['items'][0]['id']['videoId']
video_url = "https://www.youtube.com/watch?v=" + video_id

with youtube_dl.YoutubeDL(ydl_opts) as ydl:
 ydl.download([video_url])
await play_audio(message, 'song.mp3')



(I delete the song.mp3 after playing)


my ydl options are


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



and also my play_audio function is


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



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


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