Recherche avancée

Médias (1)

Mot : - Tags -/lev manovitch

Autres articles (58)

  • Keeping control of your media in your hands

    13 avril 2011, par

    The vocabulary used on this site and around MediaSPIP in general, aims to avoid reference to Web 2.0 and the companies that profit from media-sharing.
    While using MediaSPIP, you are invited to avoid using words like "Brand", "Cloud" and "Market".
    MediaSPIP is designed to facilitate the sharing of creative media online, while allowing authors to retain complete control of their work.
    MediaSPIP aims to be accessible to as many people as possible and development is based on expanding the (...)

  • La sauvegarde automatique de canaux SPIP

    1er avril 2010, par

    Dans le cadre de la mise en place d’une plateforme ouverte, il est important pour les hébergeurs de pouvoir disposer de sauvegardes assez régulières pour parer à tout problème éventuel.
    Pour réaliser cette tâche on se base sur deux plugins SPIP : Saveauto qui permet une sauvegarde régulière de la base de donnée sous la forme d’un dump mysql (utilisable dans phpmyadmin) mes_fichiers_2 qui permet de réaliser une archive au format zip des données importantes du site (les documents, les éléments (...)

  • 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 (5056)

  • Can't stream video when using node-rtsp-stream latest version ?

    6 avril 2022, par cauchuyennhocuatoi

    I am using node-rtsp-stream latest version (0.0.9)

    


    https://www.npmjs.com/package/node-rtsp-stream


    


    I use it (node-rtsp-stream) to stream an IP camera. I also install the latest version of ffmpeg here :

    


    https://www.gyan.dev/ffmpeg/builds/ffmpeg-git-full.7z


    


    Here is my code

    


    Stream = require('node-rtsp-stream');
stream = new Stream({
  name: 'test',
  streamUrl: 'rtsp://username:password@IP:PORT/cam/realmonitor?channel=1&subtype=0',
  wsPort: 9999,
  ffmpegOptions: { // options ffmpeg flags
    '-r': 30 // options with required values specify the value after the key
  }
});


    


    After running nodejs server I get the following output :

    


    Metadata:
    title           : Media Server
  Duration: N/A, bitrate: N/A
  Stream #0:0: Video: hevc (Main), yuv420p(tv), 2688x1520, 25 tbr, 90k tbn
Stream mapping:
  Stream #0:0 -> #0:0 (hevc (native) -> mpeg1video (native))
Press [q] to stop, [?] for help
Output #0, mpegts, to 'pipe:':
  Metadata:
    title           : Media Server
    encoder         : Lavf59.20.101
  Stream #0:0: Video: mpeg1video, yuv420p, 2688x1520, q=2-31, 200 kb/s, 30 fps, 90k tbn
    Metadata:
      encoder         : Lavc59.25.100 mpeg1video
    Side data:
      cpb: bitrate max/min/avg: 0/0/200000 buffer size: 0 vbv_delay: N/A
frame=    0 fps=0.0 q=0.0 Lsize=       0kB time=00:00:00.00 bitrate=N/A speed=   0x
video:0kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown
Output file is empty, nothing was encoded (check -ss / -t / -frames parameters if used)


    


    This result means I can't stream video from the camera yet. Output is empty, whereas if I use 0.04 version, I can streamming the videos. Below is output if I using node-rtsp-stream version 0.0.4 :

    


    Metadata:
    title           : Media Server
  Duration: N/A, start: 0.040000, bitrate: N/A
  Stream #0:0: Video: hevc (Main), yuv420p(tv), 2688x1520, 25 fps, 25 tbr, 90k tbn
Stream mapping:
  Stream #0:0 -> #0:0 (hevc (native) -> mpeg1video (native))
Press [q] to stop, [?] for help
Output #0, mpeg1video, to 'pipe:':
  Metadata:
    title           : Media Server
    encoder         : Lavf59.20.101
  Stream #0:0: Video: mpeg1video, yuv420p(tv, progressive), 2688x1520, q=2-31, 200 kb/s, 30 fps, 30 tbn
    Metadata:
      encoder         : Lavc59.25.100 mpeg1video
    Side data:
      cpb: bitrate max/min/avg: 0/0/200000 buffer size: 0 vbv_delay: N/A
frame=  314 fps= 32 q=24.8 size=    4768kB time=00:00:10.40 bitrate=3755.7kbits/s dup=51 drop=0 speed=1.05x 


    


    But I need to use the latest version (node-rtsp-stream 0.0.9) for my project, please take a look.

    


  • Ffmpeg didn't burn srt subtitle on mkv properly

    16 janvier 2014, par user2600010

    `ffmpeg version:git-fc6de70 (2013-07-18) with libass and fontconfig support.
    command line:ffmpeg.exe -i test.mkv -vf subtitles=test.srt out.mkv
    and i got this error. :

    Metadata:
       encoder         : Lavf55.12.102
       Stream #0:0(eng): Video: h264 (libx264) (H264 / 0x34363248), yuv420p, 1280x5
    76 [SAR 1:1 DAR 20:9], q=-1--1, 1k tbn, 23.98 tbc (default)
       Stream #0:1: Audio: vorbis (libvorbis) (oV[0][0] / 0x566F), 48000 Hz, stereo
    , fltp (default)
    Stream mapping:
     Stream #0:0 -> #0:0 (h264 -> libx264)
     Stream #0:1 -> #0:1 (aac -> libvorbis)
    Press [q] to stop, [?] for help
    [Parsed_subtitles_0 @ 00000000027b9960] Neither PlayResX nor PlayResY defined. A
    ssuming 384x288

    http://tinypic.com/r/2ag52so/5

  • Problem with ffmpeg syntax in a for loop in batch file [duplicate]

    24 février 2019, par user1738673

    This question already has an answer here :

    My goal is to loop through my music folders, read the bitrate of each file, and if greater than 192k, convert it to 192k, then delete the original. I have working batch files that will do each task. The problem comes when I try to combine the lines from the working code. Depending on where I put the quotation marks, I get varying errors about filenames. So, I need someone who really knows how to read this code to solve the issue.

    Here are each of the working batch files. They do everything exactly as they should.

    First : Loop through files and get the bitrate

    @echo off & setlocal
    FOR /r %%i in (*.mp3) DO (
               ffprobe -v error -show_entries stream=bit_rate -of default=noprint_wrappers=1:nokey=1 "%%~fi"
               )
    ECHO Completed %~n0
    PAUSE

    Here is the output :

    320000
    320000
    192000
    320000
    320000
    320000
    320000
    320000
    320000
    320000
    320000
    320000
    Completed BrTestLoop6
    Press any key to continue . . .

    Next, the batch file for converting all MP3 files to 192k, then deleting the orginal :

    @echo off & setlocal
    FOR /r %%i in (*.mp3) DO (
                 ffmpeg -i "%%~fi" -ab 192k -map_metadata 0 -id3v2_version 3 "%%~dpni_192.mp3"
                 if not errorlevel 1 if exist "%%~fi" del /q "%%~fi"
               )
    ECHO Completed %~n0
    PAUSE

    I get perfect conversions at 192k and all of the originals are deleted.

    Now, the combined version :

    @echo off & setlocal

    FOR /R %%i in (*.mp3) DO (
       FOR /F "TOKENS=1 DELIMS==" %%H IN ('ffprobe -v error -show_entries stream=bit_rate -of default=noprint_wrappers=1:nokey=1 "%%i"') DO (
           IF %%H GTR 192000 ffmpeg -i "%%i" -ab 192k -map_metadata 0 -id3v2_version 3 "%%~dpni_192.mp3"
       )
    )

    PAUSE

    I get the following output :

    Argument 'noprint_wrappers' provided as input filename, but 'bit_rate' was already specified.
    Argument 'noprint_wrappers' provided as input filename, but 'bit_rate' was already specified.
    Argument 'noprint_wrappers' provided as input filename, but 'bit_rate' was already specified.
    Argument 'noprint_wrappers' provided as input filename, but 'bit_rate' was already specified.
    Argument 'noprint_wrappers' provided as input filename, but 'bit_rate' was already specified.
    Argument 'noprint_wrappers' provided as input filename, but 'bit_rate' was already specified.
    Argument 'noprint_wrappers' provided as input filename, but 'bit_rate' was already specified.
    Argument 'noprint_wrappers' provided as input filename, but 'bit_rate' was already specified.
    Argument 'noprint_wrappers' provided as input filename, but 'bit_rate' was already specified.
    Argument 'noprint_wrappers' provided as input filename, but 'bit_rate' was already specified.
    Argument 'noprint_wrappers' provided as input filename, but 'bit_rate' was already specified.
    Argument 'noprint_wrappers' provided as input filename, but 'bit_rate' was already specified.
    Press any key to continue . . .