
Recherche avancée
Médias (1)
-
Video d’abeille en portrait
14 mai 2011, par
Mis à jour : Février 2012
Langue : français
Type : Video
Autres articles (107)
-
MediaSPIP 0.1 Beta version
25 avril 2011, parMediaSPIP 0.1 beta is the first version of MediaSPIP proclaimed as "usable".
The zip file provided here only contains the sources of MediaSPIP in its standalone version.
To get a working installation, you must manually install all-software dependencies on the server.
If you want to use this archive for an installation in "farm mode", you will also need to proceed to other manual (...) -
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 (...)
Sur d’autres sites (6570)
-
Synchronize raspicam video and arecord for ffmpeg rtmp streaming
6 mars 2017, par Роман МальцевI’m trying to synchronize video and audio from my raspicam and arecord and make rtmp stream with ffmpeg and 3g modem, but don’t know how to do that. I have tried with this code :
raspivid -t 0 -w 1024 -h 768 -fps 25 -vf -hf -b 1000000 -v -o temp.v & arecord -f cd -D plughw:0 | ffmpeg -i temp.v -itsoffset 13.5 -i - -c:v copy -c:a libmp3lame -b:a 64k -vsync 0 -f flv rtmp://ipofmynginxserver/myapp/mystream
and
raspivid -t 0 -w 1024 -h 768 -fps 25 -g 60 -vf -hf -b 1000000 -v -o temp.v & arecord -f cd -D plughw:0 | ffmpeg -r 25.37 -i temp.v -itsoffset 13.5 -i - -c:v copy -c:a libmp3lame -b:a 64k -vsync 0 -async 1 -f flv rtmp://ipofmynginxserver/myapp/mystream
At first everything is fine (because of the offset) But after connection lost for 2-4 seconds audio and video starting to play asynchronus (audio first)
I have tried to change options vsync and async but it didn’t make sense. If I’m trying to get alsa microphone with ffmpeg I’m getting alsa buffer xrun and it doesn’t work, the only way for me is to use raspivid and arecord, how can I solve my problem ? Thanks and sorry for my English. -
ffmpeg how to convert pgs subtitles to srt
20 mai 2015, par 8ofspadesI’m having an issue with extracting subtitles from ffmpeg 2.6.2. I have an mkv file with 6 subtitle streams, and I would like to generate srt files for all of them. My ffprobe output for the streams is below.
Stream #0:0(eng): Video: h264 (High), yuv420p, 1280x720 [SAR 1:1 DAR 16:9], 29.97 fps, 29.97 tbr, 1k tbn, 59.94 tbc (default)
Stream #0:1(ita): Audio: ac3, 48000 Hz, stereo, fltp, 448 kb/s (default)
Stream #0:2(ita): Audio: dts (DTS), 48000 Hz, 5.0(side), fltp, 1536 kb/s
Metadata:
title : Italian
Stream #0:3(rus): Subtitle: subrip (default)
Metadata:
title : Russian
Stream #0:4(ita): Subtitle: hdmv_pgs_subtitle
Metadata:
title : Italian
Stream #0:5(eng): Subtitle: hdmv_pgs_subtitle
Metadata:
title : English
Stream #0:6(fre): Subtitle: hdmv_pgs_subtitle
Metadata:
title : French
Stream #0:7(ger): Subtitle: hdmv_pgs_subtitle
Metadata:
title : German
Stream #0:8(spa): Subtitle: hdmv_pgs_subtitle
Metadata:
title : SpanishThe russian (subrip) subtitles work fine with
ffmpeg -i input.mkv -c:s:0 copy sub_ru.srt
however when I try and select and of the other (pgs) subtitle streams, it ignores the stream I selected and outputs the russian (stream 0:3) subtitles.
I’m not sure if this an issue with my ffmpeg command or the fact that the other streams are pgs.
Thanks
-
Python : mp3 to wave.open(f,'r') through ffmpeg pipe
7 avril 2015, par user2754098I’m trying to decode mp3 to wav using ffmpeg :
import alsaaudio
import wave
from subprocess import Popen, PIPE
with open('filename.mp3', 'rb') as infile:
p=Popen(['ffmpeg', '-i', '-', '-f', 'wav', '-'], stdin=infile, stdout=PIPE)
...Next i want redirect data from p.stdout.read() to wave.open(file, r) to use readframes(n) and other methods. But i cannot because ’file’ in wave.open(file,’r’) can be only name of file or an open file pointer.
...
file = wave.open(p.stdout.read(),'r')
card='default'
device=alsaaudio.PCM(card=card)
device.setchannels(file.getnchannels())
device.setrate(file.getframerate())
device.setformat(alsaaudio.PCM_FORMAT_S16_LE)
device.setsetperiodsize(320)
data = file.readframes(320)
while data:
device.write(data)
data = file.readframes(320)I got :
TypeError: file() argument 1 must be encoded string without NULL bytes, not str
So is it possible to handle data from p.stdout.read() by wave.open() ?
Making temporary .wav file isn’t solution.Sorry for my english.
Thanks.