
Recherche avancée
Médias (17)
-
Matmos - Action at a Distance
15 septembre 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Audio
-
DJ Dolores - Oslodum 2004 (includes (cc) sample of “Oslodum” by Gilberto Gil)
15 septembre 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Audio
-
Danger Mouse & Jemini - What U Sittin’ On ? (starring Cee Lo and Tha Alkaholiks)
15 septembre 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Audio
-
Cornelius - Wataridori 2
15 septembre 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Audio
-
The Rapture - Sister Saviour (Blackstrobe Remix)
15 septembre 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Audio
-
Chuck D with Fine Arts Militia - No Meaning No
15 septembre 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Audio
Autres articles (83)
-
Organiser par catégorie
17 mai 2013, parDans MédiaSPIP, une rubrique a 2 noms : catégorie et rubrique.
Les différents documents stockés dans MédiaSPIP peuvent être rangés dans différentes catégories. On peut créer une catégorie en cliquant sur "publier une catégorie" dans le menu publier en haut à droite ( après authentification ). Une catégorie peut être rangée dans une autre catégorie aussi ce qui fait qu’on peut construire une arborescence de catégories.
Lors de la publication prochaine d’un document, la nouvelle catégorie créée sera proposée (...) -
Récupération d’informations sur le site maître à l’installation d’une instance
26 novembre 2010, parUtilité
Sur le site principal, une instance de mutualisation est définie par plusieurs choses : Les données dans la table spip_mutus ; Son logo ; Son auteur principal (id_admin dans la table spip_mutus correspondant à un id_auteur de la table spip_auteurs)qui sera le seul à pouvoir créer définitivement l’instance de mutualisation ;
Il peut donc être tout à fait judicieux de vouloir récupérer certaines de ces informations afin de compléter l’installation d’une instance pour, par exemple : récupérer le (...) -
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 (11083)
-
How give information about file with binary path /usr/bin/ffmpeg ? [closed]
19 septembre 2012, par John SmithHow give information about file with binary path /usr/bin/ffmpeg ?
Peoples its not answer - its code for help all peoples-)
Long time i search the correct code, now i write here. Washes it be useful to someone.
1) get duration file
ob_start();
passthru("ffmpeg-9260.exe -i \"". $videofile . "\" 2>&1");
$duration = ob_get_contents();
ob_end_clean();
preg_match('/Duration: (.*?),/', $duration, $matches);
$duration = $matches[1];
$duration_array = split(':', $duration);
$duration = $duration_array[0] * 3600 + $duration_array[1] * 60 + $duration_array[2];
$time = $duration * $percent / 100;
$time = intval($time/3600) . ":" . intval(($time-(intval($time/3600)*3600))/60) . ":" . sprintf("%01.3f", ($time-(intval($time/60)*60)));2) get a picture of a particular frame of the video (flv or avi or another)
ffmpeg -i video.avi -an -ss 00:01:30 -r 1 -vframes 1 -s 320×240 -y -f mjpeg screenshot.jpg
3) how to convert video file to format .ogg
a) ffmpeg -an -deinterlace -s 400×300 -r 20.00 -i CapeCodMarsh.avi -vcodec rawvideo -pix_fmt yuv420p -f rawvideo – | ffmpeg -an -f rawvideo -s 400×300 -r 20.00 -i – -f yuv4mpegpipe – | libtheora-1.0/lt-encoder_example –video-rate-target 512k – -o tmp.ogv
b)ffmpeg -y -i CapeCodMarsh.avi -vn -acodec libvorbis -ac 2 -ab 128k -ar 44100 audio.ogg4) How I can get this value for the buffer ?
var v = document.getElementById('file_id');
var r = v.buffered.end(0);Enjoy=)
-
Give IDCT matrix transpose macro a more descriptive name
18 février 2014, par Diego Biurrun -
React Video Player failing to read RTSP stream
20 octobre 2023, par hotmeatballsoupI have an RTSP server running local on
localhost:8554
and can verify its up and running multiple ways. Its definitely running !

I can stream/publish an MP4 file to it and make that feed available from
rtsp://localhost:8554/mystream
, and can read from it and do cool stuff with it viaffmpeg
:

# this works: it appends frames read from the RTSP server to the fp-copy-2.mp4 file
ffmpeg -rtsp_transport tcp -i rtsp://localhost:8554/mystream -c copy fp-copy-2.mp4



I am now trying to play that stream/feed from inside my toy React app. I have a
VideoPlayer
component that looks like :

import React from 'react';
import ReactPlayer from 'react-player';

const VideoPlayer = () => {
 const rtspUrl = 'rtsp://localhost:8554/mystream';

 return (
 <div>
 <h1>Feed</h1>
 
 </div>
 );
};

export default VideoPlayer;




And I am loading it on a dashboard page like so :


import React from 'react';
import VideoPlayer from '../../utils/player/VideoPlayer';

const DashboardPage = () => {
 return (
 <div>
 <h1>Dashboard</h1>
 <videoplayer></videoplayer> 
 </div>
 );
};

export default DashboardPage;



When I run
npm start
and go to the dashboard page, I see the video player loaded but it is displaying a blank screen and is not playing the content that should be available on the feed. Any ideas where I'm going awry ? Does thereact-player
not handle RTSP perhaps ?