Recherche avancée

Médias (1)

Mot : - Tags -/embed

Autres articles (45)

  • Les autorisations surchargées par les plugins

    27 avril 2010, par

    Mediaspip core
    autoriser_auteur_modifier() afin que les visiteurs soient capables de modifier leurs informations sur la page d’auteurs

  • Personnaliser les catégories

    21 juin 2013, par

    Formulaire de création d’une catégorie
    Pour ceux qui connaissent bien SPIP, une catégorie peut être assimilée à une rubrique.
    Dans le cas d’un document de type catégorie, les champs proposés par défaut sont : Texte
    On peut modifier ce formulaire dans la partie :
    Administration > Configuration des masques de formulaire.
    Dans le cas d’un document de type média, les champs non affichés par défaut sont : Descriptif rapide
    Par ailleurs, c’est dans cette partie configuration qu’on peut indiquer le (...)

  • MediaSPIP Player : les contrôles

    26 mai 2010, par

    Les contrôles à la souris du lecteur
    En plus des actions au click sur les boutons visibles de l’interface du lecteur, il est également possible d’effectuer d’autres actions grâce à la souris : Click : en cliquant sur la vidéo ou sur le logo du son, celui ci se mettra en lecture ou en pause en fonction de son état actuel ; Molette (roulement) : en plaçant la souris sur l’espace utilisé par le média (hover), la molette de la souris n’exerce plus l’effet habituel de scroll de la page, mais diminue ou (...)

Sur d’autres sites (8440)

  • Can't overlay a WebM transpartent video on top of a MP4 using ffmpeg [closed]

    27 octobre 2020, par Hervé

    I have been struggling for hours trying to overlay a WebM transpartent video on top of a MP4 using ffmpeg. The two videos have the same duration. It should therefore be easy but I am getting desperate.

    


    "c:\Program Files\ffmpeg\bin\ffmpeg.exe" ^
-i drone.mp4 ^
-i trans.webm -pix_fmt yuv444p  ^
-filter_complex "[1:v]format=rgba,colorchannelmixer=aa=0.5[trans];[0:v][trans]overlay=10:10" ^
out.mp4


    


    I tried MANY MANY different options, formats, but kept obtaining the same outcome : ffmpeg simply ignores the alpha channel of the trans.webm file and considers its background as black. I used the colorchannelmixer=aa=0.5 and the 10:10 offset to actually see the problem. My goal is really to keep the original subtle alpha channel of trans.webm, NOT to set the black color to transparent.

    


    Some information about the two files :

    


    drone.mp4

    


        Metadata:
    creation_time   : 2020-10-27T10:18:38.000000Z
    handler_name    : VideoHandler
    encoder         : h264
    Stream #0:1(eng): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 191 kb/s (default)
    Metadata:
    creation_time   : 2020-10-27T10:18:38.000000Z
    handler_name    : SoundHandler


    


    trans.webm

    


        Input #0, matroska,webm, from 'trans.webm':
    Metadata:
    ENCODER         : Lavf58.51.100
    Duration: 00:00:27.00, start: 0.000000, bitrate: 28 kb/s
    Stream #0:0: Video: vp9 (Profile 0), yuv420p(tv), 1920x1080, SAR 1:1 DAR 16:9, 25 fps, 25 tbr, 1k tbn, 1k tbc (default)
    Metadata:
    alpha_mode      : 1
    ENCODER         : Lavc58.100.100 libvpx-vp9
    DURATION        : 00:00:27.000000000


    


  • Why PyAudio doesn't read 'mp3' ?

    22 octobre 2020, par freshITmeat

    I tried to read file that I give with absolute path.
When I run my code first that I see is this message :

    


    D:\prog\datascience\anaconda\lib\site-packages\pydub\utils.py:170: RuntimeWarning: Couldn't find ffmpeg or avconv - defaulting to ffmpeg, but may not work
  warn("Couldn't find ffmpeg or avconv - defaulting to ffmpeg, but may not work", RuntimeWarning)


    


    I tried this :

    


    PATH_TO_FFMPEG = 'D:\\prog\\ffmpeg-win-2.2.2\\ffmpeg.exe'
pydub.AudioSegment.converter = r'D:\\prog\\ffmpeg-win-2.2.2\\ffmpeg.exe'


    


    And I separately installed ffmpeg with pip. But it didn't help.
When I try this :

    


    raw_sound = pydub.AudioSegment.from_mp3(file=track_path)


    


    where track_path is correct absolute path generated automatically.
So I got this this error :

    


    Traceback (most recent call last):&#xA;  File "D:\prog\PyCharm Community Edition 2020.2.2\plugins\python-ce\helpers\pydev\pydevd.py", line 1448, in _exec&#xA;    pydev_imports.execfile(file, globals, locals)  # execute the script&#xA;  File "D:\prog\PyCharm Community Edition 2020.2.2\plugins\python-ce\helpers\pydev\_pydev_imps\_pydev_execfile.py", line 18, in execfile&#xA;    exec(compile(contents&#x2B;"\n", file, &#x27;exec&#x27;), glob, loc)&#xA;  File "D:/testtask2/test_task/testtask/get_mffc.py", line 165, in <module>&#xA;    slice_all_in_a_dir(&#x27;May 27 2020 LNC/Hydrophone 1/raw_records&#x27;)&#xA;  File "D:/testtask2/test_task/testtask/get_mffc.py", line 70, in slice_all_in_a_dir&#xA;    slice_samples(track_path= [file],&#xA;  File "D:/testtask2/test_task/testtask/get_mffc.py", line 48, in slice_samples&#xA;    raw_sound = pydub.AudioSegment.from_mp3(file=track_path)&#xA;  File "D:\prog\datascience\anaconda\lib\site-packages\pydub\audio_segment.py", line 738, in from_mp3&#xA;    return cls.from_file(file, &#x27;mp3&#x27;, parameters=parameters)&#xA;  File "D:\prog\datascience\anaconda\lib\site-packages\pydub\audio_segment.py", line 680, in from_file&#xA;    stdin_data = file.read()&#xA;AttributeError: &#x27;list&#x27; object has no attribute &#x27;read&#x27;&#xA;python-BaseException&#xA;</module>

    &#xA;

  • MobileFFMPEG Output file #0 does not contain any stream

    30 septembre 2020, par Alhaj

    I am using implementation 'com.arthenica:mobile-ffmpeg-full:4.4'

    &#xA;

    I just want o crop audio file to 10 second to 20 second

    &#xA;

    '''&#xA;fun cropAudio(input :String)

    &#xA;

        val newFileName = UUID.randomUUID().toString()&#xA;&#xA;    val location: String = getBatchDirectoryName()!!&#xA;&#xA;    val output: String = location &#x2B; "/" &#x2B; newFileName &#x2B; ".mp3"&#xA;&#xA;    val temp=" -i $input -ss 60 -to 70 $output"&#xA;&#xA;    Log.e("alhaj", " a $s")&#xA;&#xA;    FFmpeg.execute(temp, object : ExecuteCallback {&#xA;&#xA;        fun onSuccess(message: String?) {&#xA;            uploadOnFirebase(output, title)&#xA;            mediaPlayer.stop()&#xA;            Log.e("alhaj", message!!)&#xA;        }&#xA;&#xA;        override fun apply(executionId: kotlin.Long, returnCode: Int) {&#xA;            if (returnCode == RETURN_CODE_SUCCESS) {&#xA;                Log.i("alhaj", "Async command execution completed successfully.");&#xA;            } else if (returnCode == RETURN_CODE_CANCEL) {&#xA;                Log.i("alhaj", "Async command execution cancelled by user.");&#xA;            } else {&#xA;                Log.i("alhaj", String.format("Async command execution failed with rc=%d.", returnCode));&#xA;            }&#xA;        }&#xA;    }.toString())&#xA;}&#xA;

    &#xA;

    '''

    &#xA;

    but i am getting error

    &#xA;

    '''

    &#xA;

    2020-09-30 03:13:41.079 10300-10410/com.example.touchmeadmin I/mobile-ffmpeg : Output #0, mp3, to ' -i /storage/emulated/0/AJ backup/songs/Maroon 5 - Memories (Official Video) ( 256kbps cbr ).mp3 -ss 60 -to 70 /storage/emulated/0/Android/data/com.example.touchmeadmin/files/Music/830350fd-5218-4ee0-bd99-0dd50b802930.mp3' :&#xA;2020-09-30 03:13:41.079 10300-10410/com.example.touchmeadmin E/mobile-ffmpeg : Output file #0 does not contain any stream

    &#xA;

    '''

    &#xA;