
Recherche avancée
Médias (91)
-
Spitfire Parade - Crisis
15 mai 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Audio
-
Wired NextMusic
14 mai 2011, par
Mis à jour : Février 2012
Langue : English
Type : Video
-
Video d’abeille en portrait
14 mai 2011, par
Mis à jour : Février 2012
Langue : français
Type : Video
-
Sintel MP4 Surround 5.1 Full
13 mai 2011, par
Mis à jour : Février 2012
Langue : English
Type : Video
-
Carte de Schillerkiez
13 mai 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Texte
-
Publier une image simplement
13 avril 2011, par ,
Mis à jour : Février 2012
Langue : français
Type : Video
Autres articles (30)
-
La file d’attente de SPIPmotion
28 novembre 2010, parUne file d’attente stockée dans la base de donnée
Lors de son installation, SPIPmotion crée une nouvelle table dans la base de donnée intitulée spip_spipmotion_attentes.
Cette nouvelle table est constituée des champs suivants : id_spipmotion_attente, l’identifiant numérique unique de la tâche à traiter ; id_document, l’identifiant numérique du document original à encoder ; id_objet l’identifiant unique de l’objet auquel le document encodé devra être attaché automatiquement ; objet, le type d’objet auquel (...) -
Publier sur MédiaSpip
13 juin 2013Puis-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 -
Contribute to documentation
13 avril 2011Documentation is vital to the development of improved technical capabilities.
MediaSPIP welcomes documentation by users as well as developers - including : critique of existing features and functions articles contributed by developers, administrators, content producers and editors screenshots to illustrate the above translations of existing documentation into other languages
To contribute, register to the project users’ mailing (...)
Sur d’autres sites (7078)
-
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.


-
Can not download a streamable m3u8 link with IDM and ffmpeg
15 juillet 2021, par longThis is the link : https://v13.phephim.xyz/vod/v2/packaged:mp4/6005b3591918ee01c9ef67e4/playlist.m3u8


It's ok to play the link with play-hls-m3u8 chrome extension or by the site https://www.hlsplayer.net/ but I got errors when trying to download it by ffmpeg :


ffmpeg -i https://v13.phephim.xyz/vod/v2/packaged:mp4/6005b3591918ee01c9ef67e4/playlist.m3u8 -c copy OUTPUT.MP4



Full log :


ffmpeg version 4.2.4-1ubuntu0.1 Copyright (c) 2000-2020 the FFmpeg developers
 built with gcc 9 (Ubuntu 9.3.0-10ubuntu2)
 configuration: --prefix=/usr --extra-version=1ubuntu0.1 --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --arch=amd64 --enable-gpl --disable-stripping --enable-avresample --disable-filter=resample --enable-avisynth --enable-gnutls --enable-ladspa --enable-libaom --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libcodec2 --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libjack --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librsvg --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzmq --enable-libzvbi --enable-lv2 --enable-omx --enable-openal --enable-opencl --enable-opengl --enable-sdl2 --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-nvenc --enable-chromaprint --enable-frei0r --enable-libx264 --enable-shared
 libavutil 56. 31.100 / 56. 31.100
 libavcodec 58. 54.100 / 58. 54.100
 libavformat 58. 29.100 / 58. 29.100
 libavdevice 58. 8.100 / 58. 8.100
 libavfilter 7. 57.100 / 7. 57.100
 libavresample 4. 0. 0 / 4. 0. 0
 libswscale 5. 5.100 / 5. 5.100
 libswresample 3. 5.100 / 3. 5.100
 libpostproc 55. 5.100 / 55. 5.100
[hls @ 0x561c95a74c40] Skip ('#EXT-X-VERSION:3')
[hls @ 0x561c95a74c40] Opening 'https://v13.phephim.xyz/vod/v2/packaged:mp4/6005b3591918ee01c9ef67e4/0.ts?e=ad32a6dc7559f830a29b88ca30b975d90daef6578a563b09e97c798063c39de9fc124d470f75ad0220b9f440b7bd6767' for reading
[hls @ 0x561c95a74c40] Opening 'https://v13.phephim.xyz/vod/v2/packaged:mp4/6005b3591918ee01c9ef67e4/1.ts?e=e9b0a737f46906cdb4d67aed95e65ae4ab8eb401100eebce4e711ffdaf43c68fc2d8a49add4295587b38fe90c9d4cf86' for reading
[hls @ 0x561c95a74c40] Could not find codec parameters for stream 0 (Video: png, none(pc)): unspecified size
Consider increasing the value for the 'analyzeduration' and 'probesize' options
Input #0, hls, from 'https://v13.phephim.xyz/vod/v2/packaged:mp4/6005b3591918ee01c9ef67e4/playlist.m3u8':
 Duration: 01:02:06.42, bitrate: 0 kb/s
 Program 0 
 Metadata:
 variant_bitrate : 0
 Stream #0:0: Video: png, none(pc), 25 tbr, 25 tbn, 25 tbc
 Metadata:
 variant_bitrate : 0
Output #0, mp4, to 'OUTPUT.MP4':
Output file #0 does not contain any stream



I have tried to add some other command options but still got the same errors.


Doing devtools inspect, I found
the .ts segment link redirected to another link that has the response header :


content-disposition: inline;filename="unnamed.png"
content-type: image/png



Is it normal ?


Image : response header


Pls help me to download the video. Thanks !


p/s : sorry for my bad english :)