Recherche avancée

Médias (91)

Autres articles (112)

  • Personnaliser en ajoutant son logo, sa bannière ou son image de fond

    5 septembre 2013, par

    Certains thèmes prennent en compte trois éléments de personnalisation : l’ajout d’un logo ; l’ajout d’une bannière l’ajout d’une image de fond ;

  • Les autorisations surchargées par les plugins

    27 avril 2010, par

    Mediaspip core
    autoriser_auteur_modifier() afin que les visiteurs soient capables de modifier leurs informations sur la page d’auteurs

  • Personnaliser les catégories

    21 juin 2013, par

    Formulaire de création d’une catégorie
    Pour ceux qui connaissent bien SPIP, une catégorie peut être assimilée à une rubrique.
    Dans le cas d’un document de type catégorie, les champs proposés par défaut sont : Texte
    On peut modifier ce formulaire dans la partie :
    Administration > Configuration des masques de formulaire.
    Dans le cas d’un document de type média, les champs non affichés par défaut sont : Descriptif rapide
    Par ailleurs, c’est dans cette partie configuration qu’on peut indiquer le (...)

Sur d’autres sites (11226)

  • FFmpeg can't process videos with filenames containing emojis on Google Colab

    25 novembre 2022, par athena

    I mounted my Google Drive on Google Colab, inside the Drive, there's a video file with an emoji on it's filename (example : 20221124 [우리의식탁 W TABLE] 직접 기른 허브로 만들면 더 맛있는 허브포카치아 🌿 (8m2hNIEoXEw).mkv).

    


    !ffmpeg -i "/content/drive/MyDrive/DOWNLOAD/20221124 [우리의식탁 W TABLE] 직접 기른 허브로 만들면 더 맛있는 허브포카치아 🌿 (8m2hNIEoXEw).mkv"


    


    Trying to run FFmpeg gives me this error :

    


    ---------------------------------------------------------------------------&#xA;UnicodeEncodeError                        Traceback (most recent call last)&#xA; in <module>&#xA;      3 video = "/content/drive/MyDrive/DOWNLOAD/20221124 [\u110B\u116E\u1105\u1175\u110B\u1174\u1109\u1175\u11A8\u1110\u1161\u11A8 W TABLE] \u110C\u1175\u11A8\u110C\u1165\u11B8 \u1100\u1175\u1105\u1173\u11AB \u1112\u1165\u1107\u1173\u1105\u1169 \u1106\u1161\u11AB\u1103\u1173\u11AF\u1106\u1167\u11AB \u1103\u1165 \u1106\u1161\u11BA\u110B\u1175\u11BB\u1102\u1173\u11AB \u1112\u1165\u1107\u1173\u1111\u1169\u110F\u1161\u110E\u1175\u110B\u1161 \uD83C\uDF3F (8m2hNIEoXEw).mkv" #@param {type: "string"}&#xA;      4 &#xA;----> 5 get_ipython().system(&#x27;ffmpeg -i "$video" #-hide_banner&#x27;)&#xA;&#xA;4 frames&#xA;/usr/local/lib/python3.7/dist-packages/google/colab/_shell.py in system(self, *args, **kwargs)&#xA;     93       kwargs.update({&#x27;also_return_output&#x27;: True})&#xA;     94 &#xA;---> 95     output = _system_commands._system_compat(self, *args, **kwargs)  # pylint:disable=protected-access&#xA;     96 &#xA;     97     if pip_warn:&#xA;&#xA;/usr/local/lib/python3.7/dist-packages/google/colab/_system_commands.py in _system_compat(shell, cmd, also_return_output)&#xA;    435   # stack.&#xA;    436   result = _run_command(&#xA;--> 437       shell.var_expand(cmd, depth=2), clear_streamed_output=False)&#xA;    438   shell.user_ns[&#x27;_exit_code&#x27;] = result.returncode&#xA;    439   if -result.returncode in _INTERRUPTED_SIGNALS:&#xA;&#xA;/usr/local/lib/python3.7/dist-packages/google/colab/_system_commands.py in _run_command(cmd, clear_streamed_output)&#xA;    189           stdin=stdin,&#xA;    190           stderr=child_pty,&#xA;--> 191           close_fds=True)&#xA;    192       # The child PTY is only needed by the spawned process.&#xA;    193       os.close(child_pty)&#xA;&#xA;/usr/lib/python3.7/subprocess.py in __init__(self, args, bufsize, executable, stdin, stdout, stderr, preexec_fn, close_fds, shell, cwd, env, universal_newlines, startupinfo, creationflags, restore_signals, start_new_session, pass_fds, encoding, errors, text)&#xA;    798                                 c2pread, c2pwrite,&#xA;    799                                 errread, errwrite,&#xA;--> 800                                 restore_signals, start_new_session)&#xA;    801         except:&#xA;    802             # Cleanup if the child failed starting.&#xA;&#xA;/usr/lib/python3.7/subprocess.py in _execute_child(self, args, executable, preexec_fn, close_fds, pass_fds, cwd, env, startupinfo, creationflags, shell, p2cread, p2cwrite, c2pread, c2pwrite, errread, errwrite, restore_signals, start_new_session)&#xA;   1480                             errread, errwrite,&#xA;   1481                             errpipe_read, errpipe_write,&#xA;-> 1482                             restore_signals, start_new_session, preexec_fn)&#xA;   1483                     self._child_created = True&#xA;   1484                 finally:&#xA;&#xA;UnicodeEncodeError: &#x27;utf-8&#x27; codec can&#x27;t encode characters in position 131-132: surrogates not allowed&#xA;</module>

    &#xA;

    My Colab uses Python 3.7.15 and ffmpeg/ffprobe version N-109226-g2ad199ae31-20221125 (from https://github.com/BtbN/FFmpeg-Builds).

    &#xA;

    I tried searching similar issues as mine here, but most of the solutions are way beyond my knowledge, I'm not sure how to apply them to my use case.

    &#xA;

    I'll appreciate your help, thank you !

    &#xA;

  • Google AppEngine flex as a transcoder [closed]

    6 septembre 2021, par jACK

    Situation :

    &#xA;

      &#xA;
    • A Nodejs/Express application running on appengine flex.
    • &#xA;

    • Using FFmpeg to cut videos, and merge different types of videos. 1080p 30fps videos, merged video duration usually around 8 hours.
    • &#xA;

    • Need for a massive amout of processing power for those edits.
    • &#xA;

    • The express server needs to be reachable 24/7 & flex is incredibly expensive if run on a 24/7 basis.
    • &#xA;

    &#xA;

    Goal :

    &#xA;

      &#xA;
    • To have a cost efficient ffmpeg transcoder on a private enviroment =>
    • &#xA;

    • Flex instance as a maximum spec, but as its idle reduce the price significantly.
    • &#xA;

    &#xA;

    Or is this a situation where a redesign is imminent ? eg. Compute Engine

    &#xA;

    Tried approach

    &#xA;

      &#xA;
    • B8 Standard instance => Since the payload is pretty big, its causing the B8 instance to crash.
    • &#xA;

    &#xA;

    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;