Recherche avancée

Médias (1)

Mot : - Tags -/book

Autres articles (90)

  • Keeping control of your media in your hands

    13 avril 2011, par

    The vocabulary used on this site and around MediaSPIP in general, aims to avoid reference to Web 2.0 and the companies that profit from media-sharing.
    While using MediaSPIP, you are invited to avoid using words like "Brand", "Cloud" and "Market".
    MediaSPIP is designed to facilitate the sharing of creative media online, while allowing authors to retain complete control of their work.
    MediaSPIP aims to be accessible to as many people as possible and development is based on expanding the (...)

  • Participer à sa traduction

    10 avril 2011

    Vous pouvez nous aider à améliorer les locutions utilisées dans le logiciel ou à traduire celui-ci dans n’importe qu’elle nouvelle langue permettant sa diffusion à de nouvelles communautés linguistiques.
    Pour ce faire, on utilise l’interface de traduction de SPIP où l’ensemble des modules de langue de MediaSPIP sont à disposition. ll vous suffit de vous inscrire sur la liste de discussion des traducteurs pour demander plus d’informations.
    Actuellement MediaSPIP n’est disponible qu’en français et (...)

  • Creating farms of unique websites

    13 avril 2011, par

    MediaSPIP platforms can be installed as a farm, with a single "core" hosted on a dedicated server and used by multiple websites.
    This allows (among other things) : implementation costs to be shared between several different projects / individuals rapid deployment of multiple unique sites creation of groups of like-minded sites, making it possible to browse media in a more controlled and selective environment than the major "open" (...)

Sur d’autres sites (22609)

  • 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 dangar

    How 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(&#xA;    videoPath: String,&#xA;    text: String,&#xA;    fontPath: String,&#xA;    outputPath: String&#xA;): Array<string> {&#xA;    val inputs: ArrayList<string> = ArrayList()&#xA;    val scrollSpeed = 5&#xA;    val textSize = 40&#xA;&#xA;    inputs.apply {&#xA;        add("-i")&#xA;        add(videoPath)&#xA;        add("-vf")&#xA;        add("drawtext=fontfile=$fontPath:text=&#x27;$text&#x27;:fontsize=$textSize:fontcolor=white:x=w-(mod($scrollSpeed*n\\,w&#x2B;tw)):y=h-text_h-105")&#xA;        add("-c:a")&#xA;        add("copy")&#xA;        add(outputPath)&#xA;    }&#xA;&#xA;    return inputs.toArray(arrayOfNulls(inputs.size))&#xA;}&#xA;</string></string>

    &#xA;

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

    &#xA;

    please give me the solution

    &#xA;

  • Revision 7274 : Un head pour la page de recherche avancée pour avoir un title correct

    29 décembre 2012, par kent1 — Log

    Un head pour la page de recherche avancée pour avoir un title correct

  • FFMPEG - Stream discovered after head already parsed [on hold]

    7 février 2014, par John Doe

    I am trying to live transcode an RTMP stream to another RTMP HLS stream using the following command :

    ffmpeg -re -i rtmp://localhost/videochat/testing -c:v libx264 -c:a:0 libfaac -b:a:0 480k -f flv rtmp://localhost:12345/hls/mystream;

    However I receive the following error and the transcoding never begins :

    ffmpeg version git-2014-02-06-474db7a Copyright (c) 2000-2014 the FFmpeg developers
    built on Feb  6 2014 22:20:14 with gcc 4.6 (Ubuntu/Linaro 4.6.3-1ubuntu5)
    configuration: --enable-gpl --enable-libass --enable-libfaac --enable-libfdk-aac --               enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-librtmp --enable-libtheora --enable-libvorbis --enable-libvpx --enable-x11grab --enable-libx264 --enable-nonfree --enable-version3
    libavutil      52. 63.100 / 52. 63.100
    libavcodec     55. 49.101 / 55. 49.101
    libavformat    55. 30.100 / 55. 30.100
    libavdevice    55.  7.100 / 55.  7.100
    libavfilter     4.  1.102 /  4.  1.102
    libswscale      2.  5.101 /  2.  5.101
    libswresample   0. 17.104 /  0. 17.104
    libpostproc    52.  3.100 / 52.  3.100
    Metadata:
    description           Chat using VideoChat example.
    [flv @ 0x1ec89e0] Stream discovered after head already parsed
    ^C[flv @ 0x1ec89e0] Could not find codec parameters for stream 0 (Video: none):    unspecified size
    Consider increasing the value for the &#39;analyzeduration&#39; and &#39;probesize&#39; options
    Input #0, flv, from &#39;rtmp://localhost/videochat/testing&#39;:
    Metadata:
    description     : Chat using VideoChat ex   ?5P
    Duration: N/A, start: 0.000000, bitrate: N/A
    Stream #0:0: Video: none, 1k tbr, 1k tbn, 1k tbc
    Stream #0:1: Data: none
    Codec AVOption b (set bitrate (in bits/s)) specified for output file #0 (rtmp://localhost:12345/hls/mystream) has not been used for any stream. The most likely reason is either wrong type (e.g. a video option with no video streams) or that it is a private option of some encoder which was not actually used for any stream.
    Output #0, flv, to &#39;rtmp://localhost:12345/hls/mystream&#39;:

    If anyone has ever dealt/solved this problem before, can you please share as I have been trying to solve this for 2 days but to no avail !