
Recherche avancée
Autres articles (44)
-
La file d’attente de SPIPmotion
28 novembre 2010, parUne file d’attente stockée dans la base de donnée
Lors de son installation, SPIPmotion crée une nouvelle table dans la base de donnée intitulée spip_spipmotion_attentes.
Cette nouvelle table est constituée des champs suivants : id_spipmotion_attente, l’identifiant numérique unique de la tâche à traiter ; id_document, l’identifiant numérique du document original à encoder ; id_objet l’identifiant unique de l’objet auquel le document encodé devra être attaché automatiquement ; objet, le type d’objet auquel (...) -
Les vidéos
21 avril 2011, parComme les documents de type "audio", Mediaspip affiche dans la mesure du possible les vidéos grâce à la balise html5 .
Un des inconvénients de cette balise est qu’elle n’est pas reconnue correctement par certains navigateurs (Internet Explorer pour ne pas le nommer) et que chaque navigateur ne gère en natif que certains formats de vidéos.
Son avantage principal quant à lui est de bénéficier de la prise en charge native de vidéos dans les navigateur et donc de se passer de l’utilisation de Flash et (...) -
Websites made with MediaSPIP
2 mai 2011, parThis page lists some websites based on MediaSPIP.
Sur d’autres sites (7152)
-
error when running "imageio.plugins.ffmpeg.download()"
14 juin 2018, par MaryevehI am trying to run the command
imageio.plugins.ffmpeg.download()
after installing moviepy and imageio and importing imageio without error.
I keep getting the following error and cannot figure out the solution :Imageio: 'ffmpeg-osx-v3.2.4' was not found on your computer; downloading it now.
Error while fetching file: <urlopen error="error" certificate="certificate" verify="verify" failed="failed">.
Error while fetching file: <urlopen error="error" certificate="certificate" verify="verify" failed="failed">.
Error while fetching file: <urlopen error="error" certificate="certificate" verify="verify" failed="failed">.
Error while fetching file: <urlopen error="error" certificate="certificate" verify="verify" failed="failed">.
---------------------------------------------------------------------------
IOError Traceback (most recent call last)
in <module>()
3 get_ipython().magic(u'matplotlib inline')
4 import imageio
----> 5 imageio.plugins.ffmpeg.download()
6 import matplotlib
7 import matplotlib.pyplot as plt
/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/imageio/plugins/ffmpeg.pyc in download(directory, force_download)
71 get_remote_file(fname=fname,
72 directory=directory,
---> 73 force_download=force_download)
74
75
/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/imageio/core/fetching.pyc in get_remote_file(fname, directory, force_download, auto)
125 return filename
126 else: # pragma: no cover
--> 127 _fetch_file(url, filename)
128 return filename
129
/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/imageio/core/fetching.pyc in _fetch_file(url, file_name, print_destination)
181 raise IOError('Unable to download %r. Perhaps there is a no internet '
182 'connection? If there is, please report this problem.' %
--> 183 os.path.basename(file_name))
184
185
</module></urlopen></urlopen></urlopen></urlopen>IOError : Unable to download ’ffmpeg-osx-v3.2.4’. Perhaps there is a
no internet connection ? If there is, please report this problem.I tried all the solutions I could think of or/and found online, including the ones described here ffmpeg installation on macOS for MoviePy fails with SSL error, but nothing helped.
Does anyone found another solution ?Thanks
-
How to fix "Unable to find a suitable output format for '/'" error in ffmpeg running with PHP [on hold]
4 avril 2019, par C.PietroI want to compress video on the server after the upload.
I installed correctly ffmpeg and when i run from the command lineffmpeg -i input.mp4 -vcodec libx265 -crf 28 -vcodec h264 -acodec aac -strict -2 output.mp4
it works !
But if i run the same command from PHP with exec,
class VideoCompress {
function compress($path, $name){
if (`which ffmpeg`) {
exec("cd \"$path\";ffmpeg -i \"$name\" -vcodec libx265 -crf 28 -vcodec h264 -acodec aac -strict -2 \"bk_$name\" / 2>&1", $o);
print_r8($o);
}
}
}it fails and return this error
Array
(
[0] =&gt; ffmpeg version N-48518-g27c94c57dc-static https://johnvansickle.com/ffmpeg/ Copyright (c) 2000-2019 the FFmpeg developers
[1] =&gt; built with gcc 6.3.0 (Debian 6.3.0-18+deb9u1) 20170516
[2] =&gt; configuration: --enable-gpl --enable-version3 --enable-static --disable-debug --disable-ffplay --disable-indev=sndio --disable-outdev=sndio --cc=gcc-6 --enable-fontconfig --enable-frei0r --enable-gnutls --enable-gmp --enable-gray --enable-libaom --enable-libfribidi --enable-libass --enable-libvmaf --enable-libfreetype --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-librubberband --enable-libsoxr --enable-libspeex --enable-libvorbis --enable-libopus --enable-libtheora --enable-libvidstab --enable-libvo-amrwbenc --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxml2 --enable-libdav1d --enable-libxvid --enable-libzvbi --enable-libzimg
[3] =&gt; libavutil 56. 26.100 / 56. 26.100
[4] =&gt; libavcodec 58. 48.100 / 58. 48.100
[5] =&gt; libavformat 58. 26.101 / 58. 26.101
[6] =&gt; libavdevice 58. 7.100 / 58. 7.100
[7] =&gt; libavfilter 7. 48.100 / 7. 48.100
[8] =&gt; libswscale 5. 4.100 / 5. 4.100
[9] =&gt; libswresample 3. 4.100 / 3. 4.100
[10] =&gt; libpostproc 55. 4.100 / 55. 4.100
[11] =&gt; Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'WebHD_720p.mp4':
[12] =&gt; Metadata:
[13] =&gt; major_brand : isom
[14] =&gt; minor_version : 512
[15] =&gt; compatible_brands: isomiso2avc1mp41
[16] =&gt; encoder : Lavf57.71.100
[17] =&gt; Duration: 00:03:23.22, start: 0.000000, bitrate: 1890 kb/s
[18] =&gt; Stream #0:0(und): Video: h264 (Main) (avc1 / 0x31637661), yuv420p, 1280x720 [SAR 9:10 DAR 8:5], 1754 kb/s, 30 fps, 30 tbr, 15360 tbn, 60 tbc (default)
[19] =&gt; Metadata:
[20] =&gt; handler_name : VideoHandler
[21] =&gt; Stream #0:1(eng): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 128 kb/s (default)
[22] =&gt; Metadata:
[23] =&gt; handler_name : SoundHandler
[24] =&gt; [NULL @ 0x59fb100] Unable to find a suitable output format for '/'
[25] =&gt; /: Invalid argument
)Any idea on how can i fix it ?
-
Python FFMPEG Heroku|Remove audio from video with Byte to Byte. No web processes running Error on Heroku
15 mai 2021, par samoelI'm trying to get a .mp4 file from an address and remove the sound from it.I also want the data sent to FFMPEG to be bytes and return the result in byte


i tried different command for my code like using -movflags frag_keyframe+empty_moov.
When I run this code in Heroku and receive the log...


Buildpacks on Heroku are :


https://github.com/jonathanong/heroku-buildpack-ffmpeg-latest.git


https://github.com/codeinteger6/heroku-buildpack-libopus.git


git ://github.com/heroku/heroku-buildpack-python.git


def from_bytes_to_byte(input_bytes):
 command = f"ffmpeg -f mp4 -i /dev/stdin -vcodec copy -an -f mp4 -movflags frag_keyframe+empty_moov -"
 convert_cmd = subprocess.Popen(
 shlex.split(command),
 stdin=subprocess.PIPE,
 stdout=subprocess.PIPE,
 shell=False
 )
 b = b''
 convert_cmd.stdin.write(input_bytes)
 convert_cmd.stdin.close()
 while True:
 output = convert_cmd.stdout.read()
 if len(output) > 0:
 b += output
 else:
 error_msg = convert_cmd.poll()
 if error_msg is not None:
 break
 print("----------FINISHED------------")
 return b


result=requests.get("https://file-examples-com.github.io/uploads/2017/04/file_example_MP4_480_1_5MG.mp4") #.MP4 File
byterecieved=from_bytes_to_byte(result.content)



heroku logs :


ffmpeg version N-57204-gc7c138e411-static https://johnvansickle.com/ffmpeg/ Copyright (c) 2000-2021 the FFmpeg developers
built with gcc 8 (Debian 8.3.0-6)
configuration: --enable-gpl --enable-version3 --enable-static --disable-debug --disable-ffplay --disable-indev=sndio --disable-outdev=sndio --cc=gcc --enable-fontconfig --enable-frei0r --enable-gnutls --enable-gmp --enable-libgme --enable-gray --enable-libaom --enable-libfribidi --enable-libass --enable-libvmaf --enable-libfreetype --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-librubberband --enable-libsoxr --enable-libspeex --enable-libsrt --enable-libvorbis --enable-libopus --enable-libtheora --enable-libvidstab --enable-libvo-amrwbenc --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxml2 --enable-libdav1d --enable-libxvid --enable-libzvbi --enable-libzimg
libavutil 57. 0.100 / 57. 0.100
libavcodec 59. 0.100 / 59. 0.100
libavformat 59. 0.100 / 59. 0.100
libavdevice 59. 0.100 / 59. 0.100
libavfilter 8. 0.101 / 8. 0.101
libswscale 6. 0.100 / 6. 0.100
libswresample 4. 0.100 / 4. 0.100
libpostproc 56. 0.100 / 56. 0.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/dev/stdin':
Metadata:
major_brand : mp42
minor_version : 0
compatible_brands: mp42mp41isomavc1
creation_time : 2015-08-07T09:13:02.000000Z
Duration: 00:00:30.53, start: 0.000000, bitrate: N/A
Stream #0:0(und): Video: h264 (Constrained Baseline) (avc1 / 0x31637661), yuv420p, 480x270 [SAR 1:1 DAR 16:9], 301 kb/s, 30 fps, 30 tbr, 30 tbn (default)
Metadata:
creation_time : 2015-08-07T09:13:02.000000Z
handler_name : L-SMASH Video Handler
vendor_id : [0][0][0][0]
encoder : AVC Coding
Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 112 kb/s (default)
Metadata:
creation_time : 2015-08-07T09:13:02.000000Z
handler_name : L-SMASH Audio Handler
vendor_id : [0][0][0][0]
Output #0, mp4, to 'pipe:':
Metadata:
major_brand : mp42
minor_version : 0
compatible_brands: mp42mp41isomavc1
encoder : Lavf59.0.100
Stream #0:0(und): Video: h264 (Constrained Baseline) (avc1 / 0x31637661), yuv420p, 480x270 [SAR 1:1 DAR 16:9], q=2-31, 301 kb/s, 30 fps, 30 tbr, 15360 tbn (default)
Metadata:
creation_time : 2015-08-07T09:13:02.000000Z
handler_name : L-SMASH Video Handler
vendor_id : [0][0][0][0]
encoder : AVC Coding
Stream mapping:
**2021-05-14T21:32:09.639203+00:00** app[worker.1]: Stream #0:0 -> #0:0 (copy)
**2021-05-14T22:12:36.527864+00:00** heroku[router]: at=error code=H14 desc="No web processes running" method=GET path="/" host=desolate-inlet-50581.herokuapp.com request_id=cc985185-6ba7-4530-95f8-f4512f465039 fwd="5.122.192.170" dyno= connect= service= status=503 bytes= protocol=https
2021-05-14T22:12:37.303089+00:00 heroku[router]: at=error code=H14 desc="No web processes running" method=GET path="/favicon.ico" host=desolate-inlet-50581.herokuapp.com request_id=f26b18a5-30ac-41e2-9b63-8f945b746b12 fwd="5.122.192.170" dyno= connect= service= status=503 bytes= protocol=https
2021-05-14T22:13:39.737155+00:00 heroku[router]: at=error code=H14 desc="No web processes running" method=GET path="/" host=desolate-inlet-50581.herokuapp.com request_id=12a28261-d746-4067-ab4b-05d3e2e8c379 fwd="5.122.192.170" dyno= connect= service= status=503 bytes= protocol=https
2021-05-14T22:13:40.372446+00:00 heroku[router]: at=error code=H14 desc="No web processes running" method=GET path="/favicon.ico" host=desolate-inlet-50581.herokuapp.com request_id=c2e2ebc8-9fb2-4d30-8876-2fede3dfd141 fwd="5.122.192.170" dyno= connect= service= status=503 bytes= protocol=https