
Recherche avancée
Autres articles (100)
-
MediaSPIP 0.1 Beta version
25 avril 2011, parMediaSPIP 0.1 beta is the first version of MediaSPIP proclaimed as "usable".
The zip file provided here only contains the sources of MediaSPIP in its standalone version.
To get a working installation, you must manually install all-software dependencies on the server.
If you want to use this archive for an installation in "farm mode", you will also need to proceed to other manual (...) -
Use, discuss, criticize
13 avril 2011, parTalk to people directly involved in MediaSPIP’s development, or to people around you who could use MediaSPIP to share, enhance or develop their creative projects.
The bigger the community, the more MediaSPIP’s potential will be explored and the faster the software will evolve.
A discussion list is available for all exchanges between users. -
Que fait exactement ce script ?
18 janvier 2011, parCe script est écrit en bash. Il est donc facilement utilisable sur n’importe quel serveur.
Il n’est compatible qu’avec une liste de distributions précises (voir Liste des distributions compatibles).
Installation de dépendances de MediaSPIP
Son rôle principal est d’installer l’ensemble des dépendances logicielles nécessaires coté serveur à savoir :
Les outils de base pour pouvoir installer le reste des dépendances Les outils de développements : build-essential (via APT depuis les dépôts officiels) ; (...)
Sur d’autres sites (12662)
-
java.io.IOException : Cannot run program "/data/user/0/packagename/files/ffmpeg" : FFMPEG error=13, Permission denied in android Q API level 29
11 septembre 2020, par Android198I am using FFMPEG since long and using internal file location for inputs its working fine if i build apk with API level 28 but in API level 29 its give
error=13 permission denied
. I opted out scoped storage byandroid:requestLegacyExternalStorage="true"
in manifest though this error is coming.

`java.io.IOException: Cannot run program "/data/user/0/packagename/files/ffmpeg": error=13, Permission denied
 at java.lang.ProcessBuilder.start(ProcessBuilder.java:1050)
 at java.lang.Runtime.exec(Runtime.java:698)
 at java.lang.Runtime.exec(Runtime.java:563)
 at e.h.a.a.n.a(:10)
 at e.h.a.a.f.b(:38)
 at e.h.a.a.f.doInBackground(:10)
 at android.os.AsyncTask$3.call(AsyncTask.java:378)
 at java.util.concurrent.FutureTask.run(FutureTask.java:266)
 at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:289)
 at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
 at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
 at java.lang.Thread.run(Thread.java:919)
 Caused by: java.io.IOException: error=13, Permission denied
 at java.lang.UNIXProcess.forkAndExec(Native Method)
 at java.lang.UNIXProcess.<init>(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:698) 
 at java.lang.Runtime.exec(Runtime.java:563) 
 at e.h.a.a.n.a(:10) 
 at e.h.a.a.f.b(:38) 
 at e.h.a.a.f.doInBackground(:10) 
 at android.os.AsyncTask$3.call(AsyncTask.java:378) 
 at java.util.concurrent.FutureTask.run(FutureTask.java:266) 
 at android.os.AsyncTas k$SerialExecutor$1.run(AsyncTask.java:289) 
 at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167) 
 at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641) 
 at java.lang.Thread.run(Thread.java:919) 
2020-09-09 14:37:27.079 22619-22619/E/MediaMetadataRetriever: setDataSource - FileNotFoundException`
</init>


my command is


command : [-i, /data/user/0/videomaker.videostatusmaker.photo.to.video.maker.lyrical.lyrically/files/Lyrically_data/93_garmi/img_0.jpg, -i, /data/user/0/videomaker.videostatusmaker.photo.to.video.maker.lyrical.lyrically/cache/PictureCrop1599802574.jpg, -i, /data/user/0/videomaker.videostatusmaker.photo.to.video.maker.lyrical.lyrically/files/Lyrically_data/93_garmi/img_2.jpg, -i, /data/user/0/videomaker.videostatusmaker.photo.to.video.maker.lyrical.lyrically/files/Lyrically_data/93_garmi/background_video.mp4, -filter_complex, [3]split=2[color][alpha] ;[color]crop=iw/2:ih:0:0[color] ;[alpha]crop=iw/2:ih:iw/2:0[alpha] ;[color][alpha]alphamerge[ovrly] ;[0]scale=540:960,setsar=1[0_scalled] ;[1]scale=540:960,setsar=1[1_scalled] ;[2]scale=540:960,setsar=1[2_scalled] ;[0_scalled]zoompan=z='if(lte(zoom,-1.0),1.2,min(zoom+0.0006,1.2))':d=2510.41:s=540x960[v0] ;[1_scalled]zoompan=z='if(lte(zoom,1.0),1.2,max(1.001,zoom-0.0008))':d=2510.65:s=540x960[v1] ;[2_scalled]zoompan=z='if(lte(zoom,-1.0),1.2,min(zoom+0.0008,1.2))':d=25*9.94:s=540x960[v2] ;[v0][v1][v2]concat=n=3:v=1:a=0,format=yuv420p[concatenated_video] ;[concatenated_video][ovrly]overlay=0:0, -t, 31, -strict, -2, -c:a, copy, -flags, +global_header, /data/user/0/videomaker.videostatusmaker.photo.to.video.maker.lyrical.lyrically/files/Lyrically/Lyrically_1599802581317.mp4]


-
Python convert mp3 to mp4 with static image
15 octobre 2020, par αԋɱҽԃ αмєяιcαηI do have
x
file which contain a list ofmp3
files where i would like to convert eachmp3
file tomp4
file with astatic
.png
photo.

Seems the only way here is to use
ffmpeg
but idk how to achieve it.

i made the script to take an input of
mp3
folder and one.png
photo`.

then it's will create new folder
x-converted
where i would like to convert eachmp3
tomp4
with the staticpng
with same name such asfile1.mp3
to becamefile1.mp4


here's my code :


import os
import sys
from pathlib import Path
import shutil

if len(sys.argv) != 3 or not sys.argv[2].endswith("png"):
 print("Make sure to provide two arguments only\nSecond arugment should be .png")
 exit()


def CheckFile():
 try:
 files = []
 for path in os.listdir(sys.argv[1]):
 full_path = os.path.join(sys.argv[1], path)
 if os.path.isfile(full_path):
 files.append(full_path)
 mp3 = [x for x in files if x.endswith(".mp3")]
 if len(mp3) >= 1:
 return mp3, sys.argv[2], sys.argv[1]
 else:
 print(
 "Make Sure That You've at least 1 Mp3 file")
 exit()
 except FileNotFoundError:
 print("Sorry, This File Is Not Exist!")
 exit()


def Convert():
 mp3, jpg, name = CheckFile()
 name = f"{Path(name).name}-converted"
 shutil.rmtree(name, ignore_errors=True)
 os.mkdir(name)
 os.chdir(name)
 # from here i don't know how to use `ffmpeg`


Convert()



-
How to run a bat file when clicking a button in an electron + react application ?
12 novembre 2020, par АртемI am using Windows 7

I want to write a windows app using electron + react.

The essence of the application is to run bat files.

Bat files will execute their script.

In this case, I have already written baht files, they work with the FFMPEG.

I like FFMPEG and I would like to make it easy to use on Windows with such an application.

At this stage, I have two folders Your_files and Result, next to these folders are ready-made baht files and ffmpeg.exe.

- 

- In the folder Your_files I put the files to convert.
- I click on the desired baht file, it converts.
- I take the finished files from the Result folder.








I would like to write a nice application now.

There will be one window with buttons in the CMD style - minimalism. On the buttons, the labels are similar (mp4 - mkv) and others.

I also plan to place two folders Your_files and Result next to the application.

The principle is the same, only here is a beautiful visual interface with buttons for the place of many baht files.

It will be easier to visually choose what you need.

The crux of the question : How to launch a baht file when you click on a button in the application ?
Perhaps you have some ideas on how to implement this even better .. I welcome your suggestions with a detailed description.

------------------------

P.S. I originally planned the following... But I decided to abandon this implementation. ))

I recorded a cycle in a baht file.

The cycle was launched in the bat file mshta.exe with HTML layout (visual interface). lol

Received the value of a variable, which he entered in the visual interface of the mshta.exe window.

The variable returned to the loop and the baht file was executed.

But I don't think this is the best approach. Use a similar hybrid.

Take a look at this for fun.







 
 
 
 
 <code class="echappe-js"><script type="text/javascript">&#xA; function myFunction() {&#xA; var copyText = document.getElementById("myInput");&#xA; copyText.select();&#xA; document.execCommand("copy");&#xA; }&#xA; </script>




<script language=&#x27;javascript&#x27;>&#xA; window.resizeTo(800, 300);&#xA;&#xA; function entperPressed(e) {&#xA; if (e.keyCode == 13) {&#xA; pipePass();&#xA; }&#xA; }&#xA;&#xA; function pipePass() {&#xA; var pass = document.getElementById(&#x27;pass&#x27;).value;&#xA; var fso = new ActiveXObject(&#x27;Scripting.FileSystemObject&#x27;).GetStandardStream(1);&#xA; close(fso.Write(pass));&#xA;&#xA; }&#xA; </script>

Enter time of frame. Введите время кадра


hh:mm:ss.mss – 00:00:00.000


(colons can be omitted as well as milliseconds)


(двоеточия при вводе можно опустить как и миллисекунды)



 






 










- In the folder Your_files I put the files to convert.