
Recherche avancée
Autres articles (21)
-
Le plugin : Podcasts.
14 juillet 2010, parLe problème du podcasting est à nouveau un problème révélateur de la normalisation des transports de données sur Internet.
Deux formats intéressants existent : Celui développé par Apple, très axé sur l’utilisation d’iTunes dont la SPEC est ici ; Le format "Media RSS Module" qui est plus "libre" notamment soutenu par Yahoo et le logiciel Miro ;
Types de fichiers supportés dans les flux
Le format d’Apple n’autorise que les formats suivants dans ses flux : .mp3 audio/mpeg .m4a audio/x-m4a .mp4 (...) -
Prérequis à l’installation
31 janvier 2010, parPréambule
Cet article n’a pas pour but de détailler les installations de ces logiciels mais plutôt de donner des informations sur leur configuration spécifique.
Avant toute chose SPIPMotion tout comme MediaSPIP est fait pour tourner sur des distributions Linux de type Debian ou dérivées (Ubuntu...). Les documentations de ce site se réfèrent donc à ces distributions. Il est également possible de l’utiliser sur d’autres distributions Linux mais aucune garantie de bon fonctionnement n’est possible.
Il (...) -
Selection of projects using MediaSPIP
2 mai 2011, parThe examples below are representative elements of MediaSPIP specific uses for specific projects.
MediaSPIP farm @ Infini
The non profit organizationInfini develops hospitality activities, internet access point, training, realizing innovative projects in the field of information and communication technologies and Communication, and hosting of websites. It plays a unique and prominent role in the Brest (France) area, at the national level, among the half-dozen such association. Its members (...)
Sur d’autres sites (4789)
-
process statuse is sombi after kill the process that opened in python subprocess.Popen and killed by subprocess.kill
13 décembre 2018, par EliyaI’m using python with subprocess.Popen() to start FFmpeg with input live radio streaming URL and makes wav file every 30 seconds.
When I try to kill the process with subprocess.kill() it works, But the process is still write in /proc/ and if I check-in system monitor the status of the process is "Zombi".Until the python script is done, So the process removed from /proc and I don’t see it in the system monitor.
How can I kill the process without closed the python script ?
here is example
#! /usr/bin/python3
import os
import subprocess
import time
# Start ffmpeg in background.
folder_name = "path_to_file"
input_ = "https://kanlivep2event-i.akamaihd.net/hls/live/749629/749629/kanmoreshet_mp3/chunklist.m3u8"
ffmpeg_cmd = [
"ffmpeg",
"-y",
"-loglevel", "8",
"-thread_queue_size", "1500",
"-i", input_,
"-c", "copy",
"-vn",
"-f", "segment",
"-segment_time", "30",
"-ar", "8000",
"-acodec", "pcm_s32le",
"-ac", "1",
"-strftime", "1",
str(folder_name + '/' + input_.replace("/","") + '_*_*_%s.wav')
]
process = subprocess.Popen(ffmpeg_cmd)
# Check if the process is exist
def check_exist(process):
print("pid - ", process.pid)
if os.path.isdir("/proc/{}".format(process.pid)):
print ("Yes")
else:
print("No")
check_exist(process)
process.kill()
time.sleep(20)
check_exist(process) -
Get total duration of multiple video files ? [duplicate]
16 novembre 2018, par Soyal7This question already has an answer here :
I want to extract video duration metadata from every video file in a specified directory and then sum all and view the total time in desktop app.
I need to extract data from as much as hundreds of videos overall. In Windows I can view the total duration for many files manually when selecting them in the explorer and going into details. For 1500 mp4 files it takes about 20 seconds to make the calculations and view the total time. It’s much faster then what I’m currently getting when iterating with
FFprobe
.for filename in dirFiles:
print(subprocess.check_output(['ffprobe', '-i', filename, '-show_entries','format=duration', '-sexagesimal' ,'-v', 'quiet', '-of', 'csv=%s' % ("p=0")]))What is the faster way to do this ?
-
Get duration from multiple video files ?
22 mai 2022, par Soyal7I want to extract video duration metadata from every video file in a specified directory and then view the total duration.



I need to extract the data from as much as thousands of videos overall. In Windows I can view the total duration for many files manually when selecting them in the explorer and going into details. For 1500 mp4 files it takes about 20 seconds to make the calculations and view the total time. It's relatively much faster then what I'm currently getting when iterating with
FFprobe
.


How fast I am currently getting the result with FFprobe.



for filename in dirFiles:
 print(subprocess.check_output(['ffprobe', '-i', filename, '-show_entries','format=duration', '-sexagesimal' ,'-v', 'quiet', '-of', 'csv=%s' % ("p=0")]))




What is the faster way to do this ?