Recherche avancée

Médias (0)

Mot : - Tags -/metadatas

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

Autres articles (50)

  • Publier sur MédiaSpip

    13 juin 2013

    Puis-je poster des contenus à partir d’une tablette Ipad ?
    Oui, si votre Médiaspip installé est à la version 0.2 ou supérieure. Contacter au besoin l’administrateur de votre MédiaSpip pour le savoir

  • Contribute to documentation

    13 avril 2011

    Documentation is vital to the development of improved technical capabilities.
    MediaSPIP welcomes documentation by users as well as developers - including : critique of existing features and functions articles contributed by developers, administrators, content producers and editors screenshots to illustrate the above translations of existing documentation into other languages
    To contribute, register to the project users’ mailing (...)

  • Ajouter notes et légendes aux images

    7 février 2011, par

    Pour pouvoir ajouter notes et légendes aux images, la première étape est d’installer le plugin "Légendes".
    Une fois le plugin activé, vous pouvez le configurer dans l’espace de configuration afin de modifier les droits de création / modification et de suppression des notes. Par défaut seuls les administrateurs du site peuvent ajouter des notes aux images.
    Modification lors de l’ajout d’un média
    Lors de l’ajout d’un média de type "image" un nouveau bouton apparait au dessus de la prévisualisation (...)

Sur d’autres sites (7285)

  • Why FFmpeg is consuming more and more bandwith when restreaming a YouTube HLS stream ?

    3 janvier 2023, par NiHuShu

    I've been creating a bot in Python which allows to copy one YouTube livestream and stream it to another channel using the HLS protocol.

    


    This is the command I'm using in Python to start the FFmpeg process :

    


    m3u8_url = streamlink.streams(stream_url)['1080p'].url
ffmpeg_process = Popen(
    ["ffmpeg", "-i", m3u8_url, "-c", "copy","-ignore_io_errors", "1", "-f", "hls", "-http_persistent", "1", '-attempt_recovery', '1',
    '-method', 'POST', '-hls_time', '1', '-hls_playlist_type', 'event', '-g', '5', '-reconnect_at_eof', '1',
    'https://a.upload.youtube.com/http_upload_hls?cid=' + stream_key + '&copy=0&file=stream.m3u8'])


    


    I'm using streamlink to extract the 1080p m3u8 playlist of a given livestream and then using "-c", "copy"I'm just passing the raw HLS stream back to YouTube servers.

    


    The problem is that at first FFmpeg is using around 1.5 Mbps for both upload and download, but as the stream progresses the used bandwidth per second grows substantially. After 5 hours FFmpeg uses 5 Mbps of upload and about half of that in download, but it just keeps on growing. It's gotten to a point where my VPS was blocked as after a few days it was using > 1500 Mbps of bandwidth (with 10 active streams).

    


    The only thing that comes to my mind is that for some reason with every .ts segment, FFmpeg is trying to send all the previous ones as well. It might be worth mentioning that YouTube Studio is complaining that the incoming stream bandwith is too low and it should be 4.5 Mbps.

    


    I've tried changing the "-method" from PUT to POST, which helped reducing the download bandwidth, but didn't change anything in regards to upload.

    


  • FFmpeg script for linux and windows batch video encode different settings depending on video resolution [closed]

    28 décembre 2022, par Jaroslav Havel

    I'm looking for advice, help. I would like to convert all home videos to H265 using ffmpeg. Videos are in different formats and resolutions (3GP, mov, avi, mpg, mp4). I have an idea of which setting to set for which resolution, but I don't know how to write it all into a script (windows and linux). For these resolutions

    


    CRF 18-22 for <= 576p use 20
CRF 19-23 for > 576 and <= 720p use 21
CRF 20-24 for >720 and <= 1080p use 22
CRF 22-28 for >= 2160p 4K use 25


    


    For windows i have

    


    @ECHO OFF

FOR %%F IN ("*.*") DO (
     ffmpeg -i %%F -c:v libx265 -crf 20 -preset faster -profile:v main -pix_fmt yuv420p -acodec libmp3lame -b:a 192k %%~nF_new.mkv
)


    


    Big thanks for the help

    


  • Extracting a bit broken AC3 audio from a video file

    3 janvier 2023, par WYSIWYG

    I Googled for about 2 hours for this problem and I can't seem to find the answer anywhere.

    


    So I have a 1080p video file which has about 2 seconds within it that's broken (at 3 minutes and 53 seconds). I found a way to extract the non-broken parts of it, also I got a replacement for the broken frames from another version of the same video (in 720p), upscaled them to 1080p and replaced them in the 1080p file (reencoding the whole file in the process). Here comes the problematic part - at the same time (3 min 53 sec), the audio is also broken and it's in Dolby Digital 5.1 AC3 format. When I try to extract the audio track from the original 1080p file and place the result in the new fixed version, which contains the upscaled video frames, the audio obviously is cut at the problematic 2 seconds and it desyncs (starts to play earlier) for the rest of the file.

    


    What I want to do and I'm unable to understand how to do it is to extract the AC3 stream in such a way that the 2 broken seconds are filled with silence and the total length of the audio stay the same as the original, so it won't desync. Is this possible and if it is, what is the correct FFMPEG command for it ?

    


    Thank you in advance.

    


    I've tried :

    


    ffmpeg -i broken.mkv -c:a copy audio.ac3

    


    which presented an output AC3 file, which is missing the 2 seconds from 03:53 to 03:55

    


    so when I combine the resulting AC3 file with the repaired video, by using :

    


    ffmpeg -i fixed.mkv -i audio.ac3 -c copy fixed-with-audio.mkv

    


    it is desynced, so at video time 03:53 I hear the audio that should play at 03:55