
Recherche avancée
Médias (1)
-
Rennes Emotion Map 2010-11
19 octobre 2011, par
Mis à jour : Juillet 2013
Langue : français
Type : Texte
Autres articles (106)
-
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 -
Problèmes fréquents
10 mars 2010, parPHP et safe_mode activé
Une des principales sources de problèmes relève de la configuration de PHP et notamment de l’activation du safe_mode
La solution consiterait à soit désactiver le safe_mode soit placer le script dans un répertoire accessible par apache pour le site -
Qu’est ce qu’un éditorial
21 juin 2013, parEcrivez votre de point de vue dans un article. Celui-ci sera rangé dans une rubrique prévue à cet effet.
Un éditorial est un article de type texte uniquement. Il a pour objectif de ranger les points de vue dans une rubrique dédiée. Un seul éditorial est placé à la une en page d’accueil. Pour consulter les précédents, consultez la rubrique dédiée.
Vous pouvez personnaliser le formulaire de création d’un éditorial.
Formulaire de création d’un éditorial Dans le cas d’un document de type éditorial, les (...)
Sur d’autres sites (12438)
-
Is FFmpeg a part of recent APIs ?
15 octobre 2015, par Léon PelletierWhen using
MediaCodec
andMediaMuxer
, I’ve noticed some mentions offfmpeg
in the logs. Does it means that a part ofFFmpeg
has been integrated intoAndroid
Framework ? Can I call it ? -
Trying to transcode video with FFMpeg Layer on Lambda
7 septembre 2020, par incovenantI am trying to convert
.ogv
files to.mp4
using anffmpeg
layer on AWS Lambda.




I followed a tutorial from the people at Serverless Framework to convert
.mp4
's toGIF
's and that worked out great. Using the same ffmpeg static build, ( ffmpeg-git-amd64-static.tar.xz ) I set out to convert.ogv
files to.mp4
files.


So far I have had success with uploading videos to an S3 Bucket, getting a Lambda to retrieve that video, do something to the video using the
ffmpeg
binary, and copy a new file to S3.




The Problem :



The videos that are created, will not play.



data point 1 : the resultant files from the function are far too small.



The input video file is 1.3MB and the output video is only 256.0KB



data point 2 : moov atom not found.



After copying the resultant video from S3 to my local machine, I try to play using
ffplay
and I receive this error :


[mov,mp4,m4a,3gp,3g2,mj2 @ 0x7fd613093400] moov atom not found
frank.mp4: Invalid data found when processing input




As far as I have been able to tell, the moov atom is suppose to contain important metadata about
.mp4
files.




Implementation :



I used the Serverless framework to set up the AWS infrastructure.



Here are a few different
ffmpeg
commands I have tried :


1st attempt :



// convert to mp4!
 spawnSync(
 "/opt/ffmpeg/ffmpeg",
 [
 "-i",
 `/tmp/${record.s3.object.key}`,
 "-vcodec",
 "libx264",
 "-acodec",
 "aac",
 `/tmp/${record.s3.object.key}.mp4`
 ],
 { stdio: "inherit" }
 );




2nd attempt :



// convert to mp4!
 spawnSync(
 "/opt/ffmpeg/ffmpeg",
 [
 "-i",
 `/tmp/${record.s3.object.key}`,
 `/tmp/${record.s3.object.key}.mp4`
 ],
 { stdio: "inherit" }
 );




3rd attempt :



I found this approach in a Stack Overflow question and the poster said that it worked for him.



// convert to mp4!
spawnSync(
 "/opt/ffmpeg/ffmpeg",
 [
 '-i',
 `/tmp/${record.s3.object.key}`,
 '-codec:v',
 'libx264',
 '-profile:v',
 'main',
 '-preset',
 'slow',
 '-b:v',
 '400k',
 '-maxrate',
 '400k',
 '-bufsize',
 '800k',
 '-threads',
 '0',
 '-b:a',
 '128k',
 `/tmp/${record.s3.object.key}.mp4`
 ],
 { stdio: "inherit" }
);




Each one of these works swell on my local machine.



If the ffmpeg binary that I am using was not a popular one, ( I have seen it on multiple sites dealing in connection with transcoding on Lambda ), my guess would be that it is an issue with the layer... Perhaps.



Any insight would be greatly appreciated. Thank you.


-
Sample player that shows ffmpeg libstagefright.cpp usage
24 février 2014, par Mayank AgarwalI am trying to write ffmpeg and OMXIL based mediaplayer.Facing issues in compiling the code with so many header files and libraries to include for android media framework.
Is there any sample player that uses ffmpeg libstagefright.cpp so that i can understand its usage and base my player on that.Regards
Mayank