
Recherche avancée
Médias (1)
-
Publier une image simplement
13 avril 2011, par ,
Mis à jour : Février 2012
Langue : français
Type : Video
Autres articles (63)
-
Websites made with MediaSPIP
2 mai 2011, parThis page lists some websites based on MediaSPIP.
-
List of compatible distributions
26 avril 2011, parThe table below is the list of Linux distributions compatible with the automated installation script of MediaSPIP. Distribution nameVersion nameVersion number Debian Squeeze 6.x.x Debian Weezy 7.x.x Debian Jessie 8.x.x Ubuntu The Precise Pangolin 12.04 LTS Ubuntu The Trusty Tahr 14.04
If you want to help us improve this list, you can provide us access to a machine whose distribution is not mentioned above or send the necessary fixes to add (...) -
Personnaliser en ajoutant son logo, sa bannière ou son image de fond
5 septembre 2013, parCertains thèmes prennent en compte trois éléments de personnalisation : l’ajout d’un logo ; l’ajout d’une bannière l’ajout d’une image de fond ;
Sur d’autres sites (12051)
-
asp.net core live mp4 streaming
8 octobre 2020, par kdmaPrologue :


I have a hikvision ipcamera that streams raw h264 from a rtsp :// url, I need to play this live feed in the browser.


I managed to get a basic RTSP->ffmpeg-> (faststart) mp4 pipeline working and I can play the video when saved to a file.


I don't understand how to make my controller action "streamable".


I've tried various approaches like writing to Response.Body, Transfer-Encoding : chunked but nothing seems to work.
Here is the basic code :


public IActionResult Play5(){ 
 var ms = new MemoryStream();
 var muxer = new RTSPToMp4(ms);
 Task.Run(() => muxer.Stream());
 return new FileStreamResult(ms, "video/mp4");
}



The memory stream contains the live feed but the response is empty here is the request\response from chrome :


Request


method: GET
:path: /api/stream/play5
:scheme: https
accept: */*
accept-encoding: identity;q=1, *;q=0
accept-language: it-IT,it;q=0.9,en-US;q=0.8,en;q=0.7
cache-control: no-cache
pragma: no-cache
range: bytes=0-
referer: https://localhost:5001/Stream
sec-fetch-dest: video
sec-fetch-mode: no-cors
sec-fetch-site: same-origin
user-agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/85.0.4183.121 Safari/537.36



Response


content-length: 0
content-type: video/mp4
date: Thu, 08 Oct 2020 14:31:06 GMT
server: Kestrel
status: 200



Am I missing something ?


-
AWS Lambda Layer FFMPEG in Express API not working
11 octobre 2020, par WorkoutBuddyThis is the code I have in my lambda function :


app.post('/api/youtube/download', async (req, res) => {
 const body = req.body;
 const { url } = body;

 res.header('Content-disposition', 'attachment; filename=video.mp3');


 const youTubeStream = await youTube.getStream(url);


 console.log('before convertig')
 const result = spawnSync("/opt/bin/ffmpeg", ['-i', youTubeStream,'-vn', '-ar', '44100', '-ac','2','-b:a','192k', '/tmp/file.mp3'], { stdio: 'inherit' })
 console.log(result)
 const output = result['output']
 console.log(output.toString())
 console.log('after converting')
 const stream = await fs.createReadStream('/tmp/file.mp3')
 stream.pipe(res)
}




This is the output in Cloudwatch :


INFO ,,ffmpeg version 4.1.3-static https://johnvansickle.com/ffmpeg/ Copyright (c) 2000-2019 the FFmpeg developers
built with gcc 6.3.0 (Debian 6.3.0-18+deb9u1) 20170516
configuration : —enable-gpl —enable-version3 —enable-static —disable-debug —disable-ffplay —disable-indev=sndio —disable-outdev=sndio —cc=gcc-6 —enable-fontconfig —enable-frei0r —enable-gnutls —enable-gmp —enable-gray —enable-libaom —enable-libfribidi —enable-libass —enable-libvmaf —enable-libfreetype —enable-libmp3lame —enable-libopencore-amrnb —enable-libopencore-amrwb —enable-libopenjpeg —enable-librubberband —enable-libsoxr —enable-libspeex —enable-libvorbis —enable-libopus —enable-libtheora —enable-libvidstab —enable-libvo-amrwbenc —enable-libvpx —enable-libwebp —enable-libx264 —enable-libx265 —enable-libxml2 —enable-libxvid —enable-libzvbi —enable-libzimg
libavutil 56. 22.100 / 56. 22.100
libavcodec 58. 35.100 / 58. 35.100
libavformat 58. 20.100 / 58. 20.100
libavdevice 58. 5.100 / 58. 5.100
libavfilter 7. 40.101 / 7. 40.101
libswscale 5. 3.100 / 5. 3.100
libswresample 3. 3.100 / 3. 3.100
libpostproc 55. 3.100 / 55. 3.100
[object Object] : No such file or directory // NO IDEA WHERE THIS COMES FROM



 -
AWS Lambda does not log into CW while using ffmpeg binary
11 octobre 2020, par WorkoutBuddyI have simple endpoint for downloading and converting a youtube video :


app.post('/api/youtube/download', async (req, res) => {
 const body = req.body;
 const { url } = body;

 res.header('Content-disposition', 'attachment; filename=video.mp3');

 await youTube.downloadVideo(url)
 
 // Check folder before
 exec('ls -la /tmp', (error, stdout, stderr) => {
 console.log(`stdout:\n${stdout}`);
 });
 
 console.log('before converting')

 spawnSync("/opt/bin/ffmpeg", ['-i', '/tmp/myVideo.flv','-f', 'mp3', '-ab','192000', '/tmp/file.mp3'], {
 stdio: 'pipe',
 stderr: 'pipe'
 })
 console.log('after converting')
 // Check folder after
 exec('ls -la /tmp', (error, stdout, stderr) => {
 console.log(`stdout:\n${stdout}`);
 });
 
 const stream = fs.createReadStream("/tmp/file.mp3")
 stream.pipe(res)


});



I have no idea why no logs occur to debug :



I have already increas the timeout of the lambda function to 30s
When executing the ffmpeg binary locally it takes less than 5 secons to convert anything.