
Recherche avancée
Médias (91)
-
999,999
26 septembre 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Audio
-
The Slip - Artworks
26 septembre 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Texte
-
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
Autres articles (111)
-
Publier sur MédiaSpip
13 juin 2013Puis-je poster des contenus à partir d’une tablette Ipad ?
Oui, si votre Médiaspip installé est à la version 0.2 ou supérieure. Contacter au besoin l’administrateur de votre MédiaSpip pour le savoir -
Script d’installation automatique de MediaSPIP
25 avril 2011, parAfin de palier aux difficultés d’installation dues principalement aux dépendances logicielles coté serveur, un script d’installation "tout en un" en bash a été créé afin de faciliter cette étape sur un serveur doté d’une distribution Linux compatible.
Vous devez bénéficier d’un accès SSH à votre serveur et d’un compte "root" afin de l’utiliser, ce qui permettra d’installer les dépendances. Contactez votre hébergeur si vous ne disposez pas de cela.
La documentation de l’utilisation du script d’installation (...) -
La sauvegarde automatique de canaux SPIP
1er avril 2010, parDans le cadre de la mise en place d’une plateforme ouverte, il est important pour les hébergeurs de pouvoir disposer de sauvegardes assez régulières pour parer à tout problème éventuel.
Pour réaliser cette tâche on se base sur deux plugins SPIP : Saveauto qui permet une sauvegarde régulière de la base de donnée sous la forme d’un dump mysql (utilisable dans phpmyadmin) mes_fichiers_2 qui permet de réaliser une archive au format zip des données importantes du site (les documents, les éléments (...)
Sur d’autres sites (6596)
-
ffmpeg "Underestimated required buffer size"
10 avril 2021, par KajunaI'm seeing this error on some Windows machine when converting an 8K png stream to ProRes 4444 with ffmpeg. The command looks like




ffmpeg -f image2pipe -framerate 30000/1001 -i - -c:v prores_ks -y output.mov




And the output




ffmpeg version git-2020-06-17-0b3bd00 Copyright (c) 2000-2020 the
FFmpeg developers built with gcc 9.3.1 (GCC) 20200523

configuration : —enable-gpl —enable-version3 —enable-sdl2
—enable-fontconfig —enable-gnutls —enable-iconv —enable-libass —enable-libdav1d —enable-libbluray —enable-libfreetype —enable-libmp3lame —enable-libopencore-amrnb —enable-libopencore-amrwb —enable-libopenjpeg —enable-libopus —enable-libshine —enable-libsnappy —enable-libsoxr —enable-libsrt —enable-libtheora —enable-libtwolame —enable-libvpx —enable-libwavpack —enable-libwebp —enable-libx264 —enable-libx265 —enable-libxml2 —enable-libzimg —enable-lzma —enable-zlib —enable-gmp —enable-libvidstab —enable-libvmaf —enable-libvorbis —enable-libvo-amrwbenc —enable-libmysofa —enable-libspeex —enable-libxvid —enable-libaom —disable-w32threads —enable-libmfx —enable-ffnvcodec —enable-cuda-llvm —enable-cuvid —enable-d3d11va —enable-nvenc —enable-nvdec —enable-dxva2 —enable-avisynth —enable-libopenmpt —enable-amf libavutil 56. 55.100 / 56. 55.100 libavcodec 58. 92.100 / 58. 92.100 libavformat 58. 46.101 / 58. 46.101 libavdevice 58. 11.100 / 58. 11.100 libavfilter 7. 86.100 / 7. 86.100 libswscale 5. 8.100 /
5. 8.100 libswresample 3. 8.100 / 3. 8.100 libpostproc 55. 8.100 / 55. 8.100 [image2pipe @ 000002245a96da40] Stream #0 : not enough frames to estimate rate ; consider increasing probesize Input
#0, image2pipe, from 'pipe :' : Duration : N/A, bitrate : N/A
Stream #0:0 : Video : png, rgba(pc), 7680x3840, 29.97 tbr, 29.97 tbn, 29.97 tbc Stream mapping : Stream #0:0 -> #0:0 (png (native) ->
prores (prores_ks)) frame= 0 fps=0.0 q=0.0 size= 0kB
time=-577014:32:22.77 bitrate= -0.0kbits/s speed=N/A frame= 0
fps=0.0 q=0.0 size= 0kB time=-577014:32:22.77 bitrate=
-0.0kbits/s speed=N/A frame= 0 fps=0.0 q=0.0 size= 0kB time=-577014:32:22.77 bitrate= -0.0kbits/s speed=N/A frame= 0
fps=0.0 q=0.0 size= 0kB time=-577014:32:22.77 bitrate=
-0.0kbits/s speed=N/A frame= 0 fps=0.0 q=0.0 size= 0kB time=-577014:32:22.77 bitrate= -0.0kbits/s speed=N/A [prores_ks @
000002245aaaf080] Autoselected 4:4:4:4 profile because of the used
input colorspace. It can be overridden through -profile option.
[prores_ks @ 000002245aaaf700] Autoselected 4:4:4:4 profile because of
the used input colorspace. It can be overridden through -profile
option. [prores_ks @ 000002245aa1e7c0] Autoselected 4:4:4:4 profile
because of the used input colorspace. It can be overridden through
-profile option. [prores_ks @ 000002245aa1d580] Autoselected 4:4:4:4 profile because of the used input colorspace. It can be overridden
through -profile option. [prores_ks @ 000002245aa1ec40] Autoselected
4:4:4:4 profile because of the used input colorspace. It can be
overridden through -profile option. [prores_ks @ 000002245aa1da00]
Autoselected 4:4:4:4 profile because of the used input colorspace. It
can be overridden through -profile option. [prores_ks @
000002245aa1f540] Autoselected 4:4:4:4 profile because of the used
input colorspace. It can be overridden through -profile option.
[prores_ks @ 000002245aa1de80] Autoselected 4:4:4:4 profile because of
the used input colorspace. It can be overridden through -profile
option. [prores_ks @ 000002245a972b40] Autoselected 4:4:4:4 profile
because of the used input colorspace. It can be overridden through
-profile option. Output #0, mov, to 'output.mov' : Metadata :
encoder : Lavf58.46.101
Stream #0:0 : Video : prores (prores_ks) (ap4h / 0x68347061), yuva444p10le, 7680x3840, q=2-31, 200 kb/s, 29.97 fps, 30k tbn, 29.97
tbc
Metadata :
encoder : Lavc58.92.100 prores_ks frame= 1 fps=0.2 q=0.0 size= 0kB time=00:00:00.00 bitrate=N/A speed= 0x

frame= 2 fps=0.3 q=0.0 size= 0kB time=00:00:00.00 bitrate=N/A
speed= 0x frame= 3 fps=0.4 q=0.0 size= 0kB
time=00:00:00.00 bitrate=N/A speed= 0x frame= 4 fps=0.4 q=0.0
size= 0kB time=00:00:00.00 bitrate=N/A speed= 0x frame=

5 fps=0.5 q=0.0 size= 0kB time=00:00:00.00 bitrate=N/A speed=

0x [prores_ks @ 000002245aaaf080] Underestimated required buffer
size. Video encoding failed [prores_ks @ 000002245aaaf700]
Underestimated required buffer size. [prores_ks @ 000002245aa1e7c0]
Underestimated required buffer size. [prores_ks @ 000002245aa1d580]
Underestimated required buffer size. [prores_ks @ 000002245aa1ec40]
Underestimated required buffer size. [prores_ks @ 000002245aa1da00]
Underestimated required buffer size. Conversion failed !



How could I debug this considering I don't have access to the problematic machine (a user does) ? Could the "not enough frames to estimate rate ; consider increasing probesize" message be related to the problem ?


Thanks


Edit : I increased probesize and that warning disappeared, but the conversion keeps failing with the same error message "Underestimated required buffer size". I can now reproduce this on one of my Windows machines.


Edit 2 : Not a solution but I found out that this problem is gone if using ffmpeg 4.2.3 and was introduced with 4.3


-
Why does my nginx endpoint streaming audio via ffmpeg fail with "An unexpected TLS packet was received"
6 décembre 2020, par rajaman0I'm using nginx to proxy requests to a flask/gunicorn API. For most of my endpoints, it works perfectly - however, I have one endpoint which serves an audio response (through ffmpeg) which doesn't seem to work no matter what I try. Running everything through docker.


Here's my nginx config :


server {
 listen $PORT;
 root /usr/share/nginx/html;
 index index.html index.html;

 access_log /var/log/nginx/reverse-access.log;
 error_log /var/log/nginx/reverse-error.log;

 location / {
 try_files $uri /index.html =404;
 }

 location /api/stream_audio_file {
 proxy_pass http://backend;
 proxy_http_version 1.1;
 proxy_set_header Connection "keep-alive";
 proxy_set_header Host $host;

 proxy_set_header X-Real-IP $remote_addr;
 proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
 proxy_set_header X-Forwarded-Host $server_name;
 }



Here's the core of the python code for http://backend/api/stream_audio_file (run through flask, gunicorn)


ffmpeg_options = ['-i', 'https://www.soundhelix.com/examples/mp3/SoundHelix-Song-1.mp3']
ffmpeg_options += ["-f", "mp3"]
ffmpeg_options += ["-to", '00:00:02.000']
ffmpeg_options += ["-vn"]
ffmpeg_options += ["-ab", "256k"]
ffmpeg_options += ["-strict", "-2"]
ffmpeg_options += ["-loglevel", "trace"]
p = Popen(["ffmpeg"] + ffmpeg_options + ["-"],
 stdout=PIPE)
max_bytes = 256000
output = p.stdout.read(max_bytes)
return Response(output, headers={
 "Content-Type": "audio/mp3",
 "icy-name": yt_info['title'].encode('latin-1', 'ignore'),
 "icy-bitrate": "256",
 "ice-audio-info": "bitrate=256",
 "Cache-Control": "no-cache"
})



When I test out this endpoint, I've pasted the full ffmpeg logs here : https://pastebin.com/wMMpmL6M
Of import, it seems to fetch the mp3 url appropriately but fails with error :


[tls @ 0x555bf3011a80] An unexpected TLS packet was received.
https://www.soundhelix.com/examples/mp3/SoundHelix-Song-1.mp3: I/O error
[out_0_0 @ 0x555bf302ab00] EOF on sink link out_0_0:default.
No more output streams to write to, finishing.



I've tried quite a few things :


- 

- This endpoint works without nginx. I tried querying just the endpoint running w/ just gunicorn, and responses are streamed back correctly. Thus the error HAS to be nginx related ?
- The error being TLS related is confusing - I've tried setting up nginx w/ ssl on and adding certs, but that doesn't help / change the error in any way.
- I've tried playing around with headers in both nginx and on the python side, following some of the examples here : https://www.nginx.com/resources/wiki/start/topics/examples/x-accel/. Doesn't work.
Response(stream_with_context(..)
in flask doesn't work either.- Don't know much about nginx, but tried some other suggestions e.g. buffering / no buffering through nginx, etc, nothing seems to work :(.
- When I ssh into my docker container, and run the same ffmpeg command
ffmpeg -i https://www.soundhelix.com/examples/mp3/SoundHelix-Song-1.mp3 -f mp3 -to 00:00:02.000 -vn -ab 256k -strict -2 -loglevel trace
outside of the request context, it works ! - Tried compiling ffmpeg with both openssl and gnutls, neither works. However : the openssl version fails w/

tls @ error:1408F1BB:SSL routines:ssl3_get_record:bad record type
instead.
















Please let me know what other debugging info would be helpful / if anyone has any hypothesis I can test out.


-
ffmepg Video Encoding got a error with "invalid plane data size"
28 octobre 2020, par Mrguoffmpeg version:4.0.3 ; video size : 611G ; Duration:01:34:03


- 

- encoding command is :




ffmpeg -i 2131.MOV -vcodec libx264 -preset ultrafast -pix_fmt yuv420p -b:v 600k -vf scale=640 :-1 small.mp4


- 

- video info :




ffprobe version 4.0.3 Copyright (c) 2007-2018 the FFmpeg developers
 built with gcc 4.4.7 (GCC) 20120313 (Red Hat 4.4.7-17)
 configuration: --enable-shared --enable-libx264 --enable-gpl
 libavutil 56. 14.100 / 56. 14.100
 libavcodec 58. 18.100 / 58. 18.100
 libavformat 58. 12.100 / 58. 12.100
 libavdevice 58. 3.100 / 58. 3.100
 libavfilter 7. 16.100 / 7. 16.100
 libswscale 5. 1.100 / 5. 1.100
 libswresample 3. 1.100 / 3. 1.100
 libpostproc 55. 1.100 / 55. 1.100
[mov,mp4,m4a,3gp,3g2,mj2 @ 0xca7ac0] overread end of atom '�mak' by 2 bytes
[mov,mp4,m4a,3gp,3g2,mj2 @ 0xca7ac0] overread end of atom '�swr' by 3 bytes
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '04487162221cb76b0a4465037f4a3d7d.MOV':
 Metadata:
 major_brand : qt 
 minor_version : 537199360
 compatible_brands: qt 
 creation_time : 2024-04-16T19:59:27.000000Z
 make : Atomos
 make-eng : Atomos
 encoder : ShogunSumo - 9.11Cn 
 encoder-eng : ShogunSumo - 9.11Cn 
 com.atomos.hdr.gamut: Rec709
 com.atomos.hdr.gamma: Rec709
 com.apple.proapps.image.{TIFF}.Make: Atomos
 com.apple.proapps.image.{TIFF}.Model: ShogunSumo
 com.apple.proapps.image.{TIFF}.Software: 9.11Cn
 timecode : 00:00:00:00
 Duration: 01:34:03.86, start: 0.000000, bitrate: 929321 kb/s
 Stream #0:0(eng): Audio: pcm_s24le (in24 / 0x34326E69), 48000 Hz, 4 channels, s32 (24 bit), 4608 kb/s (default)
 Metadata:
 creation_time : 2024-04-16T19:59:27.000000Z
 Stream #0:1(eng): Video: prores (apcn / 0x6E637061), yuv422p10le(bt709, progressive), 3840x2160, 924704 kb/s, SAR 1:1 DAR 16:9, 50 fps, 50 tbr, 5k tbn, 5k tbc (default)
 Metadata:
 creation_time : 2024-04-16T19:59:27.000000Z
 encoder : Apple ProRes 422
 Stream #0:2(eng): Data: none (tmcd / 0x64636D74) (default)
 Metadata:
 creation_time : 2024-04-16T19:59:27.000000Z
 timecode : 00:00:00:00
Unsupported codec with id 0 for input stream 2



- 

- log with error :




frame=166986 fps=9.8 q=24.0 size= 350976kB time=00:55:39.46 bitrate= 861.0kbits/s speed=0.196x 
frame=166991 fps=9.8 q=24.0 size= 350976kB time=00:55:39.56 bitrate= 861.0kbits/s speed=0.196x 
[prores @ 0x94f840] invalid plane data size
 Last message repeated 85 times
[prores @ 0x94f840] ac tex damaged 1024, 1024
[prores @ 0x94f840] invalid plane data size
 Last message repeated 1723 times
frame=166997 fps=9.8 q=24.0 size= 350976kB time=00:55:39.68 bitrate= 860.9kbits/s speed=0.196x 
[prores @ 0x94f840] invalid frame header
Error while decoding stream #0:1: Invalid data found when processing input



how can I solve the problem ?