
Recherche avancée
Autres articles (66)
-
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 ; (...) -
Gestion de la ferme
2 mars 2010, parLa ferme est gérée dans son ensemble par des "super admins".
Certains réglages peuvent être fais afin de réguler les besoins des différents canaux.
Dans un premier temps il utilise le plugin "Gestion de mutualisation"
Sur d’autres sites (6244)
-
Stream multiple docker container audio
18 août 2021, par Sina Zand KarimiI want to run multiple docker containers on a machine and stream the audio via RTP. I can run apps with sound with this command :


sudo docker run -it \
 --device /dev/snd \
 -e PULSE_SERVER=unix:${XDG_RUNTIME_DIR}/pulse/native \
 -v ${XDG_RUNTIME_DIR}/pulse/native:${XDG_RUNTIME_DIR}/pulse/native \
 -v ~/.config/pulse/cookie:/root/.config/pulse/cookie \
 --group-add $(getent group audio | cut -d: -f3) \
 
 ubuntu:16.04 /bin/bash



It works fine and when i play any sound in the container it plays and i can hear it and i can stream it with FFmpeg. The problem is when i run multiple containers and play any sound from any container, it seems they are using the same sink in pulseaudio server so i can't separate them and each stream client hear all the sounds from all the running containers. How can i achieve my goal ?
My FFmpeg Stream code :


ffmpeg -f alsa -i pulse -acodec libmp3lame -ab 128k -ac 2 -ar 48000 -c:a libopus -f rtp rtp://$IP:4001



-
How can I setup PIDs using ffmpeg & MP4 Container ?
11 août 2021, par Manoel RochaIs there anyone who could help me with a simple hint regarding MP4 container ?


Basically I got all the results I need, I just need a help to understand how to define PIDs (or component IDs) for each track inside the container.


The command I'm using :


ffmpeg -i source.mov -c:v libx264 -preset veryfast -b:v 20000K -minrate 20000K -maxrate 20000K -bufsize 40000K -bf 2 -qcomp 0.0 -keyint_min 25 -g 15 -pix_fmt yuv420p -color_trc bt709 -color_primaries bt709 -r 30000/1001 -profile:v high -level 4.1 -bsf:v 'filter_units=remove_types=6' -movflags faststart -metadata:s:v:0 language=eng -metadata:s:v:0 title="Video" -filter_complex "[0] scale=1920:1080" -filter_complex "[0:3][0:1][0:2][0:4][0:5][0:6]join=inputs=6:channel_layout=5.1,loudnorm=I=-23:TP=-1.0:LRA=20" -filter_complex "[0:9][0:7][0:8][0:10][0:11][0:12]join=inputs=6:channel_layout=5.1,loudnorm=I=-23:TP=-1.0:LRA=20" -c:a ac3 -b:a:0 448k -b:a:1 448k -metadata:s:a:0 language=eng -metadata:s:a:0 title="AC-3 5.1" -metadata:s:a:1 language=por -metadata:s:a:1 title="AC-3 5.1" -streamid 0:0x01E1 -streamid 1:0x01E2 -streamid 2:0x01E3 -f mp4 output.mp4



My output file is a MP4 but tracks IDs are 1 (video), 2 (1st audio), 3 (2nd audio).


How can I change these IDs to 101, 201 and 202 ?


Many thanks for your time !


-
FFMPEG wrapping live h264 to mp4 container delay
3 août 2021, par Emil BorconiSorry if this has been asked but I couldn't find the answer.


I'm trying to wrap a live raw h264 stream to a fragmented MP4 container. This is working as expected, with one issue, I have a 5-10 seconds delay between the input and output. Basically the output start after 5-10 seconds of the first input received.


This is my command :


ffmpeg -r 30 -f h264 -i tcp://127.0.0.1:1234 -c:v copy -an -f mp4 -movflags separate_moof+empty_moov+default_base_moof -tune zerolatency -tcp_nodelay true -frag_duration 33000 -max_muxing_queue_size 1 tcp://127.0.0.1:1235



I have played with fflags, with analyzeduration and with everything I could find in the documentation but no joy.


The input stream is receiving NALU units and I can see that it receives a significant amount of units before it actually starts outputting. Once it starts it works perfect, but the output video is always 5-10 seconds behind the input one.


After a bunch of NALU units received I see ffmpeg outputting the following :


2021-08-02 23:46:22.071 24626-11173/app.example.com I/ffmpeg-kit: Input #0, h264, from 'tcp://127.0.0.1:8105':
2021-08-02 23:46:22.071 24626-11173/app.example.com I/ffmpeg-kit: Duration: 
2021-08-02 23:46:22.071 24626-11173/app.example.com I/ffmpeg-kit: N/A
2021-08-02 23:46:22.071 24626-11173/app.example.com I/ffmpeg-kit: , bitrate: 
2021-08-02 23:46:22.071 24626-11173/app.example.com I/ffmpeg-kit: N/A
2021-08-02 23:46:22.071 24626-11173/app.example.com I/ffmpeg-kit: Stream #0:0
2021-08-02 23:46:22.071 24626-11173/app.example.com I/ffmpeg-kit: : Video: h264, yuv420p(tv, smpte170m/bt470bg/smpte170m, progressive), 1280x720
2021-08-02 23:46:22.071 24626-11173/app.example.com I/ffmpeg-kit: , 
2021-08-02 23:46:22.072 24626-11173/app.example.com I/ffmpeg-kit: 30 fps, 
2021-08-02 23:46:22.072 24626-11173/app.example.com I/ffmpeg-kit: 30 tbr, 
2021-08-02 23:46:22.072 24626-11173/app.example.com I/ffmpeg-kit: 1200k tbn, 
2021-08-02 23:46:22.072 24626-11173/app.example.com I/ffmpeg-kit: 60 tbc
2021-08-02 23:46:22.079 24626-11173/app.example.com I/ffmpeg-kit: Output #0, mp4, to 'tcp://127.0.0.1:8104':
2021-08-02 23:46:22.079 24626-11173/app.example.com I/ffmpeg-kit: Metadata:
2021-08-02 23:46:22.079 24626-11173/app.example.com I/ffmpeg-kit: encoder : 
2021-08-02 23:46:22.079 24626-11173/app.example.com I/ffmpeg-kit: Lavf58.67.100
2021-08-02 23:46:22.079 24626-11173/app.example.com I/ffmpeg-kit: Stream #0:0
2021-08-02 23:46:22.079 24626-11173/app.example.com I/ffmpeg-kit: : Video: h264 (avc1 / 0x31637661), yuv420p(tv, smpte170m/bt470bg/smpte170m, progressive), 1280x720, q=2-31
2021-08-02 23:46:22.080 24626-11173/app.example.com I/ffmpeg-kit: , 
2021-08-02 23:46:22.080 24626-11173/app.example.com I/ffmpeg-kit: 30 fps, 
2021-08-02 23:46:22.080 24626-11173/app.example.com I/ffmpeg-kit: 30 tbr, 
2021-08-02 23:46:22.080 24626-11173/app.example.com I/ffmpeg-kit: 15360 tbn, 
2021-08-02 23:46:22.080 24626-11173/app.example.com I/ffmpeg-kit: 30 tbc
2021-08-02 23:46:22.080 24626-11173/app.example.com I/ffmpeg-kit: Stream mapping:
2021-08-02 23:46:22.080 24626-11173/app.example.com I/ffmpeg-kit: Stream #0:0 -> #0:0
2021-08-02 23:46:22.080 24626-11173/app.example.com I/ffmpeg-kit: (copy)
2021-08-02 23:46:22.080 24626-11173/app.example.com I/ffmpeg-kit: Press [q] to stop, [?] for help



That is an Android wrapper, but same thing happen if I run the command on my laptop from the command line.


What am I'm missing, I need this to be real-time / instant muxing...


Thanks for the help.