Recherche avancée

Médias (91)

Autres articles (40)

  • Websites made ​​with MediaSPIP

    2 mai 2011, par

    This page lists some websites based on MediaSPIP.

  • Creating farms of unique websites

    13 avril 2011, par

    MediaSPIP platforms can be installed as a farm, with a single "core" hosted on a dedicated server and used by multiple websites.
    This allows (among other things) : implementation costs to be shared between several different projects / individuals rapid deployment of multiple unique sites creation of groups of like-minded sites, making it possible to browse media in a more controlled and selective environment than the major "open" (...)

  • Contribute to a better visual interface

    13 avril 2011

    MediaSPIP is based on a system of themes and templates. Templates define the placement of information on the page, and can be adapted to a wide range of uses. Themes define the overall graphic appearance of the site.
    Anyone can submit a new graphic theme or template and make it available to the MediaSPIP community.

Sur d’autres sites (4561)

  • FFmpeg : Unable to find a suitable output format for 'mpegts'

    27 avril 2021, par Chris

    I am using the following command on several video streams to pipe them into my TVHeadend server.

    


    pipe:///usr/bin/ffmpeg -i *URL* -c copy -metadata service_provider="My Provider" -metadata service_name="My Service"-f mpegts pipe:1


    


    This command works fine for most of the streams, but a few are throwing this error...

    


    ffmpeg version 4.3.1 Copyright (c) 2000-2020 the FFmpeg developers
built with gcc 9.3.0 (Alpine 9.3.0)
configuration: --prefix=/usr --enable-avresample --enable-avfilter --enable-gnutls --enable-gpl --enable-libass --enable-libmp3lame --enable-libvorbis --enable-libvpx --enable-libxvid --enable-libx264 --enable-libx265 --enable-libtheora --enable-libv4l2 --enable-libdav1d --enable-postproc --enable-pic --enable-pthreads --enable-shared --enable-libxcb --enable-libssh --disable-stripping --disable-static --disable-librtmp --enable-vaapi --enable-vdpau --enable-libopus --enable-libaom --disable-debug
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
libavresample   4.  0.  0 /  4.  0.  0
libswscale      5.  7.100 /  5.  7.100
libswresample   3.  7.100 /  3.  7.100
libpostproc    55.  7.100 / 55.  7.100
[hls @ 0x7f7c03b0c5c0] Skip ('#EXT-X-VERSION:3')
[hls @ 0x7f7c03b0c5c0] Opening '****' for reading
[hls @ 0x7f7c03b0c5c0] Opening '****' for reading
Input #0, hls, from '****:
Duration: N/A, start: 3116.333433, bitrate: N/A
Program 0 
Metadata:
variant_bitrate : 0
Stream #0:0: Video: h264 (High) ([27][0][0][0] / 0x001B), yuv420p, 1280x720 [SAR 1:1 DAR 16:9], 25 fps, 25 tbr, 90k tbn, 50 tbc
Metadata:
variant_bitrate : 0
Stream #0:1: Audio: aac (LC) ([15][0][0][0] / 0x000F), 44100 Hz, stereo, fltp
Metadata:
variant_bitrate : 0
[NULL @ 0x55f1a0fcec80] Unable to find a suitable output format for 'mpegts'
mpegts: Invalid argument


    


    The problem streams do work.
I searched before asking this question and everything I found was related to conversion.
Can anyone see what I am doing wrong ?
The reason behind the using FFmpeg and piping is to eliminate issues with stream freezes. FFmpeg just handles hitches etc better than simply adding the URL straight into my TVHeadend server.

    


  • Python librosa NoBackendError even though ffmpeg is installed

    11 avril 2020, par Slavko Kovačević

    I recently installed librosa (package I've been using for a while on different PC) on my new PC with Windows 10 running. After that I've downloaded latest static version of ffmpeg and copied it to C: and added it to the Path. Tested ffmpeg and it works like a charm ! For python I am using Anaconda environment and after starting Jupyter Notebook and running librosa.load(path, sr = None) I've got

    



     in <module>&#xA;----> 1 audio = librosa.load(pathToJson)&#xA;&#xA;~\anaconda3\envs\tf_gpu\lib\site-packages\librosa\core\audio.py in load(path, sr, mono, offset, duration, dtype, res_type)&#xA;    117 &#xA;    118     y = []&#xA;--> 119     with audioread.audio_open(os.path.realpath(path)) as input_file:&#xA;    120         sr_native = input_file.samplerate&#xA;    121         n_channels = input_file.channels&#xA;&#xA;~\anaconda3\envs\tf_gpu\lib\site-packages\audioread\__init__.py in audio_open(path, backends)&#xA;    114 &#xA;    115     # All backends failed!&#xA;--> 116     raise NoBackendError()&#xA;&#xA;NoBackendError:&#xA;</module>

    &#xA;&#xA;

    strange isn't it ? Then I went all over the internet, doing whatnot trying to fix it and then I've got an idea to run my line of code inside anaconda command interface and it WORKS ?? How is this possible ? It is the same environment.

    &#xA;&#xA;

    python&#xA;Python 3.7.7 (default, Mar 23 2020, 23:19:08) [MSC v.1916 64 bit (AMD64)] :: Anaconda, Inc. on win32&#xA;Type "help", "copyright", "credits" or "license" for more information.&#xA;>>> import librosa&#xA;>>> librosa.load(&#x27;test.wav&#x27;)&#xA;(array([-0.00027   , -0.00039953, -0.0003659 , ..., -0.16393574,&#xA;       -0.17814247,  0.        ], dtype=float32), 22050)&#xA;

    &#xA;&#xA;

    I did a lot of testing and I really prefer my Jupyter so any help would be appreciated. I tried the following : I've added C:\ffmpeg\bin and C:\ffmpeg to my Path for both User and System Variables. After that I've made specific variables for ffmpeg and ffmpeg_bin for both User and System Variables. No luck. After that I've tried installing ffmpeg using conda, without success. The last thing I've tested is this :

    &#xA;&#xA;

    import audioread&#xA;audioread.ffdec.FFmpegAudioFile(&#x27;test.wav&#x27;)&#xA;

    &#xA;&#xA;

    and that works. Thanks

    &#xA;

  • ffmpeg : Convert a legally purchased video on Google

    24 avril 2020, par Heycava

    I've bought a video on the Google Play Store. I need to have it on my computer in order to edit it for a video montage. But Google says "Important : You cannot download movies and TV shows onto a PC, Mac, and other laptops or computers."

    &#xA;&#xA;

    The video has a YouTube link. As I paid for it, I can watch it. I've managed to get the video part and the audio thanks to some web tools.&#xA;The video is a .webm file and the audio a .m4a file.

    &#xA;&#xA;

    I can hear the audio with VLC but I can't watch the video. Even if VLC displays "21:42" for the timecode.

    &#xA;&#xA;

    Here are informations for the webm file (from MediaInfo) :

    &#xA;&#xA;

    General&#xA;Complete name                            : XXX\videoplayback.webm&#xA;Format                                   : WebM&#xA;Format version                           : Version 4 / Version 2&#xA;File size                                : 357 MiB&#xA;Duration                                 : 21 min 42 s&#xA;Overall bit rate                         : 2 301 kb/s&#xA;Writing application                      : google/video-file&#xA;Writing library                          : google/video-file&#xA;&#xA;Video&#xA;ID                                       : 1&#xA;Format                                   : VP9&#xA;Codec ID                                 : V_VP9&#xA;Duration                                 : 21 min 42 s&#xA;Bit rate                                 : 2 203 kb/s&#xA;Width                                    : 854 pixels&#xA;Height                                   : 480 pixels&#xA;Display aspect ratio                     : 16:9&#xA;Frame rate mode                          : Constant&#xA;Frame rate                               : 23.976 (24000/1001) FPS&#xA;Bits/(Pixel*Frame)                       : 0.224&#xA;Stream size                              : 342 MiB (96%)&#xA;Language                                 : English&#xA;Default                                  : Yes&#xA;Forced                                   : No&#xA;

    &#xA;&#xA;

    It seems to be a good video file.

    &#xA;&#xA;

    I wanted to convert it with some video converters but none of them works. So I've tried to download ffmpeg, I renamed the video to "video.webm" and tried a lot of commands. But none of them worked.

    &#xA;&#xA;

    Here are informations from ffprobe command :

    &#xA;&#xA;

    C:\Users\XXX\Downloads\ffmpeg-20200424-a501947-win64-static\bin>ffprobe -i video.webm&#xA;

    &#xA;&#xA;

    Results :

    &#xA;&#xA;

    ffprobe version git-2020-04-24-a501947 Copyright (c) 2007-2020 the FFmpeg developers&#xA;  built with gcc 9.3.1 (GCC) 20200328&#xA;  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&#xA;  libavutil      56. 42.102 / 56. 42.102&#xA;  libavcodec     58. 81.100 / 58. 81.100&#xA;  libavformat    58. 42.101 / 58. 42.101&#xA;  libavdevice    58.  9.103 / 58.  9.103&#xA;  libavfilter     7. 79.100 /  7. 79.100&#xA;  libswscale      5.  6.101 /  5.  6.101&#xA;  libswresample   3.  6.100 /  3.  6.100&#xA;  libpostproc    55.  6.100 / 55.  6.100&#xA;[vp9 @ 00000284720d5f40] Invalid frame marker&#xA;    Last message repeated 111 times&#xA;[vp9 @ 00000284720d5f40] Profile 4 is not yet supported&#xA;[vp9 @ 00000284720d5f40] Invalid frame marker&#xA;    Last message repeated 6 times&#xA;[matroska,webm @ 00000284720cd840] decoding for stream 0 failed&#xA;[matroska,webm @ 00000284720cd840] Could not find codec parameters for stream 0 (Video: vp9 (Profile 0), none, 854x480): unspecified pixel format&#xA;Consider increasing the value for the &#x27;analyzeduration&#x27; and &#x27;probesize&#x27; options&#xA;Input #0, matroska,webm, from &#x27;video.webm&#x27;:&#xA;  Metadata:&#xA;    encoder         : google/video-file&#xA;  Duration: 00:21:42.05, start: 0.000000, bitrate: 2301 kb/s&#xA;    Stream #0:0(eng): Video: vp9 (Profile 0), none, 854x480, SAR 1:1 DAR 427:240, 23.98 fps, 23.98 tbr, 1k tbn, 1k tbc (default)&#xA;    Metadata:&#xA;      enc_key_id      : [24 characters I prefer not to display]&#xA;

    &#xA;&#xA;

    If ever I initiate a conversion, I get :

    &#xA;&#xA;

    [vp9 @ 0000019038a80980] Invalid frame marker&#xA;[vp9 @ 0000019038c0fe40] Invalid frame marker&#xA;[vp9 @ 0000019038c193c0] Invalid frame marker&#xA;[vp9 @ 0000019038c1e780] Invalid frame marker&#xA;[vp9 @ 0000019038c29100] Invalid frame marker&#xA;[vp9 @ 0000019038c324c0] Invalid frame marker&#xA;[vp9 @ 0000019038c3d480] Invalid frame marker&#xA;[vp9 @ 0000019038c47280] Invalid frame marker&#xA;Error while decoding stream #0:0: Invalid data found when processing input&#xA;[vp9 @ 0000019038c4c080] Invalid frame marker&#xA;Error while decoding stream #0:0: Invalid data found when processing input&#xA;[vp9 @ 0000019038a80980] Invalid frame marker&#xA;

    &#xA;&#xA;

    etc.&#xA;Then :

    &#xA;&#xA;

    Error while decoding stream #0:0: Resource temporarily unavailable&#xA;    Last message repeated 243 times&#xA;Error while decoding stream #0:0: Resource temporarily unavailabletrate=  -0.0kbits/s speed=N/A&#xA;    Last message repeated 306 times&#xA;Error while decoding stream #0:0: Resource temporarily unavailabletrate=  -0.0kbits/s speed=N/A&#xA;    Last message repeated 190 times&#xA;

    &#xA;&#xA;

    I've already checked on the Internet solutions for the raised issues :

    &#xA;&#xA;

      &#xA;
    • Invalid frame marker
    • &#xA;

    • unspecified pixel format
    • &#xA;

    • Consider increasing the value for the 'analyzeduration' and 'probesize' options
    • &#xA;

    &#xA;&#xA;

    But it didn't work in my case.

    &#xA;&#xA;

    Obviously, I can watch the video on YouTube when I'm logged into my purchase account. I presume they have a high level security algorithm, that's why I can't do nothing. Mayve there is something with the "enc_key_id" in the metadata, they get it and the video can only be read with it. I don't know.

    &#xA;&#xA;

    I find it unacceptable not to be able to use freely my purchased videos.

    &#xA;&#xA;

    Would anyone have an idea ?

    &#xA;