
Recherche avancée
Autres articles (22)
-
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 (...) -
Taille des images et des logos définissables
9 février 2011, parDans beaucoup d’endroits du site, logos et images sont redimensionnées pour correspondre aux emplacements définis par les thèmes. L’ensemble des ces tailles pouvant changer d’un thème à un autre peuvent être définies directement dans le thème et éviter ainsi à l’utilisateur de devoir les configurer manuellement après avoir changé l’apparence de son site.
Ces tailles d’images sont également disponibles dans la configuration spécifique de MediaSPIP Core. La taille maximale du logo du site en pixels, on permet (...) -
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 (4972)
-
Kodi : playback several video files from the internet as single movie with single timeline
30 mai 2018, par HarryFoxI’m writing an add-on for Kodi in Python, for a site with movie collection, which can be able to playback online video from the site. But problem is that many of them splitted apart on pieces of different length. And its not mpeg dash nor m3u playlists, its just individual pieces of single movie or an episode.
My target is able to play those splitted videos as single movie with single timeline and playback will no require download all pieces of a movie. It’s important because many of Movies\episodes provides with subtitle file, that why single timeline is important. Also general idea for plugin which I’m writing is comfort to use, so online playback is very important too.
I did some research but it almost no result. On official Kodi forum advise to create Input Stream add-on like Input Stream Adaptive, but it was written on c++ and it’s unattainable for me (for now at least). There is no tools for python to create such kind of add-ons.
Another idea is to create middle server which on fly will somehow (with ffmpeg) combine those pieces, but it seems that the process will too resource-intensive especially for TV-boxes.
In this case also raise many question about which way is better, and i have no enough experience and knowledge to solve the problems by myself even with google.So i need an advice how can i solve the problem, just to know right direction.
Thank you for your time.
Sorry for my English. -
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. -
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