Recherche avancée

Médias (3)

Mot : - Tags -/plugin

Autres articles (47)

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

  • Gestion générale des documents

    13 mai 2011, par

    MédiaSPIP ne modifie jamais le document original mis en ligne.
    Pour chaque document mis en ligne il effectue deux opérations successives : la création d’une version supplémentaire qui peut être facilement consultée en ligne tout en laissant l’original téléchargeable dans le cas où le document original ne peut être lu dans un navigateur Internet ; la récupération des métadonnées du document original pour illustrer textuellement le fichier ;
    Les tableaux ci-dessous expliquent ce que peut faire MédiaSPIP (...)

  • Des sites réalisés avec MediaSPIP

    2 mai 2011, par

    Cette page présente quelques-uns des sites fonctionnant sous MediaSPIP.
    Vous pouvez bien entendu ajouter le votre grâce au formulaire en bas de page.

Sur d’autres sites (5354)

  • hwcontext_vaapi : remove duplicate formats from sw_format list

    24 juillet 2020, par Haihao Xiang
    hwcontext_vaapi : remove duplicate formats from sw_format list
    

    hwcontext_vaapi maps different VA fourcc to the same pix_fmt for U/V
    plane swap cases, however duplicate formats are not expected in sw_format
    list when merging formats.

    For example :
    ffmpeg -loglevel debug -init_hw_device vaapi -filter_hw_device vaapi0 \
    - f lavfi -i smptebars -vf \
    "hwupload=derive_device=vaapi,scale_vaapi,hwdownload,format=yuv420p" \
    - vframes 1 -f null -

    Without this fix, an auto scaler is required for the above command
    Duplicate formats in ff_merge_formats detected
    [auto_scaler_0 @ 0x560df58f4550] Setting 'flags' to value 'bicubic'
    [auto_scaler_0 @ 0x560df58f4550] w:iw h:ih flags :'bicubic' interl:0
    [Parsed_hwupload_0 @ 0x560df58f0ec0] auto-inserting filter
    'auto_scaler_0' between the filter 'graph 0 input from stream 0:0' and
    the filter 'Parsed_hwupload_0'

    Signed-off-by : Haihao Xiang <haihao.xiang@intel.com>

    • [DH] libavutil/hwcontext_vaapi.c
  • Video overlay of several network inputs using ffmpeg

    1er juin 2018, par Hristo Ivanov

    I am writing my first program using the FFMPEG libraries, unfortunately it’s not a simple one.

    What I need is to :

    • capture several network inputs(udp).
    • demux the inputs.
    • overlay the video streams.
    • mix the audio(or some other logic).
    • encode the resulting streams.
    • remux the streams and write the result to file.

    For now I am playing with the ffmpeg.exe tool trying achieve this functionality. The command I have looks like this :

    .\ffmpeg.exe -threads auto -y -i input0 -i input1 \
       -filter_complex "[0:v]scale=1920x1080[v0];[1:v]scale=480x270[v1];[v0][v1]overlay=1440:810[v2]" \
       -map [v2] -map 0:a -c:v libx264 -preset ultrafast -c:a copy output.mp4

    When input0 and input1 are files the resulting output is correct, on the other hand, when the inputs are udp streams the resulting output is not correct, the video freezes most of the time.

    The file inputs are generated from the udp streams, using the following command :

    .\ffmpeg.exe -threads auto -y -i "udp://@ip:port" -c copy -f mpegts input1.mpg

    Question 1.
    Why is the above command not producing good ouput for udp streams ? What are the differences between the original stream and the dump of that stream for ffmpeg.exe.

    Question 2.
    Is there some argument/s that can fix the command ?

    Question 3.
    What kind of logic/algorithm is needed to correctly overlay two network streams.

  • FFMPEG muxing overhead unknown creating HLS Live stream from mp4 files

    9 juillet 2021, par user72261

    I am using FFMPEG Concatenate to combine a number of mp4 files into a live HLS stream after around 40 seconds FFMPEG stops with error.

    &#xA;

    I am working in PHP launching the FFMPEG command from there using exec as this project relies on users input from there own control panels.

    &#xA;

    This is the error i am getting.

    &#xA;

    ffmpeg version N-57204-gc7c138e411-static https://johnvansickle.com/ffmpeg/  Copyright (c) 2000-2021 the FFmpeg developers&#xA;  built with gcc 8 (Debian 8.3.0-6)&#xA;  configuration: --enable-gpl --enable-version3 --enable-static --disable-debug --disable-ffplay --disable-indev=sndio --disable-outdev=sndio --cc=gcc --enable-fontconfig --enable-frei0r --enable-gnutls --enable-gmp --enable-libgme --enable-gray --enable-libaom --enable-libfribidi --enable-libass --enable-libvmaf --enable-libfreetype --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-librubberband --enable-libsoxr --enable-libspeex --enable-libsrt --enable-libvorbis --enable-libopus --enable-libtheora --enable-libvidstab --enable-libvo-amrwbenc --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxml2 --enable-libdav1d --enable-libxvid --enable-libzvbi --enable-libzimg&#xA;  libavutil      57.  0.100 / 57.  0.100&#xA;  libavcodec     59.  0.100 / 59.  0.100&#xA;  libavformat    59.  0.100 / 59.  0.100&#xA;  libavdevice    59.  0.100 / 59.  0.100&#xA;  libavfilter     8.  0.101 /  8.  0.101&#xA;  libswscale      6.  0.100 /  6.  0.100&#xA;  libswresample   4.  0.100 /  4.  0.100&#xA;  libpostproc    56.  0.100 / 56.  0.100&#xA;[mov,mp4,m4a,3gp,3g2,mj2 @ 0x72fdcc0] Auto-inserting h264_mp4toannexb bitstream filter&#xA;Input #0, concat, from &#x27;/storage/($username)/hls/playlist.txt&#x27;:&#xA;  Duration: N/A, start: 0.000000, bitrate: 1404 kb/s&#xA;  Stream #0:0(und): Video: h264 (Main) (avc3 / 0x33637661), yuv420p, 960x540 [SAR 1:1 DAR 16:9], 1183 kb/s, 25 fps, 25 tbr, 180k tbn&#xA;    Metadata:&#xA;      handler_name    : Edgeware Video Media Handler&#xA;      vendor_id       : [0][0][0][0]&#xA;  Stream #0:1(swe): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 221 kb/s&#xA;    Metadata:&#xA;      handler_name    : Edgeware Audio Media Handler&#xA;      vendor_id       : [0][0][0][0]&#xA;Output #0, hls, to &#x27;/storage/($username)/hls/playlist.m3u8&#x27;:&#xA;  Metadata:&#xA;    encoder         : Lavf59.0.100&#xA;  Stream #0:0(und): Video: h264 (Main) (avc3 / 0x33637661), yuv420p, 960x540 [SAR 1:1 DAR 16:9], q=2-31, 1183 kb/s, 25 fps, 25 tbr, 90k tbn&#xA;    Metadata:&#xA;      handler_name    : Edgeware Video Media Handler&#xA;      vendor_id       : [0][0][0][0]&#xA;  Stream #0:1(swe): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 221 kb/s&#xA;    Metadata:&#xA;      handler_name    : Edgeware Audio Media Handler&#xA;      vendor_id       : [0][0][0][0]&#xA;Stream mapping:&#xA;  Stream #0:0 -> #0:0 (copy)&#xA;  Stream #0:1 -> #0:1 (copy)&#xA;Press [q] to stop, [?] for help&#xA;frame=    1 fps=0.0 q=-1.0 size=N/A time=00:00:00.00 bitrate=N/A speed=   0x    &#xA;[mov,mp4,m4a,3gp,3g2,mj2 @ 0x7314640] Auto-inserting h264_mp4toannexb bitstream filter&#xA;[hls @ 0x7303800] Opening &#x27;/storage/($username)/hls/69426_0.ts&#x27; for writing&#xA;[hls @ 0x7303800] Opening &#x27;/storage/($username)/hls/playlist.m3u8.tmp&#x27; for writing&#xA;[mov,mp4,m4a,3gp,3g2,mj2 @ 0x7300740] Auto-inserting h264_mp4toannexb bitstream filter&#xA;[hls @ 0x7303800] Opening &#x27;/storage/($username)/hls/69426_1.ts&#x27; for writing&#xA;[hls @ 0x7303800] Opening &#x27;/storage/($username)/hls/playlist.m3u8.tmp&#x27; for writing&#xA;[mov,mp4,m4a,3gp,3g2,mj2 @ 0x7313e40] Auto-inserting h264_mp4toannexb bitstream filter&#xA;[hls @ 0x7303800] Opening &#x27;/storage/($username)/hls/69426_2.ts&#x27; for writing&#xA;[hls @ 0x7303800] Opening &#x27;/storage/($username)/hls/playlist.m3u8.tmp&#x27; for writing&#xA;[mov,mp4,m4a,3gp,3g2,mj2 @ 0x7313e40] Auto-inserting h264_mp4toannexb bitstream filter&#xA;[hls @ 0x7303800] Opening &#x27;/storage/($username)/hls/69426_3.ts&#x27; for writing&#xA;[hls @ 0x7303800] Opening &#x27;/storage/($username)/hls/playlist.m3u8.tmp&#x27; for writing&#xA;[mov,mp4,m4a,3gp,3g2,mj2 @ 0x7313e40] Auto-inserting h264_mp4toannexb bitstream filter&#xA;[hls @ 0x7303800] Opening &#x27;/storage/($username)/hls/69426_4.ts&#x27; for writing&#xA;[hls @ 0x7303800] Opening &#x27;/storage/($username)/hls/playlist.m3u8.tmp&#x27; for writing&#xA;[mov,mp4,m4a,3gp,3g2,mj2 @ 0x7313e40] Auto-inserting h264_mp4toannexb bitstream filter&#xA;[hls @ 0x7303800] Opening &#x27;/storage/($username)/hls/69426_5.ts&#x27; for writing&#xA;[hls @ 0x7303800] Opening &#x27;/storage/($username)/hls/playlist.m3u8.tmp&#x27; for writing&#xA;[mov,mp4,m4a,3gp,3g2,mj2 @ 0x7313e40] Auto-inserting h264_mp4toannexb bitstream filter&#xA;[hls @ 0x7303800] Opening &#x27;/storage/($username)/hls/69426_6.ts&#x27; for writing&#xA;[hls @ 0x7303800] Opening &#x27;/storage/($username)/hls/playlist.m3u8.tmp&#x27; for writing&#xA;[mov,mp4,m4a,3gp,3g2,mj2 @ 0x7313e40] Auto-inserting h264_mp4toannexb bitstream filter&#xA;[hls @ 0x7303800] Opening &#x27;/storage/($username)/hls/69426_7.ts&#x27; for writing&#xA;[hls @ 0x7303800] Opening &#x27;/storage/($username)/hls/playlist.m3u8.tmp&#x27; for writing&#xA;[hls @ 0x7303800] Opening &#x27;/storage/($username)/hls/69426_8.ts&#x27; for writing&#xA;[hls @ 0x7303800] Opening &#x27;/storage/($username)/hls/playlist.m3u8.tmp&#x27; for writing&#xA;[hls @ 0x7303800] Opening &#x27;/storage/($username)/hls/69426_9.ts&#x27; for writing&#xA;[hls @ 0x7303800] Opening &#x27;/storage/($username)/hls/playlist.m3u8.tmp&#x27; for writing&#xA;frame=  900 fps=0.0 q=-1.0 Lsize=N/A time=00:00:36.03 bitrate=N/A speed= 268x    &#xA;video:7232kB audio:973kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown&#xA;

    &#xA;

    This is the FFMPEG command i am running

    &#xA;

    exec(&#x27;ffmpeg -y -nostdin -hide_banner -re -f concat -safe 0 -i "&#x27; . $CONCAT_FILE . &#x27;" -c copy -f hls -start_number 0 -hls_init_time 4 -hls_time 4 -hls_list_size 8 -hls_segment_type mpegts -hls_allow_cache 0 -hls_flags delete_segments&#x2B;discont_start -hls_segment_filename "&#x27; . $SEGMENT_FORMAT . &#x27;" "&#x27; . $PLAYLIST_NAME . &#x27;" );&#xA;

    &#xA;

    All mp4 files are encoded to h264 with the same specifications and if the video has audio it is encoded to aac.

    &#xA;

    I am also using the latest version of the FFMPEG binary for linux.

    &#xA;

    Has anyone else faced this issue ?

    &#xA;