
Recherche avancée
Médias (39)
-
Stereo master soundtrack
17 octobre 2011, par
Mis à jour : Octobre 2011
Langue : English
Type : Audio
-
ED-ME-5 1-DVD
11 octobre 2011, par
Mis à jour : Octobre 2011
Langue : English
Type : Audio
-
1,000,000
27 septembre 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Audio
-
Demon Seed
26 septembre 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Audio
-
The Four of Us are Dying
26 septembre 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Audio
-
Corona Radiata
26 septembre 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Audio
Autres articles (35)
-
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 autorisations surchargées par les plugins
27 avril 2010, parMediaspip core
autoriser_auteur_modifier() afin que les visiteurs soient capables de modifier leurs informations sur la page d’auteurs -
Les images
15 mai 2013
Sur d’autres sites (7050)
-
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.