
Recherche avancée
Médias (39)
-
Stereo master soundtrack
17 octobre 2011, par
Mis à jour : Octobre 2011
Langue : English
Type : Audio
-
ED-ME-5 1-DVD
11 octobre 2011, par
Mis à jour : Octobre 2011
Langue : English
Type : Audio
-
1,000,000
27 septembre 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Audio
-
Demon Seed
26 septembre 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Audio
-
The Four of Us are Dying
26 septembre 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Audio
-
Corona Radiata
26 septembre 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Audio
Autres articles (78)
-
Des sites réalisés avec MediaSPIP
2 mai 2011, parCette page présente quelques-uns des sites fonctionnant sous MediaSPIP.
Vous pouvez bien entendu ajouter le votre grâce au formulaire en bas de page. -
Les vidéos
21 avril 2011, parComme les documents de type "audio", Mediaspip affiche dans la mesure du possible les vidéos grâce à la balise html5 .
Un des inconvénients de cette balise est qu’elle n’est pas reconnue correctement par certains navigateurs (Internet Explorer pour ne pas le nommer) et que chaque navigateur ne gère en natif que certains formats de vidéos.
Son avantage principal quant à lui est de bénéficier de la prise en charge native de vidéos dans les navigateur et donc de se passer de l’utilisation de Flash et (...) -
L’agrémenter visuellement
10 avril 2011MediaSPIP est basé sur un système de thèmes et de squelettes. Les squelettes définissent le placement des informations dans la page, définissant un usage spécifique de la plateforme, et les thèmes l’habillage graphique général.
Chacun peut proposer un nouveau thème graphique ou un squelette et le mettre à disposition de la communauté.
Sur d’autres sites (7769)
-
FFmpeg with yt-dlp in an android environment
7 janvier, par Pastorii am currently working on an android application that initially needs to install a youtube video, here's what am using in my development environment : android studio, chaquopy, python (yt-dlp) and gradle groovy for builds, now i am facing a problem with yt-dlp and the error states the following : "ERROR : You have requested merging of multiple formats but ffmpeg is not installed. Aborting due to —abort-on-error", now clearly yt-dlp requires ffmpeg to work properly and i have looked into it and found FFmpegKit i got the latest android archive and i included it in my build, and it builds but yt-dlp still produces the same error, i don't really understand how the packages and environment works all that well but any help on this would be appreciated 👍


NOTE : gradle builds perfectly fine i don't even get warnings it's just the yt-lp error during video download.


// build.gradle (project level)
// Top-level build file where you can add configuration options common to all sub-projects/modules.
plugins {
 alias(libs.plugins.android.application) apply false
 id("com.chaquo.python") version "16.0.0" apply false
}



// build.gradle (app level)
plugins {
 alias(libs.plugins.android.application)
 id("com.chaquo.python")
}

chaquopy {
 defaultConfig {
 buildPython("C:/Program Files/Python313/python.exe")
 buildPython("C:/Program Files/Python313/python.exe", "-3.8")
 }
 sourceSets {
 getByName("main") {
 srcDir("src/main/assets/python") // Tell Chaquopy to look here
 }
 }
}

android {
 namespace 'com.example.ytrans'
 compileSdk 34

 defaultConfig {
 applicationId "com.example.ytrans"
 minSdk 24
 targetSdk 34
 versionCode 1
 versionName "1.0"

 testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"

 ndk {
 // On Apple silicon, you can omit x86_64.
 abiFilters "arm64-v8a", "x86_64"
 }

 python {
 version "3.8"
 buildPython "C:/Program Files/Python313/python.exe"
 pip {
 install "yt-dlp" // This will install yt-dlp via pip
 }
 }

 }

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

dependencies {
 implementation libs.appcompat
 implementation libs.material
 implementation libs.activity
 implementation libs.constraintlayout
 testImplementation libs.junit
 androidTestImplementation libs.ext.junit
 androidTestImplementation libs.espresso.core
 implementation files("libs/ffmpeg-kit-full-6.0-2.LTS.aar")
}






// java code
 public static void downloadVideo(String video_url, String output_path)
 {

 Python py = Python.getInstance();
 PyObject pyObj = py.getModule("yt_dlp_script"); // Import yt-dlp
 try {
 pyObj.callAttr("download", video_url, output_path);
 Log.i("VideoDownloader", "Video downloaded successfully!");
 } catch (Exception e) {
 Log.e("VideoDownloader", "Error downloading video: " + e.getMessage());
 }
 }



# python script
import yt_dlp

def download(video_url, output_path):
 ydl_opts = {
 'outtmpl': output_path, # specify the output file path
 'merge_output_format': 'mp4',
 }

 with yt_dlp.YoutubeDL(ydl_opts) as ydl:
 ydl.download([video_url]) # Download the video 




-
Conversion Funnel Optimisation : 10 Ways to Convert More
24 janvier 2024, par Erin -
Revision 3330 : Un élément de menu pour la configuration
25 avril 2010, par kent1 — LogUn élément de menu pour la configuration