Recherche avancée

Médias (1)

Mot : - Tags -/artwork

Autres articles (111)

  • Le profil des utilisateurs

    12 avril 2011, par

    Chaque utilisateur dispose d’une page de profil lui permettant de modifier ses informations personnelle. Dans le menu de haut de page par défaut, un élément de menu est automatiquement créé à l’initialisation de MediaSPIP, visible uniquement si le visiteur est identifié sur le site.
    L’utilisateur a accès à la modification de profil depuis sa page auteur, un lien dans la navigation "Modifier votre profil" est (...)

  • Configurer la prise en compte des langues

    15 novembre 2010, par

    Accéder à la configuration et ajouter des langues prises en compte
    Afin de configurer la prise en compte de nouvelles langues, il est nécessaire de se rendre dans la partie "Administrer" du site.
    De là, dans le menu de navigation, vous pouvez accéder à une partie "Gestion des langues" permettant d’activer la prise en compte de nouvelles langues.
    Chaque nouvelle langue ajoutée reste désactivable tant qu’aucun objet n’est créé dans cette langue. Dans ce cas, elle devient grisée dans la configuration et (...)

  • XMP PHP

    13 mai 2011, par

    Dixit Wikipedia, XMP signifie :
    Extensible Metadata Platform ou XMP est un format de métadonnées basé sur XML utilisé dans les applications PDF, de photographie et de graphisme. Il a été lancé par Adobe Systems en avril 2001 en étant intégré à la version 5.0 d’Adobe Acrobat.
    Étant basé sur XML, il gère un ensemble de tags dynamiques pour l’utilisation dans le cadre du Web sémantique.
    XMP permet d’enregistrer sous forme d’un document XML des informations relatives à un fichier : titre, auteur, historique (...)

Sur d’autres sites (12198)

  • How to find and decode efficiently Nth frame with libavcodec ?

    7 décembre 2016, par theateist

    Please, this is not duplicate of similar posts !

    I want to find and to decode Nth frame, for example 7th frame.

    As I understood, using time_base I can calculate how many ticks is each frame and by multiplying it with 7 we will get position of 7th frame. To calculate the ticks I do

    AVStream inStream = getStreamFromAVFormatContext();

    int fps = inStream->r_frame_rate.num;
    AVRational timeBase = inStream->time_base;

    int ticks_per_frame = (1/fps) / timeBase;
    int _7thFramePos = ticks_per_frame * 7;
    1. Did I calculated correctly position of 7th frame ? If I did, so to go to that frame I just do av_seek_frame(pFormatCtx, -1, _7thFramePos, AVSEEK_FLAG_ANY), right ?
      What happens if the 7th frame was P-Frame or B-Frame, how I decode it ?
    2. I noticed that the calculated value differs from inStream->codec->ticks_per_frame, why ? Shouldn’t they be the same ? What is the difference ?
  • Couldn't find ffmpeg or avconv - Python

    18 juin 2024, par goldie

    I'm working on a captcha solver and I need to use ffmpeg, though nothing works. Windows 10 user.

    


    Warning when running the code for the first time :

    


    C:\Users\user\AppData\Roaming\Python\Python310\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)


    


    Then, when I tried running the script anyway and it required ffprobe, I got the following error :

    


    C:\Users\user\AppData\Roaming\Python\Python310\site-packages\pydub\utils.py:198: RuntimeWarning: Couldn&#x27;t find ffprobe or avprobe - defaulting to ffprobe, but may not work&#xA;  warn("Couldn&#x27;t find ffprobe or avprobe - defaulting to ffprobe, but may not work", RuntimeWarning)&#xA;Traceback (most recent call last):&#xA;  File "D:\Scripts\captcha\main.py", line 164, in <module>&#xA;    main()&#xA;  File "D:\Scripts\captcha\main.py", line 155, in main&#xA;    captchaSolver()&#xA;  File "D:\Scripts\captcha\main.py", line 106, in captchaSolver&#xA;    sound = pydub.AudioSegment.from_mp3(&#xA;  File "C:\Users\user\AppData\Roaming\Python\Python310\site-packages\pydub\audio_segment.py", line 796, in from_mp3&#xA;    return cls.from_file(file, &#x27;mp3&#x27;, parameters=parameters)&#xA;  File "C:\Users\user\AppData\Roaming\Python\Python310\site-packages\pydub\audio_segment.py", line 728, in from_file&#xA;    info = mediainfo_json(orig_file, read_ahead_limit=read_ahead_limit)&#xA;  File "C:\Users\user\AppData\Roaming\Python\Python310\site-packages\pydub\utils.py", line 274, in mediainfo_json&#xA;    res = Popen(command, stdin=stdin_parameter, stdout=PIPE, stderr=PIPE)&#xA;  File "C:\Program Files\Python310\lib\subprocess.py", line 966, in __init__&#xA;    self._execute_child(args, executable, preexec_fn, close_fds,&#xA;  File "C:\Program Files\Python310\lib\subprocess.py", line 1435, in _execute_child&#xA;    hp, ht, pid, tid = _winapi.CreateProcess(executable, args,&#xA;FileNotFoundError: [WinError 2] The system cannot find the file specified&#xA;</module>

    &#xA;

    I tried downloading it normally, editing environment variables, pasting them in the same folder as the script, installing with pip, tested ffmpeg manually to see if it works and indeed it converted a mkv to mp4, however my script has no intention of running

    &#xA;

  • How to update watermark realtime while streaming video with ffmpeg ?

    28 juillet 2017, par boygiandi

    I’m trying to add a watermark to video while streaming. However this watermark get update every second. How to tell ffmpeg to update the watermark ? Try added -r 2 before -i watermark but didn’t works.

    The ffmpeg command like this

    ffmpeg -i /tmp/45893_video_0.ts -i /tmp/watermark.jpg -filter_complex ’[1:v]colorkey=0x2bade0:0.3:0.2[ckout] ;[0:v][ckout]overlay[out]’ -map ’[out]’ -f flv "rtmp ://"