
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 (70)
-
Creating farms of unique websites
13 avril 2011, parMediaSPIP platforms can be installed as a farm, with a single "core" hosted on a dedicated server and used by multiple websites.
This allows (among other things) : implementation costs to be shared between several different projects / individuals rapid deployment of multiple unique sites creation of groups of like-minded sites, making it possible to browse media in a more controlled and selective environment than the major "open" (...) -
Le profil des utilisateurs
12 avril 2011, parChaque utilisateur dispose d’une page de profil lui permettant de modifier ses informations personnelle. Dans le menu de haut de page par défaut, un élément de menu est automatiquement créé à l’initialisation de MediaSPIP, visible uniquement si le visiteur est identifié sur le site.
L’utilisateur a accès à la modification de profil depuis sa page auteur, un lien dans la navigation "Modifier votre profil" est (...) -
Configurer la prise en compte des langues
15 novembre 2010, parAccéder à la configuration et ajouter des langues prises en compte
Afin de configurer la prise en compte de nouvelles langues, il est nécessaire de se rendre dans la partie "Administrer" du site.
De là, dans le menu de navigation, vous pouvez accéder à une partie "Gestion des langues" permettant d’activer la prise en compte de nouvelles langues.
Chaque nouvelle langue ajoutée reste désactivable tant qu’aucun objet n’est créé dans cette langue. Dans ce cas, elle devient grisée dans la configuration et (...)
Sur d’autres sites (9124)
-
How to generate a gif image from a video with laravel-ffmpeg ?
27 août 2021, par Jeannot21I am working on a project with laravel 7 and ffmpeg my problem is that I would like to generate a gif image from a video uploader but its not working.


I created a job named ConvertImageGifFromVideo here is its code :


class ConvertImageGifFromVideo implements ShouldQueue
{
 use Dispatchable, InteractsWithQueue, Queueable, SerializesModels;

/**
 * Create a new job instance.
 *
 * @return void
 */
public $video;
public function __construct(Video $video)
{
 $this->video = $video;
}

/**
 * Execute the job.
 *
 * @return void
 */
public function handle()
{

 $destination = '/'.$this->video->uid . '/'.$this->video->uid. '.gif';
 $result = Storage::disk('video-temp/'.$this->video->path);
 $ffmpeg = FFMpeg::create();
 $video = $ffmpeg->open($result);
 $video->gif(TimeCode::fromSeconds(2), new Dimension(640, 480), 3)->save($destination);

 $this->video->update([
 "image_gif" => $this->video->uid. '.gif',
 ]);
 
 }



}


and here is the error message [2021-08-27 12:47:33] [87] Failed : App \ Jobs \ ConvertImageGifFromVideo
And I would like to know if anyone has already encountered this kind of problem or if there is another way to write this code ?


-
Ffmpeg command to create mp4 video sharable to Instagram, etc
5 février 2019, par Ken RothmanI’m creating an mp4 video in my Android application by combining a static 1080x1080 .png image with 24/48 .wav audio, trying to generate a file that is compatible with and can be shared to social media platforms, such as Facebook and Instagram (feed).
When I attempt to share the videos I’ve created, they load and preview in the Instagram app (tested on both Android and iOS), but after hitting the "Share" button on the final step, the UI returns to my feed and the upload progress immediately switches to
"Not Posted Yet. Try Again"
. If I then tap the retry button, I immediately get a dialog stating"Couldn't Post Video" "There was a problem rendering your video. If this keeps happening, you may have to use another video."
I’m using
ffmpeg
(via tanersener’s mobile-ffmpeg library) to do this.All of the documentation I’ve found this far does not show highly specific details for upload requirements for Instagram.
I’m using AAC for audio, and h.264 (libx264
) for video.
The sample I’m using has a duration of 30 seconds. The PNG, as mentioned above, is 1080x1080.I’ve taken Android out of the picture by using cmd-line ffmpeg on my Mac with the same input files and testing many variations of parameters, none of which create an uploadable video.
I have a similar .mp4 file created by our iOS app (not using ffmpeg), which I brought over to my Android device and it uploads successfully.
I’ve also sent my .mp4 file to the iOS device and it will not upload, so it seems likely it’s an encoding issue of some sort.I have yet to find a combination of ffmpeg parameters that generate a video that can be successfully shared to Instagram.
Is there a way to get verbose logs from Instagram to have some sort of idea why it’s rejecting the files ?
This is the ffmpeg command I’ve been concentrating on :
ffmpeg -i test.wav -i test.png -c:a aac -b:a 256k -ar 44100 -c:v libx264 -b:v 5M -r 30 -pix_fmt yuv420p -preset faster -tune stillimage test.mp4
I’ve tried all sorts of variations of video and audio bitrates, framerates, scaling, presets, tunes, profiles, etc. But no luck as of yet.
Does anyone have a working ffmpeg command for generating videos for Instagram ?
-
flutter video_trimmer package error=13, Permission denied
25 novembre 2020, par SILENMUSI changed targetSdk 29 for upload google playstore. ( google targetSdk policy )


Now I got this error


when I click Execute button, phone die immediately


and error message like this


E/FFmpeg ( 9618): java.io.IOException: Cannot run program 
"/data/user/0/myProject/files/ffmpeg": error=13, Permission denied



is there a way to solve this problem ?
( targetSdk 28 was no problem )