
Recherche avancée
Médias (91)
-
MediaSPIP Simple : futur thème graphique par défaut ?
26 septembre 2013, par
Mis à jour : Octobre 2013
Langue : français
Type : Video
-
avec chosen
13 septembre 2013, par
Mis à jour : Septembre 2013
Langue : français
Type : Image
-
sans chosen
13 septembre 2013, par
Mis à jour : Septembre 2013
Langue : français
Type : Image
-
config chosen
13 septembre 2013, par
Mis à jour : Septembre 2013
Langue : français
Type : Image
-
SPIP - plugins - embed code - Exemple
2 septembre 2013, par
Mis à jour : Septembre 2013
Langue : français
Type : Image
-
GetID3 - Bloc informations de fichiers
9 avril 2013, par
Mis à jour : Mai 2013
Langue : français
Type : Image
Autres articles (105)
-
Personnaliser en ajoutant son logo, sa bannière ou son image de fond
5 septembre 2013, parCertains 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 ;
-
Ecrire une actualité
21 juin 2013, parPrésentez les changements dans votre MédiaSPIP ou les actualités de vos projets sur votre MédiaSPIP grâce à la rubrique actualités.
Dans le thème par défaut spipeo de MédiaSPIP, les actualités sont affichées en bas de la page principale sous les éditoriaux.
Vous pouvez personnaliser le formulaire de création d’une actualité.
Formulaire de création d’une actualité Dans le cas d’un document de type actualité, les champs proposés par défaut sont : Date de publication ( personnaliser la date de publication ) (...) -
Keeping control of your media in your hands
13 avril 2011, parThe vocabulary used on this site and around MediaSPIP in general, aims to avoid reference to Web 2.0 and the companies that profit from media-sharing.
While using MediaSPIP, you are invited to avoid using words like "Brand", "Cloud" and "Market".
MediaSPIP is designed to facilitate the sharing of creative media online, while allowing authors to retain complete control of their work.
MediaSPIP aims to be accessible to as many people as possible and development is based on expanding the (...)
Sur d’autres sites (10868)
-
How to apply 'simple 'opacity to combined(layered) mp4s in FFMPEG
27 mai 2021, par CamI am not getting the final image results I need when layering together multiple mp4s of the same length and format into a single output MP4. I am using ffmpeg to create a pseudo 'motion blur' effect on animation, and need to layer mp4s together with identical opacities to produce the final video.


I am using a base 'black' MP4 as the first layer for a background, and then adding a series of source mp4s with equal opacity over the top in each pass. Here I am showing a photoshop mockup using their 'normal' blending mode which is exactly the blending effect I am trying to replicate with ffmpeg. I understand that the final composite is less "bright" but that's fine (unless you have any ideas).



Instead of looking like the result above, I am getting output where the colors are either all pink, garbled, super dark or generally hugely overbright etc based on trying different blend modes.


Here are the commands I am using :


To create the original (uncompressed ?) 'black' MP4 from a sequence of black pngs :


ffmpeg -start_number 0 -r 24 -f image2 -s 1920x1080 -i black_seq.%04d.png -vcodec libx264 -crf 0 -pix_fmt yuv420p black_seq.mp4 -y



I then take that "black_seq.mp4" and blend a set of n number of source mp4s over the top with an opacity value. This runs in a loop and the output.mp4 of each pass becomes the input.mp4 of the next pass until it completes. In this example a total of 10 source mp4s assigns their opacity to 0.1 for each pass, and this is a single pass (below). The source mp4s are all very similar in their appearance and color, essentially just the same sequence of animation but offset in time by fractions of a single frame and have been generated from color pngs, using the same code that produced the first black layer (above).


ffmpeg i input.mp4 -i n_layer.mp4 -vcodec libx264 -crf 0 -pix_fmt yuv420p -filter_complex "blend=all_mode='overlay':all_opacity=0.1" output.mp4 -y



Then finally add some compression to the result as the final "blur.mp4"


ffmpeg -i "output.mp4" -vcodec libx264 -crf 25 -pix_fmt yuv420p "blur.mp4" -y



And yes, this is certainly highly inefficient as an approach, but I am learning. The main issue I am trying to solve is, despite the final blur.mp4 being less "bright", it has colors that are not matching the original animation and instead looks like the animation has been hue shifted somehow.


This image shows a cropped output for comparison (the processed blur is set to zero for clarity)



I would love some insight.


-
Error in writing video file using moviepy and ffmpeg
13 juillet, par Divakar SharmaI have been working with moviepy library for the first time. I have a video clip around 7 hours long, and I'd like to clip it into small clips. I have a list of start and end time.


video = VideoFileClip("videoFile.mp4")
clips = []
for cut in cuts:
 clip = video.subclip(cut[0], cut[1])
 clips.append(clip)
clips
clip = video.subclip("7:32:18", "7:38:38")
clips.append(clip)
for clip, title in zip(clips, title_list):
 clip.write_videofile(title + '.mp4', threads=8, fps=24, audio=True, codec='libx264',preset=compression)
video.close()



clips[] contain the start and end time for clipping. I have a list of title too which I have scraped from youtube. I have not included the two lists here but a small example could be :


cuts = [('0:00', '2:26'),
 ('2:26', '5:00'),
 ('5:00', '7:15'),
 ('7:15', '10:57'),
 ('10:57', '18:00'),
 ('18:00', '18:22'),
 ('18:22', '19:57'),
 ('19:57', '20:37'),
 ('20:37', '28:27'),
 ('28:27', '40:32'),
 ('40:32', '49:57'),...
title_list = ['Introduction (What is Todoist?), tech stack talk', 'Showing the final application (with dark mode!)', 'Installing create react app', "Clearing out what we don't need from create react app", "Let's get building our components!", 'Installing packages using Yarn', 'Building the Header component', 'Building the Content component',...



OSError: [Errno 32] Broken pipe

MoviePy error: FFMPEG encountered the following error while writing file Introduction(WhatisTodoist?),techstacktalkTEMP_MPY_wvf_snd.mp3:

b'Introduction(WhatisTodoist?),techstacktalkTEMP_MPY_wvf_snd.mp3: Invalid argument\r\n'

In case it helps, make sure you are using a recent version of FFMPEG (the versions in the Ubuntu/Debian repos are deprecated).



Above is the error I am getting after running the write_videofile(). I have looked at the documentation and the issues on github, I tried updating the ffmpeg through pip too. I don't know why it can't write the audio file.


-
FFMPEG Artwork cover image not set [duplicate]
16 août 2021, par DP_DevBellow is my FFMPEG command where is converting video file to audio and also setting artwork, but artwork not setting in audio file. FFMPEG command not giving any error.


[-y, -i, input.mp4, -i, artwork.jpg, -ss, 00:00:00.00, -to, 00:00:15.00, -map, 0:1, -map, 1, -vn, -acodec, copy, -metadata, comment=Cover (Front), -id3v2_version, 3, -write_id3v1, 1, output.m4a]


I am extracting audio file from video file and adding art cover to audio output file. Output generated in FFmpeg process. Cover of output file is not set and no error in output. :


I/ffmpeg-kit: ffmpeg version v4.4-dev-3015-gc0d0b1c4f6
I/ffmpeg-kit: Copyright (c) 2000-2021 the FFmpeg developers
I/ffmpeg-kit: configuration: --cross-prefix=aarch64-linux-android- --sysroot=/files/android-sdk/ndk/22.0.7026061/toolchains/llvm/prebuilt/linux-x86_64/sysroot --prefix=/storage/dark/projects/ffmpeg-kit/prebuilt/android-arm64-lts/ffmpeg --pkg-config=/usr/bin/pkg-config --enable-version3 --arch=aarch64 --cpu=armv8-a --cc=aarch64-linux-android21-clang --cxx=aarch64-linux-android21-clang++ --ranlib=aarch64-linux-android-ranlib --strip=aarch64-linux-android-strip --nm=aarch64-linux-android-nm --extra-libs='-L/storage/dark/projects/ffmpeg-kit/prebuilt/android-arm64-lts/cpu-features/lib -lndk_compat' --target-os=android --enable-neon --enable-asm --enable-inline-asm --enable-cross-compile --enable-pic --enable-jni --enable-optimizations --enable-swscale --disable-static --enable-shared --enable-v4l2-m2m --disable-outdev=fbdev --disable-indev=fbdev --enable-small --disable-openssl --disable-xmm-clobber-test --disable-debug --enable-lto --disable-neon-clobber-test --disable-programs --disable-postproc --disable-doc --disable-htmlpages --disable-manpages --disable-podpages --disable-txtpages --disable-sndio --disable-schannel --disable-securetransport --disable-xlib --disable-cuda --disable-cuvid --disable-nvenc --disable-vaapi --disable-vdpau --disable-videotoolbox --disable-audiotoolbox --disable-appkit --disable-alsa --disable-cuda --disable-cuvid --disable-nvenc --disable-vaapi --disable-vdpau --disable-sdl2 --enable-libmp3lame --enable-iconv --enable-libvorbis --enable-libopencore-amrnb --enable-libshine --enable-libspeex --enable-libilbc --enable-libopus --enable-libsoxr --enable-libtwolame --enable-libvo-amrwbenc --enable-zlib --enable-mediacodec
V/FA: Activity resumed, time: 113363059
I/ffmpeg-kit: libavutil 56. 65.100 / 56. 65.100
I/ffmpeg-kit: libavcodec 58.123.100 / 58.123.100
I/ffmpeg-kit: libavformat 58. 67.100 / 58. 67.100
I/ffmpeg-kit: libavdevice 58. 12.100 / 58. 12.100
I/ffmpeg-kit: libavfilter 7.106.100 / 7.106.100
I/ffmpeg-kit: libswscale 5. 8.100 / 5. 8.100
I/ffmpeg-kit: libswresample 3. 8.100 / 3. 8.100

I/ffmpeg-kit: Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'input.mp4'
I/ffmpeg-kit: Metadata:
I/ffmpeg-kit: major_brand : 
I/ffmpeg-kit: mp42
I/ffmpeg-kit: minor_version : 
I/ffmpeg-kit: 0
I/ffmpeg-kit: compatible_brands: 
I/ffmpeg-kit: isommp42
I/ffmpeg-kit: creation_time : 
I/ffmpeg-kit: 2021-05-30T10:25:09.000000Z
I/ffmpeg-kit: com.android.version: 
I/ffmpeg-kit: 10
I/ffmpeg-kit: Duration: 
I/ffmpeg-kit: 00:00:51.40
I/ffmpeg-kit: , start: 
I/ffmpeg-kit: 0.000000
I/ffmpeg-kit: , bitrate: 
I/ffmpeg-kit: 20306 kb/s
I/ffmpeg-kit: Stream #0:0
I/ffmpeg-kit: (eng)
I/ffmpeg-kit: : Video: h264 (avc1 / 0x31637661), yuvj420p(pc, bt470bg/bt470bg/smpte170m), 1920x1080, 20084 kb/s
I/ffmpeg-kit: , SAR 1:1 DAR 16:9
I/ffmpeg-kit: , 
I/ffmpeg-kit: 30 fps, 
I/ffmpeg-kit: 30 tbr, 
I/ffmpeg-kit: 90k tbn, 
I/ffmpeg-kit: 180k tbc
I/ffmpeg-kit: (default)
I/ffmpeg-kit: Metadata:
I/ffmpeg-kit: rotate : 
I/ffmpeg-kit: 90
I/ffmpeg-kit: creation_time : 
I/ffmpeg-kit: 2021-05-30T10:25:09.000000Z
I/ffmpeg-kit: handler_name : 
I/ffmpeg-kit: VideoHandle
I/ffmpeg-kit: vendor_id : 
I/ffmpeg-kit: [0][0][0][0]
I/ffmpeg-kit: Side data:
I/ffmpeg-kit: 
I/ffmpeg-kit: displaymatrix: rotation of -90.00 degrees
I/ffmpeg-kit: Stream #0:1
I/ffmpeg-kit: (eng)
I/ffmpeg-kit: : Audio: aac (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 96 kb/s
I/ffmpeg-kit: (default)
I/ffmpeg-kit: Metadata:
I/ffmpeg-kit: creation_time : 
I/ffmpeg-kit: 2021-05-30T10:25:09.000000Z
I/ffmpeg-kit: handler_name : 
I/ffmpeg-kit: SoundHandle
I/ffmpeg-kit: vendor_id : 
I/ffmpeg-kit: [0][0][0][0]
W/turn.videotomp: Accessing hidden method Lsun/misc/Unsafe;->compareAndSwapObje
I/ffmpeg-kit: Input #1, image2, from 'cover.jpg'
I/ffmpeg-kit: Duration: 
I/ffmpeg-kit: 00:00:00.04
I/ffmpeg-kit: , start: 
I/ffmpeg-kit: 0.000000
I/ffmpeg-kit: , bitrate: 
I/ffmpeg-kit: 245926 kb/s
I/ffmpeg-kit: Stream #1:0
I/ffmpeg-kit: : Video: mjpeg, yuvj420p(pc, bt470bg/unknown/unknown), 2420x3226 
I/ffmpeg-kit: , 
I/ffmpeg-kit: 25 fps, 
I/ffmpeg-kit: 25 tbr, 
I/ffmpeg-kit: 25 tbn, 
I/ffmpeg-kit: 25 tbc
I/ffmpeg-kit: Output #0, ipod, to 'output.m4a'
I/ffmpeg-kit: Metadata:
I/ffmpeg-kit: major_brand : 
I/ffmpeg-kit: mp42
I/ffmpeg-kit: minor_version : 
I/ffmpeg-kit: 0
I/ffmpeg-kit: compatible_brands: 
I/ffmpeg-kit: isommp42
I/ffmpeg-kit: com.android.version: 
I/ffmpeg-kit: 10
I/ffmpeg-kit: encoder : 
I/ffmpeg-kit: Lavf58.67.100
I/ffmpeg-kit: Stream #0:0
I/ffmpeg-kit: (eng)
I/ffmpeg-kit: : Audio: aac (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 96 kb/s
I/ffmpeg-kit: (default)
I/ffmpeg-kit: Metadata:
I/ffmpeg-kit: creation_time : 
I/ffmpeg-kit: 2021-05-30T10:25:09.000000Z
I/ffmpeg-kit: handler_name : 
I/ffmpeg-kit: SoundHandle
I/ffmpeg-kit: vendor_id : 
I/ffmpeg-kit: [0][0][0][0]
I/ffmpeg-kit: Stream mapping:
I/ffmpeg-kit: Stream #0:1 -> #0:0
I/ffmpeg-kit: (copy)
I/ffmpeg-kit: Press [q] to stop, [?] for help
I/ffmpeg-kit: size= 0kB time=00:00:00.00 bitrate=N/A speed= 0x