
Recherche avancée
Autres articles (57)
-
Participer à sa traduction
10 avril 2011Vous 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 (...) -
Personnaliser les catégories
21 juin 2013, parFormulaire 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 (...) -
Publier sur MédiaSpip
13 juin 2013Puis-je poster des contenus à partir d’une tablette Ipad ?
Oui, si votre Médiaspip installé est à la version 0.2 ou supérieure. Contacter au besoin l’administrateur de votre MédiaSpip pour le savoir
Sur d’autres sites (9116)
-
FFMpeg : merge images with audio for specific duration
10 juillet 2018, par KillerI have been working on
FFMpeg
from past 7 days. I am required to create a video where I need to perform following :Concat
few images into video picked from android storage.Add a music
file [same picked from android storage].Set Duration per image
to be shown in the video. e.g. if 3 images are picked then total duration of video should be 3*duration choosen by user.
What I have done so far.
I am using
implementation 'nl.bravobit:android-ffmpeg:1.1.5'
for theFFmpeg
prebuild binaries.
Following is the command that has been used to concatenation the images and set the duration :ffmpeg -r 1/duration_selected_by_user -f concat -safe 0 -i path_of_concat_file.txt -c:v libx264 -profile:v high -crf 20 -pix_fmt yuv420p path_of_output_video_file.mp4
Note :
- By adding the duration chosen by a user as frame rate I am able to set the duration of each image to be shown.
- Concat work well and images are merged to for the video.
Problem :
When I try to add audio in the same process, progress run for a long time even for small audio by using the following command :ffmpeg -r 1/duration_selected_by_user -i path_of_audio_file.mp3 -f concat -safe 0 -i path_of_concat_file.txt -c:v libx264 -profile:v high -crf 20 -pix_fmt yuv420p path_of_output_video_file.mp4
It looks like there is some issue in command as I am not much familiar and experienced with the technology. How can I improve the performance of merging images and audio to get the better results ?
Important Links related to context :
-
How to buid ffmpeg with android-ndk-r10d in windows
26 avril 2015, par HosseinIn my application user can selects several images and create movie(mp4) with those images, For this reason i want to use ffmpeg library.
i have searched more than 2 days but did not find a good tutorial for build ffmpeg with ndk in windows.can any body describe me, how to do that ?(if you have any link, please share me)
i used roman10 tutorial and this is what i do :
1-i have decompressed "ffmpeg-2.6.2" folder into "android-ndk-r10d/sources".2-i have created "build_android.sh" file into "ffmpeg-2.6.2" folder and these are my build_android.sh codes :
#!/bin/bash
NDK=C:/Users/HAKHASIN/Desktop/android-ndk-r10d
SYSROOT=$NDK/platforms/android-9/arch-arm/
TOOLCHAIN=$NDK/toolchains/arm-linux-androideabi-4.8/prebuilt/windows-x86_64
function build_one
{
./configure \
--prefix=$PREFIX \
--enable-shared \
--disable-static \
--disable-doc \
--disable-ffmpeg \
--disable-ffplay \
--disable-ffprobe \
--disable-ffserver \
--disable-avdevice \
--disable-doc \
--disable-symver \
--cross-prefix=$TOOLCHAIN/bin/arm-linux-androideabi- \
--target-os=linux \
--arch=arm \
--enable-cross-compile \
--sysroot=$SYSROOT \
--extra-cflags="-Os -fpic $ADDI_CFLAGS" \
--extra-ldflags="$ADDI_LDFLAGS" \
$ADDITIONAL_CONFIGURE_FLAG
make clean
make
make install
}
CPU=arm
PREFIX=$(pwd)/android/$CPU
ADDI_CFLAGS="-marm"
build_one3- when write "sudo chmod +x build_android.sh" and "./build_android.sh" commands in cygwin, it not work correctly
please guide me
-
ffmpeg trying to hardcode subs using -c:s mov_text but fails
3 décembre 2014, par The All Powerfulplease bear with me ; I’m still learning the intricacies of ffmpeg and have hit a problem with subtitles.
So, I am trying to change the container of a video from mkv to mp4, and simultaneously hardcode the subtitles onto the video so that my Playstation will accept them.
The mkv is structured as follows :
ffmpeg version git-2013-09-23-34b429d Copyright (c) 2000-2013 the FFmpeg developers
built on Sep 23 2013 18:16:42 with gcc 4.7 (Ubuntu/Linaro 4.7.3-1ubuntu1)
configuration: --prefix=/home/seb/ffmpeg_build --extra-cflags=-I/home/seb/ffmpeg_build/include --extra-ldflags=-L/home/seb/ffmpeg_build/lib --bindir=/home/seb/bin --extra-libs=-ldl --enable-gpl --enable-libass --enable-libfdk-aac --enable-libmp3lame --enable-libopus --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libx264 --enable-nonfree --enable-x11grab
libavutil 52. 46.100 / 52. 46.100
libavcodec 55. 33.100 / 55. 33.100
libavformat 55. 18.102 / 55. 18.102
libavdevice 55. 3.100 / 55. 3.100
libavfilter 3. 87.100 / 3. 87.100
libswscale 2. 5.100 / 2. 5.100
libswresample 0. 17.103 / 0. 17.103
libpostproc 52. 3.100 / 52. 3.100
[matroska,webm @ 0xa52ce60] Could not find codec parameters for stream 2 (Subtitle: hdmv_pgs_subtitle): unspecified size
Consider increasing the value for the 'analyzeduration' and 'probesize' options
Input #0, matroska,webm, from 'entirely-innocent-video.mkv':
Metadata:
creation_time : 2014-11-15 09:27:00
Duration: 02:10:24.29, start: 0.000000, bitrate: 3838 kb/s
<--BLAH BLAH BLAH CHAPTERS -->
Stream #0:0(eng): Video: h264 (High), yuv420p(tv, bt709), 1280x690 [SAR 1:1 DAR 128:69], 23.98 fps, 23.98 tbr, 1k tbn, 47.95 tbc (default)
Metadata:
BPS : 3196139
BPS-eng : 3196139
DURATION : 02:10:24.233000000
DURATION-eng : 02:10:24.233000000
NUMBER_OF_FRAMES: 187594
NUMBER_OF_FRAMES-eng: 187594
NUMBER_OF_BYTES : 3125917529
NUMBER_OF_BYTES-eng: 3125917529
_STATISTICS_WRITING_APP: mkvmerge v7.3.0 ('Nouages') 32bit built on Oct 22 2014 18:44:01
_STATISTICS_WRITING_APP-eng: mkvmerge v7.3.0 ('Nouages') 32bit built on Oct 22 2014 18:44:01
_STATISTICS_WRITING_DATE_UTC: 2014-11-15 09:27:00
_STATISTICS_WRITING_DATE_UTC-eng: 2014-11-15 09:27:00
_STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
_STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
Stream #0:1(eng): Audio: ac3, 48000 Hz, 5.1(side), fltp, 640 kb/s (default)
Metadata:
BPS : 640000
BPS-eng : 640000
DURATION : 02:10:24.288000000
DURATION-eng : 02:10:24.288000000
NUMBER_OF_FRAMES: 244509
NUMBER_OF_FRAMES-eng: 244509
NUMBER_OF_BYTES : 625943040
NUMBER_OF_BYTES-eng: 625943040
_STATISTICS_WRITING_APP: mkvmerge v7.3.0 ('Nouages') 32bit built on Oct 22 2014 18:44:01
_STATISTICS_WRITING_APP-eng: mkvmerge v7.3.0 ('Nouages') 32bit built on Oct 22 2014 18:44:01
_STATISTICS_WRITING_DATE_UTC: 2014-11-15 09:27:00
_STATISTICS_WRITING_DATE_UTC-eng: 2014-11-15 09:27:00
_STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
_STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
Stream #0:2(eng): Subtitle: hdmv_pgs_subtitle (default) (forced)
Metadata:
BPS : 840
BPS-eng : 840
DURATION : 01:40:03.622000000
DURATION-eng : 01:40:03.622000000
NUMBER_OF_FRAMES: 252
NUMBER_OF_FRAMES-eng: 252
NUMBER_OF_BYTES : 630808
NUMBER_OF_BYTES-eng: 630808
_STATISTICS_WRITING_APP: mkvmerge v7.3.0 ('Nouages') 32bit built on Oct 22 2014 18:44:01
_STATISTICS_WRITING_APP-eng: mkvmerge v7.3.0 ('Nouages') 32bit built on Oct 22 2014 18:44:01
_STATISTICS_WRITING_DATE_UTC: 2014-11-15 09:27:00
_STATISTICS_WRITING_DATE_UTC-eng: 2014-11-15 09:27:00
_STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
_STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTESI then use the following command :
ffmpeg -i entirely-innocent-video -c:v copy -c:a copy -c:s mov_text entirely-innocent-video.mp4
Which as far as I can see should re-code the video, leaving the audio and video untouched, but hardcode in the subtitles... But it doesn’t... It fails with the following message :
Error while opening encoder for output stream #0:2 - maybe incorrect parameters such as bit_rate, rate, width or height
And I just can’t work out why ! I’ve tried all sorts of permutations on the -c:s mov_text command but just keep getting error messages !
At a guess I’d say it has something to do with this message :
[matroska,webm @ 0xa52ce60] Could not find codec parameters for stream 2 (Subtitle: hdmv_pgs_subtitle): unspecified size
Consider increasing the value for the 'analyzeduration' and 'probesize' optionsBut I’m just not experienced enough with ffmpeg to know where to start doing anything about it...
Can any of you clever experienced people help me unravel what’s going on ? :)
Thanks !
Seb