
Recherche avancée
Médias (91)
-
DJ Z-trip - Victory Lap : The Obama Mix Pt. 2
15 septembre 2011
Mis à jour : Avril 2013
Langue : English
Type : Audio
-
Matmos - Action at a Distance
15 septembre 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Audio
-
DJ Dolores - Oslodum 2004 (includes (cc) sample of “Oslodum” by Gilberto Gil)
15 septembre 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Audio
-
Danger Mouse & Jemini - What U Sittin’ On ? (starring Cee Lo and Tha Alkaholiks)
15 septembre 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Audio
-
Cornelius - Wataridori 2
15 septembre 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Audio
-
The Rapture - Sister Saviour (Blackstrobe Remix)
15 septembre 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Audio
Autres articles (38)
-
Publier sur MédiaSpip
13 juin 2013Puis-je poster des contenus à partir d’une tablette Ipad ?
Oui, si votre Médiaspip installé est à la version 0.2 ou supérieure. Contacter au besoin l’administrateur de votre MédiaSpip pour le savoir -
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 (...) -
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 (...)
Sur d’autres sites (6422)
-
Updated generated docs.
2 juin 2017, par scottschillerUpdated generated docs.
-
Fixed a link in the API docs
4 juin 2014, par JamesMGreeneFixed a link in the API docs
-
How do I make text scroll in a single line on a video using FFmpeg without using an additional line ?
9 mars 2024, par sanjay dangarHow do I make text scroll in a single line on a video using FFmpeg without using an additional line ?


make text scroll in a single line on a video using FFmpeg on Android, but text shows other lines

My code

downloadProgressDialog.show()

outputPath =
 Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_DOWNLOADS).path + "/$fileName.mp4"

 var videoPath = videoPath!!
 var text = bottomTextScroll!!
 var fontPath = fontPath!!
 
 val query = ffmpegQueryExtension.addScrollingTextToVideo(
 videoPath,
 text,
 fontPath,
 outputPath!!

 )
 CallBackOfQuery().callQuery(query, object : FFmpegCallBack {

 override fun success() {
 downloadProgressDialog.clearProgress()
 downloadProgressDialog.dismiss()
 Toast.makeText(
 this@MainActivity,
 "Video Download Success",
 Toast.LENGTH_SHORT
 )
 .show()
 var notificationText = "Your video has been successfully downloaded."
 showNotification(notificationText)


 var i = Intent(this@MainActivity, VideoShareActivity::class.java)
 i.putExtra("outputPath", outputPath)
 startActivity(i)
 finish()


 }

 override fun cancel() {
 downloadProgressDialog.dismiss()
 Toast.makeText(
 this@MainActivity,
 "Video Download Cancel",
 Toast.LENGTH_SHORT
 )
 .show()
 }

 override fun failed() {
 downloadProgressDialog.dismiss()
 Toast.makeText(
 this@MainActivity,
 "Video Download Fail",
 Toast.LENGTH_SHORT
 ).show()

 var notificationText = "Your video download Fail."
 showNotification(notificationText)
 }

 //get video download progress
 override fun updateProgress(progress: Int) {
 val duration = getVideoDuration(videoPath!!) // get video duration

 downloadProgressDialog.updateProgress(progress, duration)
 }

 })



fun addScrollingTextToVideo(
 videoPath: String,
 text: String,
 fontPath: String,
 outputPath: String
): Array<string> {
 val inputs: ArrayList<string> = ArrayList()
 val scrollSpeed = 5
 val textSize = 40

 inputs.apply {
 add("-i")
 add(videoPath)
 add("-vf")
 add("drawtext=fontfile=$fontPath:text='$text':fontsize=$textSize:fontcolor=white:x=w-(mod($scrollSpeed*n\\,w+tw)):y=h-text_h-105")
 add("-c:a")
 add("copy")
 add(outputPath)
 }

 return inputs.toArray(arrayOfNulls(inputs.size))
}
</string></string>


make long text scroll in a single line on a video using FFmpeg on Android, but text shows other lines in


please give me the solution