
Recherche avancée
Autres articles (36)
-
MediaSPIP v0.2
21 juin 2013, parMediaSPIP 0.2 est la première version de MediaSPIP stable.
Sa date de sortie officielle est le 21 juin 2013 et est annoncée ici.
Le fichier zip ici présent contient uniquement les sources de MediaSPIP en version standalone.
Comme pour la version précédente, il est nécessaire d’installer manuellement l’ensemble des dépendances logicielles sur le serveur.
Si vous souhaitez utiliser cette archive pour une installation en mode ferme, il vous faudra également procéder à d’autres modifications (...) -
MediaSPIP version 0.1 Beta
16 avril 2011, parMediaSPIP 0.1 beta est la première version de MediaSPIP décrétée comme "utilisable".
Le fichier zip ici présent contient uniquement les sources de MediaSPIP en version standalone.
Pour avoir une installation fonctionnelle, il est nécessaire d’installer manuellement l’ensemble des dépendances logicielles sur le serveur.
Si vous souhaitez utiliser cette archive pour une installation en mode ferme, il vous faudra également procéder à d’autres modifications (...) -
(Dés)Activation de fonctionnalités (plugins)
18 février 2011, parPour gérer l’ajout et la suppression de fonctionnalités supplémentaires (ou plugins), MediaSPIP utilise à partir de la version 0.2 SVP.
SVP permet l’activation facile de plugins depuis l’espace de configuration de MediaSPIP.
Pour y accéder, il suffit de se rendre dans l’espace de configuration puis de se rendre sur la page "Gestion des plugins".
MediaSPIP est fourni par défaut avec l’ensemble des plugins dits "compatibles", ils ont été testés et intégrés afin de fonctionner parfaitement avec chaque (...)
Sur d’autres sites (4377)
-
ffmpeg kit flutter video compressor
23 avril 2022, par KimseI am not experienced with ffmpeg. So I'm sorry if I'm asking the wrong question in the wrong place.
i am trying to make a video compressor, i add the dependency exactly like :
ffmpeg_kit_flutter_full_gpl: ^4.5.1

and The code I wrote is like :

compress(path) {
 FFmpegKit.executeAsync("-i $path -c:a copy -c:v libx264 -s 848x360 output.mp4", (session) async {
 final returnCode = await session.getReturnCode();
 if (ReturnCode.isSuccess(returnCode)){

 print("işlem başarılı");
 // SUCCESS

 } else if (ReturnCode.isCancel(returnCode)) {

 print("iptal edildi");
 // CANCEL

 } else {

 print("hata oluştu");
 print(await session.getFailStackTrace());
 // ERROR

 }
});



}


and im calling this method like :


asset.originFile.then((fle) {
 var path = fle!.path;
 compress(path);
 }
);



it always returns error condition for some reason. and
session.getFailStackTrace()
is null.

My first question is what do you think is wrong here ?


And secondly how can I detect what the error is in such cases ?


thanks in advance :)


-
upload and stream ffmpeg stream chunk and mpd file in s3
29 juin 2024, par Kamruzzaman Rabeeni want to make ann web app where i can upload a video. After uploading video its should be compress by ffmpeg after that i want to keep the data on aws S3.


I can compress by ffmpeg. but i have no idea which file i should keep in s3 because after compress its create many chunk file and one mpd xml file.


Also i want to stream the video from mpd file after fetching data from s3.
here is my upload function code.

const videoPath = req.file.path; const outputDir = path.join(__dirname, 'dash'); const uniqueId = uuidv4(); const outputFilePath = path.join(outputDir,
$uniqueId_stream.mpd); const bucketName = process.env.S3_BUCKET_NAME; const s3Key =
dash/$uniqueId_stream.mpd` ;

// Ensure the output directory exists
if (!fs.existsSync(outputDir)) {
 fs.mkdirSync(outputDir, { recursive: true });
}

ffmpeg(videoPath)
 .outputOptions([
 '-profile:v main',
 '-use_template 1',
 '-use_timeline 1',
 '-b:v 1000k',
 '-b:a 128k',
 '-f dash'
 ])
 .on('end', async () => {
 console.log('DASH file created successfully');
 try {
 const s3Url = await uploadToS3(outputFilePath, bucketName, s3Key);
 res.status(200).json({ message: 'Video uploaded and DASH file created', url: s3Url });
 } catch (err) {
 console.error('Error uploading to S3: ', err);
 res.status(500).json({ message: 'Error uploading to S3', error: err.message });
 }
 })
 .on('error', (err) => {
 console.error('Error processing video: ', err);
 res.status(500).json({ message: 'Error processing video', error: err.message });
 })
 .save(outputFilePath);`

`const uploadToS3 = (filePath, bucketName, key) => {
return new Promise((resolve, reject) => {
 fs.readFile(filePath, (err, data) => {
 if (err) return reject(err);

 const params = {
 Bucket: bucketName,
 Key: key,
 Body: data,
 ContentType: 'application/dash+xml'
 };

 s3.upload(params, (err, data) => {
 if (err) return reject(err);
 resolve(data.Location);
 });
 });
});



;`


i have tried this version of code.


now i want to know what is the best to way to keep data in s3 for compress video after ffmpeg.


-
How to configure FFMPEG to generate position independent code on IOS
8 juillet 2013, par madadiI am developing an app on iOS which makes use of FFMPEG for video decoding. I want to get 'position independent code' of FFMPEG working on my app.
--enable-pic
option in the FFMPEG configuration generates position independent code only if I set--disable-asm
. I concluded this when I ran the otool on my app(otool -hv 'appname'
). Below are the details :If I set
--enable-pic
alone, below is the output with otool :magic cputype cpusubtype caps filetype ncmds sizeofcmds flags
MH_MAGIC ARM V7 0x00 EXECUTE 29 3724 NOUNDEFS DYLDLINK TWOLEVEL WEAK_DEFINES BINDS_TO_WEAKIf I set
--enable-pic
and--disable-asm
below is the output with otool,magic cputype cpusubtype caps filetype ncmds sizeofcmds flags
MH_MAGIC ARM V7 0x00 EXECUTE 51 5520 NOUNDEFS DYLDLINK TWOLEVEL WEAK_DEFINES BINDS_TO_WEAK **PIE**Below are my configuration settings for FFMPEG(build-ffmpeg-ios.sh) :
if [ `uname` = "Darwin" ]; then
SEDCMD="sed -i '' "
else
SEDCMD="sed -i "
fi
make clean
./configure \
--prefix=$PREFIX \
--enable-version3 \
--enable-static \
--disable-shared \
--disable-doc \
--disable-ffmpeg \
--disable-ffplay \
--disable-ffprobe \
--disable-ffserver \
--disable-avdevice \
--disable-avfilter \
--disable-postproc \
--enable-small \
--cross-prefix="$DEVROOT/usr/bin/" \
--enable-cross-compile \
--target-os=darwin \
--arch=$ARCH \
--cpu=$CPU \
--cc="$CC" \
--as="$AS" \
--extra-cflags="$CFLAGS" \
--extra-ldflags="$CFLAGS" \
--disable-symver \
--disable-debug \
--disable-indevs \
--disable-encoders \
--disable-bsfs \
--enable-pic \
--disable-filters \
$CONFIGURE_FLAGS || exit 1;
$SEDCMD 's/HAVE_INLINE_ASM 1/HAVE_INLINE_ASM 0/g' config.h
make install || exit 1;And below is the make file I use(iOS.mk) :
FFMPEG_LIBS := libavcodec.a libavformat.a libavutil.a libswscale.a
IOS_ARMV7_FFMPEG_LIB := $(addprefix build/ios/armv7/lib/, $(FFMPEG_LIBS))
IOS_UNI_FFMPEG_LIB := $(addprefix build/ios/universal/lib/, $(FFMPEG_LIBS))
IPHONE_SDK_VERSION := "5.0"
IPHONE_DEPLOY_SDK := "3.2"
ALL_IOS_LIBS := $(IOS_UNI_FFMPEG_LIB)
build/ios/universal/lib/%.a : build/ios/armv7/lib/%.a
mkdir -p build/ios/universal/lib
lipo -create -output $@ $^
$(IOS_ARMV7_FFMPEG_LIB):
export PREFIX="`$(ABSPATH) build/ios/armv7`" && \
export ARCH="arm" && \
export CPU="cortex-a8" && \
export IOS_BASE_SDK="$(IPHONE_SDK_VERSION)" && \
export IOS_DEPLOY_TGT="$(IPHONE_DEPLOY_SDK)" && \
export CONFIGURE_FLAGS="--enable-neon" && \
export PATH="`$(ABSPATH) venders`:$$PATH" && \
cd venders/ffmpeg && bash ../iphone-compile.sh arm7 ../build-ffmpeg-ios.shCan someone please help me with getting the FFMPEG up and running with both 'pic' and assembly optimization enabled. Without assembly optimizastion, FFMPEG would not be helpful to me as the video decoding is extremely slow.