
Recherche avancée
Médias (1)
-
GetID3 - Bloc informations de fichiers
9 avril 2013, par
Mis à jour : Mai 2013
Langue : français
Type : Image
Autres articles (76)
-
Multilang : améliorer l’interface pour les blocs multilingues
18 février 2011, parMultilang est un plugin supplémentaire qui n’est pas activé par défaut lors de l’initialisation de MediaSPIP.
Après son activation, une préconfiguration est mise en place automatiquement par MediaSPIP init permettant à la nouvelle fonctionnalité d’être automatiquement opérationnelle. Il n’est donc pas obligatoire de passer par une étape de configuration pour cela. -
Use, discuss, criticize
13 avril 2011, parTalk to people directly involved in MediaSPIP’s development, or to people around you who could use MediaSPIP to share, enhance or develop their creative projects.
The bigger the community, the more MediaSPIP’s potential will be explored and the faster the software will evolve.
A discussion list is available for all exchanges between users. -
Les tâches Cron régulières de la ferme
1er décembre 2010, parLa gestion de la ferme passe par l’exécution à intervalle régulier de plusieurs tâches répétitives dites Cron.
Le super Cron (gestion_mutu_super_cron)
Cette tâche, planifiée chaque minute, a pour simple effet d’appeler le Cron de l’ensemble des instances de la mutualisation régulièrement. Couplée avec un Cron système sur le site central de la mutualisation, cela permet de simplement générer des visites régulières sur les différents sites et éviter que les tâches des sites peu visités soient trop (...)
Sur d’autres sites (7855)
-
FFMPEG HTTP Stream error, failed : Connection refused
17 juillet 2022, par Halo GassI tried to stream a video frame from opencv to network using MPEG-Dash, HLS, or RTSP via FFMPEG, but everytime I tried everything, it always throw "Connection Error, Connection Refused" even streaming to 127.0.0.1.


Here the code for testing :


import subprocess
import cv2
rtmp_url = "rtmp://127.0.0.1:1935/stream/pupils_trace"

# webcamera is 0, also you can set a video file name instead, for example "/home/user/demo.mp4"
path = 0
cap = cv2.VideoCapture(path)

# gather video info to ffmpeg
fps = int(cap.get(cv2.CAP_PROP_FPS))
width = int(cap.get(cv2.CAP_PROP_FRAME_WIDTH))
height = int(cap.get(cv2.CAP_PROP_FRAME_HEIGHT))

# command and params for ffmpeg
command = ['ffmpeg',
 '-y',
 '-f', 'rawvideo',
 '-vcodec', 'rawvideo',
 '-pix_fmt', 'bgr24',
 '-s', "{}x{}".format(width, height),
 '-r', str(fps),
 '-i', '-',
 '-c:v', 'libx264',
 '-pix_fmt', 'yuv420p',
 '-preset', 'ultrafast',
 '-f', 'flv',
 rtmp_url]

# using subprocess and pipe to fetch frame data
p = subprocess.Popen(command, stdin=subprocess.PIPE)


while cap.isOpened():
 ret, frame = cap.read()
 if not ret:
 print("frame read failed")
 break

 # YOUR CODE FOR PROCESSING FRAME HERE

 # write to pipe
 p.stdin.write(frame.tobytes())



and below is the log :


ffmpeg version 4.2.7-0ubuntu0.1 Copyright (c) 2000-2022 the FFmpeg developers
 built with gcc 9 (Ubuntu 9.4.0-1ubuntu1~20.04.1)
 configuration: --prefix=/usr --extra-version=0ubuntu0.1 --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --arch=amd64 --enable-gpl --disable-stripping --enable-avresample --disable-filter=resample --enable-avisynth --enable-gnutls --enable-ladspa --enable-libaom --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libcodec2 --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libjack --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librsvg --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzmq --enable-libzvbi --enable-lv2 --enable-omx --enable-openal --enable-opencl --enable-opengl --enable-sdl2 --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-nvenc --enable-chromaprint --enable-frei0r --enable-libx264 --enable-shared
 libavutil 56. 31.100 / 56. 31.100
 libavcodec 58. 54.100 / 58. 54.100
 libavformat 58. 29.100 / 58. 29.100
 libavdevice 58. 8.100 / 58. 8.100
 libavfilter 7. 57.100 / 7. 57.100
 libavresample 4. 0. 0 / 4. 0. 0
 libswscale 5. 5.100 / 5. 5.100
 libswresample 3. 5.100 / 3. 5.100
 libpostproc 55. 5.100 / 55. 5.100
Input #0, rawvideo, from 'pipe:':
 Duration: N/A, start: 0.000000, bitrate: 221184 kb/s
 Stream #0:0: Video: rawvideo (BGR[24] / 0x18524742), bgr24, 1280x720, 221184 kb/s, 10 tbr, 10 tbn, 10 tbc
[tcp @ 0x556bea198680] Connection to tcp://127.0.0.1:1935 failed: Connection refused
[rtmp @ 0x556bea1a2640] Cannot open connection tcp://127.0.0.1:1935
rtmp://127.0.0.1:1935/stream/pupils_trace: Connection refused
Traceback (most recent call last):
 File "testing.py", line 42, in <module>
 p.stdin.write(frame.tobytes())
</module>


Here what I tried (All of it always "Connection Refused")


- 

- Running the code directly
- Running the code using sudo
- Run with 'sudo su'
- Allow the port used in ufw
- Disable ufw
- I tried executing command directly in terminal, also throws "connection refused"
- using 127.0.0.1 or "localhost" or 0.0.0.0 or my local IP, everything throws connection error
- Tried UDP and TCP


















Anyone can help me ?
Thanks


-
FFMPEG:Invalid buffer size when converting video
30 juillet 2022, par Sar sinuaI'm trying to Pipe bytes in to FFMPEG in python and I've faced a problem.


import subprocess
from io import BytesIO

with open('input.mp4', 'rb') as f:
 input_byte=f.read()
command='ffmpeg -y -f rawvideo -video_size 320x240 -pixel_format yuv420p -framerate 15 -i pipe:0 -codec:a copy out.mp4'
process = subprocess.Popen(command, stdin=subprocess.PIPE, shell=True)

process.stdin.write(input_byte)
process.stdin.close()



The error I get is
Invalid buffer size, packet size 63420 < expected frame_size 115200 Error while decoding stream #0:0: Invalid argument


You can download the video from here.


ffmpeg version 2022-05-12-git-30e2bb0f64-full_build-www.gyan.dev


-
Why A .FLAC File Converted by FFMPEG Cause File Explorer Unresponse on Windows 10 [closed]
20 juillet 2022, par Alex KingMy File Explorer Always showing "Working on it."
I've tried many resolutions.
First,I disconnect my NAS drive. seems fine.
I test many times on diffirient windows 10/11 versions.
I thought it was SMB problem on windows. But i was wrong.


Today I'm using FFMPEG convert .wav to .flac.


.\ffmpeg.exe -i $Source -c:a flac $Dest 



Just simple like this. Blow my computer up.


Even worse, explorer.exe crash after I'm trying to open FF output folder.


It's not the poblem from "Quick access" or "Search Index".


I'm now 100% percent confirm the flac files that ffmpeg made will cause file explorer crash.


I can't solve it without knowing the reason.


Might related to audio file tag vorbis ?


This is my FFMPEG info


ffmpeg version n5.0.1-4-ga5ebb3d25e-20220428 Copyright (c) 2000-2022 the FFmpeg developers

built with gcc 11.2.0 (crosstool-NG 1.24.0.533_681aaef)