
Recherche avancée
Médias (91)
-
#3 The Safest Place
16 octobre 2011, par
Mis à jour : Février 2013
Langue : English
Type : Audio
-
#4 Emo Creates
15 octobre 2011, par
Mis à jour : Février 2013
Langue : English
Type : Audio
-
#2 Typewriter Dance
15 octobre 2011, par
Mis à jour : Février 2013
Langue : English
Type : Audio
-
#1 The Wires
11 octobre 2011, par
Mis à jour : Février 2013
Langue : English
Type : Audio
-
ED-ME-5 1-DVD
11 octobre 2011, par
Mis à jour : Octobre 2011
Langue : English
Type : Audio
-
Revolution of Open-source and film making towards open film making
6 octobre 2011, par
Mis à jour : Juillet 2013
Langue : English
Type : Texte
Autres articles (83)
-
Mise à jour de la version 0.1 vers 0.2
24 juin 2013, parExplications des différents changements notables lors du passage de la version 0.1 de MediaSPIP à la version 0.3. Quelles sont les nouveautés
Au niveau des dépendances logicielles Utilisation des dernières versions de FFMpeg (>= v1.2.1) ; Installation des dépendances pour Smush ; Installation de MediaInfo et FFprobe pour la récupération des métadonnées ; On n’utilise plus ffmpeg2theora ; On n’installe plus flvtool2 au profit de flvtool++ ; On n’installe plus ffmpeg-php qui n’est plus maintenu au (...) -
Personnaliser en ajoutant son logo, sa bannière ou son image de fond
5 septembre 2013, parCertains thèmes prennent en compte trois éléments de personnalisation : l’ajout d’un logo ; l’ajout d’une bannière l’ajout d’une image de fond ;
-
Ecrire une actualité
21 juin 2013, parPrésentez les changements dans votre MédiaSPIP ou les actualités de vos projets sur votre MédiaSPIP grâce à la rubrique actualités.
Dans le thème par défaut spipeo de MédiaSPIP, les actualités sont affichées en bas de la page principale sous les éditoriaux.
Vous pouvez personnaliser le formulaire de création d’une actualité.
Formulaire de création d’une actualité Dans le cas d’un document de type actualité, les champs proposés par défaut sont : Date de publication ( personnaliser la date de publication ) (...)
Sur d’autres sites (9523)
-
ffmpeg convert mov file to mp4 for HTML5 video tag IE9
27 septembre 2016, par AdidiI looked everywhere here and on google - there is no valid command that works for IE9.
some how IE9 is missing something.
All that I tried worked everywhere else : chrome,safari,mobile device etc...
I want one command that will convert it and I can use it in every device suppose to support mp4 in HTML5 video tag.I use this commands :
ffmpeg -i movie.mov -vcodec copy -acodec copy out.mp4
ffmpeg -i movie.mov -vcodec libx264 -vprofile high -preset slow -b:v 500k -maxrate 500k -bufsize 1000k -vf scale=-1:480 -threads 0 -acodec libvo_aacenc -b:a 128k -pix_fmt yuv420p outa.mp4
ffmpeg -i movie.mov -b:V 1500k -vcodec libx264 -preset fast -g 30 adel.mp4
ffmpeg -i movie.mov -acodec aac -strict experimental -ac 2 -ab 160k -vcodec libx264 -preset slow -f mp4 -crf 22 lamlam.mp4
ffmpeg -i movie.mov -acodec aac -strict experimental -ac 2 -ab 160k -vcodec libx264 -preset slow -profile:v baseline -level 30 -maxrate 10000000 -bufsize 10000000 -f mp4 -threads 0 adiel.mp4etc.. again all this commands produce a valid mp4 file which works on chrome,safari etc... and works even when I launch them in windows itself using window media player.
When I put this file in the video tag (I am using http://videojs.com/) in IE9 it isn’t working !<div class="vidoco-content" style="margin-top: 20px;">
<video class="video-js vjs-default-skin vidoco-center" controls="controls" preload="none" width="600" height="400" poster="<?php echo(DOMAIN); ?>static/test.jpg">
<source src="<?php echo(DOMAIN); ?>static/out.mp4" type="video/mp4"></source>
</video>
</div>If I use the software miro video converter to convert the same mov file to mp4 - it converted fine and I can play it in IE9 !
miro converter is also using embedd ffmpeg inside it so I am sure it’s only a metter of the right ffmpeg command and parameters.
In my apache htaccess I set the correct mime types for my files and I see it indeed correct when looking in IE developer tools :AddType audio/aac .aac
AddType audio/mp4 .mp4 .m4a
AddType audio/mpeg .mp1 .mp2 .mp3 .mpg .mpeg
AddType audio/ogg .oga .ogg
AddType audio/wav .wav
AddType audio/webm .webm
AddType video/mp4 .mp4 .m4v
AddType video/ogg .ogv
AddType video/webm .webmI am struggling with this for a long time so any help would be much appreciated.
Thanks !
-
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.


-
html5 video crashes in Chrome and Opera but works fine in Firefox
31 octobre 2012, par SharkTheDarkIt's 5:30AM and I'm stuck with this video problem.
I had it all working before, and now, it has problems...
I try to change encoding, but it's still not good... Worst part is that it works when it's runned from local file, but won't from server ( I add file types in htaccess )...Here is the ffmpeg encoding :
exec('ffmpeg -i "' .$tmpName. '" -bt 50k -b 250k -ab 56k -ac 2 -s 480x320 -vcodec libx264 -vpre hq -vpre ipod640 -acodec libfaac "upload/' .$newName. '.mp4"');
exec('ffmpeg -i "' .$tmpName. '" -bt 50k -b 250k -ab 56k -ac 2 -s 480x320 -vcodec libvpx -acodec libvorbis -f webm "upload/' .$newName. '.webm"');
exec('ffmpeg -i "' .$tmpName. '" -bt 50k -b 250k -ab 56k -ac 2 -s 480x320 -vcodec libtheora -acodec libvorbis -aq 100 "upload/' .$newName. '.ogv"');
exec('ffmpeg -i "' .$tmpName. '" -bt 50k -b 250k -ab 56k -ac 2 -s 480x320 -vcodec libtheora -acodec libvorbis -aq 100 "upload/' .$newName. '.ogg"');or :
exec('ffmpeg -i "' .$tmpName. '" "upload/' .$newName. '.mp4"');
exec('ffmpeg -i "' .$tmpName. '" -vcodec libvpx -acodec libvorbis -f webm -aq 100 "upload/' .$newName. '.webm"');
exec('ffmpeg -i "' .$tmpName. '" -vcodec libtheora -acodec libvorbis -aq 100 "upload/' .$newName. '.ogv"');
exec('ffmpeg -i "' .$tmpName. '" -vcodec libtheora -acodec libvorbis -aq 100 "upload/' .$newName. '.ogg"');or :
exec('ffmpeg -i "' .$tmpName. '" "upload/' .$newName. '.mp4"');
exec('ffmpeg -i "' .$tmpName. '" "upload/' .$newName. '.webm"');
exec('ffmpeg -i "' .$tmpName. '" "upload/' .$newName. '.ogv"');
exec('ffmpeg -i "' .$tmpName. '" "upload/' .$newName. '.ogg"');Nothing create good enough file to play in Chrome...
URL of file(s) :
http://urthots.com/homepage/upload/9b8a0c1a5af65c92936e3c6806181ec3.ogv
http://urthots.com/homepage/upload/9b8a0c1a5af65c92936e3c6806181ec3.ogg
http://urthots.com/homepage/upload/9b8a0c1a5af65c92936e3c6806181ec3.webm
http://urthots.com/homepage/upload/f41355af09218d660a5d78a4012a7177.mp4Video element :
<video poster="http://urthots.com/homepage/upload/images/xxx.jpg">
<source src="http://urthots.com/homepage/upload/xxx.mp4" type="video/mp4"></source>
<source src="http://urthots.com/homepage/upload/xxx.webm" type="video/webm"></source>
<source src="http://urthots.com/homepage/upload/xxx.ogv" type="video/ogg; codecs=theora,vorbis"></source>
<source src="http://urthots.com/homepage/upload/xxx.ogg" type="video/ogg; codecs=theora,vorbis"></source>
</video>What can cause this ?
I tried everything, encoding changing, HTML element changing, htaccess changing, I tried with videos from other sites, and they are working okay...
I have no idea what is problem...Can someone please help...