
Recherche avancée
Autres articles (37)
-
Configuration spécifique pour PHP5
4 février 2011, parPHP5 est obligatoire, vous pouvez l’installer en suivant ce tutoriel spécifique.
Il est recommandé dans un premier temps de désactiver le safe_mode, cependant, s’il est correctement configuré et que les binaires nécessaires sont accessibles, MediaSPIP devrait fonctionner correctement avec le safe_mode activé.
Modules spécifiques
Il est nécessaire d’installer certains modules PHP spécifiques, via le gestionnaire de paquet de votre distribution ou manuellement : php5-mysql pour la connectivité avec la (...) -
Ajouter notes et légendes aux images
7 février 2011, parPour pouvoir ajouter notes et légendes aux images, la première étape est d’installer le plugin "Légendes".
Une fois le plugin activé, vous pouvez le configurer dans l’espace de configuration afin de modifier les droits de création / modification et de suppression des notes. Par défaut seuls les administrateurs du site peuvent ajouter des notes aux images.
Modification lors de l’ajout d’un média
Lors de l’ajout d’un média de type "image" un nouveau bouton apparait au dessus de la prévisualisation (...) -
La sauvegarde automatique de canaux SPIP
1er avril 2010, parDans le cadre de la mise en place d’une plateforme ouverte, il est important pour les hébergeurs de pouvoir disposer de sauvegardes assez régulières pour parer à tout problème éventuel.
Pour réaliser cette tâche on se base sur deux plugins SPIP : Saveauto qui permet une sauvegarde régulière de la base de donnée sous la forme d’un dump mysql (utilisable dans phpmyadmin) mes_fichiers_2 qui permet de réaliser une archive au format zip des données importantes du site (les documents, les éléments (...)
Sur d’autres sites (8455)
-
ffmpeg : adding a stream non-muxed stream with correct codec type tagging
13 janvier 2021, par HamishIn common use, I believe ffmpeg requires inputs to be in a specified muxer format which contains one or more data streams which can be decoded with a codec supported by the demuxer associated with the format. I have a data stream (not audio or video) which is already encoded with a codec but is not muxed. How can I get this stream into the ffmpeg pipeline with the correct codec type assigned so that the muxer knows what to do with it ?


I have tried streaming the data over UDP and specifying the
data
demuxer. With some combinations I get get it to say it's streaming, I can never get a player to connect, presumable because the output ofmpegts
is either null or invalid. Command line :

ffmpeg -v verbose ^
-f flv -listen 1 -i rtmp://127.0.0.1:1101 ^
-f data -i udp://127.0.0.1:1300 ^
 -map 0:v -vcodec mpeg2video -map 1:d -f mpegts -mpegts_m2ts_mode 1 udp://localhost:1200



Result (partial) :


Input #0, flv, from 'rtmp://127.0.0.1:1101':
 Metadata:
 encoder : Lavf58.29.100
 Duration: 00:00:00.00, start: 0.000000, bitrate: N/A
 Stream #0:0: Video: h264 (Constrained Baseline), 1 reference frame, yuv420p(progressive, left), 5760x1080 (5760x1088), 30 fps, 30 tbr, 1k tbn, 60 tbc
 Stream #0:1: Audio: mp3, 48000 Hz, stereo, fltp, 128 kb/s
Input #1, data, from 'udp://127.0.0.1:1300':
 Duration: N/A, start: 0.000000, bitrate: N/A
 Stream #1:0: Data: none
Stream mapping:
 Stream #0:0 -> #0:0 (h264 (native) -> mpeg2video (native))
 Stream #1:0 -> #0:1 (copy)
Press [q] to stop, [?] for help
[h264 @ 00000180d48ae700] Reinit context to 5760x1088, pix_fmt: yuv420p
[graph 0 input from stream 0:0 @ 00000180d489dcc0] w:5760 h:1080 pixfmt:yuv420p tb:1/1000 fr:30/1 sar:0/1
[mpegts @ 00000180d5f64040] Cannot automatically assign PID for stream 1
Could not write header for output file #0 (incorrect codec parameters ?): Invalid argument
Error initializing output stream 0:0 --
[AVIOContext @ 00000180d48b83c0] Statistics: 0 seeks, 0 writeouts
[AVIOContext @ 00000180d4882080] Statistics: 185593 bytes read, 0 seeks
[AVIOContext @ 00000180d5f469c0] Statistics: 204 bytes read, 0 seeks
Conversion failed!



The codec type name is
klv
, which has the tagKLVA
. It is only supported by thempegts
andmxf
(de)muxers. I presume there must be a way of getting into the pipeline without having a validmpegts
ormxf
stream in the first place otherwise we have a kind of paradox.

I've tried specifying the codec on the input, but it fails validation, I guess because the
data
demuxer does not support it.

Somehow
mp4
files can be muxed from elemental streams (h264
andaac
files), but I guess there must be some special case in the code to force the codec type based on the file extension.

I would really love to do this from the command line with a public build but if this is absolutely not possible, I would also welcome some advice about it could be achieved from C++ code.


-
Connecting to RTSP stream via FFMpeg - 'could not find codec parameters for stream 0'
14 novembre 2013, par user2992545I'm a beginner in the FFMpeg world, so please excuse me my overall level of knowledge and any mistakes.
What I have here is a DVR, made by ITX Security. I have an SDK for it and currently I'm trying to connect to its RTSP using FFMPEG. I've been partially succesfull (i think), the best what I got was :
`(...)bin>ffplay -user-agent "ITX Security" rtsp://ADMIN:1234@192.168.2.130:5554/live/
[rtsp @ 02a242e0] UDP timeout, retrying with TCPB sq=0B f=0/0
[rtsp @ 02a242e0] method PAUSE failed: 501 Not Implemented
[rtsp @ 02a242e0] Could not find codec parameters for stream 0 (Video: h264):unspecified size Consider increasing the value for the 'analyzeduration' and 'probesize' options
rtsp://ADMIN:1234@192.168.2.130:5554/live/: could not find codec parameters
nan: 0.000 fd=0 aq= 0KB vq= 0KB sq= 0B f=0/0`Is it really indicating that it has trouble in playing the stream (because it lacks a proper codec ?) - or am I just not getting the point ?
I've captured traffic between my computer and the DVR in question, and something is happening (at least that's what Wireshark says).
https://www.dropbox.com/s/j65lige244kg8jt/rtsp_ffmpeg.pcap
What am I doing wrong ?
Regards.
-
ffserver + ffmpeg, out rtsp stream : why ffplay cannot play the stream, but movie player can
18 juillet 2014, par user1914692Ubuntu 12.04
I use ffserver + ffmpeg.There are a little revision of the original /etc/ffserver.conf :
RTSPPort 5454
RTSPBindAddress 0.0.0.0
# ...
<stream>
Format rtp
# coming from live feed 'feed1'
Feed feed1.ffm
</stream>The command of ffmpeg (Option 1) is :
ffmpeg -re -i '/usr/share/red5/webapps/oflaDemo/streams/hobbit_vp6.flv' http://localhost:8090/feed1.ffm
BTW, if I use Option 2 as below, it does not work :
ffmpeg -re -i '/usr/share/red5/webapps/oflaDemo/streams/hobbit_vp6.flv' http://192.168.1.105:8090/feed1.ffm
## not work:
[http @ 0x21a9c80] HTTP error 404 Not Found
http://192.168.1.105:8090/feed1.ffm: Input/output errorSo now I need to display the stream.
On the other computer :(Option 1)
ffplay rtsp://192.168.1.105:5454/test2-rtsp.mpg
Not work. [Output] rtsp UDP timeout, retrying with TCP.
Why ?(Option 2) movie player : Open location : rtsp ://192.168.1.105:5454/test2-rtsp.mpg
it works !