
Recherche avancée
Médias (91)
-
Valkaama DVD Cover Outside
4 octobre 2011, par
Mis à jour : Octobre 2011
Langue : English
Type : Image
-
Valkaama DVD Label
4 octobre 2011, par
Mis à jour : Février 2013
Langue : English
Type : Image
-
Valkaama DVD Cover Inside
4 octobre 2011, par
Mis à jour : Octobre 2011
Langue : English
Type : Image
-
1,000,000
27 septembre 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Audio
-
Demon Seed
26 septembre 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Audio
-
The Four of Us are Dying
26 septembre 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Audio
Autres articles (57)
-
Les autorisations surchargées par les plugins
27 avril 2010, parMediaspip core
autoriser_auteur_modifier() afin que les visiteurs soient capables de modifier leurs informations sur la page d’auteurs -
Les formats acceptés
28 janvier 2010, parLes commandes suivantes permettent d’avoir des informations sur les formats et codecs gérés par l’installation local de ffmpeg :
ffmpeg -codecs ffmpeg -formats
Les format videos acceptés en entrée
Cette liste est non exhaustive, elle met en exergue les principaux formats utilisés : h264 : H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10 m4v : raw MPEG-4 video format flv : Flash Video (FLV) / Sorenson Spark / Sorenson H.263 Theora wmv :
Les formats vidéos de sortie possibles
Dans un premier temps on (...) -
Ajouter notes et légendes aux images
7 février 2011, parPour pouvoir ajouter notes et légendes aux images, la première étape est d’installer le plugin "Légendes".
Une fois le plugin activé, vous pouvez le configurer dans l’espace de configuration afin de modifier les droits de création / modification et de suppression des notes. Par défaut seuls les administrateurs du site peuvent ajouter des notes aux images.
Modification lors de l’ajout d’un média
Lors de l’ajout d’un média de type "image" un nouveau bouton apparait au dessus de la prévisualisation (...)
Sur d’autres sites (12998)
-
How to reduce conversion/compression time in FFmpeg and How to merge command ?
18 mai 2017, par Patel PinkalI want to reduce time taken to create new video after adding text in original video using FFmpeg
I had tried to search and I found this code given below for reducing time.-y -i /sdcard/videokit/in.mp4 -strict experimental -vcodec libx264 -preset ultrafast -crf 24 -acodec aac -ar 44100 -ac 2 -b 36000k -s 1280x720 -aspect 16:9 -metadata:s:v:0 rotate=0 /sdcard/videokit/out3.mp4
Now, I want to add text in video and it is done in FFmpeg, by this command and its 100% working.
String[] addTextCommand = {
"-i",
"" + realFilePath,
"-vf",
"drawtext=fontsize=50:fontfile=/storage/emulated/0/Download/Cerbetica-regular.ttf:fontcolor=red:text='"
+ strText +
"':x=0:y=0: box=1: boxcolor=black@0.5:boxborderw=10: x=0: y=(h-text_h)/2",
"-strict",
"-2",
outputFilePath};Now my problem is how do I merge this two code and make one single command to make an edited video and also take less time to create a new video. In this, I have tried this command but it’s not working.
String[] addTextCommand = {
"-i",
"" + realVideoPath,
"-vf",
"-c:v", "libx264",
"-preset", "ultrafast",
"-crf", "24",
"-acodec", "aac",
"-ar", "44100",
"-ac", "2",
"-b", "36000k",
"-s", "1280x720",
"-aspect", "16:9",
"-metadata:s:v:0 rotate=0",
"drawtext=fontsize=50:fontfile=/storage/emulated/0/Download/Cerbetica-regular.ttf:fontcolor=red:text='"
+ strText +
"':x=0:y=0: box=1: boxcolor=black@0.5:boxborderw=10: x=0: y=(h-text_h)/2",
"-strict",
"-2",
outputFilePath};If anyone has an idea how to make command of FFmpeg please describe it and explain how to use it.
Using command of @Mulvya I got this in the console.
D/MainActivity: FAILED with output : WARNING: linker: /data/user/0/com.inheritx.videoprocessing/files/ffmpeg has text relocations. This is wasting memory and prevents security hardening. Please fix.
ffmpeg version n3.0.1 Copyright (c) 2000-2016 the FFmpeg developers
built with gcc 4.8 (GCC)
configuration: --target-os=linux --cross-prefix=/home/vagrant/SourceCode/ffmpeg-android/toolchain-android/bin/i686-linux-android- --arch=x86 --cpu=i686 --enable-runtime-cpudetect --sysroot=/home/vagrant/SourceCode/ffmpeg-android/toolchain-android/sysroot --enable-pic --enable-libx264 --enable-libass --enable-libfreetype --enable-libfribidi --enable-libmp3lame --enable-fontconfig --enable-pthreads --disable-debug --disable-ffserver --enable-version3 --enable-hardcoded-tables --disable-ffplay --disable-ffprobe --enable-gpl --enable-yasm --disable-doc --disable-shared --enable-static --pkg-config=/home/vagrant/SourceCode/ffmpeg-android/ffmpeg-pkg-config --prefix=/home/vagrant/SourceCode/ffmpeg-android/build/x86 --extra-cflags='-I/home/vagrant/SourceCode/ffmpeg-android/toolchain-android/include -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -fno-strict-overflow -fstack-protector-all -march=i686' --extra-ldflags='-L/home/vagrant/SourceCode/ffmpeg-android/toolchain-android/lib -Wl,-z,relro -Wl,-z,now -pie' --extra-libs='-lpng -lexpat -lm' --extra-cxxflags=
libavutil 55. 17.103 / 55. 17.103
libavcodec 57. 24.102 / 57. 24.102
libavformat 57. 25.100 / 57. 25.100
libavdevice 57. 0.101 / 57. 0.101
libavfilter 6. 31.100 / 6. 31.100
libswscale 4. 0.100 / 4. 0.100
libswresample 2. 0.101 / 2. 0.101
libpostproc 54. 0.100 / 54. 0.100
Unrecognized option '2'.
Error splitting the argument list: Option not found
D/MainActivity: Finished command : ffmpeg -i
D/MainActivity: Finished command : ffmpeg /storage/emulated/0/Download/spacetestSMALL_512kb.mp4
D/MainActivity: Finished command : ffmpeg -vf
D/MainActivity: Finished command : ffmpeg drawtext=fontsize=50:fontfile=/system/fonts/DroidSans.ttf:fontcolor=red:text='Hello':x=0:y=0: box=1: boxcolor=black@0.5:boxborderw=10: x=0: y=(h-text_h)/2
D/MainActivity: Finished command : ffmpeg -c:v
D/MainActivity: Finished command : ffmpeg libx264
D/MainActivity: Finished command : ffmpeg -preset
D/MainActivity: Finished command : ffmpeg ultrafast
D/MainActivity: Finished command : ffmpeg -crf
D/MainActivity: Finished command : ffmpeg 24
D/MainActivity: Finished command : ffmpeg -acodec
D/MainActivity: Finished command : ffmpeg aac
D/MainActivity: Finished command : ffmpeg -ar
D/MainActivity: Finished command : ffmpeg 44100
D/MainActivity: Finished command : ffmpeg -s
D/MainActivity: Finished command : ffmpeg 1280x720
D/MainActivity: Finished command : ffmpeg -aspect
D/MainActivity: Finished command : ffmpeg 16:9
D/MainActivity: Finished command : ffmpeg -metadata:s:v:0 rotate=0
D/MainActivity: Finished command : ffmpeg -strict
D/MainActivity: Finished command : ffmpeg -2
D/MainActivity: Finished command : ffmpeg /storage/emulated/0/Movies/add_text25.mp4 -
Generate animated padded thumbnail using ffmpeg
15 juillet 2022, par kreguswe've been generating animated thumbnails with ffmpeg without a problem using this command :


ffmpeg -y -ss 5 -t 3 -i "/input.mp4" -i /playbtn.png -r 10 -filter_complex "[0]fps=10,scale=1280:-1:flags=lanczos[pb];[pb][1]overlay=(W-w)/2:(H-h)/2, split[s0][s1];[s0]palettegen=max_colors=32[p];[s1][p]paletteuse=dither=bayer" /output.gif



However, now we want to force each thumbnail to be 1280x720 and pad the rest black.


This works well for regular thumbnails with this command :


ffmpeg -y -ss 5 -t 3 -i "/input.mp4" -vframes 1 -filter:v "scale=w=1280:h=720:force_original_aspect_ratio=1,pad=1280:720:(ow-iw)/2:(oh-ih)/2" /output.jpg



Now I tried dozens of ways to try and integrate the
force_original_aspect_ratio
andpad
filters into the animated thumbnail generation code, but am getting a host of errors, like :

Cannot find a matching stream for unlabeled input pad 0 on filter Parsed_split_4


When I tried this command :


ffmpeg -y -ss 5 -t 3 -i "/Users/nick/Downloads/intro_portrait_nl_1650909779_rendereddd.mp4" -i /Applications/Ampps/www/vormats_aws/web-render/functions/files/playbtn.png -r 10 -filter_complex "[0]fps=10,scale=1280:720:flags=lanczos:force_original_aspect_ratio=1,pad=1280:720:(ow-iw)/2:(oh-ih)/2[pb];[pb][1]overlay=(W-w)/2:(H-h)/2;split[s0][s1];[s0]palettegen=max_colors=32[p];[s1][p]paletteuse=dither=bayer" /Users/nick/Downloads/smallLandscapeee.gif



... You get the point, I have no idea how to adapt our original animated thumbnail generation code to force a 1280x720 resolution with padding.


Any input is appreciated, thanks !


-
FFMPEG.wasm Cannot Add Album Cover To MP3 File
5 juillet 2022, par Shaan Khanfor a project I'm working on I'm trying to split a video into multiple audio clips whilst adding metadata for each individual track. Whilst doing this, whilst I've added most of the metadata including title & artist, I'm unable to add an album cover via FFMPEG.wasm. Whilst my command works fine with regular FFMPEG.wasm, I'm unable to get it to work via the webassembly version.


I'm aware that my album cover is correctly being assigned via FS.readfile and that my command in theory should work, but I'm unable to figure out why it isn't working. Is this a FFMPEG.wasm limitation and if so, is there any workaround for this ?


- 

- Normal FFMPEG Command




ffmpeg -i "song.mp3" -i albumCover.jpg -map 0:0 -map 1:0 -y -codec:a libmp3lame -ac 2 -ar 48000 -ab 320k -ss 00:00:00 -t 00:00:20 -id3v2_version 3 -metadata title="SongOne" -metadata album_artist="Artist Name" -metadata album="Youtube Name" -metadata track="1" "output.mp3"



- 

- FFMPEG WASM Implementation




let commandArray = [
 "-i",
 "song.mp3",
 "-i",
 "albumCover.jpg",
 "-map",
 "0:0",
 "-map",
 "1:0",
 "-y",
 "-codec:a",
 "libmp3lame",
 "-ac",
 "2",
 "-ar",
 "48000",
 "-ab",
 "320k",
 "-ss",
 startTime.toString(),
 ];

 if (duration != "-1") {
 commandArray.push("-t", duration.toString());
 }

 commandArray.push(
 "-id3v2_version",
 "3",
 "-metadata",
 `title="${title}"`,
 "-metadata",
 `album_artist="${artist}`,
 "-metadata",
 `album="${albumInfo.name}"`,
 "-metadata",
 `track="1"`,
 `${timestamp.songName} - ${timestamp.artistName}.mp3`
 );