Recherche avancée

Médias (1)

Mot : - Tags -/3GS

Autres articles (106)

  • 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

  • Problèmes fréquents

    10 mars 2010, par

    PHP et safe_mode activé
    Une des principales sources de problèmes relève de la configuration de PHP et notamment de l’activation du safe_mode
    La solution consiterait à soit désactiver le safe_mode soit placer le script dans un répertoire accessible par apache pour le site

  • Qu’est ce qu’un éditorial

    21 juin 2013, par

    Ecrivez votre de point de vue dans un article. Celui-ci sera rangé dans une rubrique prévue à cet effet.
    Un éditorial est un article de type texte uniquement. Il a pour objectif de ranger les points de vue dans une rubrique dédiée. Un seul éditorial est placé à la une en page d’accueil. Pour consulter les précédents, consultez la rubrique dédiée.
    Vous pouvez personnaliser le formulaire de création d’un éditorial.
    Formulaire de création d’un éditorial Dans le cas d’un document de type éditorial, les (...)

Sur d’autres sites (12421)

  • HTML 5 currentTime accuracy

    1er septembre 2015, par Daniel

    I’m working on a project where we are using the value from the video element’s currentTime property to perform processing on the server backend using ffmpeg. I’ve come across an issue where the video element seems to report a time code that is slightly different from the time code ffmpeg needs to access the correct point in the video.

    So for instance in Firefox if the currentTime property reports that the current video time is 26.83 I might find that the frame I really want ended at 26.72 and so if I use the time to extract a frame using ffmpeg on the server I get the next frame instead of the current frame.

    The amount of offset seems to be slightly different in different parts of the video and in different videos. But the offset is usually close to one tenth of a second in Firefox. In chrome the currentTime actually seems to be ahead or the correct currentTime by about 5 hundredths of a second. It’s more difficult to figure out the offset in IE because the place where the frame shifts seems to change as I enter different time codes to look for the exact time code where the frame changes.

    I’m pretty sure the time as used by ffmpeg is the correct time. It seems to agree more closely with other video editing software such as adobe premier.

    Any ideas on what could be causing this behavior ?

    JS to get currentTime :

    AVideo.prototype.getCurrentTime = function()
    {
      return this.videoElement[0].currentTime;
    };

    Resulting ffmpeg command :

    ffmpeg -y -i '/tmp/myVideo.mov' -vframes 1 -ss 2.4871 -f image2   -y '/tmp/myFrame.jpg' 2>&1
  • HTML 5 currentTime accuracy

    1er septembre 2018, par Daniel

    I’m working on a project where we are using the value from the video element’s currentTime property to perform processing on the server backend using ffmpeg. I’ve come across an issue where the video element seems to report a time code that is slightly different from the time code ffmpeg needs to access the correct point in the video.

    So for instance in Firefox if the currentTime property reports that the current video time is 26.83 I might find that the frame I really want ended at 26.72 and so if I use the time to extract a frame using ffmpeg on the server I get the next frame instead of the current frame.

    The amount of offset seems to be slightly different in different parts of the video and in different videos. But the offset is usually close to one tenth of a second in Firefox. In chrome the currentTime actually seems to be ahead or the correct currentTime by about 5 hundredths of a second. It’s more difficult to figure out the offset in IE because the place where the frame shifts seems to change as I enter different time codes to look for the exact time code where the frame changes.

    I’m pretty sure the time as used by ffmpeg is the correct time. It seems to agree more closely with other video editing software such as adobe premier.

    Any ideas on what could be causing this behavior ?

    JS to get currentTime :

    AVideo.prototype.getCurrentTime = function()
    {
      return this.videoElement[0].currentTime;
    };

    Resulting ffmpeg command :

    ffmpeg -y -i '/tmp/myVideo.mov' -vframes 1 -ss 2.4871 -f image2   -y '/tmp/myFrame.jpg' 2>&1
  • How can i play video in openCV with audio the same time

    26 janvier 2021, par red_ant

    I'm trying to play video using openCV but it only show video without sound can you help me to resolve that please, Here is my code.

    


    (
I have a macOS Mojave
version 10.14.6
)

    


    import cv2

from ffpyplayer.player import MediaPlayer


video = cv2.VideoCapture('videos/nature.mp4')
player = MediaPlayer('videos/nature.mp4')

while True:
    # read video frame by frame
    isTrue, frame = video.read()
    audio_frame, val = player.get_frame()
    cv2.imshow('Video', frame)
    
    if val != 'eof' and audio_frame is not None:
        #audio
        img, t = audio_frame
    
    if cv2.waitKey(28) & 0xFF == ord('q'):
        break
    
video.release()
cv2.destroyAllWindows()


    


    I tried with ffpyplayer but i got this error on my macOS.

    


    mugisha-MBP:openCV jclaude$ python3 read.py&#xA;Traceback (most recent call last):&#xA;  File "/Users/Desktop/SCRIPT/openCV/read.py", line 5, in <module>&#xA;    from ffpyplayer.player import MediaPlayer&#xA;  File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/ffpyplayer/player/__init__.py", line 10, in <module>&#xA;    from ffpyplayer.player.player import MediaPlayer&#xA;ImportError: dlopen(/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/ffpyplayer/player/player.cpython-39-darwin.so, 2): Symbol not found: _objc_opt_class&#xA;  Referenced from: /Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/ffpyplayer/player/../.dylibs/libSDL2-2.0.0.dylib (which was built for Mac OS X 10.15)&#xA;  Expected in: /usr/lib/libobjc.A.dylib&#xA; in /Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/ffpyplayer/player/../.dylibs/libSDL2-2.0.0.dylib&#xA;</module></module>

    &#xA;