
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 (...) -
Multilang : améliorer l’interface pour les blocs multilingues
18 février 2011, parMultilang est un plugin supplémentaire qui n’est pas activé par défaut lors de l’initialisation de MediaSPIP.
Après son activation, une préconfiguration est mise en place automatiquement par MediaSPIP init permettant à la nouvelle fonctionnalité d’être automatiquement opérationnelle. Il n’est donc pas obligatoire de passer par une étape de configuration pour cela. -
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 ;
Sur d’autres sites (12592)
-
FFmpeg Android Errors
8 juin, par axjpOk so im making a kotlin android app and for file conversion from 3gp to wav i added the android ffmpeg library with
implementation 'com.arthenica:mobile-ffmpeg-full:4.4'
then i added this code to convert the filesFFmpeg.execute("-i" + f2 +"/storage/emulated/0/Android/data/com.icompilecodewithnowarnings.ffmpegthing/files/Documents/recording.wav")
for further context f2 is/storage/emulated/0/Android/data/com.icompilecodewithnowarnings.ffmpegthing/files/Documents/recording.3gp


The error log is to large to simply just fit here but heres some of it


Execution failed for task ':app:checkDebugAarMetadata'.
> Could not resolve all files for configuration ':app:debugRuntimeClasspath'.
 > Could not find com.github.hiteshsondhi88.libffmpeg:FFmpegAndroid:0.3.2.
 Searched in the following locations:
 - https://dl.google.com/dl/android/maven2/com/github/hiteshsondhi88/libffmpeg/FFmpegAndroid/0.3.2/FFmpegAndroid-0.3.2.pom
 - https://repo.maven.apache.org/maven2/com/github/hiteshsondhi88/libffmpeg/FFmpegAndroid/0.3.2/FFmpegAndroid-0.3.2.pom
 Required by:
 project :app



Caused by: org.gradle.internal.resolve.ModuleVersionNotFoundException: Could not find com.github.hiteshsondhi88.libffmpeg:FFmpegAndroid:0.3.2.



I tried to compile however the compiler immediatley rejected my app and refused to compile. I would have expected it to have immidiatley compiled into a apk.


EDIT :


Here is my build.gradle file


plugins {
 id 'com.android.application'
 id 'org.jetbrains.kotlin.android'
}

android {
 namespace 'com.icompilecodewithnowarnings.ffmpegthing'
 compileSdk 33

 defaultConfig {
 applicationId "com.icompilecodewithnowarnings.ffmpegthing"
 minSdk 26
 targetSdk 33
 versionCode 1
 versionName "1.0"

 testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
 }

 buildTypes {
 release {
 minifyEnabled false
 proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
 }
 }
 compileOptions {
 sourceCompatibility JavaVersion.VERSION_1_8
 targetCompatibility JavaVersion.VERSION_1_8
 }
 kotlinOptions {
 jvmTarget = '1.8'
 }
}

dependencies {

 implementation 'androidx.core:core-ktx:1.8.0'
 implementation 'androidx.appcompat:appcompat:1.4.1'
 implementation 'com.google.android.material:material:1.5.0'
 implementation 'androidx.constraintlayout:constraintlayout:2.1.3'
 implementation 'com.arthenica:mobile-ffmpeg-full:4.4'
 implementation files('src/main/java/musicg-1.4.2.0.jar')
 testImplementation 'junit:junit:4.13.2'
 androidTestImplementation 'androidx.test.ext:junit:1.1.3'
 androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0'
}



-
How to convert mo4 to mp3 in android java ?
3 août 2023, par AkshitI have the mp4 link of a video but don't have a link for the mp3 version of that mp4 video. So is there any way that I can convert that mp4 video to mp3 in Android ? I saw some resources but nothing works for me. I have two ways in which I believe this can be achieved


- 

- Convert the mp4 link to mp3 directly. ( Not Sure if this is achievable )
- Download the mp4 on the device with the help of a link and then use some code to convert that mp4 to mp3.






I also tried some solutions which are available online


https://github.com/tanersener/mobile-ffmpeg


I tried the above library to achieve the final goal. But got Async command execution failed with returnCode=1. This error in the code I am using is


private class Mp4ToMp3ConverterTask extends AsyncTask {

 @Override
 protected String doInBackground(String... params) {
 String mp4FilePath = params[0];
 String mp3OutputPath = Environment.getExternalStorageDirectory().getAbsolutePath() + "/output.mp3";

 String[] ffmpegCommand = {"-i", mp4FilePath, "-vn", "-ar", "44100", "-ac", "2", "-b:a", "192k", mp3OutputPath};


 Config.enableStatisticsCallback(new StatisticsCallback() {
 public void apply(Statistics newStatistics) {
 Log.d("Dekh", String.format("frame: %d, time: %d", newStatistics.getVideoFrameNumber(), newStatistics.getTime()));
 }
 });

 long executionIdd = FFmpeg.executeAsync(ffmpegCommand, new ExecuteCallback() {

 @Override
 public void apply(final long executionId, final int returnCode) {
 if (returnCode == RETURN_CODE_SUCCESS) {
 Log.i("Dekh", "Async command execution completed successfully.");
 } else if (returnCode == RETURN_CODE_CANCEL) {
 Log.i("Dekh", "Async command execution cancelled by user.");
 } else {
 Log.i("Dekh", String.format("Async command execution failed with returnCode=%d.", returnCode));
 }
 }
 });

 FFmpeg.cancel(executionIdd);

 return mp3OutputPath;
 }
}



Solution number 2 which I used is




But I got an error here also Failed to instantiate extractor. and another error is java.io.FileNotFoundException : open failed : EISDIR (Is a directory)
I tried the online available solution to solve these errors but nothing worked. Such as granting write permission. Providing a valid location to save the output.


But nothing work so far. Please help me on this. Thank you


-
ffmpeg hangs during download on network lags
30 juin 2016, par VladimirLeninffmpeg hangs infinitely when cutting off wifi while downloading m3u8 (which goes through http actually). Same happens occasionaly when trying to download multiple files from script probably due to network lags. Tried
-tiemout
option but with no avail.ffmpeg -y -i 'http://c.brightcove.com/services/mobile/streaming/index/rendition.m3u8?assetId=5005890079001&videoId=5005830251001' -c copy -f mp4 -bsf:a aac_adtstoasc 'file:/home/serj/.mirror0/OUT_DATA2/www.watoday.com.au/title-page/Sydney v Western Bulldogs: Scoring woes could cost Swans, Dogs a flag/00001-FootyFix - Can the Doggies upset the Swans again.mp4' -timeout 1000000