Recherche avancée

Médias (2)

Mot : - Tags -/plugins

Autres articles (62)

  • Le profil des utilisateurs

    12 avril 2011, par

    Chaque utilisateur dispose d’une page de profil lui permettant de modifier ses informations personnelle. Dans le menu de haut de page par défaut, un élément de menu est automatiquement créé à l’initialisation de MediaSPIP, visible uniquement si le visiteur est identifié sur le site.
    L’utilisateur a accès à la modification de profil depuis sa page auteur, un lien dans la navigation "Modifier votre profil" est (...)

  • Configurer la prise en compte des langues

    15 novembre 2010, par

    Accéder à la configuration et ajouter des langues prises en compte
    Afin de configurer la prise en compte de nouvelles langues, il est nécessaire de se rendre dans la partie "Administrer" du site.
    De là, dans le menu de navigation, vous pouvez accéder à une partie "Gestion des langues" permettant d’activer la prise en compte de nouvelles langues.
    Chaque nouvelle langue ajoutée reste désactivable tant qu’aucun objet n’est créé dans cette langue. Dans ce cas, elle devient grisée dans la configuration et (...)

  • Sélection de projets utilisant MediaSPIP

    29 avril 2011, par

    Les exemples cités ci-dessous sont des éléments représentatifs d’usages spécifiques de MediaSPIP pour certains projets.
    Vous pensez avoir un site "remarquable" réalisé avec MediaSPIP ? Faites le nous savoir ici.
    Ferme MediaSPIP @ Infini
    L’Association Infini développe des activités d’accueil, de point d’accès internet, de formation, de conduite de projets innovants dans le domaine des Technologies de l’Information et de la Communication, et l’hébergement de sites. Elle joue en la matière un rôle unique (...)

Sur d’autres sites (6767)

  • Local file creation of ffmpeg hls http stream

    10 juillet 2018, par Emilian

    After researching all the options for ffmpeg hls streaming and setting it up for uploading to a http server i encountered a problem, ffmpeg also creates local files for the segment/playlist in the current working directory.

    What im trying to achieve is upload to a server and serve the segments and playlist from memory and not from disk. Tried setting a http url for segments like this :

    ffmpeg -re -i filter_test.ts -f hls -hls_segment_filename http://localhost:3000/segment/playlist_%03d.ts -method PUT http://localhost:3000/segment/playlist.m3u8

    but that also didnt work.

    Is there any way to stop ffmpeg from creating local files for the hls stream and only upload them to the server ?

    In the logs it says

    [hls @ 00000274041104e0] Opening 'http://localhost:3000/segment/playlist_000.ts' for writing
    [http @ 00000274046a2fa0] request: POST /segment/playlist_000.ts HTTP/1.1

    but nothing about writing it to a file.

  • Transcode each stream in a different thread with ffmpeg

    30 mai 2018, par hedgar2017

    Is there a way of forcing ffmpeg to encode each audio stream in a different thread ?

    ffmpeg
       -i audio1.ac3 -c:a libopus
       -i audio2.ac3 -c:a libopus
       -i audio3.ac3 -c:a libopus
       output.mkv

    I mean only ffmpeg’s own instruments, without multiple processes and other OS features.

    Normally, there is only one core saturated, so encoding a file with many audio streams is very long.

    Exact command :

    ffmpeg -loglevel verbose
       -i 'Ярость (Fury).mkv'
       -i 'Fury (2014) [Ukr & Eng, Sub Eng] BDRip-AVC [Hurtom & HELLYWOOD].mkv'
       -threads 0 -max_muxing_queue_size 65536 -avoid_negative_ts 1 -metadata title=2014.Fury.BDRip.HEVC.1080p
       -map 0:0 -c:v copy -metadata:s:v:0 title=2014.Fury.BDRip.HEVC.1080p -disposition:v:0 +defaug-[forced
       -map 0:2 -c:a libopus -application audio -vbr on -packet_loss 0 -frame_duration 20 -mapping_family 255 -compression_level 10 -metadata:s:a:0 language=eng -metadata:s:a:0 title=Original -disposition:a:0 +defaug-[forced
       -map 1:1 -c:a libopus -application audio -vbr on -packet_loss 0 -frame_duration 20 -mapping_family 255 -compression_level 10 -metadata:s:a:1 language=ukr -disposition:a:1 -default-forced
       -map 0:1 -c:a libopus -application audio -vbr on -packet_loss 0 -frame_duration 20 -mapping_family 255 -compression_level 10 -metadata:s:a:2 language=rus -metadata:s:a:2 title=Dub -disposition:a:2 -default-forced
       -map 0:10 -c:s copy -metadata:s:s:0 language=eng -metadata:s:s:0 title=Original -disposition:s:0 -default-forced
       -f matroska ./2014.Fury.BDRip.HEVC.1080p.mkv

    Log :

    ... inputs ...
    Stream mapping:
     Stream #0:0 -> #0:0 (copy)
     Stream #0:2 -> #0:1 (dts (dca) -> opus (libopus))
     Stream #1:1 -> #0:2 (ac3 (native) -> opus (libopus))
     Stream #0:1 -> #0:3 (ac3 (native) -> opus (libopus))
     Stream #0:10 -> #0:4 (copy)
    Press [q] to stop, [?] for help
    [graph_2_in_0_1 @ 0000019ca2cb29c0] tb:1/48000 samplefmt:fltp samplerate:48000 chlayout:0x60f
    [format_out_0_3 @ 0000019ca2cb20c0] auto-inserting filter 'auto_resampler_0' between the filter 'Parsed_anull_0' and the filter 'format_out_0_3'
    [auto_resampler_0 @ 0000019ca2cb27c0] ch:6 chl:5.1(side) fmt:fltp r:48000Hz -> ch:6 chl:5.1(side) fmt:flt r:48000Hz
    [libopus @ 0000019ca2c9f3c0] No bit rate set. Defaulting to 384000 bps.
    [graph_0_in_0_2 @ 0000019ca2cb1ac0] tb:1/48000 samplefmt:fltp samplerate:48000 chlayout:0x60f
    [format_out_0_1 @ 0000019ca2cb1bc0] auto-inserting filter 'auto_resampler_0' between the filter 'Parsed_anull_0' and the filter 'format_out_0_1'
    [auto_resampler_0 @ 0000019ca2cb14c0] ch:6 chl:5.1(side) fmt:fltp r:48000Hz -> ch:6 chl:5.1(side) fmt:flt r:48000Hz
    [libopus @ 0000019ca292c980] No bit rate set. Defaulting to 384000 bps.
    [graph_1_in_1_1 @ 0000019ca2cb2bc0] tb:1/48000 samplefmt:fltp samplerate:48000 chlayout:0x60f
    [format_out_0_2 @ 0000019ca2cb26c0] auto-inserting filter 'auto_resampler_0' between the filter 'Parsed_anull_0' and the filter 'format_out_0_2'
    [auto_resampler_0 @ 0000019ca2cb0dc0] ch:6 chl:5.1(side) fmt:fltp r:48000Hz -> ch:6 chl:5.1(side) fmt:flt r:48000Hz
    [libopus @ 0000019ca292e980] No bit rate set. Defaulting to 384000 bps.
    Output #0, matroska, to './2014.Fury.BDRip.HEVC.1080p.mkv':
     Metadata:
       DATE_RELEASED   : 2014
       title           : 2014.Fury.BDRip.HEVC.1080p
       Released by     : Buba5473 for NNM-Club
       Copyright       : Encoded by Goor80
       encoder         : Lavf58.12.100
       Chapter #0:0: start 0.000000, end 478.228000
       Metadata:
         title           : Chapter 01
       ... chapters ...
       Stream #0:0: Video: hevc (Main 10), 1 reference frame, yuv420p10le(tv), 1920x800 (0x0) [SAR 1:1 DAR 12:5], q=2-31, 23.98 fps, 23.98 tbr, 1k tbn, 1k tbc (default)
       Stream #0:1(eng): Audio: opus (libopus) ([255][255][255][255] / 0xFFFFFFFF), 48000 Hz, 5.1(side), flt, delay 312, 384 kb/s (default)
       Stream #0:2(ukr): Audio: opus (libopus) ([255][255][255][255] / 0xFFFFFFFF), 48000 Hz, 5.1(side), flt, delay 312, 384 kb/s
       Stream #0:3(rus): Audio: opus (libopus) ([255][255][255][255] / 0xFFFFFFFF), 48000 Hz, 5.1(side), flt, delay 312, 384 kb/s
       Stream #0:4(eng): Subtitle: subrip
    [matroska @ 0000019ca2d17f00] Starting new cluster due to timestamp=6175.5kbits/s speed=10.2x
    [matroska @ 0000019ca2d17f00] Starting new cluster due to timestamp=7530.8kbits/s speed=8.74x
    [matroska @ 0000019ca2d17f00] Starting new cluster due to timestamp=7955.1kbits/s speed=9.02x
    frame=156607 fps=205 q=-1.0 size= 8321971kB time=01:48:51.85 bitrate=10437.1kbits/s speed=8.55x
    ... not finished yet ...

    fps is always around 3000/number_of_audio_channels, meaning all audio transcoding is done with the only thread.

  • Run ffmpeg as window service

    7 juin 2018, par Brad Reiter

    My setup is like this :

    It contains components :

    • Web Cam : which send out the RTP packets when i get a stream request
    • Agent server : Which receives the stream from the Webcam and forwards
      the same to ffmpeg server.
    • ffmpeg server : this where i need to run the ffmpeg as window service,
      receives the rtp stream sent by agent server and create a ts file.

    What have i done is :

    I have setup the ffmpeg in one of my dev environment using this link :

    https://video.stackexchange.com/questions/20495/how-do-i-set-up-and-use-ffmpeg-in-windows

    My problems :

    • How to make ffmpeg run as daemon.?
    • How can i make ffmpeg aware that new stream is coming from agent
      server and start creating a ts file.?
    • Is there a way in ffmpeg that i reserve ports for ffmpeg and make it
      listen to all the ports for eg : reserve 2000 - 3000 ports and listen
      to them as soon as rtp stream arrives, convert to ts stream.

    Regards