Recherche avancée

Médias (0)

Mot : - Tags -/médias

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

Autres articles (47)

Sur d’autres sites (8267)

  • FFMPEG UDP to DASH I am wondering if it could be written more efficiently ?

    18 mars 2019, par c7borg

    I have the below working but it is quite cpu intensive I’ve just moved to ffmpeg 3.4 and was wondering if it could be written more efficently ?

    The below takes a multicast stream from our local LAN avoids the choppy footage by using the scenecut then adjusts the audio with the async to keep it in time and uses the yadif to deinterlace to provide better quality. This command/script also trims the maximum number of segments otherwise with a live stream it would fill up the directory.

    If anyone has any improvements I’d much appreciate it

    I also add subtitles using -filter_complex "[0:v][0:s]overlay" but this conflicts with the -vf yadif option.

    ffmpeg -i \
    "udp://@239.192.4.5:1234?overrun_nonfatal=1&fifo_size=50000000" \
    -acodec aac -strict -2 -vcodec libx264 \
    -vf yadif \
    -af aresample=async=1 \
    -x264opts 'keyint=25:scenecut=-1' \
    -window_size 10 -extra_window_size 10 \
    -f dash /var/www/html/stream/out.mpd

    If it can’t be written more efficiently at least this may help others as it took me a long time to get this far. For reference I use shaka player in chromium for the client side

  • lavf/matroska : Add functions for WebM DASH Manifest

    7 juillet 2014, par Vignesh Venkatasubramanian
    lavf/matroska : Add functions for WebM DASH Manifest
    

    Add functions and logic to matroskadec for use by the WebM DASH Manifest
    XML Muxer. The actual muxer is added in a future patch.

    Signed-off-by : Vignesh Venkatasubramanian <vigneshv@google.com>
    Signed-off-by : Michael Niedermayer <michaelni@gmx.at>

    • [DH] libavformat/matroska.h
    • [DH] libavformat/matroskadec.c
  • FFMPEG || NGINX RTMP server not naming MPEG DASH chunks

    12 avril 2020, par Mathew Knight

    Feel like i'm smashing my head against a brick wall here, i've been tryin to figure thisout for so long....

    &#xA;&#xA;

    Basically i'm trying to send an RTMP stream to my NGINX server running on Ubuntu 18.04, then transcode it to a custom MPEG DASH stream that muxes the stream into 2 streams for audio and video.

    &#xA;&#xA;

    as i need to have the chunks in the same destination folder i need to rename them.

    &#xA;&#xA;

    when i try the following FFMPEG script it just keeps giving me chunks named for example :

    &#xA;&#xA;

    chunk-stream-audio-%05d.webm

    &#xA;&#xA;

    the %05d should be the chunk number running consecutively.

    &#xA;&#xA;

    Running a similar script on my Macbook the chunks generate correctly... is this an error of have i done something wrong here ?

    &#xA;&#xA;

    Here's my FFMPEG script

    &#xA;&#xA;

    exec_push ffmpeg -re -an -i &#x27;rtmp://localhost:1935/live/stream&#x27; -map 0:v:0 -c:v libvpx-vp9 -s 1920x1080 -bufsize 15000k -b:v 15000k -keyint_min 150 -g 150 -tile-columns 4 -frame-parallel 1 -an -f dash -init_seg_name &#x27;init-stream$RepresentationID$_video.webm&#x27; -chunk_start_index 1 -media_seg_name &#x27;chunk-stream$RepresentationID$-video-$Number$.webm&#x27; &#x27;/home/mathewknight/Desktop/test/video.mpd&#x27; -map 0:a:0 -c:a libopus -mapping_family 255 -b:a 1024k -vn -f dash -init_seg_name &#x27;init-stream$RepresentationID$_audio.webm&#x27; -chunk_start_index 1 -media_seg_name &#x27;chunk-stream$RepresentationID$-audio-$Number%05d$.webm&#x27; &#x27;/home/mathewknight/Desktop/test/audio.mpd&#x27;  2>>/var/log/nginx/ffmpeg.log;

    &#xA;