Recherche avancée

Médias (1)

Mot : - Tags -/book

Autres articles (111)

  • Supporting all media types

    13 avril 2011, par

    Unlike most software and media-sharing platforms, MediaSPIP aims to manage as many different media types as possible. The following are just a few examples from an ever-expanding list of supported formats : images : png, gif, jpg, bmp and more audio : MP3, Ogg, Wav and more video : AVI, MP4, OGV, mpg, mov, wmv and more text, code and other data : OpenOffice, Microsoft Office (Word, PowerPoint, Excel), web (html, CSS), LaTeX, Google Earth and (...)

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

  • Script d’installation automatique de MediaSPIP

    25 avril 2011, par

    Afin de palier aux difficultés d’installation dues principalement aux dépendances logicielles coté serveur, un script d’installation "tout en un" en bash a été créé afin de faciliter cette étape sur un serveur doté d’une distribution Linux compatible.
    Vous devez bénéficier d’un accès SSH à votre serveur et d’un compte "root" afin de l’utiliser, ce qui permettra d’installer les dépendances. Contactez votre hébergeur si vous ne disposez pas de cela.
    La documentation de l’utilisation du script d’installation (...)

Sur d’autres sites (6139)

  • Record Desktop Audio, Microphone Audio, and Desktop Video with FFMPEg [closed]

    16 juillet 2022, par Mypantsrtooobig

    I have a personal project where I am trying to use FFmpeg as a custom screen recorder on my computer.

    


    I managed to make a command that records my microphone audio and desktop video and a different one to record my desktop video and audio but not one that does all three.

    


    ffmpeg -f gdigrab -video_size 1360x768  -i desktop -f dshow -i audio="virtual-audio-capturer" -i audio="Microphone (Logitech G432 Gaming Headset)"  D:\Untitled\attempt.mkv


    


    If my idea is not possible can I make a command that can record all three at the same time and merge them into one .mp4 file ?
this is the command that I would think to work but it does not.
I would appreciate any help, thank you.

    


  • PHP passthru with proper child process closing

    6 juin 2022, par Bluchip Studio

    I am currently using the code below to try and restream a hls live stream via php the reason for this is php is all i have access to on the system i am using i can not use or install anything else and i like to watch my home tv in my current location my hls streams come direct from my own tbs octo encoder at my home so i know thats all good.

    


    my issue is that the stream randomly stops after around 30-50 seconds of playing it can be restarted no problem so i know the reading of the stream is not the issue.

    


    also when i disconnect and stop watching the stream the ffmpeg / streamlink processes do not stop and stay running in the back ground this has led to me getting some rather frustrating emails from the owner of the system i am using

    


    does anyone know if this is the best way to handel this task and how to possibly close the child processes created by passthru ?

    


    PS : I know all caps is not the correct way to code in production but as this is my personal code and it does not effect the way in witch the code is run it makes it so much easier for me to read being dyslexic !

    


    <?php

ini_set('output_buffering', '0');
ini_set('display_errors', 1);
ini_set('display_startup_errors', 1);
error_reporting(E_ALL);

set_time_limit(0);
ob_implicit_flush();

include './core/functions.php';

$PROCESS_URL = 'HTTP STREM URL GOES HERE';
    
$ENCODING_TYPE = 'mpegts';
    
$ENCODING_SETTINGS = 'streamlink '. $PROCESS_URL . ' best -O | '. FFMPEG .
    ' -threads 0' .
    ' -re' .
    ' -probesize 9000000'.
    ' -analyzeduration 9000000'.
    ' -i pipe:0' .
    ' -c:v copy -c:a copy' .
    ' -tune zerolatency' .
    ' -preset ultrafast' .
    ' -fflags +genpts' .
    ' -mpegts_flags initial_discontinuity' .
    ' -f ' . $ENCODING_TYPE . 
    ' pipe:1 2>' . LOG_DIRECTORY . '/' . MD5($PROCESS_URL) . '_ffmpeg.txt';

header('Content-type: application/octet-stream');
header('X-Accel-Buffering: no');

@passthru($ENCODING_SETTINGS);

?>


    


  • ffmpeg Padding & Delay to Audio File Accurately

    14 avril 2022, par Ry-

    Recently I've been doing a personal project which does entail a little bit of
audio handling but I have noticed that the commands that I am using to modify
don't have a 1:1 correlation in the resulting file leading to it being fairly
offbeat (Note that this program is error sensitive).

    


    All I need to do is accurately add Padding to the start of an audio file, or
jumpforward to some point in the song using an Offset/Delay value. The values
are strictly accurate such as 0.13149s however accuracy passed the third radix
is pretty redundant since 'nobody' should be able to notice it.

    


    Here is an example of one issue:

    [Input File Info] // This is a test case/correct values
    Supposed to start at : 0.875
    Originally started at: 1.190
    Offset Value         : -0.315
    Difference           : 1.190 - 0.875 = 0.315


    


        // Audio file offset attempt (FAIL)
    FFMPEG Command:  
        ffmpeg -y -i "..." -ss 0.315 -c copy -map 0 "..."
        
    [Output File Info]
    Start Time Beat         : 0.766 
    Start Time Beat Audacity: 0.766
    Resulting Error         : 0.106


    


    What I want to know is if someone knows a better way to get 1:1 accuracy from
the command or atleast as close to it as possible. I don't often use ffmpeg so
I probably am missing vital information (I did my best googling ok :) but to
this I also wouldn't abstain from using a dedicated audio library for the
language I'm writing the program in (Java).

    


    I probably should mention that I have been using:
    ffmpeg -y -i "..." -af "adelay=DELAY" "..."

to add the padding but I haven't really gotten around to testing audio files
that require this yet so I don't know if its broken/inaccurate.