Recherche avancée

Médias (0)

Mot : - Tags -/flash

Aucun média correspondant à vos critères n’est disponible sur le site.

Autres articles (46)

  • 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

  • Support audio et vidéo HTML5

    10 avril 2011

    MediaSPIP 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, par

    MediaSPIP 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 (9833)

  • FileNotFoundError : [Errno 2] No such file or directory : 'ffmpeg'

    9 février 2021, par stackoverflow

    I'm new in python and i'm using pydub modules to play mp3 track.

    



    Here is my simple code to play mp3 :

    



    #Let's play some mp3 files using python!

from pydub import AudioSegment
from pydub.playback import play

song = AudioSegment.from_mp3("/media/rajendra/0C86E11786E10256/05_I_Like_It_Rough.mp3")
play(song)


    



    When i run this program, it says :

    



    */usr/bin/python3.4 /home/rajendra/PycharmProjects/pythonProject5/myProgram.py&#xA;/usr/local/lib/python3.4/dist-packages/pydub/utils.py:161: RuntimeWarning: Couldn&#x27;t find ffmpeg or avconv - defaulting to ffmpeg, but may not work&#xA;  warn("Couldn&#x27;t find ffmpeg or avconv - defaulting to ffmpeg, but may not work", RuntimeWarning)&#xA;/usr/local/lib/python3.4/dist-packages/pydub/utils.py:174: RuntimeWarning: Couldn&#x27;t find ffplay or avplay - defaulting to ffplay, but may not work&#xA;  warn("Couldn&#x27;t find ffplay or avplay - defaulting to ffplay, but may not work", RuntimeWarning)&#xA;Traceback (most recent call last):&#xA;  File "/home/rajendra/PycharmProjects/pythonProject5/myProgram.py", line 11, in <module>&#xA;    song = AudioSegment.from_mp3("/media/rajendra/0C86E11786E10256/05_I_Like_It_Rough.mp3")&#xA;  File "/usr/local/lib/python3.4/dist-packages/pydub/audio_segment.py", line 355, in from_mp3&#xA;    return cls.from_file(file, &#x27;mp3&#x27;)&#xA;  File "/usr/local/lib/python3.4/dist-packages/pydub/audio_segment.py", line 339, in from_file&#xA;    retcode = subprocess.call(convertion_command, stderr=open(os.devnull))&#xA;  File "/usr/lib/python3.4/subprocess.py", line 533, in call&#xA;    with Popen(*popenargs, **kwargs) as p:&#xA;  File "/usr/lib/python3.4/subprocess.py", line 848, in __init__&#xA;    restore_signals, start_new_session)&#xA;  File "/usr/lib/python3.4/subprocess.py", line 1446, in _execute_child&#xA;    raise child_exception_type(errno_num, err_msg)&#xA;FileNotFoundError: [Errno 2] No such file or directory: &#x27;ffmpeg&#x27;&#xA;&#xA;Process finished with exit code 1*&#xA;</module>

    &#xA;&#xA;

    Please help me ! I've checked everything path but it's not working. I'm currently using Ubuntu.

    &#xA;&#xA;

    Help would be appreciated !

    &#xA;

  • FileNotFoundError : [Errno 2] No such file or directory : 'ffmpeg'

    5 avril 2015, par stackoverflow

    I’m new in python and i’m using pydub modules to play mp3 track.

    Here is my simple code to play mp3 :

    #Let's play some mp3 files using python!

    from pydub import AudioSegment
    from pydub.playback import play

    song = AudioSegment.from_mp3("/media/rajendra/0C86E11786E10256/05_I_Like_It_Rough.mp3")
    play(song)

    When i run this program, it says :

    */usr/bin/python3.4 /home/rajendra/PycharmProjects/pythonProject5/myProgram.py
    /usr/local/lib/python3.4/dist-packages/pydub/utils.py:161: 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)
    /usr/local/lib/python3.4/dist-packages/pydub/utils.py:174: RuntimeWarning: Couldn't find ffplay or avplay - defaulting to ffplay, but may not work
     warn("Couldn't find ffplay or avplay - defaulting to ffplay, but may not work", RuntimeWarning)
    Traceback (most recent call last):
     File "/home/rajendra/PycharmProjects/pythonProject5/myProgram.py", line 11, in <module>
       song = AudioSegment.from_mp3("/media/rajendra/0C86E11786E10256/05_I_Like_It_Rough.mp3")
     File "/usr/local/lib/python3.4/dist-packages/pydub/audio_segment.py", line 355, in from_mp3
       return cls.from_file(file, 'mp3')
     File "/usr/local/lib/python3.4/dist-packages/pydub/audio_segment.py", line 339, in from_file
       retcode = subprocess.call(convertion_command, stderr=open(os.devnull))
     File "/usr/lib/python3.4/subprocess.py", line 533, in call
       with Popen(*popenargs, **kwargs) as p:
     File "/usr/lib/python3.4/subprocess.py", line 848, in __init__
       restore_signals, start_new_session)
     File "/usr/lib/python3.4/subprocess.py", line 1446, in _execute_child
       raise child_exception_type(errno_num, err_msg)
    FileNotFoundError: [Errno 2] No such file or directory: 'ffmpeg'

    Process finished with exit code 1*
    </module>

    Please help me ! I’ve checked everything path but it’s not working. I’m currently using Ubuntu.

    Help would be appreciated !

  • Looping Variables in a Batch File (for use with FFmpeg)

    16 avril 2021, par OrdinaryCarrot16

    I am creating a batch script that stores the input of the user into variables, that will later be used for creating converting files then adding metadata (via FFmpeg). It is working pretty good, now I'm just trying to figure out how to loop the FFmpeg line that uses all the variables the user inputted, and it will loop the command till it reaches the number specified in the 'track_amount' variable.

    &#xA;

    Do you have any ideas on how to make this work ? Thanks !

    &#xA;

    setlocal enabledelayedexpansion&#xA;&#xA;:: Scan current directory for audio files&#xA;DIR *.mp3 OR *.m4a&#xA;&#xA;set /P cover-art=Select the Audio/Image File with the Cover Art (ex. MP3/M4A or JPG/PNG): &#xA;set /P artist=Artist/Band Name: &#xA;set /P track_amount=How many tracks are in this album: &#xA;&#xA;if %track_amount% GTR 1 (&#xA;    set /P album=Album Name: &#xA;)&#xA;&#xA;set /P filename=Song File Name: &#xA;set /P title=Song Name: &#xA;set /P track=Track Number: &#xA;set /P genre=Genre: &#xA;set /P language=Language: &#xA;&#xA;ffmpeg -i "%cover-art%" -vf scale=512:512 -sws_flags bicubic cover_tmp.png&#xA;&#xA;for %%t in (!track_amount!) do ffmpeg -i "%filename%" -i cover_tmp.png -map_metadata -1 -map 0:0 -map 1:0 -id3v2_version 3 -metadata artist="%artist%" -metadata album="%album%" -metadata title="%title%" -metadata track="%track%/%track_amount%" -metadata genre="%genre%" -metadata language="%language%" -c:1 png -disposition:1 attached_pic -c:a libmp3lame -ar 44100 -b:a 160k "%title%.mp3"&#xA;&#xA;pause&#xA;

    &#xA;