
Recherche avancée
Médias (1)
-
ED-ME-5 1-DVD
11 octobre 2011, par
Mis à jour : Octobre 2011
Langue : English
Type : Audio
Autres articles (66)
-
Initialisation de MediaSPIP (préconfiguration)
20 février 2010, parLors de l’installation de MediaSPIP, celui-ci est préconfiguré pour les usages les plus fréquents.
Cette préconfiguration est réalisée par un plugin activé par défaut et non désactivable appelé MediaSPIP Init.
Ce plugin sert à préconfigurer de manière correcte chaque instance de MediaSPIP. Il doit donc être placé dans le dossier plugins-dist/ du site ou de la ferme pour être installé par défaut avant de pouvoir utiliser le site.
Dans un premier temps il active ou désactive des options de SPIP qui ne le (...) -
Le profil des utilisateurs
12 avril 2011, parChaque utilisateur dispose d’une page de profil lui permettant de modifier ses informations personnelle. Dans le menu de haut de page par défaut, un élément de menu est automatiquement créé à l’initialisation de MediaSPIP, visible uniquement si le visiteur est identifié sur le site.
L’utilisateur a accès à la modification de profil depuis sa page auteur, un lien dans la navigation "Modifier votre profil" est (...) -
Configurer la prise en compte des langues
15 novembre 2010, parAccéder à la configuration et ajouter des langues prises en compte
Afin de configurer la prise en compte de nouvelles langues, il est nécessaire de se rendre dans la partie "Administrer" du site.
De là, dans le menu de navigation, vous pouvez accéder à une partie "Gestion des langues" permettant d’activer la prise en compte de nouvelles langues.
Chaque nouvelle langue ajoutée reste désactivable tant qu’aucun objet n’est créé dans cette langue. Dans ce cas, elle devient grisée dans la configuration et (...)
Sur d’autres sites (7345)
-
ffmpeg motions not working properly while using multiple urls
22 avril 2021, par al pacinoI am trying to apply ffmpeg transitions but sometimes video gets concatenated without any transition. In the command below I have used input 1 which in present on derectory and second input is online video url. the output video got concatenated without
distance
transition -

one example of distance transition command is below-


ffmpeg -i video1.webm -i 'url2' -filter_complex '[0]scale=1280:720,settb=AVTB[v0];[1]scale=1280:720,settb=AVTB[v1];[v0][v1]xfade=transition=distance:duration=1:offset=9,format=yuv420p’ output_video.webm



and log is below-


ffmpeg version n4.3.1 Copyright (c) 2000-2020 the FFmpeg developers
 built with gcc 7 (Ubuntu 7.5.0-3ubuntu1~18.04)
 configuration: --prefix= --prefix=/usr --disable-debug --disable-doc --disable-static --enable-cuda --enable-cuda-sdk --enable-cuvid --enable-libdrm --enable-ffplay --enable-gnutls --enable-gpl --enable-libass --enable-libfdk-aac --enable-libfontconfig --enable-libfreetype --enable-libmp3lame --enable-libnpp --enable-libopencore_amrnb --enable-libopencore_amrwb --enable-libopus --enable-libpulse --enable-sdl2 --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libv4l2 --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libx265 --enable-libxcb --enable-libxvid --enable-nonfree --enable-nvenc --enable-omx --enable-openal --enable-opencl --enable-runtime-cpudetect --enable-shared --enable-vaapi --enable-vdpau --enable-version3 --enable-xlib
 libavutil 56. 51.100 / 56. 51.100
 libavcodec 58. 91.100 / 58. 91.100
 libavformat 58. 45.100 / 58. 45.100
 libavdevice 58. 10.100 / 58. 10.100
 libavfilter 7. 85.100 / 7. 85.100
 libswscale 5. 7.100 / 5. 7.100
 libswresample 3. 7.100 / 3. 7.100
 libpostproc 55. 7.100 / 55. 7.100
Input #0, matroska,webm, from '/home/abc/xyz/887c28b7-8819-42d3-bb4f-95c44a72bce9.webm':
 Metadata:
 MINOR_VERSION : 0
 COMPATIBLE_BRANDS: mp42mp41isomavc1
 MAJOR_BRAND : mp42
 ENCODER : Lavf58.45.100
 Duration: 00:00:21.03, start: -0.006000, bitrate: 346 kb/s
 Stream #0:0: Video: vp9 (Profile 0), yuv420p(tv), 480x360, SAR 1:1 DAR 4:3, 30 fps, 30 tbr, 1k tbn, 1k tbc (default)
 Metadata:
 ENCODER : Lavc58.91.100 libvpx-vp9
 DURATION : 00:00:21.033000000
 Stream #0:1: Audio: opus, 48000 Hz, stereo, fltp (default)
 Metadata:
 HANDLER_NAME : L-SMASH Audio Handler
 ENCODER : Lavc58.91.100 libopus
 DURATION : 00:00:10.013000000
Input #1, mov,mp4,m4a,3gp,3g2,mj2, from 'https://player.vimeo.com/external/521230771.sd.mp4?s=9ee7ac91c97713d955848e34deac37d6d03d76a8&profile_id=164':
 Metadata:
 major_brand : mp42
 minor_version : 0
 compatible_brands: mp42mp41isomavc1
 creation_time : 2021-03-09T03:42:34.000000Z
 Duration: 00:00:10.01, start: 0.000000, bitrate: 619 kb/s
 Stream #1:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p(tv, smpte170m), 640x360, 488 kb/s, 30 fps, 30 tbr, 30 tbn, 60 tbc (default)
 Metadata:
 creation_time : 2021-03-09T03:42:34.000000Z
 handler_name : L-SMASH Video Handler
 encoder : AVC Coding
 Stream #1:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 125 kb/s (default)
 Metadata:
 creation_time : 2021-03-09T03:42:34.000000Z
 handler_name : L-SMASH Audio Handler
Stream mapping:
 Stream #0:0 (vp9) -> scale (graph 0)
 Stream #1:0 (h264) -> scale (graph 0)
 format (graph 0) -> Stream #0:0 (libvpx-vp9)
 Stream #0:1 -> #0:1 (opus (native) -> opus (libopus))
Press [q] to stop, [?] for help
[libopus @ 0x5597e87c5bc0] No bit rate set. Defaulting to 96000 bps.
[libvpx-vp9 @ 0x5597e87c46c0] v1.7.0
[libvpx-vp9 @ 0x5597e87c46c0] Neither bitrate nor constrained quality specified, using default CRF of 32
Output #0, webm, to '/home/abc/afcb26e1-9c7a-4065-be6e-d1a2940ee0d9.webm':
 Metadata:
 MINOR_VERSION : 0
 COMPATIBLE_BRANDS: mp42mp41isomavc1
 MAJOR_BRAND : mp42
 encoder : Lavf58.45.100
 Stream #0:0: Video: vp9 (libvpx-vp9), yuv420p, 480x360 [SAR 1:1 DAR 4:3], q=-1--1, 30 fps, 1k tbn, 30 tbc (default)
 Metadata:
 encoder : Lavc58.91.100 libvpx-vp9
 Side data:
 cpb: bitrate max/min/avg: 0/0/0 buffer size: 0 vbv_delay: N/A
 Stream #0:1: Audio: opus (libopus), 48000 Hz, stereo, flt, 96 kb/s (default)
 Metadata:
 HANDLER_NAME : L-SMASH Audio Handler
 DURATION : 00:00:10.013000000
 encoder : Lavc58.91.100 libopus
frame= 858 fps= 44 q=0.0 Lsize= 1141kB time=00:00:29.00 bitrate= 322.2kbits/s speed=1.48x 
video:1130kB audio:1kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.861019%



-
OSError : MoviePy error : the file guitar.mp4 could not be found
9 septembre 2023, par dunnjm814I'm working on a video to audio converter with react and flask/python.
I have received a 500 with this error :


raise IOError(("MoviePy error: the file %s could not be found!\n"
OSError: MoviePy error: the file guitar.mp4 could not be found!
Please check that you entered the correct path.



EDIT : As stated in comments, moviepy VideoFileClip is looking for a path. Per suggestion, I am now attempting to write the incoming video file to a temp directory housed in the backend of the app. The updated stack trace shows the filepath printing, however when presented to VideoFileClip it is still unhappy.


The following snippet is the onSubmit for the video file upload :


const onSubmit = async (e) => {
 e.preventDefault()
 const data = new FormData()
 console.log('hopefully the mp4', videoData)
 data.append('mp3', videoData)
 console.log('hopefully a form object with mp4', data)
 const response = await fetch('/api/convert', {
 method: "POST",
 body: data
 })
 if (response.ok) {
 const converted = await response.json()
 setMp3(converted)
 console.log(mp3)
 } else {
 window.alert("something went wrong :(");
 }
 }



Here is a link to an image depicting the console output of my file upload
from within init.py


app = Flask(__name__)

app.config.from_object(Config)
app.register_blueprint(convert, url_prefix='/api/convert')

CORS(app)




from within converter.py


import os
from flask import Blueprint, jsonify, request
import imageio
from moviepy.editor import *


convert = Blueprint('convert', __name__)

@convert.route('', methods=['POST'])
def convert_mp4():
 if request.files['mp3'].filename:
 os.getcwd()
 filename = request.files['mp3'].filename
 print('hey its a file again', filename)
 safe_filename = secure_filename(filename)
 video_file = os.path.join("/temp/", safe_filename)
 print('hey its the file path', video_file)
 video_clip = VideoFileClip(video_file)
 print('hey its the VideoFileClip', video_clip)
 audio_clip = video_clip.audio
 audio_clip.write_audiofile(os.path.join("/temp/", f"{safe_filename}-converted.mp3"))

 video_clip.close()
 audio_clip.close()

 return jsonify(send_from_directory(os.path.join("/temp/", f"{safe_filename}-converted.mp3")))
 else:
 return {'error': 'something went wrong :('}





In the stack trace below you can see file printing the name of the video, my only other thought on why this may not be working was because it was getting lost in the post request, however the fact it is printing after my
if file:
check is leaving me pretty confused.

hey its a file again guitar.mp4
hey its the file path /temp/guitar.mp4
127.0.0.1 - - [22/Apr/2021 12:12:15] "POST /api/convert HTTP/1.1" 500 -
Traceback (most recent call last):
 File "/home/jasondunn/projects/audioconverter/.venv/lib/python3.8/site-packages/flask/app.py", line 2464, in __call__
 return self.wsgi_app(environ, start_response)
 File "/home/jasondunn/projects/audioconverter/.venv/lib/python3.8/site-packages/flask/app.py", line 2450, in wsgi_app
 response = self.handle_exception(e)
 File "/home/jasondunn/projects/audioconverter/.venv/lib/python3.8/site-packages/flask_cors/extension.py", line 161, in wrapped_function
 return cors_after_request(app.make_response(f(*args, **kwargs)))
 File "/home/jasondunn/projects/audioconverter/.venv/lib/python3.8/site-packages/flask/app.py", line 1867, in handle_exception
 reraise(exc_type, exc_value, tb)
 File "/home/jasondunn/projects/audioconverter/.venv/lib/python3.8/site-packages/flask/_compat.py", line 39, in reraise
 raise value
 File "/home/jasondunn/projects/audioconverter/.venv/lib/python3.8/site-packages/flask/app.py", line 2447, in wsgi_app
 response = self.full_dispatch_request()
 File "/home/jasondunn/projects/audioconverter/.venv/lib/python3.8/site-packages/flask/app.py", line 1952, in full_dispatch_request
 rv = self.handle_user_exception(e)
 File "/home/jasondunn/projects/audioconverter/.venv/lib/python3.8/site-packages/flask_cors/extension.py", line 161, in wrapped_function
 return cors_after_request(app.make_response(f(*args, **kwargs)))
 File "/home/jasondunn/projects/audioconverter/.venv/lib/python3.8/site-packages/flask/app.py", line 1821, in handle_user_exception
 reraise(exc_type, exc_value, tb)
 File "/home/jasondunn/projects/audioconverter/.venv/lib/python3.8/site-packages/flask/_compat.py", line 39, in reraise
 raise value
 File "/home/jasondunn/projects/audioconverter/.venv/lib/python3.8/site-packages/flask/app.py", line 1950, in full_dispatch_request
 rv = self.dispatch_request()
 File "/home/jasondunn/projects/audioconverter/.venv/lib/python3.8/site-packages/flask/app.py", line 1936, in dispatch_request
 return self.view_functions[rule.endpoint](**req.view_args)
 File "/home/jasondunn/projects/audioconverter/back/api/converter.py", line 20, in convert_mp4
 video_clip = VideoFileClip(video_file)
 File "/home/jasondunn/projects/audioconverter/.venv/lib/python3.8/site-packages/moviepy/video/io/VideoFileClip.py", line 88, in __init__
 self.reader = FFMPEG_VideoReader(filename, pix_fmt=pix_fmt,
 File "/home/jasondunn/projects/audioconverter/.venv/lib/python3.8/site-packages/moviepy/video/io/ffmpeg_reader.py", line 35, in __init__
 infos = ffmpeg_parse_infos(filename, print_infos, check_duration,
 File "/home/jasondunn/projects/audioconverter/.venv/lib/python3.8/site-packages/moviepy/video/io/ffmpeg_reader.py", line 270, in ffmpeg_parse_infos
 raise IOError(("MoviePy error: the file %s could not be found!\n"
OSError: MoviePy error: the file /temp/guitar.mp4 could not be found!
Please check that you entered the correct path.



thanks in advance for taking a look/future advice. First official post on Stack Overflow :)


-
ProtoneMedia Error ffmpeg failed to execute command
23 avril 2021, par Y- Jullpublic function handle()
{
 $lowBitrateFormat = (new X264())->setKiloBitrate(500);

 FFMpeg::openUrl($this->video->url) //https://commondatastorage.googleapis.com/gtv-videos-bucket/big_buck_bunny_1080p.mp4
 ->exportForHLS()
 ->toDisk('public')
 ->addFormat($lowBitrateFormat)
 ->save($this->video->id . 'm3u8');

 $this->video->update([
 'converted_for_streaming_at' => Carbon::now(),
 ]);
}



Error
ffmpeg failed to execute command C :\FFmpeg\bin\ffmpeg.EXE -y -threads 12 -i "http://commondatastorage.googleapis.com/gtv-videos-bucket/big_buck_bunny_1080p.mp4" -map 0 -vcodec libx264 -b:v 500k -g 48 -hls_playlist_type vod -hls_time 10 -hls_segment_filename "C :/xampp/htdocs/my-server/storage/app/public/37mp4_0_500_"^%"05d.ts" -master_pl_name temporary_segment_playlist_0.m3u8 -acodec aac -b:a 128k "C :/xampp/htdocs/my-server/storage/app/public/37mp4_0_500.m3u8" : Error Output : Error in GnuTLS initialization : Failed to acquire random data. ffmpeg version 4.4-full_build-www.gyan.dev Copyright (c) 2000-2021 the FFmpeg developers built with gcc 10.2.0 (Rev6, Built by MSYS2 project) configuration : —enable-gpl —enable-version3 —enable-static —disable-w32threads —disable-autodetect —enable-fontconfig —enable-iconv —enable-gnutls —enable-libxml2 —enable-gmp —enable-lzma —enable-libsnappy —enable-zlib —enable-librist —enable-libsrt —enable-libssh —enable-libzmq —enable-avisynth —enable-libbluray —enable-libcaca —enable-sdl2 —enable-libdav1d —enable-libzvbi —enable-librav1e —enable-libsvtav1 —enable-libwebp —enable-libx264 —enable-libx265 —enable-libxvid —enable-libaom —enable-libopenjpeg —enable-libvpx —enable-libass —enable-frei0r —enable-libfreetype —enable-libfribidi —enable-libvidstab —enable-libvmaf —enable-libzimg —enable-amf —enable-cuda-llvm —enable-cuvid —enable-ffnvcodec —enable-nvdec —enable-nvenc —enable-d3d11va —enable-dxva2 —enable-libmfx —enable-libglslang —enable-vulkan —enable-opencl —enable-libcdio —enable-libgme —enable-libmodplug —enable-libopenmpt —enable-libopencore-amrwb —enable-libmp3lame —enable-libshine —enable-libtheora —enable-libtwolame —enable-libvo-amrwbenc —enable-libilbc —enable-libgsm —enable-libopencore-amrnb —enable-libopus —enable-libspeex —enable-libvorbis —enable-ladspa —enable-libbs2b —enable-libflite —enable-libmysofa —enable-librubberband —enable-libsoxr —enable-chromaprint libavutil 56. 70.100 / 56. 70.100 libavcodec 58.134.100 / 58.134.100 libavformat 58. 76.100 / 58. 76.100 libavdevice 58. 13.100 / 58. 13.100 libavfilter 7.110.100 / 7.110.100 libswscale 5. 9.100 / 5. 9.100 libswresample 3. 9.100 / 3. 9.100 libpostproc 55. 9.100 / 55. 9.100 [tcp @ 00000214eb7d3840] Failed to resolve hostname commondatastorage.googleapis.com : A non-recoverable error occurred http://commondatastorage.googleapis.com/gtv-videos-bucket/big_buck_bunny_1080p.mp4 : I/O error