
Recherche avancée
Autres articles (47)
-
Les autorisations surchargées par les plugins
27 avril 2010, parMediaspip core
autoriser_auteur_modifier() afin que les visiteurs soient capables de modifier leurs informations sur la page d’auteurs -
Supporting all media types
13 avril 2011, parUnlike most software and media-sharing platforms, MediaSPIP aims to manage as many different media types as possible. The following are just a few examples from an ever-expanding list of supported formats : images : png, gif, jpg, bmp and more audio : MP3, Ogg, Wav and more video : AVI, MP4, OGV, mpg, mov, wmv and more text, code and other data : OpenOffice, Microsoft Office (Word, PowerPoint, Excel), web (html, CSS), LaTeX, Google Earth and (...)
-
HTML5 audio and video support
13 avril 2011, parMediaSPIP 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 (...)
Sur d’autres sites (10992)
-
Youtube-dl : Download video with maximum FPS and change FPS using OpenCV
8 mai 2021, par MmBaguetteI'm trying to download a YouTube video using YouTube-dl and specifying a maximum FPS. I don't want the lowest FPS, but I also don't want an FPS higher than 30. The code below does not work, but it was my best attempt.


ydl_opts = {
 'format': '(bestvideo[fps<30]/bestvideo)+bestaudio/best', # CHANGE FOR VIDEO
 'outtmpl': "youtube_video.%(ext)s",
}
print("Downloading YouTube video.")
 
with youtube_dl.YoutubeDL(ydl_opts) as ydl:
 ydl.download([text])



If not, can I change the FPS of a video using OpenCV ? I tried using
cap.set(cv2.CAP_PROP_FPS)
but this doesn't work either.

cap = cv2.VideoCapture(file)
fps = cap.get(cv2.CAP_PROP_FPS)
print(fps) # prints 60.0
cap.set(cv2.CAP_PROP_FPS)
fps = cap.get(cv2.CAP_PROP_FPS)
print(fps) # 60.0 again



-
Is it possible to download files (MP4) from external server and convert it to MP3 in NodeJS
19 mai 2021, par GrayGalaxyI am currently working on a chrome extension to download songs from JioSaavn.com. In my implementation I use an Vercel instance as a prox. This is a workaround for CORS error in the extension. The server code is shown as below.


const axios = require('axios')
module.exports = (req, res) => {
 res.setHeader('Access-Control-Allow-Origin', '*')
 res.setHeader('Cache-Control', 's-maxage=300, stale-while-revalidate')
 const URL = req.url // requested url
 // get array buffer
 if (url === '/') return res.redirect('https://github.com/GrayGalaxy/jiosaavn-downloader')

 let server_url = `https://snoidcdnems02.cdnsrv.jio.com/c.saavncdn.com/${URL}`
 axios.get(src_url, { responseType: 'arraybuffer' })
 .then(r => r.data)
 .then(result => res.send(result))
 .catch(() => {
 res.status(400).send('Cannot access the requested URL')
 })
 }
}




This outputs a MP4 file (just with audio). As for example if you put
/983/01100b84f61ca8b3a0432f12c564be8e_96.mp4
as theURL
parameter it will output as MP4.

Now I want to convert that response MP4 to a MP3 file. I tried ffmpeg, fluent-ffmpef and many other implementation. Most of them dose not support ArrayBuffer as an input (I think) it doesn't provide any output as expected. Or it might possible Vercel does not allow file-browser.


Please give a solution to that.


-
ffmpeg TCP connection refused trying to download m3u8 file
21 mai 2021, par CyeoleI'm trying to download a .m3u8 stream and convert it to mp4. The code I'm using is :


ffmpeg -i "http://v030.url/s/1/6/8/168192d4db9f6a2d0247784d11bd3aaa/stream/480p/index.m3u8?h=f676f54bc54d0a97a591fb5122c85cfb&e=1621581127" -c copy -bsf:a aac_adtstoasc outputname.mp4



However, I'm getting this error :


[tcp @ 0x7fbdda504900] Connection to tcp://v030.url:80 failed: Connection refused
http://v030.url/s/1/6/8/168192d4db9f6a2d0247784d11bd3aaa/stream/480p/index.m3u8?h=f676f54bc54d0a97a591fb5122c85cfb&e=1621581127: Connection refused



If I directly go to the link, it downloads the .m3u8 file without any problems and I've tried to convert this but it fails to read segments from the site. If I remove the "h=" and "e=" the link doesn't allow me to access the file.


Can someone please guide me on how to download this file in ffmpeg ? It seems like it's protected. Cheers !


I'm using ffmpeg on Mac OS X.