
Recherche avancée
Médias (91)
-
Les Miserables
9 décembre 2019, par
Mis à jour : Décembre 2019
Langue : français
Type : Textuel
-
VideoHandle
8 novembre 2019, par
Mis à jour : Novembre 2019
Langue : français
Type : Video
-
Somos millones 1
21 juillet 2014, par
Mis à jour : Juin 2015
Langue : français
Type : Video
-
Un test - mauritanie
3 avril 2014, par
Mis à jour : Avril 2014
Langue : français
Type : Textuel
-
Pourquoi Obama lit il mes mails ?
4 février 2014, par
Mis à jour : Février 2014
Langue : français
-
IMG 0222
6 octobre 2013, par
Mis à jour : Octobre 2013
Langue : français
Type : Image
Autres articles (92)
-
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 ;
-
MediaSPIP v0.2
21 juin 2013, parMediaSPIP 0.2 est la première version de MediaSPIP stable.
Sa date de sortie officielle est le 21 juin 2013 et est annoncée ici.
Le fichier zip ici présent contient uniquement les sources de MediaSPIP en version standalone.
Comme pour la version précédente, il est nécessaire d’installer manuellement l’ensemble des dépendances logicielles sur le serveur.
Si vous souhaitez utiliser cette archive pour une installation en mode ferme, il vous faudra également procéder à d’autres modifications (...) -
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 ) (...)
Sur d’autres sites (7940)
-
ffmpeg in PHP : Resizing image works, but getting a 404 when trying to load resized image ?
13 décembre 2016, par Eric David SartorPHP :
if ($output = shell_exec("ffmpeg -i localhost/video/tools/poster.png -vf scale=32:32 localhost/video/tools/poster_small.png 2>&1") !== NULL)
echo $output;
echo "Original:<br /><img src="http://stackoverflow.com/feeds/tag/poster.png" style='max-width: 300px; max-height: 300px' /><br /><br />Resize:<br /><img src="http://stackoverflow.com/feeds/tag/poster_small.png" style='max-width: 300px; max-height: 300px' />";So I’m trying to have an image upload form that creates a smaller version of the uploaded image after the upload is verified. All that works fine, and when I run this command with ffmpeg, the
$output
is1
. That obviously means that it isn’t returningNULL
, which means ffmpeg is functioning in theory...but here’s the weird part...I’m echoing the images out into the HTML to visually verify if they worked, and what I get (for the resized image) is a 32x32 image container, but the image doesn’t load (404 in the dev console), which to me makes no sense. If the image container is 32x32, that means that the resize must’ve worked because that’s the size I told it to be in the ffmpeg command, but if the page isn’t loading the image, how did it even get the information that the image needed to be 32x32 ? I didn’t set that in the HTML/CSS anywhere...what’s going on here ?
I’m running this on Windows in a XAMPP server. I’ve installed ffmpeg and verified it is working in the Windows command prompt. All the files are in
localhost/video/tools/
, other than the ffmpeg files of course, which are inlocalhost/ffmpeg/
.A screenshot of the HTML output : http://ericsartor.ca/Capture.PNG
-
OpenCV accept HTTP video streaming with different endpoints
22 juin 2019, par nabroyanI am writing a server, which receives live video stream over HTTP and performs some operations for different endpoints.
I am using
OpenCV
for that and my basic code looks somethings like thisvoid f1()
{
cv::VideoCapture cap("http://localhost:8080/operation1");
if (!cap.isOpened())
return;
for (;;)
{
cv::Mat frame;
cap >> frame;
// do something
}
}
void f2()
{
cv::VideoCapture cap("http://localhost:8080/operation2");
if (!cap.isOpened())
return;
for (;;)
{
cv::Mat frame;
cap >> frame;
// do something else
}
}
void f3() {...}As you see each function listens to a different HTTP endpoint and does different operation. Each function runs in a separate thread.
The problem is that for some reason
OpenCV
ignores the resource part in endpoint i.e. ifip:port
is correct it will accept the stream no matter it is fromoperation1
oroperation2
.For testing purposes I use this command as a stream generator
ffmpeg -i sample.mp4 -listen 1 -f matroska -c:v libx264 -preset fast -tune zerolatency http://localhost:8080/operation1
How can I make
OpenCV
to differentiate between HTTP endpoints ? What am I missing ? I have no any previous experience withOpenCV
and photo/video stuff. -
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 ?