
Recherche avancée
Autres articles (65)
-
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 (...) -
HTML5 audio and video support
13 avril 2011, parMediaSPIP uses HTML5 video and audio tags to play multimedia files, taking advantage of the latest W3C innovations supported by modern browsers.
The MediaSPIP player used has been created specifically for MediaSPIP and can be easily adapted to fit in with a specific theme.
For older browsers the Flowplayer flash fallback is used.
MediaSPIP allows for media playback on major mobile platforms with the above (...) -
Publier sur MédiaSpip
13 juin 2013Puis-je poster des contenus à partir d’une tablette Ipad ?
Oui, si votre Médiaspip installé est à la version 0.2 ou supérieure. Contacter au besoin l’administrateur de votre MédiaSpip pour le savoir
Sur d’autres sites (9179)
-
How to limit youtube-dl on video length when downloading a youtube stream
3 août 2016, par user3682869Im trying to write a small script that records a live stream from youtube.
when using youtube-dl.download function it just keeps on downloading until the stream ends, but i want to stop downloading after 20min or so.
the problem is when i try killing it after a while the output is corrupted (im using mp4 format), and i tried fixing it with ffmpeg but a "moov atom not found" error occurs.How can i make youtube-dl (or any other tool) record a fixed length of a live stream ?
Here’s a portion of the code :
class recordingThread (threading.Thread):
def __init__(self, threadID, output_location, name, yt_stream, start_time):
threading.Thread.__init__(self)
self.threadID = threadID
self.output = os.path.abspath(output_location)
self.name = name
self.start_time = start_time
self.ydl_opts = {'quiet': True,
'format': 'mp4',
'outtmpl': name+ '%(ext)s',
'sleep_interval': 2
}
self.yt_stream = yt_stream.strip('\'"')
def run(self):
print "Starting %s Thread Recorder - %s" % (self.name, self.start_time)
with youtube_dl.YoutubeDL(self.ydl_opts) as ydl:
self.download_prc = ydl.download([self.yt_stream])Thanks.
-
How to limit youtube-dl on video length when downloading a youtube stream
26 novembre 2018, par M BIm trying to write a small script that records a live stream from youtube.
when using youtube-dl.download function it just keeps on downloading until the stream ends, but i want to stop downloading after 20min or so.
the problem is when i try killing it after a while the output is corrupted (im using mp4 format), and i tried fixing it with ffmpeg but a "moov atom not found" error occurs.How can i make youtube-dl (or any other tool) record a fixed length of a live stream ?
Here’s a portion of the code :
class recordingThread (threading.Thread):
def __init__(self, threadID, output_location, name, yt_stream, start_time):
threading.Thread.__init__(self)
self.threadID = threadID
self.output = os.path.abspath(output_location)
self.name = name
self.start_time = start_time
self.ydl_opts = {'quiet': True,
'format': 'mp4',
'outtmpl': name+ '%(ext)s',
'sleep_interval': 2
}
self.yt_stream = yt_stream.strip('\'"')
def run(self):
print "Starting %s Thread Recorder - %s" % (self.name, self.start_time)
with youtube_dl.YoutubeDL(self.ydl_opts) as ydl:
self.download_prc = ydl.download([self.yt_stream])Thanks.
-
Best way to convert webm to mp4 using ffmpeg
23 mai 2019, par TregosHaving problems converting webm to mp4 using ffmpeg.
I have tried moving ffmpeg to the src folder and using exec($cmd,$out,$ret) on a php code i wrote. when i run the same cmd line on windows using cmd it converts the file from webm to mp4.
$cmd =’-i’.$videoWebm.’-qscale 0’.$videoMp4 ;
found some info here but it is still not helping
FFMPEG convert webm to mp4 not workingcode
newfile = path to ffmpeg.exe ,which is the same path as $videoWebm
$videoWebm =path to webm file
$videoMp4= path to save mp4 file ,which is the same path as $videoWebm
$cmd ='-i'.$videoWebm.'-qscale 0'.$videoMp4;
exec($newfile.$cmd,$out,$ret);
if ($ret){
$statusMsg= "There was a problem!\n";
print_r($cmd.'\n');
print_r($out);
} else {
$statusMsg= "Ffmpeg successfully converted files into mp4 from WebM
container!\n";
}the webm file records and the video file gets uploaded to $videoWebm. I’m also inserting some data to the database to save file information. but the converting web to mp4 never gets done Please help if you can thanks.