
Recherche avancée
Médias (10)
-
Demon Seed
26 septembre 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Audio
-
Demon seed (wav version)
26 septembre 2011, par
Mis à jour : Avril 2013
Langue : English
Type : Audio
-
The four of us are dying (wav version)
26 septembre 2011, par
Mis à jour : Avril 2013
Langue : English
Type : Audio
-
Corona radiata (wav version)
26 septembre 2011, par
Mis à jour : Avril 2013
Langue : English
Type : Audio
-
Lights in the sky (wav version)
26 septembre 2011, par
Mis à jour : Avril 2013
Langue : English
Type : Audio
-
Head down (wav version)
26 septembre 2011, par
Mis à jour : Avril 2013
Langue : English
Type : Audio
Autres articles (30)
-
Keeping control of your media in your hands
13 avril 2011, parThe vocabulary used on this site and around MediaSPIP in general, aims to avoid reference to Web 2.0 and the companies that profit from media-sharing.
While using MediaSPIP, you are invited to avoid using words like "Brand", "Cloud" and "Market".
MediaSPIP is designed to facilitate the sharing of creative media online, while allowing authors to retain complete control of their work.
MediaSPIP aims to be accessible to as many people as possible and development is based on expanding the (...) -
Les images
15 mai 2013 -
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 (...)
Sur d’autres sites (6407)
-
Subprocess doesn't return expected result
8 avril 2023, par Gren ManSubprocess doesn't return expected result


I have been trying getting info from video files using ffprobe


But I stumbled upon unexpected results, here are some test I've done


First test


# ffprobe -v error -select_streams v:0 -show_entries stream=height,width -of csv=s=x:p=0 
proc = subprocess.Popen(['ffprobe', '-v', 'error', '-select_streams', 'v:0', '-show_entries', 
 'stream=height,width', '-of', 'csv=s=x:p=0 ', video_path],
 stdout=subprocess.PIPE, stdin=subprocess.PIPE)

# proc.stdout.read() Returns b'widthXheightt\r\n'
v_resolution = proc.stdout.read().decode('utf-8').replace('\r', '').replace('\n', '')
# Result 'widthXheight'



First test was successful.


Second test


# ffprobe -v error -select_streams v:0 -show_entries stream=display_aspect_ratio -of default=noprint_wrappers=1:nokey=1
proc = subprocess.Popen(['ffprobe', '-v', 'error', '-select_streams', 'v:0', '-show_entries',
 'stream=display_aspect_ratio','-of default=noprint_wrappers=1:nokey=1', video_path],
 stdout=subprocess.PIPE, stdin=subprocess.PIPE)

# proc.stdout.read() Returns b''
a_r = proc.stdout.read().decode('utf-8').replace('\r', '').replace('\n', '')
# Result ''



Hmm, this doesn't sounds right I thought result should be e.g. 16:9


I tried putting code to CMD which returned aforementioned result


Third test


# ffprobe -v error -select_streams v -of default=noprint_wrappers=1:nokey=1 -show_entries stream=r_frame_rate
proc = subprocess.Popen(['ffprobe', '-v', 'error', '-select_streams', 'v', '-of',
 'default=noprint_wrappers=1:nokey=1','-show_entries', 'stream=r_frame_rate',
 video_path], stdout=subprocess.PIPE, stdin=subprocess.PIPE)

# proc.stdout.read() Returns b'30/1'
fps = proc.stdout.read().decode('utf-8').replace('\r', '').replace('\n', '') + ' fps'
# Result 30/1 fps



Just as expected this returned subarashi result


But what happened in a second test ? Can somebody explain it to me ? I used stderr which returned :


Failed to set value 'foo.mp4' for option 'of default=noprint_wrappers=1:nokey=1': Option not found



Result of python code




-
change brew install directory
23 juin 2018, par Addison WuI used homebrew to install ffmpeg and it’s by default in /usr/local/Cellar.
I have to run a matlab code, which tries to read ffmpeg from /usr/local/bin and returns error.Is there any way for me to change the path for brew install of ffmpeg ?
-
conversion from mp3 to ogg using php
9 janvier 2014, par PreethyI want to convert mp3 file to ogg. I tried the following code
exec("/usr/local/bin/ffmpeg -i 1.mp4 -vcodec libtheora -acodec libvorbis testjohn4545454.ogg",$output);
var_dump($output);But it does not convert the file and it only returns
array(0) { }
and it only takes a little execution time.But the conversion is success when using ssh command.
Please give me solution.