Recherche avancée

Médias (1)

Mot : - Tags -/blender

Autres articles (70)

  • Websites made ​​with MediaSPIP

    2 mai 2011, par

    This page lists some websites based on MediaSPIP.

  • Participer à sa traduction

    10 avril 2011

    Vous pouvez nous aider à améliorer les locutions utilisées dans le logiciel ou à traduire celui-ci dans n’importe qu’elle nouvelle langue permettant sa diffusion à de nouvelles communautés linguistiques.
    Pour ce faire, on utilise l’interface de traduction de SPIP où l’ensemble des modules de langue de MediaSPIP sont à disposition. ll vous suffit de vous inscrire sur la liste de discussion des traducteurs pour demander plus d’informations.
    Actuellement MediaSPIP n’est disponible qu’en français et (...)

  • 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" (...)

Sur d’autres sites (12447)

  • MoviePy, using a gif as an ImageClip ?

    13 avril 2018, par Slake

    Using a gif inside an ImageClip doesn’t work, is it a normal behavior ?

    The code

    #!/usr/bin/env python
    from moviepy.editor import *

    video = VideoFileClip('./video.mp4')
    watermark = (ImageClip("./my.gif")
                           .set_duration(10))

    watermaked = CompositeVideoClip([video, watermark], size=video.size)
    watermaked.write_videofile('./gif_output.mp4', fps=30, threads=1)

    .

    The error

    ValueError: could not broadcast input array from shape (150,150) into shape (150,150,3)

    .

    The stack error

    Traceback (most recent call last):
     File "./gif_test.py", line 9, in <module>
       watermaked.write_videofile('./gif_output.mp4', fps=30, threads=1)
     File "", line 2, in write_videofile
     File "/Library/Python/2.7/site-packages/moviepy/decorators.py", line 54, in requires_duration
       return f(clip, *a, **k)
     File "", line 2, in write_videofile
     File "/Library/Python/2.7/site-packages/moviepy/decorators.py", line 137, in use_clip_fps_by_default
       return f(clip, *new_a, **new_kw)
     File "", line 2, in write_videofile
     File "/Library/Python/2.7/site-packages/moviepy/decorators.py", line 22, in convert_masks_to_RGB
       return f(clip, *a, **k)
     File "/Library/Python/2.7/site-packages/moviepy/video/VideoClip.py", line 349, in write_videofile
       progress_bar=progress_bar)
     File "/Library/Python/2.7/site-packages/moviepy/video/io/ffmpeg_writer.py", line 209, in ffmpeg_write_video
       fps=fps, dtype="uint8"):
     File "/Library/Python/2.7/site-packages/tqdm/_tqdm.py", line 833, in __iter__
       for obj in iterable:
     File "/Library/Python/2.7/site-packages/moviepy/Clip.py", line 475, in generator
       frame = self.get_frame(t)
     File "", line 2, in get_frame
     File "/Library/Python/2.7/site-packages/moviepy/decorators.py", line 89, in wrapper
       return f(*new_a, **new_kw)
     File "/Library/Python/2.7/site-packages/moviepy/Clip.py", line 95, in get_frame
       return self.make_frame(t)
     File "/Library/Python/2.7/site-packages/moviepy/video/compositing/CompositeVideoClip.py", line 110, in make_frame
       f = c.blit_on(f, t)
     File "/Library/Python/2.7/site-packages/moviepy/video/VideoClip.py", line 611, in blit_on
       return blit(img, picture, pos, mask=mask, ismask=self.ismask)
     File "/Library/Python/2.7/site-packages/moviepy/video/tools/drawing.py", line 45, in blit
       new_im2[yp1:yp2, xp1:xp2] = blitted
    ValueError: could not broadcast input array from shape (150,150) into shape (150,150,3)
    </module>
  • vp9/x86 : simplify FILTER_INIT.

    19 avril 2014, par Clément Bœsch
    vp9/x86 : simplify FILTER_INIT.
    

    In the 2 FILTER_INIT usages, the source is already preloaded so that
    extra complexity taken from FILTER_UPDATE is not necessary.

    Also add forgotten "mask" argument in FILTER_INIT,UPDATE comments.

    • [DH] libavcodec/x86/vp9lpf.asm
  • Translating Handbrake options to a FFMPEG command

    9 mai 2020, par Arif

    I want to convert a bunch of videos from x264 to x265, but I need to do so with ffmpeg in terminal because it's a remote server. These are my Handbrake options (listed items are ticked) :

    &#xA;&#xA;

    Summary tab

    &#xA;&#xA;

      &#xA;
    • Web optimized
    • &#xA;

    • Align A/V Start
    • &#xA;

    &#xA;&#xA;

    Dimensions tab unchanged

    &#xA;&#xA;

    Filters tab

    &#xA;&#xA;

      &#xA;
    • Sharpen - LapSharp, preset : Medium
    • &#xA;

    &#xA;&#xA;

    Video tab

    &#xA;&#xA;

      &#xA;
    • Video codec - H.265 (x265)

    • &#xA;

    • Framerate (FPS) - 30 - Peak Framerate

    • &#xA;

    • Quality - Constant Quality - 28

    • &#xA;

    • Encoder preset - Medium

    • &#xA;

    • Encoder tune - None

    • &#xA;

    • Encoder profile - Auto

    • &#xA;

    &#xA;&#xA;

    Audio tab

    &#xA;&#xA;

      &#xA;
    • Audio track - AAC, bitrate : 128
    • &#xA;

    &#xA;&#xA;

    Subtitles tab - No subtitles (remove if exists)

    &#xA;&#xA;

    This is the ffmpeg command that I've managed to compile so far :

    &#xA;&#xA;

    ffmpeg -i input.mp4 -c:v libx265 -crf 28 -c:a aac -b:a 128k -max_muxing_queue_size 400 -movflags &#x2B;faststart output.mp4

    &#xA;&#xA;

    I have the following two questions :

    &#xA;&#xA;

      &#xA;
    1. Does the ffmpeg command provided list all the options except the peak framerate, sharpening filter and removing subtitle ones ? How do I incorporate these three ?
    2. &#xA;

    3. Slightly unrelated, but does having -max_muxing_queue_size 400 negatively affect file size or video quality ? I've only included this because I'd ran into encoding errors in the past.
    4. &#xA;

    &#xA;&#xA;

    Thank you.

    &#xA;&#xA;

    My Handbrake log with the above options, if it helps :

    &#xA;&#xA;

    Input #0, mov,mp4,m4a,3gp,3g2,mj2, from &#x27;E:\input.mp4&#x27;:&#xA;  Metadata:&#xA;    major_brand     : isom&#xA;    minor_version   : 512&#xA;    compatible_brands: isomiso2avc1mp41&#xA;    encoder         : Lavf58.10.100&#xA;  Duration: 00:02:20.52, start: 0.000000, bitrate: 1487 kb/s&#xA;    Stream #0:0(und): Video: h264 (High) [avc1 / 0x31637661]&#xA;      yuv420p, tv, bt709/bt709/bt709&#xA;      1280x720 [PAR 1:1 DAR 16:9], 1288 kb/s, PAR 1:1 DAR 16:9&#xA;      29.97 fps, 30k tbn (default)&#xA;    Metadata:&#xA;      handler_name    : VideoHandler&#xA;    Stream #0:1(eng): Audio: aac (LC) [mp4a / 0x6134706D]&#xA;      44100 Hz, stereo, fltp, 192 kb/s (default)&#xA;    Metadata:&#xA;      handler_name    : SoundHandler&#xA;[04:26:49] scan: decoding previews for title 1&#xA;[04:26:49] scan: audio 0x1: aac, rate=44100Hz, bitrate=192025 English (AAC) (2.0 ch)&#xA;[04:26:50] scan: 10 previews, 1280x720, 29.970 fps, autocrop = 0/0/0/0, aspect 16:9, PAR 1:1&#xA;[04:26:50] scan: supported video decoders: avcodec qsv&#xA;[04:26:50] libhb: scan thread found 1 valid title(s)&#xA;[04:26:50] starting job&#xA;[04:26:50] decomb filter thread started for segment 0&#xA;[04:26:50] decomb filter thread started for segment 1&#xA;[04:26:50] decomb filter thread started for segment 3&#xA;[04:26:50] decomb check thread started for segment 0&#xA;[04:26:50] decomb check thread started for segment 1&#xA;[04:26:50] yadif thread started for segment 0&#xA;[04:26:50] decomb check thread started for segment 3&#xA;[04:26:50] mask filter thread started for segment 0&#xA;[04:26:50] work: track 1, dithering not supported by codec&#xA;[04:26:50] mask filter thread started for segment 1&#xA;[04:26:50] work: only 1 chapter, disabling chapter markers&#xA;[04:26:50] job configuration:&#xA;[04:26:50]  * source&#xA;[04:26:50]    &#x2B; E:\input.mp4&#xA;[04:26:50]    &#x2B; title 1, chapter(s) 1 to 1&#xA;[04:26:50]    &#x2B; container: mov,mp4,m4a,3gp,3g2,mj2&#xA;[04:26:50] mask filter thread started for segment 3&#xA;[04:26:50]    &#x2B; data rate: 1487 kbps&#xA;[04:26:50]  * destination&#xA;[04:26:50]    &#x2B; C:\Users\Hp\Desktop\output.mp4&#xA;[04:26:50]    &#x2B; container: MPEG-4 (libavformat)&#xA;[04:26:50]      &#x2B; optimized for HTTP streaming (fast start)&#xA;[04:26:50]      &#x2B; align initial A/V stream timestamps&#xA;[04:26:50]  * video track&#xA;[04:26:50]    &#x2B; decoder: h264&#xA;[04:26:50]      &#x2B; bitrate 1288 kbps&#xA;[04:26:50]    &#x2B; filters&#xA;[04:26:50] mask filter thread started for segment 2&#xA;[04:26:50]      &#x2B; Comb Detect (mode=3:spatial-metric=2:motion-thresh=1:spatial-thresh=1:filter-mode=2:block-thresh=40:block-width=16:block-height=16)&#xA;[04:26:50]      &#x2B; Decomb (mode=39)&#xA;[04:26:50]      &#x2B; Framerate Shaper (mode=2:rate=27000000/900000)&#xA;[04:26:50]        &#x2B; frame rate: 29.970 fps -> peak rate limited to 30.000 fps&#xA;[04:26:50] mask erode thread started for segment 1&#xA;[04:26:50]      &#x2B; Crop and Scale (width=1280:height=720:crop-top=0:crop-bottom=0:crop-left=0:crop-right=0)&#xA;[04:26:50]        &#x2B; source: 1280 * 720, crop (0/0/0/0): 1280 * 720, scale: 1280 * 720&#xA;[04:26:50]      &#x2B; Sharpen (lapsharp) (y-strength=0.2:y-kernel=isolap:cb-strength=0.2:cb-kernel=isolap)&#xA;[04:26:50]    &#x2B; Output geometry&#xA;[04:26:50]      &#x2B; storage dimensions: 1280 x 720&#xA;[04:26:50]      &#x2B; pixel aspect ratio: 1 : 1&#xA;[04:26:50]      &#x2B; display dimensions: 1280 x 720&#xA;[04:26:50]    &#x2B; encoder: H.265 (libx265)&#xA;[04:26:50]      &#x2B; preset:  medium&#xA;[04:26:50]      &#x2B; profile: auto&#xA;[04:26:50]      &#x2B; quality: 28.00 (RF)&#xA;[04:26:50]  * audio track 1&#xA;[04:26:50] mask erode thread started for segment 2&#xA;[04:26:50]    &#x2B; decoder: English (AAC) (2.0 ch) (track 1, id 0x1)&#xA;[04:26:50]      &#x2B; bitrate: 192 kbps, samplerate: 44100 Hz&#xA;[04:26:50]    &#x2B; mixdown: Stereo&#xA;[04:26:50]    &#x2B; encoder: AAC (libavcodec)&#xA;[04:26:50]      &#x2B; bitrate: 128 kbps, samplerate: 48000 Hz&#xA;[04:26:50] mask erode thread started for segment 3&#xA;[04:26:50] mask dilate thread started for segment 0&#xA;[04:26:50] mask dilate thread started for segment 1&#xA;[04:26:50] mask dilate thread started for segment 2&#xA;[04:26:50] decomb check thread started for segment 2&#xA;[04:26:50] yadif thread started for segment 1&#xA;[04:26:50] yadif thread started for segment 2&#xA;[04:26:50] yadif thread started for segment 3&#xA;[04:26:50] MTFrame thread started for segment 1&#xA;[04:26:50] MTFrame thread started for segment 2&#xA;[04:26:50] MTFrame thread started for segment 3&#xA;[04:26:50] mask dilate thread started for segment 3&#xA;[04:26:50] sync: expecting 4211 video frames&#xA;[04:26:50] mask erode thread started for segment 0&#xA;[04:26:50] decomb filter thread started for segment 2&#xA;[04:26:50] MTFrame thread started for segment 0&#xA;x265 [info]: HEVC encoder version 2.6&#xA;x265 [info]: build info [Windows][GCC 7.2.0][64 bit] 8bit&#x2B;10bit&#x2B;12bit&#xA;x265 [info]: using cpu capabilities: MMX2 SSE2Fast LZCNT SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2&#xA;x265 [info]: Main profile, Level-3.1 (Main tier)&#xA;x265 [info]: Thread pool created using 4 threads&#xA;x265 [info]: Slices                              : 1&#xA;x265 [info]: frame threads / pool features       : 2 / wpp(12 rows)&#xA;x265 [info]: Coding QT: max CU size, min CU size : 64 / 8&#xA;x265 [info]: Residual QT: max TU size, max depth : 32 / 1 inter / 1 intra&#xA;x265 [info]: ME / range / subpel / merge         : hex / 57 / 2 / 2&#xA;x265 [info]: Keyframe min / max / scenecut / bias: 30 / 300 / 40 / 5.00&#xA;x265 [info]: Lookahead / bframes / badapt        : 20 / 4 / 2&#xA;x265 [info]: b-pyramid / weightp / weightb       : 1 / 1 / 0&#xA;x265 [info]: References / ref-limit  cu / depth  : 3 / on / on&#xA;x265 [info]: AQ: mode / str / qg-size / cu-tree  : 1 / 1.0 / 32 / 1&#xA;x265 [info]: Rate Control / qCompress            : CRF-28.0 / 0.60&#xA;x265 [info]: tools: rd=3 psy-rd=2.00 rskip signhide tmvp strong-intra-smoothing&#xA;x265 [info]: tools: lslices=4 deblock sao&#xA;[04:26:50] sync: first pts video is 0&#xA;[04:26:50] sync: "Chapter 1" (1) at frame 1 time 0&#xA;[04:26:50] sync: first pts audio 0x1 is 0&#xA;[04:40:02] reader: done. 1 scr changes&#xA;[04:40:13] work: average encoding speed for job is 5.245789 fps&#xA;[04:40:13] comb detect: heavy 3 | light 10 | uncombed 4198 | total 4211&#xA;[04:40:13] decomb: deinterlaced 3 | blended 10 | unfiltered 4198 | total 4211&#xA;[04:40:13] vfr: 4211 frames output, 0 dropped and 0 duped for CFR/PFR&#xA;[04:40:13] vfr: lost time: 0 (0 frames)&#xA;[04:40:13] vfr: gained time: 0 (0 frames) (0 not accounted for)&#xA;[04:40:13] aac-decoder done: 6052 frames, 0 decoder errors&#xA;[04:40:13] h264-decoder done: 4211 frames, 0 decoder errors&#xA;[04:40:13] sync: got 4211 frames, 4211 expected&#xA;[04:40:13] sync: framerate min 18.394 fps, max 29.970 fps, avg 29.966 fps&#xA;x265 [info]: frame I:     18, Avg QP:24.13  kb/s: 2900.85&#xA;x265 [info]: frame P:   1079, Avg QP:26.64  kb/s: 1040.14&#xA;x265 [info]: frame B:   3114, Avg QP:33.15  kb/s: 235.18&#xA;x265 [info]: Weighted P-Frames: Y:0.4% UV:0.4%&#xA;x265 [info]: consecutive B-frames: 4.0% 1.4% 20.1% 55.7% 18.8%&#xA;encoded 4211 frames in 802.93s (5.24 fps), 452.83 kb/s, Avg QP:31.44&#xA;[04:40:13] mux: track 0, 4211 frames, 7970061 bytes, 453.68 kbps, fifo 8192&#xA;[04:40:13] mux: track 1, 6588 frames, 2254132 bytes, 128.31 kbps, fifo 8192&#xA;[04:40:13] libhb: work result = 0&#xA;&#xA;# Encode Completed ...&#xA;

    &#xA;