
Recherche avancée
Médias (2)
-
Granite de l’Aber Ildut
9 septembre 2011, par
Mis à jour : Septembre 2011
Langue : français
Type : Texte
-
Géodiversité
9 septembre 2011, par ,
Mis à jour : Août 2018
Langue : français
Type : Texte
Autres articles (79)
-
L’espace de configuration de MediaSPIP
29 novembre 2010, parL’espace de configuration de MediaSPIP est réservé aux administrateurs. Un lien de menu "administrer" est généralement affiché en haut de la page [1].
Il permet de configurer finement votre site.
La navigation de cet espace de configuration est divisé en trois parties : la configuration générale du site qui permet notamment de modifier : les informations principales concernant le site (...) -
Mediabox : ouvrir les images dans l’espace maximal pour l’utilisateur
8 février 2011, parLa visualisation des images est restreinte par la largeur accordée par le design du site (dépendant du thème utilisé). Elles sont donc visibles sous un format réduit. Afin de profiter de l’ensemble de la place disponible sur l’écran de l’utilisateur, il est possible d’ajouter une fonctionnalité d’affichage de l’image dans une boite multimedia apparaissant au dessus du reste du contenu.
Pour ce faire il est nécessaire d’installer le plugin "Mediabox".
Configuration de la boite multimédia
Dès (...) -
Support audio et vidéo HTML5
10 avril 2011MediaSPIP utilise les balises HTML5 video et audio pour la lecture de documents multimedia en profitant des dernières innovations du W3C supportées par les navigateurs modernes.
Pour les navigateurs plus anciens, le lecteur flash Flowplayer est utilisé.
Le lecteur HTML5 utilisé a été spécifiquement créé pour MediaSPIP : il est complètement modifiable graphiquement pour correspondre à un thème choisi.
Ces technologies permettent de distribuer vidéo et son à la fois sur des ordinateurs conventionnels (...)
Sur d’autres sites (5485)
-
AVPlayer won't play audio files from FFMPEG
18 janvier 2021, par MarcusBefore requesting audio data AVPlayer requests byte range 0-1 from FFMPEG.


FFMPEG gives a 200 response, but AVPlayer requires a 206 response.


This results in the request failing and audio can't be played.


Expected behavior :
Play tracks when streaming through ffmpeg


Current behavior : When trying to stream with ffmpeg we get "Operation Stopped"


Sample FFMPEG command :


ffmpeg -i "/path/to/audio/track.mp3" -vn -strict -2 -acodec pcm_u8 -f wav -listen 1 -seekable 1 http://localhost:8090/restream.wav



Player Log :


Error Domain=AVFoundationErrorDomain Code=-11850 "Operation Stopped" UserInfo={NSLocalizedFailureReason=The server is not correctly configured., NSLocalizedDescription=Operation Stopped, NSUnderlyingError=0x600003bcc4b0 {Error Domain=NSOSStatusErrorDomain Code=-12939 "(null)"}}
!av_interleaved_write_frame(): Broken pipe

!Connection to tcp://localhost:8090 failed: Connection refused

!Connection to tcp://localhost:8090 failed: Connection refused

!Connection to tcp://localhost:8090 failed: Connection refused

!Error writing trailer of http://localhost:8090/restream.wav: Broken pipe



This error is defined by Apple as :


+"The HTTP server sending the media resource is not configured as expected. This might mean that the server does not support byte range requests."



And summarised nicely in this StackOverflow post :


when AVPlayerItem receive a video URL , it do the following task:

 Send a bytes request HTTP Request, and range = 0 -1
 If the response code is 206 and return 1 bytes data, It do the 3th task, if not, AVErrorServerIncorrectlyConfigured error occurred.
 continue send other HTTP Request, to download segment of All duration. and the response of VideoData code must be 206

In my situation , when send range[0-1] HTTP request, the server side give me a 200 OK response, So error occurred.



Network Log :


GET /file.wav HTTP/1.1
Host: localhost:1234
X-Playback-Session-Id: F72F1139-6F4C-4A22-B334-407672045A86
Range: bytes=0-1
Accept: */*
User-Agent: AppleCoreMedia/1.0.0.18C61 (iPhone; U; CPU OS 14_3 like Mac OS X; en_us)
Accept-Language: en-us
Accept-Encoding: identity
Connection: keep-alive

HTTP/1.1 200 OK
Content-Type: application/octet-stream
Transfer-Encoding: chunked



Reproduce using this sample app :


This can also be reproduced using standard ffmpeg and adding URL to local or remote ffmpeg URL


Can we solve this by making changes to FFMPEG or AVPlayer ?


-
FFMPEG throws error can not open display error for :1
2 décembre 2020, par Krishnai am using Xvfb for starting X server on display 1 and x11vnc is also set for -display :1 along with fluxbox as window manager on Ubuntu 20.04 LTS like using below commands


sudo -i -u ubuntu Xvfb :1 +extension GLX -screen 0 1440x1080x16 -ac sudo -i -u ubuntu DISPLAY=:1 fluxbox sudo -i -u ubuntu x11vnc -forever -display :1


and when i run command : "ffmpeg -video_size 1440x1080 -framerate 25 -f x11grab -i :1.0 -c:v libx264rgb -crf 0 -preset ultrafast sample.mp4" it runs, however when i execute programmatically through processbuilder i see that in output buffer stream log file as :1 : Invalid argument and doesn't start recording,


Command sent to processBuilder is like below :


pb = new ProcessBuilder(ffmpegLocation, "-video_size", "1440x1080x16",
"-f", "x11grab", "-i", ":1", "-c:v libx264 -crf 0 -preset ultrafast", "-framerate","25", outputfilepath()) ;


-FYI i have tried setting environmental variable as export DISPLAY=:1 , but still same error and also do i need to set the DISPLAY=:1, since i am setting up display number when i start Xvfb ? this used to work using avconv on older version of ubuntu but i am stuck on display issue for ffmpeg, anyone has idea how to resolve this ?


-
Raspberry Pi cannot connect to IP camera, while Windows PC can ?
28 novembre 2020, par gf000I have an IP camera (Provision ISR, DI-320IPS-VF, 2MP IR Vari-Focal Dome IP Camera). When I connect it to my router (it is a 10 or 12 years old TP-LINK TL-WR1043ND), it will immediately show up in "IP Manager" (this is a program by the manufacturer) on my Windows PC. If I double click on the camera's row, Internet Explorer opens up, and everything is working fine. On the same Windows PC, if I open VLC Media Player, and paste this URL : rtsp ://username:password@localipaddress:554/profile1
It works fine.


I have also a "Raspberry Pi 4 model B 4 GB RAM", which is connected to the same router. If I open VLC Media Player, and I paste the same URL, it doesn't work. I also created an ffmpeg one-liner, which would take a photo, but that is also not working.


My final goal would be to be able to take photos with that ffmpeg one-liner, on the Raspberry Pi.


Maybe the Raspberry Pi is not powerful enough to handle the stream ? Or, could it be the problem that the IP-camera is sending H-264 / H-265 video stream, and the Raspberry Pi cannot handle it ?


Thank you for your help. Any idea could help me.