
Recherche avancée
Autres articles (73)
-
Organiser par catégorie
17 mai 2013, parDans MédiaSPIP, une rubrique a 2 noms : catégorie et rubrique.
Les différents documents stockés dans MédiaSPIP peuvent être rangés dans différentes catégories. On peut créer une catégorie en cliquant sur "publier une catégorie" dans le menu publier en haut à droite ( après authentification ). Une catégorie peut être rangée dans une autre catégorie aussi ce qui fait qu’on peut construire une arborescence de catégories.
Lors de la publication prochaine d’un document, la nouvelle catégorie créée sera proposée (...) -
Des sites réalisés avec MediaSPIP
2 mai 2011, parCette page présente quelques-uns des sites fonctionnant sous MediaSPIP.
Vous pouvez bien entendu ajouter le votre grâce au formulaire en bas de page. -
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 (6798)
-
How to label outputs inside the ffmpeg's process of transcoding for use them in mapping and in tee muxer ?
20 juillet 2022, par youniI have a video, that consists of video stream and audio stream. I trancode it into two videos : 1920x1080 and 1280x720 with the same audio stream. I do not wish to transcode audio stream two times, I wish to use it twice with ffmpeg '-f tee' option. Now I need your support.


This does not work :


ffmpeg -to 00:00:10 -i /v \
 -map 0:v -an -vcodec libx264 -s 1920x1080 -b:v 4000k [VIDEO]\
 -map 0:v -an -vcodec libx264 -s 1280x720 -b:v 2000k [VIDEO2]\
 -f tee \
 -map [VIDEO] -map [VIDEO2] -map 0:a \
 -c:a mp3 -ab 42k \
 "[select='0,2':f=flv]1.mp4|[select='1,2':f=flv]2.mp4"
[NULL @ 0x55b7e2709340] Unable to find a suitable output format for '[VIDEO]'
[VIDEO]: Invalid argument



My logic here was to label each output after -vcodec.. options and use these two labels in mapping and in tee muxer. Could you, please, advise what to do here ?


This also does not work :


ffmpeg -to 00:00:10 -i /v \
 -c:a mp3 -ab 42k \
 -filter_complex '[0:a]acopy[AUDIO];[0:a]acopy[AUDIO2]' \
 -map v -map [AUDIO] -vcodec libx264 -s 1920x1080 -b:v 4000k -f flv 1.mp4 \
 -map v -map [AUDIO2] -vcodec libx264 -s 1280x720 -b:v 2000k -f flv 2.mp4
ffprobe 1.mp4
ffprobe 2.mp4
 1.mp4: Stream #0:1: Audio: mp3, 48000 Hz, stereo, fltp, 42 kb/s
 2.mp4: Stream #0:1: Audio: mp3, 48000 Hz, stereo, fltp, 128 kb/s



The result file 2.mp4 has default audio settings : 128 kb/s instead of 42 kb/s.


My workable variant gives exactly correct result, but the process of transcoding is not optimized :


ffmpeg -to 00:00:10 -i /v \
 -c:a mp3 -ab 42k -vcodec libx264 -s 1920x1080 -b:v 4000k -f flv 1.mp4 \
 -c:a mp3 -ab 42k -vcodec libx264 -s 1280x720 -b:v 2000k -f flv 2.mp4



In this process ffmpeg transcodes audio stream twice, as I think. But I need to optimize this process and transcode audio stream once and use it twice with tee muxer. Could you say me, how to label outputs correctly as in my first code for use them in -map ?


-
Revision 593fe475bd : Removed support for the Autotools build system.
21 juillet 2012, par Marc NoirotChanged Paths :
Delete /Makefile.am
Delete /autogen.sh
Delete /configure.ac
Delete /man/Makefile.am
Delete /schemas/Makefile.am
Delete /src/Makefile.am
Delete /src/libyaml/Makefile.am
Delete /tests/Makefile.am
Removed support for the Autotools build system. -
ffmpeg change inputs / mapping while recording
20 avril 2020, par SuuuehgiI have a rtsp video-source
stream1
and an audio source I currently merge and send to a rtmp-server using :


stream1="rtsp://streamurl1"

/usr/bin/ffmpeg \
 [...]
 -i "$stream1" \
 [...]
 -itsoffset $AUDIOVIDEOOFFSET \
 -f pulse \
 -i default \
 [...]
 -vcodec copy \
 -map 0:v -map 1:a \
 [...]
 -f flv "rtmp://streamingserver"






I would now like to add a second video source
stream2
and switch betweenstream1
andstream2
back and forth without interrupting the audio. Both streams are identical / come from identical cameras.




Is there any sane way to do this with
ffmpeg
? Or how would you recommend doing it ?


Just stopping the process and restarting it using
stream2
instead ofstream1
works but results in several seconds outage on the stream and is the current worst case scenario I would like to improve.