
Recherche avancée
Autres articles (68)
-
MediaSPIP Core : La Configuration
9 novembre 2010, parMediaSPIP Core fournit par défaut trois pages différentes de configuration (ces pages utilisent le plugin de configuration CFG pour fonctionner) : une page spécifique à la configuration générale du squelettes ; une page spécifique à la configuration de la page d’accueil du site ; une page spécifique à la configuration des secteurs ;
Il fournit également une page supplémentaire qui n’apparait que lorsque certains plugins sont activés permettant de contrôler l’affichage et les fonctionnalités spécifiques (...) -
Amélioration de la version de base
13 septembre 2013Jolie sélection multiple
Le plugin Chosen permet d’améliorer l’ergonomie des champs de sélection multiple. Voir les deux images suivantes pour comparer.
Il suffit pour cela d’activer le plugin Chosen (Configuration générale du site > Gestion des plugins), puis de configurer le plugin (Les squelettes > Chosen) en activant l’utilisation de Chosen dans le site public et en spécifiant les éléments de formulaires à améliorer, par exemple select[multiple] pour les listes à sélection multiple (...) -
Menus personnalisés
14 novembre 2010, parMediaSPIP utilise le plugin Menus pour gérer plusieurs menus configurables pour la navigation.
Cela permet de laisser aux administrateurs de canaux la possibilité de configurer finement ces menus.
Menus créés à l’initialisation du site
Par défaut trois menus sont créés automatiquement à l’initialisation du site : Le menu principal ; Identifiant : barrenav ; Ce menu s’insère en général en haut de la page après le bloc d’entête, son identifiant le rend compatible avec les squelettes basés sur Zpip ; (...)
Sur d’autres sites (9872)
-
sending udp cbr content using ffmpeg makes memory problem
30 décembre 2020, par PrzemoI am struggling with muxing a few UDP inputs (SPTS from file) in one UDP output (MPTS).
When I use following command


ffmpeg -thread_queue_size 2048 -i "udp://233.0.0.1:4005?fifo_size=1000000&buffer_size=10000000" -thread_queue_size 2048 -i "udp://233.0.0.1:4000?fifo_size=1000000&buffer_size=10000000" -thread_queue_size 2048 -i "udp://233.0.0.1:4001?fifo_size=1000000&buffer_size=10000000" -thread_queue_size 2048 -i "udp://233.0.0.1:4002?fifo_size=1000000&buffer_size=10000000" -thread_queue_size 2048 -i "udp://233.0.0.1:4003?fifo_size=1000000&buffer_size=10000000" -thread_queue_size 2048 -i "udp://233.0.0.1:4004?fifo_size=1000000&buffer_size=10000000" -map 0 -map 1 -map 2 -map 3 -map 4 -map 5 -program title=Program0:st=0:st=1 -program title=Program1:st=2:st=3 -program title=Program2:st=4:st=5 -program title=Program3:st=6:st=7 -program title=Program4:st=8:st=9 -program title=Program5:st=10:st=11 -c copy -metadata service_provider=FILE -f mpegts -muxrate 40000000 -flush_packets 0 "udp://239.2.2.2:2222?overrun_nonfatal=1&fifo_size=1000000&buffer_size=10000000&pkt_size=1316&ttl=1"



I can play (with VLC) the MPTS content many hours with no problems.


When I add a bitrate parameter to make UDP output stream as CBR


"udp://239.2.2.2:2222?overrun_nonfatal=1&fifo_size=1000000&buffer_size=10000000&pkt_size=1316&ttl=1&bitrate=40000000"



instead of


"udp://239.2.2.2:2222?overrun_nonfatal=1&fifo_size=1000000&buffer_size=10000000&pkt_size=1316&ttl=1"



a hear many audio cuts, and from VLC I see then :




main warning : timing screwed (drift : -89659 us) : stopping resampling

main warning : playback too early (-89367) : down-sampling

main warning : playback way too early (-126525) : playing silence

main debug : inserting 6073 zeroes

main warning : playback too early (-47858) : down-sampling

main warning : timing screwed (drift : -97495 us) : stopping resampling

main warning : playback too early (-96807) : down-sampling

main warning : playback way too early (-134672) : playing silence

main debug : inserting 6464 zeroes



and after some random time (several minutes) ffmpeg stops working due to following error :




av_interleaved_write_frame() : Cannot allocate memory




How to make it work with CBR UDP bitrate ?

I tired changing parameters of buffer_size and fifo_size but with no success.

I've increased OS UDP buffers to improve performance but same memory problem is visible

-
use content of ffmpeg -i when cutting
21 juillet 2015, par BabbI want to make a script (bash or bat) that cuts out parts of a .mp4 file based on the ffmpeg -i output.
When i run ffmpeg -i this is part of the output :
Duration: 00:25:49.93, start: 0.000000, bitrate: 2624 kb/s
Chapter #0.0: start 0.000000, end 6.524000
Metadata:
title : Video
Chapter #0.1: start 6.524000, end 39.143000
Metadata:
title : Advertisement
Chapter #0.2: start 39.143000, end 453.007000
Metadata:
title : Video
Chapter #0.3: start 453.007000, end 499.780000
Metadata:
title : Advertisement
Chapter #0.4: start 499.780000, end 791.707000
Metadata:
title : Video
Chapter #0.5: start 791.707000, end 822.983000
Metadata:
title : Advertisement
Chapter #0.6: start 822.983000, end 1213.436000
Metadata:
title : Video
Chapter #0.7: start 1213.436000, end 1262.162000
Metadata:
title : Advertisement
Chapter #0.8: start 1262.162000, end 1549.933000
Metadata:
title : VideoI only want the "Video" chapters, so the output would be :
Video1.mp4
Video2.mp4
Video3.mp4
Video4.mp4
Video5.mp4Then I can use
ffmpeg -f concat -i files.txt -map 0 -c copy output.mp4
to joint them back together.
-
Révision 23048 : SPIP n’envoyait pas l’en-tête Content-Length, ce qui empêche de profiter des conn...
20 juin 2016, par esj@rezo.netmais c’est comme pour la prévisu en mode non HTML (cf. r20455), il suffit de placer ce calcul en aval.