Recherche avancée

Médias (0)

Mot : - Tags -/xmlrpc

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

Autres articles (63)

  • Submit enhancements and plugins

    13 avril 2011

    If you have developed a new extension to add one or more useful features to MediaSPIP, let us know and its integration into the core MedisSPIP functionality will be considered.
    You can use the development discussion list to request for help with creating a plugin. As MediaSPIP is based on SPIP - or you can use the SPIP discussion list SPIP-Zone.

  • Use, discuss, criticize

    13 avril 2011, par

    Talk to people directly involved in MediaSPIP’s development, or to people around you who could use MediaSPIP to share, enhance or develop their creative projects.
    The bigger the community, the more MediaSPIP’s potential will be explored and the faster the software will evolve.
    A discussion list is available for all exchanges between users.

  • MediaSPIP Player : problèmes potentiels

    22 février 2011, par

    Le lecteur ne fonctionne pas sur Internet Explorer
    Sur Internet Explorer (8 et 7 au moins), le plugin utilise le lecteur Flash flowplayer pour lire vidéos et son. Si le lecteur ne semble pas fonctionner, cela peut venir de la configuration du mod_deflate d’Apache.
    Si dans la configuration de ce module Apache vous avez une ligne qui ressemble à la suivante, essayez de la supprimer ou de la commenter pour voir si le lecteur fonctionne correctement : /** * GeSHi (C) 2004 - 2007 Nigel McNie, (...)

Sur d’autres sites (9787)

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

  • How can 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.

    &#xA;

    import cv2&#xA;&#xA;from ffpyplayer.player import MediaPlayer&#xA;&#xA;&#xA;video = cv2.VideoCapture(&#x27;videos/nature.mp4&#x27;)&#xA;player = MediaPlayer(&#x27;videos/nature.mp4&#x27;)&#xA;&#xA;while True:&#xA;    # read video frame by frame&#xA;    isTrue, frame = video.read()&#xA;    audio_frame, val = player.get_frame()&#xA;    cv2.imshow(&#x27;Video&#x27;, frame)&#xA;    &#xA;    if val != &#x27;eof&#x27; and audio_frame is not None:&#xA;        #audio&#xA;        img, t = audio_frame&#xA;    &#xA;    if cv2.waitKey(28) &amp; 0xFF == ord(&#x27;q&#x27;):&#xA;        break&#xA;    &#xA;video.release()&#xA;cv2.destroyAllWindows()&#xA;

    &#xA;

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

    &#xA;

    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;

  • How do I live transcode a wmv file for playback in html5 player ?

    14 octobre 2018, par steven

    I’ve been working at this for quite awhile and still haven’t found a solution that works. I need a way to live convert (transcode) a .wmv file for playback in a html5 web player.

    I have a linux server (Apache) setup to stream video files through an html5 web player (Video.js) designed for Chrome and Firefox browsers. The file types I am dealing with are .mp4 (H.264), .mkv, and .wmv. The good news for me is that I can deal with mp4 and mkv natively, however I can’t play wmv. Also, I have to deal with a lot of files, change periodically, and can be quite large.

    After doing a lot of research and reading many times how you can’t stream wmv directly, I came to the realization that I had two options. Either convert the file to a supported format or live transcode a file for use in the web player. Due to the amount of files and their size (and periodically changing) converting the file is simply not feasible. So I am stuck with live streaming/transcoding. I figured ffmpeg would be the way to go, but I have yet to figure out how to get ffmpeg to live stream into the html5 player.

    So how do I take an existing .wmv file and live stream it in an html5 player ?

    The things I’ve tried so far :

    Tried creating a m3u8 playlist and hoping it would magically work.

    ffmpeg -i "hello.wmv" -s 640x480 -c:v libx264 -f ssegment -hls_flags delete_segments -segment_list playlist.m3u8 -segment_list_type hls -segment_list_size 10 -segment_list_flags +live -segment_time 10 out_%6d.ts

    Simply copying to mp4 and streaming while ffmpeg still progressing. Obviously didn’t work.

    ffmpeg -i "hello.wmv"  -vcodec copy video.mp4

    Converting to webm format and streaming webm while ffmpeg still progressing. This actually did show the video for a few seconds in the html player :

    ffmpeg -i "hello.wmv" -codec:a libvorbis -codec:v libvpx -b:a 128k -b:v 1200k video.webm

    Ffmpeg is not required to be used (was thinking of vlc as well), the html5 player is required. Completely converting then streaming isn’t a viable option because file sizes can be too large and change periodically. What command/program can I use to stream the file for playback in the html player ?