
Recherche avancée
Médias (3)
-
GetID3 - Bloc informations de fichiers
9 avril 2013, par
Mis à jour : Mai 2013
Langue : français
Type : Image
-
GetID3 - Boutons supplémentaires
9 avril 2013, par
Mis à jour : Avril 2013
Langue : français
Type : Image
-
Collections - Formulaire de création rapide
19 février 2013, par
Mis à jour : Février 2013
Langue : français
Type : Image
Autres articles (47)
-
Keeping control of your media in your hands
13 avril 2011, parThe 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, parMé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, parCette 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 Xianghwcontext_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>
-
Video overlay of several network inputs using ffmpeg
1er juin 2018, par Hristo IvanovI 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.mp4When
input0
andinput1
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 forffmpeg.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 user72261I am using FFMPEG Concatenate to combine a number of mp4 files into a live HLS stream after around 40 seconds FFMPEG stops with error.


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.


This is the error i am getting.


ffmpeg version N-57204-gc7c138e411-static https://johnvansickle.com/ffmpeg/ Copyright (c) 2000-2021 the FFmpeg developers
 built with gcc 8 (Debian 8.3.0-6)
 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
 libavutil 57. 0.100 / 57. 0.100
 libavcodec 59. 0.100 / 59. 0.100
 libavformat 59. 0.100 / 59. 0.100
 libavdevice 59. 0.100 / 59. 0.100
 libavfilter 8. 0.101 / 8. 0.101
 libswscale 6. 0.100 / 6. 0.100
 libswresample 4. 0.100 / 4. 0.100
 libpostproc 56. 0.100 / 56. 0.100
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x72fdcc0] Auto-inserting h264_mp4toannexb bitstream filter
Input #0, concat, from '/storage/($username)/hls/playlist.txt':
 Duration: N/A, start: 0.000000, bitrate: 1404 kb/s
 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
 Metadata:
 handler_name : Edgeware Video Media Handler
 vendor_id : [0][0][0][0]
 Stream #0:1(swe): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 221 kb/s
 Metadata:
 handler_name : Edgeware Audio Media Handler
 vendor_id : [0][0][0][0]
Output #0, hls, to '/storage/($username)/hls/playlist.m3u8':
 Metadata:
 encoder : Lavf59.0.100
 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
 Metadata:
 handler_name : Edgeware Video Media Handler
 vendor_id : [0][0][0][0]
 Stream #0:1(swe): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 221 kb/s
 Metadata:
 handler_name : Edgeware Audio Media Handler
 vendor_id : [0][0][0][0]
Stream mapping:
 Stream #0:0 -> #0:0 (copy)
 Stream #0:1 -> #0:1 (copy)
Press [q] to stop, [?] for help
frame= 1 fps=0.0 q=-1.0 size=N/A time=00:00:00.00 bitrate=N/A speed= 0x 
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x7314640] Auto-inserting h264_mp4toannexb bitstream filter
[hls @ 0x7303800] Opening '/storage/($username)/hls/69426_0.ts' for writing
[hls @ 0x7303800] Opening '/storage/($username)/hls/playlist.m3u8.tmp' for writing
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x7300740] Auto-inserting h264_mp4toannexb bitstream filter
[hls @ 0x7303800] Opening '/storage/($username)/hls/69426_1.ts' for writing
[hls @ 0x7303800] Opening '/storage/($username)/hls/playlist.m3u8.tmp' for writing
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x7313e40] Auto-inserting h264_mp4toannexb bitstream filter
[hls @ 0x7303800] Opening '/storage/($username)/hls/69426_2.ts' for writing
[hls @ 0x7303800] Opening '/storage/($username)/hls/playlist.m3u8.tmp' for writing
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x7313e40] Auto-inserting h264_mp4toannexb bitstream filter
[hls @ 0x7303800] Opening '/storage/($username)/hls/69426_3.ts' for writing
[hls @ 0x7303800] Opening '/storage/($username)/hls/playlist.m3u8.tmp' for writing
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x7313e40] Auto-inserting h264_mp4toannexb bitstream filter
[hls @ 0x7303800] Opening '/storage/($username)/hls/69426_4.ts' for writing
[hls @ 0x7303800] Opening '/storage/($username)/hls/playlist.m3u8.tmp' for writing
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x7313e40] Auto-inserting h264_mp4toannexb bitstream filter
[hls @ 0x7303800] Opening '/storage/($username)/hls/69426_5.ts' for writing
[hls @ 0x7303800] Opening '/storage/($username)/hls/playlist.m3u8.tmp' for writing
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x7313e40] Auto-inserting h264_mp4toannexb bitstream filter
[hls @ 0x7303800] Opening '/storage/($username)/hls/69426_6.ts' for writing
[hls @ 0x7303800] Opening '/storage/($username)/hls/playlist.m3u8.tmp' for writing
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x7313e40] Auto-inserting h264_mp4toannexb bitstream filter
[hls @ 0x7303800] Opening '/storage/($username)/hls/69426_7.ts' for writing
[hls @ 0x7303800] Opening '/storage/($username)/hls/playlist.m3u8.tmp' for writing
[hls @ 0x7303800] Opening '/storage/($username)/hls/69426_8.ts' for writing
[hls @ 0x7303800] Opening '/storage/($username)/hls/playlist.m3u8.tmp' for writing
[hls @ 0x7303800] Opening '/storage/($username)/hls/69426_9.ts' for writing
[hls @ 0x7303800] Opening '/storage/($username)/hls/playlist.m3u8.tmp' for writing
frame= 900 fps=0.0 q=-1.0 Lsize=N/A time=00:00:36.03 bitrate=N/A speed= 268x 
video:7232kB audio:973kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown



This is the FFMPEG command i am running


exec('ffmpeg -y -nostdin -hide_banner -re -f concat -safe 0 -i "' . $CONCAT_FILE . '" -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+discont_start -hls_segment_filename "' . $SEGMENT_FORMAT . '" "' . $PLAYLIST_NAME . '" );



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


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


Has anyone else faced this issue ?