Advanced search

Medias (1)

Tag: - Tags -/ipad

Other articles (28)

  • Pas question de marché, de cloud etc...

    10 April 2011

    Le vocabulaire utilisé sur ce site essaie d’éviter toute référence à la mode qui fleurit allègrement
    sur le web 2.0 et dans les entreprises qui en vivent.
    Vous êtes donc invité à bannir l’utilisation des termes "Brand", "Cloud", "Marché" etc...
    Notre motivation est avant tout de créer un outil simple, accessible à pour tout le monde, favorisant
    le partage de créations sur Internet et permettant aux auteurs de garder une autonomie optimale.
    Aucun "contrat Gold ou Premium" n’est donc prévu, aucun (...)

  • Contribute to translation

    13 April 2011

    You can help us to improve the language used in the software interface to make MediaSPIP more accessible and user-friendly. You can also translate the interface into any language that allows it to spread to new linguistic communities.
    To do this, we use the translation interface of SPIP where the all the language modules of MediaSPIP are available. Just subscribe to the mailing list and request further informantion on translation.
    MediaSPIP is currently available in French and English (...)

  • HTML5 audio and video support

    13 April 2011, by

    MediaSPIP uses HTML5 video and audio tags to play multimedia files, taking advantage of the latest W3C innovations supported by modern browsers.
    The MediaSPIP player used has been created specifically for MediaSPIP and can be easily adapted to fit in with a specific theme.
    For older browsers the Flowplayer flash fallback is used.
    MediaSPIP allows for media playback on major mobile platforms with the above (...)

On other websites (6037)

  • pydub not encoding file correctly

    21 December 2019, by geoffr98

    I’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?

  • Getting RTSP/1.0 404 Not Found after ANNOUNCE message

    21 December 2019, by Joseph Matan

    I’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 GMT

    Any 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 ?

  • how do I stream a single image in a loop to a video device? [closed]

    19 December 2019, by ufk

    I am trying to stream a single image to a video device in Linux.

    currently I am using Gentoo Linux with FFMpeg 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