
Recherche avancée
Autres articles (70)
-
Le profil des utilisateurs
12 avril 2011, parChaque utilisateur dispose d’une page de profil lui permettant de modifier ses informations personnelle. Dans le menu de haut de page par défaut, un élément de menu est automatiquement créé à l’initialisation de MediaSPIP, visible uniquement si le visiteur est identifié sur le site.
L’utilisateur a accès à la modification de profil depuis sa page auteur, un lien dans la navigation "Modifier votre profil" est (...) -
Configurer la prise en compte des langues
15 novembre 2010, parAccéder à la configuration et ajouter des langues prises en compte
Afin de configurer la prise en compte de nouvelles langues, il est nécessaire de se rendre dans la partie "Administrer" du site.
De là, dans le menu de navigation, vous pouvez accéder à une partie "Gestion des langues" permettant d’activer la prise en compte de nouvelles langues.
Chaque nouvelle langue ajoutée reste désactivable tant qu’aucun objet n’est créé dans cette langue. Dans ce cas, elle devient grisée dans la configuration et (...) -
XMP PHP
13 mai 2011, parDixit Wikipedia, XMP signifie :
Extensible Metadata Platform ou XMP est un format de métadonnées basé sur XML utilisé dans les applications PDF, de photographie et de graphisme. Il a été lancé par Adobe Systems en avril 2001 en étant intégré à la version 5.0 d’Adobe Acrobat.
Étant basé sur XML, il gère un ensemble de tags dynamiques pour l’utilisation dans le cadre du Web sémantique.
XMP permet d’enregistrer sous forme d’un document XML des informations relatives à un fichier : titre, auteur, historique (...)
Sur d’autres sites (8841)
-
FFMPEG output to append to a text file without overwriting the content
5 juin 2018, par ST94I am sending a UDP stream to the destination and saving the contents of the FFMPEG output to a text file. I run the ffmpeg command in a loop as follows,
while :
do
echo `ffmpeg -hide_banner -f v4l2 -i /dev/video0 -c:v libx264 -f mpegts tcp://ip:port -c:v libx264 /path/to/.mp4 2> out.txt -y`
doneWhen I disconnect the cable connected the destination, the above ffmpeg process stops and a new one starts oevrwriting the content of the output that has been saved. And when I reconnect the cable, a new ffmpeg process starts and its output is what is displayed in the out.txt file.
I need the output of each ffmpeg process that runs to an output file. Can anyone please suggest me a way to do it ?
-
avformat/mpegts : parse large PMTs with multiple tables
11 juin 2018, par Aman Guptaavformat/mpegts : parse large PMTs with multiple tables
In 9152c1e4955, the mpegts parser was taught how to parse
PMT sections which contained multiple tables. That commit
fixed parsing of PMT packets from some cable providers,
which included a special SCTE table (0xc0) before the
standard program map table (0x2).Sometimes, however, the combined 0xc0 and 0x2 tables are
larger than a single TS packet (188 bytes). The mpegts parser
already attempts to parse sections which span multiple packets,
but still assumed that the split section only contained one
table.This patch fixes parsing of such a sample[1].
Before :
Input #0, mpegts, from 'combined-pmt-tids-split.ts' :
Duration : 00:00:01.26, start : 39188.931756, bitrate : 597 kb/s
Program 1
No Program
Stream #0:0[0xeff] : Audio : ac3, 48000 Hz, mono, fltp, 64 kb/s
Stream #0:1[0xefd] : Audio : mp3, 0 channels, fltp
Stream #0:2[0xefe] : Unknown : noneAfter :
Input #0, mpegts, from 'combined-pmt-tids-split.ts' :
Duration : 00:00:01.27, start : 39188.931756, bitrate : 589 kb/s
Program 1
Stream #0:0[0xefd] : Video : h264 ([27][0][0][0] / 0x001B), none, 59.94 fps, 59.94 tbr, 90k tbn, 180k tbc
Stream #0:1[0xefe](eng) : Audio : ac3 ([129][0][0][0] / 0x0081), 48000 Hz, stereo, fltp, 384 kb/s
Stream #0:2[0xeff](spa) : Audio : ac3 ([129][0][0][0] / 0x0081), 48000 Hz, mono, fltp, 64 kb/s
Stream #0:3[0xf00] : Data : scte_35
Stream #0:4[0xf01] : Unknown : none (ETV1 / 0x31565445)
Stream #0:5[0xf02] : Unknown : none (ETV1 / 0x31565445)
Stream #0:6[0xf03] : Unknown : none ([192][0][0][0] / 0x00C0)With the patch, the PMT is parsed correctly so the streams are
created in the correct order, are associated with "Program 1",
and their codecs are set correctly.[1] https://s3.amazonaws.com/tmm1/combined-pmt-tids-split.ts
Signed-off-by : Aman Gupta <aman@tmm1.net>
Signed-off-by : Michael Niedermayer <michael@niedermayer.cc> -
Stream Live IP cam to Youtube on FFMPEG
24 juillet 2018, par Håkon BerntsenI`m streaming 2 IP cams (live webcam for tourists) from 2 Raspberry Pi, using FFMPEG (version 3.4.2) to YouTube. IPcam no.1 and Raspberry no.1 fails once a month or so, and that issue is solved with a Cron job that restarts the scripts if the service is not running.
The stream from IPcam no.2 fail after 1 hour to maybe 24 hours, even though its the same FFMPEG command and same setup.
FFMPEG keep streaming and the service is running on the Raspberry. YouTube stop receiving the stream, but there is no logs to be found at YouTube.The bandwidth is not an issue (fiber), and the cameras are both connect with Cat5 cable. The only way to restart the stream (so YouTube restart the stream) is to restart the service (since its an cronjob that restart the service only if the service is no longer running, I`m forced to do a pkill). I have also tried to set up another cron job that kills the service every 15 minutes, but its not really an elegant solution.
Both cameras streams H264.
Stream no.2 can be seen here : https://www.youtube.com/embed/live_stream?channel=UCEJJjA5IsjE0JjuiqfxZFaw
The command I`m using is :
COMMAND="sudo ffmpeg -f lavfi -i anullsrc -thread_queue_size 512 -rtsp_transport tcp -i ${RTSP_URL} -vcodec libx264 -pix_fmt + -c:v copy -c:a aac -f flv ${YOUTUBE_URL}/${YOUTUBE_KEY}"
I hope there is someone that can help with ideas to the command or to why the stream fail.