
Recherche avancée
Autres articles (62)
-
HTML5 audio and video support
13 avril 2011, parMediaSPIP uses HTML5 video and audio tags to play multimedia files, taking advantage of the latest W3C innovations supported by modern browsers.
The MediaSPIP player used has been created specifically for MediaSPIP and can be easily adapted to fit in with a specific theme.
For older browsers the Flowplayer flash fallback is used.
MediaSPIP allows for media playback on major mobile platforms with the above (...) -
Support audio et vidéo HTML5
10 avril 2011MediaSPIP utilise les balises HTML5 video et audio pour la lecture de documents multimedia en profitant des dernières innovations du W3C supportées par les navigateurs modernes.
Pour les navigateurs plus anciens, le lecteur flash Flowplayer est utilisé.
Le lecteur HTML5 utilisé a été spécifiquement créé pour MediaSPIP : il est complètement modifiable graphiquement pour correspondre à un thème choisi.
Ces technologies permettent de distribuer vidéo et son à la fois sur des ordinateurs conventionnels (...) -
MediaSPIP Init et Diogène : types de publications de MediaSPIP
11 novembre 2010, parÀ l’installation d’un site MediaSPIP, le plugin MediaSPIP Init réalise certaines opérations dont la principale consiste à créer quatre rubriques principales dans le site et de créer cinq templates de formulaire pour Diogène.
Ces quatre rubriques principales (aussi appelées secteurs) sont : Medias ; Sites ; Editos ; Actualités ;
Pour chacune de ces rubriques est créé un template de formulaire spécifique éponyme. Pour la rubrique "Medias" un second template "catégorie" est créé permettant d’ajouter (...)
Sur d’autres sites (4108)
-
ffmpeg for loop into bash script
18 mars 2015, par gazI use a for loop on the mac command line to convert a bunch of avi’s to mp4’s
I would like to put this into a bash script so I can just run the script on any given directory.e.g shelf script name [directory
and let it do its thing.
Do I just open a text editor and add
#!/bin/bash
then my for loop and ffmpeg arguments
then end it all with
fi ?Then make it executable ? Is is that simple.
@Robert Rowntree
Many thanks for the link. This looks like it could be very useful to me. I am not familiar with the concatenate so I would have never found that information.
It appears that I can give ffmpeg a bunch of files at the command line or to read from a text file and ffmpeg will output them all into a single format, In my case MP4’s. Well at least this is what I think it does.
The "The inputs have to be of the same frame size, and a handful of other attributes have to match" worries me a bit, do i need to check the frame rate of every movie to ensure they all match ?
My ultimate goal would be to run a script on say, 30 mixed video files, avi, wmv, mkv, mpg etc and output the lot to mp4, but I think this is way too complicated for me.
I normally just repack mkv’s to mp4 and the quality and size are good and I’m pleased with the results and speed. However, I tried just repacking a the aforementioned avi’s and the quality was poor and pixelated. I searched around and finally found this example ;
ffmpeg -i input.avi -c:v libx264 -crf 19 -preset slow -c:a aac -strict experimental -b:a 192k -ac 2 out.mp4 (can this be improved ? Sped up ?)
Which produces great quality mp4 files from the avi’s I have got but does take a long time. Hence why I originally asked for help creating a script. Which I intended running on the folder of avi’s.
Be great to be able just to run a script on every non mp4 files and have great results every time :) But with different codecs and frame rates etc etc I suppose this will never be possible.
Any further help or input will be greatly received.
Thanks again.
-
Revision 8fb9f083f2 : Merge changes I0b51674f,I1ea6ebf9,I89076d93 into experimental * changes : lint
14 août 2012, par John KoleszarMerge changes I0b51674f,I1ea6ebf9,I89076d93 into experimental * changes : lint_hunks : show style violations in the index intersect_diffs : split out diff classes ftfy : update to match current astyle rule
-
java.io.IOException : Cannot run program "/data/user/0/com.voi.myapplication8/files/ffmpeg" : error=13, Permission denied
1er avril 2024, par Harsha

java.io.IOException : Cannot run program
"/data/user/0/com.voi.myapplication8/files/ffmpeg" : error=13,
Permission denied




I am using this dependencies
implementation 'com.writingminds:FFmpegAndroid:0.3.2'




2024-03-31 21:40:31.045 15937-16762 FFmpeg

com.voi.myapplication8 E Exception while trying to run :
[Ljava.lang.String ;@71d4c0f
java.io.IOException : Cannot run program
"/data/user/0/com.voi.myapplication8/files/ffmpeg" : error=13,
Permission denied
at java.lang.ProcessBuilder.start(ProcessBuilder.java:1050)
at java.lang.Runtime.exec(Runtime.java:712)
at java.lang.Runtime.exec(Runtime.java:571)
at
com.github.hiteshsondhi88.libffmpeg.ShellCommand.run(ShellCommand.java:10)
at
com.github.hiteshsondhi88.libffmpeg.FFmpegExecuteAsyncTask.doInBackground(FFmpegExecuteAsyncTask.java:38)
at
com.github.hiteshsondhi88.libffmpeg.FFmpegExecuteAsyncTask.doInBackground(FFmpegExecuteAsyncTask.java:10)
at android.os.AsyncTask$3.call(AsyncTask.java:394)
at java.util.concurrent.FutureTask.run(FutureTask.java:264)
at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:305)
at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:644)
at java.lang.Thread.run(Thread.java:1012)
Caused by : java.io.IOException : error=13, Permission denied
at java.lang.UNIXProcess.forkAndExec(Native Method)
at java.lang.UNIXProcess.(UNIXProcess.java:133)
at java.lang.ProcessImpl.start(ProcessImpl.java:141)
at java.lang.ProcessBuilder.start(ProcessBuilder.java:1029)
at java.lang.Runtime.exec(Runtime.java:712) 
at java.lang.Runtime.exec(Runtime.java:571) 
at
com.github.hiteshsondhi88.libffmpeg.ShellCommand.run(ShellCommand.java:10) 
at
com.github.hiteshsondhi88.libffmpeg.FFmpegExecuteAsyncTask.doInBackground(FFmpegExecuteAsyncTask.java:38) 
at
com.github.hiteshsondhi88.libffmpeg.FFmpegExecuteAsyncTask.doInBackground(FFmpegExecuteAsyncTask.java:10) 
at android.os.AsyncTask$3.call(AsyncTask.java:394) 
at java.util.concurrent.FutureTask.run(FutureTask.java:264) 
at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:305) 
at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) 
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:644) 
at java.lang.Thread.run(Thread.java:1012) 2024-03-31 21:40:31.045
15937-15937 FFmpeg com.voi.myapplication8

E Video cropping failed :