Recherche avancée

Médias (91)

Autres articles (105)

  • MediaSPIP version 0.1 Beta

    16 avril 2011, par

    MediaSPIP 0.1 beta est la première version de MediaSPIP décrétée comme "utilisable".
    Le fichier zip ici présent contient uniquement les sources de MediaSPIP en version standalone.
    Pour avoir une installation fonctionnelle, il est nécessaire d’installer manuellement l’ensemble des dépendances logicielles sur le serveur.
    Si vous souhaitez utiliser cette archive pour une installation en mode ferme, il vous faudra également procéder à d’autres modifications (...)

  • Le plugin : Podcasts.

    14 juillet 2010, par

    Le problème du podcasting est à nouveau un problème révélateur de la normalisation des transports de données sur Internet.
    Deux formats intéressants existent : Celui développé par Apple, très axé sur l’utilisation d’iTunes dont la SPEC est ici ; Le format "Media RSS Module" qui est plus "libre" notamment soutenu par Yahoo et le logiciel Miro ;
    Types de fichiers supportés dans les flux
    Le format d’Apple n’autorise que les formats suivants dans ses flux : .mp3 audio/mpeg .m4a audio/x-m4a .mp4 (...)

  • Encoding and processing into web-friendly formats

    13 avril 2011, par

    MediaSPIP automatically converts uploaded files to internet-compatible formats.
    Video files are encoded in MP4, Ogv and WebM (supported by HTML5) and MP4 (supported by Flash).
    Audio files are encoded in MP3 and Ogg (supported by HTML5) and MP3 (supported by Flash).
    Where possible, text is analyzed in order to retrieve the data needed for search engine detection, and then exported as a series of image files.
    All uploaded files are stored online in their original format, so you can (...)

Sur d’autres sites (37591)

  • Having trouble with color code in batch file

    23 juin 2022, par Lary David

    I'm trying to only have ffmpeg progress to be colored, but for some reason when I terminate or go full-screen this monstrosity occurs :
Issue

    


    @echo off
@echo off
title Stream Recorder
cls
:start
set message=Stream Recorder
echo %message%
echo(
echo [32m1. Chrome [0m
echo [34m2. Edge [0m
echo [33m3. Firefox [0m
echo [31m4. Opera [0m
echo [1;31m5. Vivaldi [0m
:choice
set choice=
set /p "choice=* Pick your browser (between 1-5): "
if not '%choice%'=='' set choice=%choice:~0,1%
if '%choice%'=='1' goto chrome
echo "%choice%" is not valid, try again.
ECHO.
goto choice

:chrome
:url
echo(
set /p "address=* M3U8 Url: "
For /F %%G In ('%__AppDir__%curl.exe -s -o NUL "%address%" -w "%%{http_code}\n"') Do Set "response=%%G"
echo %response%
IF %response% == 200 (
    ECHO [32mURL check was successful.[m &goto :username
) ELSE (
    ECHO [31mURL is not valid, try again.[m &goto :url
)
:username
set /p "filename=* Streamer Name: "
echo(
set message=* Recording:
echo [0m%message%[42;1m
ffmpeg -v warning -hide_banner -stats -user_agent "" -i "%address%" -c copy "%~dp0/%filename%_%DATE:~7,2%-%DATE:~4,2%-%DATE:~-4%_%time:~-11,2%-%time:~-8,2%-%time:~-5,2%.mp4"
pause


    


    Also, would be helpful if my code needs some cleaning up.

    


  • vp9 : drop support for real (non-emulated) edges

    20 décembre 2013, par Anton Khirnov
    vp9 : drop support for real (non-emulated) edges
    

    They are not measurably faster on x86, they might be somewhat faster on
    other platforms due to missing emu edge SIMD, but the gain is not large
    enough to justify the added complexity.

    • [DH] libavcodec/vp9block.c
    • [DH] tests/fate/vpx.mak
  • Convert mp4 video to avi video using imageio package

    3 février 2018, par Li.Chenyang

    I use the python imageio package to convert a .mp4 video to a .avi video, keeping the fps and size same. The following is my code :

    import imageio

    src_dir = "my/source/video.mp4"
    dst_dir = "my/dst/video.avi"

    reader = imageio.get_reader(src_dir)
    fps = reader.get_meta_data()['fps']
    writer = imageio.get_writer(dst_dir, fps=fps)

    for im in reader:
       writer.append_data(im[:, :, :])
    writer.close()

    I successfully make it.
    However, I find that the video.mp4 is 27.1 MB, while the video.avi is only 3.70 MB.
    Then I use cv2 to do the same thing :

    import cv2

    src_dir = "my/source/video.mp4"
    dst_dir = "my/dst/video_1.avi"

    video_cap = cv2.VideoCapture(src_dir)
    fps = video_cap.get(cv2.cv.CV_CAP_PROP_FPS)
    size = (int(video_cap.get(cv2.cv.CV_CAP_PROP_FRAME_WIDTH)),  
           int(video_cap.get(cv2.cv.CV_CAP_PROP_FRAME_HEIGHT)))  
    video_writer = cv2.VideoWriter(dst_dir, cv2.cv.CV_FOURCC('M', 'J', 'P', 'G'), fps, size)

    success, frame = video_cap.read()
    while success:
       video_writer.write(frame)
       success, frame = video_cap.read()

    This time I get a video_1.avi, which is 65.6 MB.
    My questions :

    1. What is the different between these two method, why the video.avi (using imageio method) is so small ;
    2. Is there any problem to use the video.avi (using imageio method) to train a 3D-CNN instead of using video_1.avi (using cv2 method) ?

    supplement
    Here is the information of my video file :

    lichenyang@lichenyang-All-Series:~/chalearn2014/script$ file video.mp4
    video.mp4: ISO Media, MPEG v4 system, version 2
    lichenyang@lichenyang-All-Series:~/chalearn2014/script$ file video.avi
    video.avi: RIFF (little-endian) data, AVI, 640 x 480, 20.00 fps, video: H.264 X.264 or H.264
    lichenyang@lichenyang-All-Series:~/chalearn2014/script$ file video_1.avi
    video_1.avi: RIFF (little-endian) data, AVI, 640 x 480, 20.00 fps, video: Motion JPEG