
Recherche avancée
Autres articles (60)
-
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 (...) -
Problèmes fréquents
10 mars 2010, parPHP et safe_mode activé
Une des principales sources de problèmes relève de la configuration de PHP et notamment de l’activation du safe_mode
La solution consiterait à soit désactiver le safe_mode soit placer le script dans un répertoire accessible par apache pour le site -
HTML5 audio and video support
13 avril 2011, parMediaSPIP uses HTML5 video and audio tags to play multimedia files, taking advantage of the latest W3C innovations supported by modern browsers.
The MediaSPIP player used has been created specifically for MediaSPIP and can be easily adapted to fit in with a specific theme.
For older browsers the Flowplayer flash fallback is used.
MediaSPIP allows for media playback on major mobile platforms with the above (...)
Sur d’autres sites (8803)
-
FFmpegFrameGrabber deprecated pixel format error
14 juin 2018, par TomTomI tried to show the images my phone sends over WiFi with JavaCV and the FFmpegFrameGrabber class. Unfortunately I get this error, no matter which pixel format I set (tried from 0 up to 65).
Input #0, mjpeg, from 'http://IP:PORT/video':
Duration: N/A, bitrate: N/A
Stream #0:0: Video: mjpeg, yuvj420p(pc, bt470bg/unknown/unknown), 640x480 [SAR 1:1 DAR 2:3], 24 tbr, 1200k tbn, 24 tbc
[swscaler @ 0x7ff6cc3cba00] deprecated pixel format used, make sure you did set range correctlyThis is how I create the FrameGrabber :
FrameGrabber grabber = new FFmpegFrameGrabber("http://IP:PORT/video");
grabber.setFormat("mjpeg");
grabber.setVideoCodec(8);
grabber.setFrameRate(24);And then getting the frame :
frame = grabber.grab();
EDIT :
Apparently this error comes from the ffmpeg library and has something to do with jpeg.
It is located in : libswscale/utils.c
Line 975 and 976 cause this error :
if(srcFormat!=c->srcFormat || dstFormat!=c->dstFormat)
av_log(c, AV_LOG_WARNING, "deprecated pixel format used, make sure you did set range correctly\n");Unfortunately I am not skilled enough to delete/change this line. So I just ignore this messages as it doesn’t affect the program. Unless someone can recompile an edited version of ffmpeg for mac :)
-
FFmpegFrameGrabber deprecated pixel format error
6 janvier 2015, par TomTomI tried to show the images my phone sends over WiFi with JavaCV and the FFmpegFrameGrabber class. Unfortunately I get this error, no matter which pixel format I set (tried from 0 up to 65).
Input #0, mjpeg, from 'http://IP:PORT/video':
Duration: N/A, bitrate: N/A
Stream #0:0: Video: mjpeg, yuvj420p(pc, bt470bg/unknown/unknown), 640x480 [SAR 1:1 DAR 2:3], 24 tbr, 1200k tbn, 24 tbc
[swscaler @ 0x7ff6cc3cba00] deprecated pixel format used, make sure you did set range correctlyThis is how I create the FrameGrabber :
FrameGrabber grabber = new FFmpegFrameGrabber("http://IP:PORT/video");
grabber.setFormat("mjpeg");
grabber.setVideoCodec(8);
grabber.setFrameRate(24);And then getting the frame :
frame = grabber.grab();
EDIT :
Apparently this error comes from the ffmpeg library and has something to do with jpeg.
It is located in : libswscale/utils.c
Line 975 and 976 cause this error :
if(srcFormat!=c->srcFormat || dstFormat!=c->dstFormat)
av_log(c, AV_LOG_WARNING, "deprecated pixel format used, make sure you did set range correctly\n");Unfortunately I am not skilled enough to delete/change this line. So I just ignore this messages as it doesn’t affect the program. Unless someone can recompile an edited version of ffmpeg for mac :)
-
Trying to emulate a hardware camera with a stream from a raspberry pi/picam ?
19 avril 2021, par John DoeI have a raspberry pi and pi cam v2 connected to wifi. I am trying to stream the camera feed to a laptop over wifi, then make that stream appear as if it were a hardware camera on the laptop. I want to do this in order to get it into some other software that requires a hardware camera (can't rewrite this software, just have to work around it).


I am running ubuntu 18.04 on the laptop. From my research, this should be very possible using some combination of ffmpeg and vfl2loopback. I started out by installing this library to stream the camera to a webserver : https://github.com/silvanmelchior/RPi_Cam_Web_Interface This works, and I am able to access the camera stream in my browser at http://10.0.0.47/http I set it up with no username/password for simplicity. I believe the camera port is 80 based on nmap output.


I am now trying to redirect the stream on my ubuntu laptop. Based on my research and experimentation, this command is the closest I've come :


ffmpeg -re -i http://10.0.0.47/html -map 0:v -f v4l2 /dev/video0


(or also the same with port 80 instead of /html, not sure if this matters) :
ffmpeg -re -i http://10.0.0.47:80 -map 0:v -f v4l2 dev/video0


This seems to work at first, but then produces the following error :


http://10.0.0.47:80 : Invalid data found when processing input


From googling, this may be due to the wrong kind of stream coming out of the rpi_cam_web interface, but I am not sure if this is true and if so how to fix it. I also investigated the html code of the page that accesses the webserver, and I can see that it is sending a series of jpgs, that change constantly with timestamps in the file name. So maybe this the issue, but again, unsure.


Any ideas ? Help would be much appreciated.


Edit : I tried another method, which seems to get a little further on, but am still running into issues :


(on the pi) : raspivid -o - -t 0 -n -w 320 -h 240 -fps 30| cvlc -vvv stream :///dev/stdin —sout '#rtpsdp=rtsp ://:8000/' :demux=h264


—>this starts a stream that I am able to succesfully view in VLC media player


(then on the host system) : gst-launch-1.0 -v rtspsrc location=rtsp ://10.0.0.47:8000/ ! v4l2sink device=/dev/video4


I tried various devices, like /dev/video0, /dev/video1, etc. They all produce '"/dev/videoX" is not a output device', except for video4, which seems to be working at first, but then errors out with :


ERROR : from element /GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0/GstUDPSrc:udpsrc1 : Internal data stream error.
Additional debug info :
gstbasesrc.c(3072) : gst_base_src_loop () : /GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0/GstUDPSrc:udpsrc1 :
streaming stopped, reason not-linked (-1)
Execution ended after 0:00:00.082360368


Any idea what might be going wrong there ?


Edit 2 :


I may have it working with the following sequence of commands :


(on pi) : raspivid -o - -t 0 -n -w 320 -h 240 -fps 30| cvlc -vvv stream :///dev/stdin —sout '#rtpsdp=rtsp ://:8000/' :demux=h264


(on host computer) : ffmpeg -f h264 -i tcp ://10.0.0.47:8000/ -f v4l2 -pix_fmt yuv420p /dev/video0


This doesn't throw any errors, but I'm not 100% sure it's working cause I haven't been able to load the stream in software I'm trying to get the camera feed into yet. I tried testing it with this website tool :




and the tool allows me to select "Dummy Video Device 0x0000", which I'm pretty sure is it, but it then tells me "no video device detected", fails to find any camera in its testing, and then the same Dummy Video Device doesn't show up as an option on subsequent page reloads. So I think there's something wrong about how I'm passing the stream