
Recherche avancée
Médias (91)
-
Richard Stallman et le logiciel libre
19 octobre 2011, par
Mis à jour : Mai 2013
Langue : français
Type : Texte
-
Stereo master soundtrack
17 octobre 2011, par
Mis à jour : Octobre 2011
Langue : English
Type : Audio
-
Elephants Dream - Cover of the soundtrack
17 octobre 2011, par
Mis à jour : Octobre 2011
Langue : English
Type : Image
-
#7 Ambience
16 octobre 2011, par
Mis à jour : Juin 2015
Langue : English
Type : Audio
-
#6 Teaser Music
16 octobre 2011, par
Mis à jour : Février 2013
Langue : English
Type : Audio
-
#5 End Title
16 octobre 2011, par
Mis à jour : Février 2013
Langue : English
Type : Audio
Autres articles (75)
-
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 ;
-
Ecrire une actualité
21 juin 2013, parPrésentez les changements dans votre MédiaSPIP ou les actualités de vos projets sur votre MédiaSPIP grâce à la rubrique actualités.
Dans le thème par défaut spipeo de MédiaSPIP, les actualités sont affichées en bas de la page principale sous les éditoriaux.
Vous pouvez personnaliser le formulaire de création d’une actualité.
Formulaire de création d’une actualité Dans le cas d’un document de type actualité, les champs proposés par défaut sont : Date de publication ( personnaliser la date de publication ) (...) -
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
Sur d’autres sites (9321)
-
how to prevent the hls video player dont refresh when m3u8 changes
6 juin 2024, par Leohere i am using ffmpeg to use camera and audio to make a hls stream on server as the stream continious old m3u8 components deletes and new ones gets added to main.m3u8. but as we insert the url of hls stream file main.m3u8. the player refreshes as soon as the file gets rewritten because of new and old ones. so


i have tried to change the players like hls.js or videojs etc none were to solve this. how to solve this and make sure the stream runs smoothly.


Server.js


const startStreaming = (viddev,auddev) => {
 if (ffmpegProcess) {
 ffmpegProcess.kill();
 }
 const segmentDuration = 10;
 const outputFilename = './video/output.m3u8';
 const ffmpegCommand = `ffmpeg -f dshow -i video="${viddev}" -f dshow -i audio="${auddev}" -codec:v libx264 -preset ultrafast -tune zerolatency -codec:a aac -b:a 128k -hls_time ${segmentDuration} -hls_list_size 3 -hls_flags delete_segments -start_number 0 -hls_segment_type mpegts ${outputFilename}`;

 ffmpegProcess = exec(ffmpegCommand);

 ffmpegProcess.stderr.on('data', (data) => {
 console.error(`ffmpeg stderr: ${data}`);
 });

 ffmpegProcess.on('close', (code) => {
 console.log(`ffmpeg process exited with code ${code}`);
 });
};

app.use('/video', express.static(path.join(__dirname, 'video')));

// Endpoint to list audio and video devices
app.get('/devices', async (req, res) => {
 const data=await parseDevices()
 // console.log(data.cameras[0].name)
 startStreaming(data.cameras[0].name,data.microphones[0].name);
 res.json(data)
});



index.html





 
 
 
 
 



 
 <source src="https://localhost:3000/video/output.m3u8" type="application/x-mpegURL">
 

 <code class="echappe-js"><script src="https://vjs.zencdn.net/8.10.0/video.min.js"></script>

<script>&#xA; // Initialize Video.js player&#xA; var player = videojs(&#x27;video&#x27;, {&#xA; autoplay: &#x27;play&#x27;,&#xA; liveui: true // Enable the live UI for live streams&#xA; });&#xA;&#xA; // Seek to live when the player is ready&#xA; player.ready(function() {&#xA; player.liveTracker.on(&#x27;liveedgechange&#x27;, function() {&#xA; player.currentTime(player.liveTracker.liveCurrentTime());&#xA; });&#xA; });&#xA;&#xA; // Handle any errors encountered by Video.js&#xA; player.on(&#x27;error&#x27;, function() {&#xA; console.error(&#x27;Video.js encountered an error:&#x27;, player.error());&#xA; });&#xA; </script>







-
rtmp : Follow Flash player numbering for channels.
16 septembre 2013, par Josh Allmannrtmp : Follow Flash player numbering for channels.
Channel 4 is typically used by the Flash player to transmit
audio, channel 6 for video, and various stream-specific invokes
get sent over channel 8, which is designated the source channel.This more closely matches the behavior of the Flash player,
including the transmission of play requests over channel 8.Signed-off-by : Martin Storsjö <martin@martin.st>
-
FFmpeg .jpg images to .mp4 incompatible with Windows Media Player
8 janvier 2020, par willspillI have a series of 10 images with which I am trying to form an animation. I have used the following code below in the command line :
ffmpeg -f image2 -i plot-%03d.jpg -r 5 -pix_fmt yuv420p -vcodec mpeg4 output.mp4
This creates a .mp4 file with a seemingly valid file size, however, when trying to open with Windows Media Player gives the following error :
Windows Media Player cannot play the file. The Player might not support the file type or might not support the codec that was used to compress the file.
I have tried many solutions from previous threads but have found no solution. I have checked that my version of windows media player is compatible with mp4, avi, wmv etc. and have tried all of these outputs also. Any ideas of the issue ?
The full code :
M:Example\Frames_plot-001_jpg>ffmpeg -f image2 -i plot-%03
ix_fmt yuv420p -vcodec mpeg4 output.mp4
FFmpeg version SVN-r11200, Copyright (c) 2000-2007 Fabrice Bellard,
configuration: --enable-memalign-hack
libavutil version: 49.5.0
libavcodec version: 51.48.0
libavformat version: 52.1.0
built on Dec 11 2007 14:33:27, gcc: 3.4.5 (mingw special)
Input #0, image2, from 'plot-%03d.jpg':
Duration: 00:00:00.4, start: 0.000000, bitrate: N/A
Stream #0.0: Video: mjpeg, yuvj420p, 4167x4167 [PAR 120:120 DAR
tb(r)
Output #0, mp4, to 'output.mp4':
Stream #0.0: Video: mpeg4, yuv420p, 4167x4167 [PAR 1:1 DAR 1:1]
kb/s, 5.00 tb(c)
Stream mapping:
Stream #0.0 -> #0.0
Press [q] to stop encoding
Compiler did not align stack variables. Libavcodec has been miscomp
and may be very slow or crash. This is not a bug in libavcodec,
but in the compiler. You may try recompiling using gcc >= 4.2.
Do not report crashes to FFmpeg developers.
frame= 3 fps= 3 q=4.0 Lsize= 917kB time=0.6 bitrate=12522.6
video:916kB audio:0kB global headers:0kB muxing overhead 0.072455%