
Recherche avancée
Médias (3)
-
Exemple de boutons d’action pour une collection collaborative
27 février 2013, par
Mis à jour : Mars 2013
Langue : français
Type : Image
-
Exemple de boutons d’action pour une collection personnelle
27 février 2013, par
Mis à jour : Février 2013
Langue : English
Type : Image
-
Collections - Formulaire de création rapide
19 février 2013, par
Mis à jour : Février 2013
Langue : français
Type : Image
Autres articles (72)
-
List of compatible distributions
26 avril 2011, parThe table below is the list of Linux distributions compatible with the automated installation script of MediaSPIP. Distribution nameVersion nameVersion number Debian Squeeze 6.x.x Debian Weezy 7.x.x Debian Jessie 8.x.x Ubuntu The Precise Pangolin 12.04 LTS Ubuntu The Trusty Tahr 14.04
If you want to help us improve this list, you can provide us access to a machine whose distribution is not mentioned above or send the necessary fixes to add (...) -
Gestion des droits de création et d’édition des objets
8 février 2011, parPar défaut, beaucoup de fonctionnalités sont limitées aux administrateurs mais restent configurables indépendamment pour modifier leur statut minimal d’utilisation notamment : la rédaction de contenus sur le site modifiables dans la gestion des templates de formulaires ; l’ajout de notes aux articles ; l’ajout de légendes et d’annotations sur les images ;
-
Dépôt de média et thèmes par FTP
31 mai 2013, parL’outil MédiaSPIP traite aussi les média transférés par la voie FTP. Si vous préférez déposer par cette voie, récupérez les identifiants d’accès vers votre site MédiaSPIP et utilisez votre client FTP favori.
Vous trouverez dès le départ les dossiers suivants dans votre espace FTP : config/ : dossier de configuration du site IMG/ : dossier des média déjà traités et en ligne sur le site local/ : répertoire cache du site web themes/ : les thèmes ou les feuilles de style personnalisées tmp/ : dossier de travail (...)
Sur d’autres sites (7972)
-
how do I stream a single image in a loop to a video device ? [closed]
19 décembre 2019, par ufkI am trying to stream a single image to a video device in Linux.
currently I am using
Gentoo Linux
withFFMpeg 4.2.1
but ffmpeg is not a requirement, if there is a better tool for the task i’m up for it.so I’m running the command
ffmpeg -loop 1 -i binary-file.png -c:v -f v4l2 /dev/video0
and this is the output that I get :
ffmpeg version 4.2.1 Copyright (c) 2000-2019 the FFmpeg developers
built with gcc 9.2.0 (Gentoo 9.2.0-r2 p3)
configuration: --prefix=/usr --libdir=/usr/lib64 --shlibdir=/usr/lib64 --docdir=/usr/share/doc/ffmpeg-4.2.1/html --mandir=/usr/share/man --enable-shared --cc=x86_64-pc-linux-gnu-gcc --cxx=x86_64-pc-linux-gnu-g++ --ar=x86_64-pc-linux-gnu-ar --optflags='-march=native -O2 -pipe' --disable-static --enable-avfilter --enable-avresample --disable-stripping --disable-optimizations --disable-libcelt --enable-nonfree --enable-version3 --disable-indev=v4l2 --disable-outdev=v4l2 --disable-indev=oss --disable-indev=jack --disable-outdev=oss --enable-bzlib --disable-runtime-cpudetect --disable-debug --disable-gcrypt --disable-gnutls --disable-gmp --enable-gpl --disable-hardcoded-tables --enable-iconv --disable-libtls --disable-libxml2 --disable-lzma --enable-network --disable-opencl --enable-openssl --enable-postproc --enable-libsmbclient --enable-ffplay --enable-sdl2 --enable-vaapi --disable-vdpau --enable-xlib --enable-libxcb --enable-libxcb-shm --enable-libxcb-xfixes --enable-zlib --disable-libcdio --disable-libiec61883 --disable-libdc1394 --disable-libcaca --disable-openal --enable-opengl --disable-libv4l2 --enable-libpulse --disable-libdrm --disable-libjack --disable-libopencore-amrwb --disable-libopencore-amrnb --disable-libcodec2 --disable-libdav1d --disable-libfdk-aac --disable-libopenjpeg --disable-libbluray --disable-libgme --disable-libgsm --disable-libaribb24 --disable-mmal --disable-libmodplug --disable-libopus --disable-libilbc --disable-librtmp --disable-libssh --disable-libspeex --disable-libsrt --enable-librsvg --disable-ffnvcodec --enable-libvorbis --disable-libvpx --disable-libzvbi --disable-appkit --disable-libbs2b --disable-chromaprint --disable-cuda-llvm --disable-libflite --disable-frei0r --disable-libfribidi --disable-fontconfig --disable-ladspa --disable-libass --disable-libtesseract --disable-lv2 --enable-libfreetype --disable-libvidstab --disable-librubberband --disable-libzmq --disable-libzimg --disable-libsoxr --enable-pthreads --disable-libvo-amrwbenc --enable-libmp3lame --disable-libkvazaar --disable-libaom --disable-libopenh264 --disable-libsnappy --disable-libtheora --disable-libtwolame --disable-libwavpack --disable-libwebp --enable-libx264 --disable-libx265 --enable-libxvid --disable-gnutls --disable-armv5te --disable-armv6 --disable-armv6t2 --disable-neon --disable-vfp --disable-vfpv3 --disable-armv8 --disable-mipsdsp --disable-mipsdspr2 --disable-mipsfpu --disable-altivec --disable-amd3dnow --disable-amd3dnowext --disable-aesni --disable-avx --disable-avx2 --disable-fma3 --disable-fma4 --disable-sse3 --disable-ssse3 --disable-sse4 --disable-sse42 --disable-xop --cpu=host --disable-doc --disable-htmlpages --enable-manpages
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, png_pipe, from 'binary-file.png':
Duration: N/A, bitrate: N/A
Stream #0:0: Video: png, rgba(pc), 300x300 [SAR 2835:2835 DAR 1:1], 25 fps, 25 tbr, 25 tbn, 25 tbc
[NULL @ 0x55715b920a20] Unable to find a suitable output format for 'v4l2'
v4l2: Invalid argument -
Getting RTSP/1.0 404 Not Found after ANNOUNCE message
21 décembre 2019, par Joseph MatanI’m trying to stream a video with FFmpeg to Gstreamer-RTSP-Server (it’s actually a docker that runs the Gstreamer-RTSP-Server).
The OPTION message gets a "RTSP/1.0 200 OK" response. However, the ANNOUNCE message gets "RTSP/1.0 404 Not Found" response.This the FFmpeg command (which works OK with a different RTSP-Server) :
ffmpeg -f v4l2 -i /dev/video0 -c:v libx264 -intra -an -f rtsp -rtsp_transport tcp rtsp://192.168.1.10:8554/test
This is the messages sequence snapshot from Wireshark :
OPTIONS rtsp://192.168.1.10:8554/test RTSP/1.0
CSeq: 1
User-Agent: Lavf58.20.100
RTSP/1.0 200 OK
CSeq: 1
Public: OPTIONS, DESCRIBE, ANNOUNCE, GET_PARAMETER, PAUSE, PLAY, RECORD, SETUP, SET_PARAMETER, TEARDOWN
Server: GStreamer RTSP server
Date: Sat, 21 Dec 2019 18:23:03 GMT
ANNOUNCE rtsp://192.168.1.10:8554/test RTSP/1.0
Content-Type: application/sdp
CSeq: 2
User-Agent: Lavf58.20.100
Content-Length: 287
v=0
o=- 0 0 IN IP4 127.0.0.1
s=No Name
c=IN IP4 192.168.1.10
t=0 0
a=tool:libavformat 58.20.100
m=video 0 RTP/AVP 96
a=rtpmap:96 H264/90000
a=fmtp:96 packetization-mode=1; sprop-parameter-sets=Z3oQHry4FAe0IAAAAwAgAAAHgIA=,aO4PLIs=; profile-level-id=7A101E
a=control:streamid=0
RTSP/1.0 404 Not Found
CSeq: 2
Server: GStreamer RTSP server
Date: Sat, 21 Dec 2019 18:23:03 GMTAny idea why the ANNOUNCE message fails ?
The Gstreamer-RTSP-Server is part of a docker, and I guess it runs with a default Gstreamer pipeline parameters - maybe that’s can cause the issue ?
-
pydub not encoding file correctly
21 décembre 2019, par geoffr98I’m trying to use pydub to take an audio stream in opus format and save it as a wav. I am currently using a file instead of a stream and it is not working.
My code :
myfile = open("Short_Test.opus", 'rb')
opus_audio_bytes = myfile.read()
myfile.close()
opus_data = BytesIO(opus_audio_bytes)
sound = AudioSegment.from_file(opus_data, codec="ogg")
print("Export now")
mywave_file = sound.export("mashup.wav","16k")It does create mashup.wav, however it is not created correctly. Here is the log output from pydub :
subprocess.call(['ffmpeg', '-y', '-i', '-', '-acodec', 'pcm_s32le', '-vn', '-f', 'wav', '-'])
Export now
subprocess.call(['ffmpeg', '-y', '-f', 'wav', '-i', 'C:\\Users\\Geoff\\AppData\\Local\\Temp\\tmppjaomlf6', '-f', '16k', 'C:\\Users\\Geoff\\AppData\\Local\\Temp\\tmp3tserc9q'])
subprocess output: b'ffmpeg version git-2019-12-19-99f505d Copyright (c) 2000-2019 the FFmpeg developers'
subprocess output: b' built with gcc 9.2.1 (GCC) 20191125'
subprocess output: b' 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-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-libvorbis --enable-libvo-amrwbenc --enable-libmysofa --enable-libspeex --enable-libxvid --enable-libaom --enable-libmfx --enable-ffnvcodec --enable-cuvid --enable-d3d11va --enable-nvenc --enable-nvdec --enable-dxva2 --enable-avisynth --enable-libopenmpt --enable-amf'
subprocess output: b' libavutil 56. 36.101 / 56. 36.101'
subprocess output: b' libavcodec 58. 65.100 / 58. 65.100'
subprocess output: b' libavformat 58. 35.101 / 58. 35.101'
subprocess output: b' libavdevice 58. 9.101 / 58. 9.101'
subprocess output: b' libavfilter 7. 69.101 / 7. 69.101'
subprocess output: b' libswscale 5. 6.100 / 5. 6.100'
subprocess output: b' libswresample 3. 6.100 / 3. 6.100'
subprocess output: b' libpostproc 55. 6.100 / 55. 6.100'
subprocess output: b'Guessed Channel Layout for Input Stream #0.0 : mono'
subprocess output: b"Input #0, wav, from 'C:\\Users\\Geoff\\AppData\\Local\\Temp\\tmppjaomlf6':"
subprocess output: b' Duration: 00:00:06.90, bitrate: 1536 kb/s'
subprocess output: b' Stream #0:0: Audio: pcm_s32le ([1][0][0][0] / 0x0001), 48000 Hz, mono, s32, 1536 kb/s'
subprocess output: b"[NULL @ 0000021fd2900580] Requested output format '16k' is not a suitable output format"
subprocess output: b'C:\\Users\\Geoff\\AppData\\Local\\Temp\\tmp3tserc9q: Invalid argument'
Traceback (most recent call last):
File "C:/Users/Geoff/Documents/Geoff-Microsemi(Other)/Smart-OR/Savant_V1/Cobalt/G_opus_Cobalt.py", line 176, in <module>
mywave_file = sound.export("mashup.wav","16k")
File "C:\Users\Geoff\AppData\Local\Programs\Python\Python37\lib\site-packages\pydub\audio_segment.py", line 877, in export
p.returncode, conversion_command, p_err))
pydub.exceptions.CouldntEncodeError: Encoding failed. ffmpeg/avlib returned error code: 1
</module>Command :[’ffmpeg’, ’-y’, ’-f’, ’wav’, ’-i’, ’C :\Users\Geoff\AppData\Local\Temp\tmppjaomlf6’, ’-f’, ’16k’, ’C :\Users\Geoff\AppData\Local\Temp\tmp3tserc9q’]
Output from ffmpeg/avlib :
b"ffmpeg version git-2019-12-19-99f505d Copyright (c) 2000-2019 the FFmpeg developers\r\n built with gcc 9.2.1 (GCC) 20191125\r\n 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-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-libvorbis --enable-libvo-amrwbenc --enable-libmysofa --enable-libspeex --enable-libxvid --enable-libaom --enable-libmfx --enable-ffnvcodec --enable-cuvid --enable-d3d11va --enable-nvenc --enable-nvdec --enable-dxva2 --enable-avisynth --enable-libopenmpt --enable-amf\r\n libavutil 56. 36.101 / 56. 36.101\r\n libavcodec 58. 65.100 / 58. 65.100\r\n libavformat 58. 35.101 / 58. 35.101\r\n libavdevice 58. 9.101 / 58. 9.101\r\n libavfilter 7. 69.101 / 7. 69.101\r\n libswscale 5. 6.100 / 5. 6.100\r\n libswresample 3. 6.100 / 3. 6.100\r\n libpostproc 55. 6.100 / 55. 6.100\r\nGuessed Channel Layout for Input Stream #0.0 : mono\r\nInput #0, wav, from 'C:\\Users\\Geoff\\AppData\\Local\\Temp\\tmppjaomlf6':\r\n Duration: 00:00:06.90, bitrate: 1536 kb/s\r\n Stream #0:0: Audio: pcm_s32le ([1][0][0][0] / 0x0001), 48000 Hz, mono, s32, 1536 kb/s\r\n[NULL @ 0000021fd2900580] Requested output format '16k' is not a suitable output format\r\nC:\\Users\\Geoff\\AppData\\Local\\Temp\\tmp3tserc9q: Invalid argument\r\n"
I am confused as to why it isn’t working because the following ffmpeg command on the command line works, so I’m sure it’s my parametes in pyusb :
ffmpeg -i Short_Test.opus -b:a 16000 mashup.wav
Any ideas as to how to fix my problem ?