
Recherche avancée
Médias (1)
-
Rennes Emotion Map 2010-11
19 octobre 2011, par
Mis à jour : Juillet 2013
Langue : français
Type : Texte
Autres articles (108)
-
Les tâches Cron régulières de la ferme
1er décembre 2010, parLa gestion de la ferme passe par l’exécution à intervalle régulier de plusieurs tâches répétitives dites Cron.
Le super Cron (gestion_mutu_super_cron)
Cette tâche, planifiée chaque minute, a pour simple effet d’appeler le Cron de l’ensemble des instances de la mutualisation régulièrement. Couplée avec un Cron système sur le site central de la mutualisation, cela permet de simplement générer des visites régulières sur les différents sites et éviter que les tâches des sites peu visités soient trop (...) -
Qualité du média après traitement
21 juin 2013, parLe bon réglage du logiciel qui traite les média est important pour un équilibre entre les partis ( bande passante de l’hébergeur, qualité du média pour le rédacteur et le visiteur, accessibilité pour le visiteur ). Comment régler la qualité de son média ?
Plus la qualité du média est importante, plus la bande passante sera utilisée. Le visiteur avec une connexion internet à petit débit devra attendre plus longtemps. Inversement plus, la qualité du média est pauvre et donc le média devient dégradé voire (...) -
Changer son thème graphique
22 février 2011, parLe thème graphique ne touche pas à la disposition à proprement dite des éléments dans la page. Il ne fait que modifier l’apparence des éléments.
Le placement peut être modifié effectivement, mais cette modification n’est que visuelle et non pas au niveau de la représentation sémantique de la page.
Modifier le thème graphique utilisé
Pour modifier le thème graphique utilisé, il est nécessaire que le plugin zen-garden soit activé sur le site.
Il suffit ensuite de se rendre dans l’espace de configuration du (...)
Sur d’autres sites (6721)
-
Ffmpeg http slow Startup Delay
16 mars 2018, par JanI need a http stream output with very fast start up Delay (100ms) And Constant Traffic. And I only want to use the http stream with vlc... so not for Browser usage. My input stream has a Bitrate 3-4mbit. With hls I get the 100ms switching time but not constant traffic. I already have traffic eruption... in one second high traffic and then nothing. But I need a constant output.
So I tried it with nodejs and ffmpeg fluent but the starting time is not so good(Not so fast like hls)
This is my
// How to Use
// 1. Create package.json with `npm init`
// 2. Install dependencies with `npm i fluent-ffmpeg express`
// 3. Start with `node ffmpegToWeb.js`
// 4. Open VLC and "Open Network Stream".
// 5. Input the following without quotes : `http://127.0.0.1:8001` and start.
const ffmpeg = require('fluent-ffmpeg')
const config = {
port: 8001,
url: 'url here'
}
let ffmpegObj = ffmpeg(config.url)
.videoCodec('copy')
.audioCodec('copy')
.outputOptions([
'-y',
'-ac 2',
'-sn',
'-f mpegts'
])
.inputOptions([
'-re',
'-nostdin',
'-hide_banner',
'-probesize 5000000',
'-analyzeduration 15000000'
])
.on('start', function (commandLine) {
console.log('Starting ffmpeg with command: ' + commandLine)
})
.on('error', (err) => {
console.log('ffmpeg error', err)
})
.on('end', () => {
console.log('ffmpeg end')
})
.on('progress', (stats) => {
// console.log(stats)
})
let currentChunk = {}
let ffstream = ffmpegObj.pipe()
ffstream.on('data', (buffer) => {
currentChunk = buffer
process.emit('ffmpeg-data', buffer)
})
// web app
console.log('Starting Express Web Server on Port ' + config.port)
const express = require('express')
const app = express()
const http = require('http')
const httpServer = http.createServer(app)
app.get('/', function (req, res) {
console.log('client connected:', req.headers['user-agent'])
let contentWriter = (buffer) => {
res.write(buffer)
}
res.setHeader('Connection', 'close')
res.setHeader('Cache-Control', 'no-cache')
res.setHeader('Pragma', 'no-cache')
res.setHeader('Content-Type', 'video/mp2t')
// write current chunk before the first data event occurs
if (currentChunk.length > 0) {
res.write(currentChunk)
}
process.on('ffmpeg-data', contentWriter)
req.on('close', function () {
console.log('client disconnected:', req.headers['user-agent'])
process.removeListener('ffmpeg-data', contentWriter)
})
})
httpServer.listen(config.port) -
rtmp audio out of sync, http works fine
21 janvier 2014, par marcaWe have encoded and distributed videos for some years now, using FFMPEG to produce h.264/mp4 files that have been working great for us. We have been using HTML mode and fall-backed to flash for browsers that does not support it natively using flowplayer.
We use cloudfront to serve our files from a s3 bucket and have been using http progressive streaming.
Recently we started distribute the files in flashmode over rtmp instead, using a cloudfront streaming distribution pointing to the same amazon s3 bucket.
All good for some weeks, until yesterday when we notice a couple of files with audio sync issues in rtmp mode.
The same file have no sync problems in flash with direct url to file.What can be the case ?
Not working when streamed via RTMP, but file work with http streaming/progressive.
You see the sync issue 15 sec's into the video.
rtmp ://s2xe2avk54qztf.cloudfront.net:1935/cfx/st/mp4:95fvOY255bdPspO3z6tEvGi3Em7/default.mp4
http://media.shootitlive.com/95fvOY255bdPspO3z6tEvGi3Em7/default.mp4Another file that have no sync issue at all.
rtmp ://s2xe2avk54qztf.cloudfront.net:1935/cfx/st/mp4:P4EuH2TZxfV6BvpupP6dxrrs7gD/default.mp4
http://media.shootitlive.com/P4EuH2TZxfV6BvpupP6dxrrs7gD/default.mp4Both files have the same format for video and audio and have been encoded the exact same way with ffmpeg. It's not player related as we see the audio sync issue on several players and when playing stream in VLC.
-
ffmpeg stream ip cam from rtsp to http
15 mars 2017, par mihalpI’m trying to restream ip camera from home network to webpage (sort of video player in wordpress). I have rtsp url of camera and i want to have an output in http. It’s bothering me for 2 days now and i’m not sure what i’m missing...
My ffserver.conf file :HTTPPort 8090 # Port to bind the server to
HTTPBindAddress 0.0.0.0
MaxHTTPConnections 2000
MaxClients 1000
MaxBandwidth 10000 # Maximum bandwidth per client
RTSPPort 8002
# set this high enough to exceed stream bitrate
CustomLog -
<feed>
File /tmp/cam.ffm
FileMaxSize 10G
ACL allow 192.168.0.0 192.168.255.255
</feed>
<stream>
Feed cam.ffm
Format mpeg
VideoCodec libx264
VideoSize 1280x720
VideoFrameRate 6
VideoBufferSize 40
AVOptionVideo flags +global_header
PreRoll 15
StartSendOnKey
VideoBitRate 4096
NoAudio
</stream>
<stream> # Server status URL
Format status
# Only allow local people to get the status
ACL allow localhost
ACL allow 192.168.0.0 192.168.255.255
</stream>
<redirect> # Just an URL redirect for index
# Redirect index.html to the appropriate site
URL url/
</redirect>When i enter ffserver -f /etc/ffserver.conf, i get :
root@test:/tmp# ffserver -f /etc/ffserver.conf
ffserver version 2.6.9 Copyright (c) 2000-2016 the FFmpeg developers
built with gcc 4.9.2 (Debian 4.9.2-10)
configuration: --prefix=/usr --extra-cflags='-g -O2 -fstack-protector-strong -Wformat -Werror=format-security ' --extra-ldflags='-Wl,-z,relro' --cc='ccache cc' --enable-shared --enable-libmp3lame --enable-gpl --enable-nonfree --enable-libvorbis --enable-pthreads --enable-libfaac --enable-libxvid --enable-postproc --enable-x11grab --enable-libgsm --enable-libtheora --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libx264 --enable-libspeex --enable-nonfree --disable-stripping --enable-libvpx --enable-libschroedinger --disable-encoder=libschroedinger --enable-version3 --enable-libopenjpeg --enable-librtmp --enable-avfilter --enable-libfreetype --enable-libvo-aacenc --disable-decoder=amrnb --enable-libvo-amrwbenc --enable-libaacplus --libdir=/usr/lib/x86_64-linux-gnu --disable-vda --enable-libbluray --enable-libcdio --enable-gnutls --enable-frei0r --enable-openssl --enable-libass --enable-libopus --enable-fontconfig --enable-libpulse --disable-mips32r2 --disable-mipsdspr1 --disable-mipsdspr2 --enable-libvidstab --enable-libzvbi --enable-avresample --disable-htmlpages --disable-podpages --enable-libutvideo --enable-libfdk-aac --enable-libx265 --enable-libiec61883 --enable-vaapi --enable-libdc1394 --disable-altivec --shlibdir=/usr/lib/x86_64-linux-gnu
libavutil 54. 20.100 / 54. 20.100
libavcodec 56. 26.100 / 56. 26.100
libavformat 56. 25.101 / 56. 25.101
libavdevice 56. 4.100 / 56. 4.100
libavfilter 5. 11.102 / 5. 11.102
libavresample 2. 1. 0 / 2. 1. 0
libswscale 3. 1.101 / 3. 1.101
libswresample 1. 1.100 / 1. 1.100
libpostproc 53. 3.100 / 53. 3.100
/etc/ffserver.conf:30: Setting default value for video bit rate tolerance = 1024000. Use NoDefaults to disable it.
/etc/ffserver.conf:30: Setting default value for video rate control equation = tex^qComp. Use NoDefaults to disable it.
/etc/ffserver.conf:30: Setting default value for video max rate = 8192000. Use NoDefaults to disable it.
Wed Mar 15 20:23:41 2017 FFserver started.and when i enter
ffmpeg -i rtsp://<ip of="of" camera="camera">:8002 http://<ip of="of" this="this">:8090/cam.ffm</ip></ip>
, happens nothing.I can also reach
http://<ip of="of" my="my" server="server">:8090/status.html</ip>
, but no luck withhttp://<ip of="of" my="my" server="server">:8090/cam.mpg</ip>
.Any suggestions ?
Thank you !