
Recherche avancée
Médias (1)
-
Richard Stallman et le logiciel libre
19 octobre 2011, par
Mis à jour : Mai 2013
Langue : français
Type : Texte
Autres articles (73)
-
MediaSPIP 0.1 Beta version
25 avril 2011, parMediaSPIP 0.1 beta is the first version of MediaSPIP proclaimed as "usable".
The zip file provided here only contains the sources of MediaSPIP in its standalone version.
To get a working installation, you must manually install all-software dependencies on the server.
If you want to use this archive for an installation in "farm mode", you will also need to proceed to other manual (...) -
MediaSPIP version 0.1 Beta
16 avril 2011, parMediaSPIP 0.1 beta est la première version de MediaSPIP décrétée comme "utilisable".
Le fichier zip ici présent contient uniquement les sources de MediaSPIP en version standalone.
Pour avoir une installation fonctionnelle, il est nécessaire d’installer manuellement l’ensemble des dépendances logicielles sur le serveur.
Si vous souhaitez utiliser cette archive pour une installation en mode ferme, il vous faudra également procéder à d’autres modifications (...) -
Amélioration de la version de base
13 septembre 2013Jolie sélection multiple
Le plugin Chosen permet d’améliorer l’ergonomie des champs de sélection multiple. Voir les deux images suivantes pour comparer.
Il suffit pour cela d’activer le plugin Chosen (Configuration générale du site > Gestion des plugins), puis de configurer le plugin (Les squelettes > Chosen) en activant l’utilisation de Chosen dans le site public et en spécifiant les éléments de formulaires à améliorer, par exemple select[multiple] pour les listes à sélection multiple (...)
Sur d’autres sites (6788)
-
M3u8 with either video or audio
21 février 2023, par undercashI m facing an issue with this link that I can't seem to resolve.


The m3u8 display either the video track or the audio track, but never both, though they exist.


ffmpeg -re -i https://origin2-6play.live.6cloud.fr/pool_u81ytesz/w9/sixplayhde/hls_short_enc_w9/NA/aHEUMcx/index.m3u8
ffmpeg version 4.3.1 Copyright (c) 2000-2020 the FFmpeg developers
built with gcc 9 (Ubuntu 9.3.0-17ubuntu1\~20.04)
configuration: --enable-gpl --enable-version3 --enable-nonfree --enable-postproc --enable-libfdk_aac --enable-libtheora --enable-libvorbis --enable-libmp3lame --enable-libx264 --enable-libx265 --enable-libvpx --enable-librtmp --enable-libass --enable-libfreetype --extra-libs=-ldl --enable-openssl
libavutil 56. 51.100 / 56. 51.100
libavcodec 58. 91.100 / 58. 91.100
libavformat 58. 45.100 / 58. 45.100
libavdevice 58. 10.100 / 58. 10.100
libavfilter 7. 85.100 / 7. 85.100
libswscale 5. 7.100 / 5. 7.100
libswresample 3. 7.100 / 3. 7.100
libpostproc 55. 7.100 / 55. 7.100
\[hls @ 0x562ecf699b40\] Skip ('#EXT-X-VERSION:7')
\[hls @ 0x562ecf699b40\] Skip ('## Just In Time Delivered by Quortex Solution')
\[hls @ 0x562ecf699b40\] Skip ('#EXT-X-DISCONTINUITY-SEQUENCE:0')
\[hls @ 0x562ecf699b40\] Skip ('#EXT-X-PROGRAM-DATE-TIME:2023-02-21T10:14:12.480000Z')
\[hls @ 0x562ecf699b40\] Opening 'https://url/segment_6246422.ts' for reading
Input #0, hls, from 'https://url/index.m3u8':
Duration: N/A, start: 92548.466311, bitrate: N/A
Program 0
Metadata:
variant_bitrate : 0
Stream #0:0: Audio: aac (LC) (\[15\]\[0\]\[0\]\[0\] / 0x000F), 48000 Hz, stereo, fltp
Metadata:
variant_bitrate : 0

ffmpeg -i url.m3u8
ffmpeg version 4.3.1 Copyright (c) 2000-2020 the FFmpeg developers
built with gcc 9 (Ubuntu 9.3.0-17ubuntu1\~20.04)
configuration: --enable-gpl --enable-version3 --enable-nonfree --enable-postproc --enable-libfdk_aac --enable-libtheora --enable-libvorbis --enable-libmp3lame --enable-libx264 --enable-libx265 --enable-libvpx --enable-librtmp --enable-libass --enable-libfreetype --extra-libs=-ldl --enable-openssl
libavutil 56. 51.100 / 56. 51.100
libavcodec 58. 91.100 / 58. 91.100
libavformat 58. 45.100 / 58. 45.100
libavdevice 58. 10.100 / 58. 10.100
libavfilter 7. 85.100 / 7. 85.100
libswscale 5. 7.100 / 5. 7.100
libswresample 3. 7.100 / 3. 7.100
libpostproc 55. 7.100 / 55. 7.100
\[hls @ 0x55806439cc00\] Skip ('#EXT-X-VERSION:7')
\[hls @ 0x55806439cc00\] Skip ('## Just In Time Delivered by Quortex Solution')
\[hls @ 0x55806439cc00\] Skip ('#EXT-X-DISCONTINUITY-SEQUENCE:0')
\[hls @ 0x55806439cc00\] Skip ('#EXT-X-PROGRAM-DATE-TIME:2023-02-21T10:14:00.960000Z')
\[hls @ 0x55806439cc00\] Opening 'url/segment_6246419.ts' for reading
\[hls @ 0x55806439cc00\] Opening 'url.ts' for reading
Input #0, hls, from 'url/index.m3u8':
Duration: N/A, start: 92536.988978, bitrate: N/A
Program 0
Metadata:
variant_bitrate : 0
Stream #0:0: Video: h264 (High) (\[27\]\[0\]\[0\]\[0\] / 0x001B), yuv420p, 1280x720 \[SAR 1:1 DAR 16:9\], 25 fps, 25 tbr, 90k tbn, 50 tbc
Metadata:
variant_bitrate : 0\



I put the same command on 2 different shells and on one I get the audio track, or the video one on the other..


Question : Since I have seen a site properly using this link (I had audio and video on the player) how can I use ffmpeg (or any other program ) to grab both input and output them in a single file ?


I tried to use -analyzeduration 1000M -probesize 1000M in ffmpeg parameters but it doesn't help


-
Converting a spesific audio sream and copy the rest
15 mai 2022, par AreteIs it possible to convert one of the audio tracks in a video file to a different format while copying/remuxing the other audio tracks in the file with FFmpeg ?


More specifically, is it possible to do this without explicitly specify all the audio tracks you want to keep ?


I have tried using the -map function,


ffmpeg -i INPUT -c:v copy -c:a libfdk_aac -map 1:a:2 OUTPUT.mkv



but this only encodes the first audio track and excludes the rest. I know I can probably explicitly tell FFmpeg to mux all the rest of the audio tracks, but this is really tedious. It means I will have to count every audio track and write e considerably longer command.


Is there not a way to tell FFmpeg "convert audio track X and copy the rest" ?


Here is the MediaInfo of the file. Note that there are over 10 audio tracks but I have excluded them in this example to keep it simple.


Video
ID : 4113 (0x1011)
Menu ID : 1 (0x1)
Format : HEVC
Format/Info : High Efficiency Video Coding
Format profile : Main 10@L5.1@High
HDR format : SMPTE ST 2086, HDR10 compatible
Codec ID : 36
Duration : 2 h 30 min
Width : 3 840 pixels
Height : 2 160 pixels
Display aspect ratio : 16:9
Frame rate : 23.976 (24000/1001) FPS
Color space : YUV
Chroma subsampling : 4:2:0 (Type 2)
Bit depth : 10 bits
Color range : Limited
Color primaries : BT.2020
Transfer characteristics : PQ
Matrix coefficients : BT.2020 non-constant
Mastering display color primaries : Display P3
Mastering display luminance : min: 0.0050 cd/m2, max: 4000 cd/m2
Maximum Content Light Level : 349 cd/m2
Maximum Frame-Average Light Level : 86 cd/m2

Audio #1
ID : 4352 (0x1100)
Menu ID : 1 (0x1)
Format : DTS XLL
Format/Info : Digital Theater Systems
Commercial name : DTS-HD Master Audio
Muxing mode : Stream extension
Codec ID : 134
Duration : 2 h 30 min
Bit rate mode : Variable
Channel(s) : 6 channels
Channel layout : C L R Ls Rs LFE
Sampling rate : 48.0 kHz
Frame rate : 93.750 FPS (512 SPF)
Bit depth : 24 bits
Compression mode : Lossless

Audio #2
ID : 4353 (0x1101)
Menu ID : 1 (0x1)
Format : AC-3
Format/Info : Audio Coding 3
Commercial name : Dolby Digital
Codec ID : 129
Duration : 2 h 30 min
Bit rate mode : Constant
Bit rate : 640 kb/s
Channel(s) : 6 channels
Channel layout : L R C LFE Ls Rs
Sampling rate : 48.0 kHz
Frame rate : 31.250 FPS (1536 SPF)
Bit depth : 16 bits
Compression mode : Lossy
Delay relative to video : -9 ms
Stream size : 687 MiB (1%)
Service kind : Complete Main

Audio #3
ID : 4354 (0x1102)
Menu ID : 1 (0x1)
Format : AC-3
Format/Info : Audio Coding 3
Commercial name : Dolby Digital
Codec ID : 129
Duration : 2 h 30 min
Bit rate mode : Constant
Bit rate : 448 kb/s
Channel(s) : 6 channels
Channel layout : L R C LFE Ls Rs
Sampling rate : 48.0 kHz
Frame rate : 31.250 FPS (1536 SPF)
Bit depth : 16 bits
Compression mode : Lossy
Delay relative to video : -9 ms
Stream size : 481 MiB (1%)
Service kind : Complete Main



-
FFmpeg : Looping an video/audio stream to YouTube Live
27 novembre 2020, par ClausI'm using this script to stream a 30s
.mp4
video file with a 2min audio track in.mp3
format :

#! /bin/bash

VBR="1500k"
FPS="30"
QUAL="ultrafast"
YOUTUBE_URL=" rtmp://a.rtmp.youtube.com/live2"
YOUTUBE_KEY="**********"
VIDEO_SOURCE="test_video_4.mp4"
AUDIO_SOURCE="test_audio_3.mp3"
AUDIO_ENCODER="aac"

ffmpeg \
 -stream_loop -1 \
 -re \
 -i "$VIDEO_SOURCE" \
 -thread_queue_size 512 \
 -i "$AUDIO_SOURCE" \
 -c:v libx264 -preset $QUAL -r $FPS -g $(($FPS *2)) -b:v $VBR \
 -c:a $AUDIO_ENCODER -threads 6 -ar 44100 -b:a 128k -bufsize 512k -pix_fmt yuv420p \
 -fflags +shortest -max_interleave_delta 50000 \
 -f flv $YOUTUBE_URL/$YOUTUBE_KEY



Both the audio and the video get played correctly the first time, with the video looping while the audio playback is completed (since it's shorter). The only problem is that the audio loop does not work and as soon the audio completes the first time the stream simply stops.


Here's the log :




ffmpeg version 4.3.1 Copyright (c) 2000-2020 the FFmpeg developers

built with Apple clang version 12.0.0 (clang-1200.0.32.27)

configuration : —prefix=/usr/local/Cellar/ffmpeg/4.3.1_4
—enable-shared —enable-pthreads —enable-version3 —enable-avresample —cc=clang —host-cflags= —host-ldflags= —enable-ffplay —enable-gnutls —enable-gpl —enable-libaom —enable-libbluray —enable-libdav1d —enable-libmp3lame —enable-libopus —enable-librav1e —enable-librubberband —enable-libsnappy —enable-libsrt —enable-libtesseract —enable-libtheora —enable-libvidstab —enable-libvorbis —enable-libvpx —enable-libwebp —enable-libx264 —enable-libx265 —enable-libxml2 —enable-libxvid —enable-lzma —enable-libfontconfig —enable-libfreetype —enable-frei0r —enable-libass —enable-libopencore-amrnb —enable-libopencore-amrwb —enable-libopenjpeg —enable-librtmp —enable-libspeex —enable-libsoxr —enable-videotoolbox —disable-libjack —disable-indev=jack libavutil 56. 51.100 / 56. 51.100 libavcodec 58. 91.100 / 58. 91.100 libavformat 58. 45.100 /
58. 45.100 libavdevice 58. 10.100 / 58. 10.100 libavfilter 7. 85.100 / 7. 85.100 libavresample 4. 0. 0 / 4. 0. 0 libswscale 5. 7.100 / 5. 7.100 libswresample 3. 7.100 /
3. 7.100 libpostproc 55. 7.100 / 55. 7.100 Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'test_video_4.mp4' : Metadata :
major_brand : mp42
minor_version : 1
compatible_brands : isommp41mp42
creation_time : 2020-11-27T18:38:02.000000Z Duration : 00:00:39.46, start : 0.000000, bitrate : 12081 kb/s
Stream #0:0(und) : Video : h264 (High) (avc1 / 0x31637661), yuv420p(tv, bt709, progressive), 1280x720 [SAR 1:1 DAR 16:9], 12033
kb/s, 23.98 fps, 23.98 tbr, 24k tbn, 48k tbc (default)
Metadata :
creation_time : 2020-11-27T18:38:02.000000Z
handler_name : Core Media Video Input #1, mp3, from 'test_audio_3.mp3' : Metadata :
genre : Cinematic
album : YouTube Audio Library
title : Test Title
artist : Test Artist Duration : 00:02:12.21, start : 0.025057, bitrate : 320 kb/s
Stream #1:0 : Audio : mp3, 44100 Hz, stereo, fltp, 320 kb/s
Metadata :
encoder : LAME3.99r Stream mapping : Stream #0:0 -> #0:0 (h264 (native) -> h264 (libx264)) Stream #1:0 -> #0:1 (mp3 (mp3float) -> aac (native)) Press [q] to stop, [?] for help [libx264 @
0x7fa825031600] VBV maxrate unspecified, assuming CBR [libx264 @
0x7fa825031600] using SAR=1/1 [libx264 @ 0x7fa825031600] using cpu
capabilities : MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2 [libx264 @
0x7fa825031600] profile Constrained Baseline, level 3.1, 4:2:0, 8-bit
[libx264 @ 0x7fa825031600] 264 - core 161 r3027 4121277 - H.264/MPEG-4
AVC codec - Copyleft 2003-2020 - http://www.videolan.org/x264.html -
options : cabac=0 ref=1 deblock=0:0:0 analyse=0:0 me=dia subme=0 psy=1
psy_rd=1.00:0.00 mixed_ref=0 me_range=16 chroma_me=1 trellis=0
8x8dct=0 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=0
threads=6 lookahead_threads=1 sliced_threads=0 nr=0 decimate=1
interlaced=0 bluray_compat=0 constrained_intra=0 bframes=0 weightp=0
keyint=60 keyint_min=6 scenecut=0 intra_refresh=0 rc_lookahead=0
rc=cbr mbtree=0 bitrate=1500 ratetol=1.0 qcomp=0.60 qpmin=0 qpmax=69
qpstep=4 vbv_maxrate=1500 vbv_bufsize=512 nal_hrd=none filler=0
ip_ratio=1.40 aq=0 Output #0, flv, to
'rtmp ://a.rtmp.youtube.com/live2/*****' :

Metadata :
major_brand : mp42
minor_version : 1
compatible_brands : isommp41mp42
encoder : Lavf58.45.100
Stream #0:0(und) : Video : h264 (libx264) ([7][0][0][0] / 0x0007), yuv420p(progressive), 1280x720 [SAR 1:1 DAR 16:9], q=-1—1, 1500 kb/s,
30 fps, 1k tbn, 30 tbc (default)
Metadata :
creation_time : 2020-11-27T18:38:02.000000Z
handler_name : Core Media Video
encoder : Lavc58.91.100 libx264
Side data :
cpb : bitrate max/min/avg : 0/0/1500000 buffer size : 512000 vbv_delay : N/A
Stream #0:1 : Audio : aac (LC) ([10][0][0][0] / 0x000A), 44100 Hz, stereo, fltp, 128 kb/s
Metadata :
encoder : Lavc58.91.100 aac Larger timestamp than 24-bit : 0xffff9b44kB time=00:02:37.43 bitrate=1292.6kbits/s
speed=0.995x [flv @ 0x7fa825032800] Failed to update header with
correct duration. [flv @ 0x7fa825032800] Failed to update header with
correct filesize. frame= 3790 fps= 24 q=-1.0 Lsize= 24962kB
time=00:02:38.03 bitrate=1294.0kbits/s speed=0.997x video:22719kB
audio:2081kB subtitle:0kB other streams:0kB global headers:0kB muxing
overhead : 0.656017% [libx264 @ 0x7fa825031600] frame I:64 Avg
QP:36.43 size : 38436 [libx264 @ 0x7fa825031600] frame P:3726 Avg
QP:28.61 size : 5583 [libx264 @ 0x7fa825031600] mb I I16..4 : 100.0%
0.0% 0.0% [libx264 @ 0x7fa825031600] mb P I16..4 : 3.3% 0.0% 0.0% P16..4 : 13.6% 0.0% 0.0% 0.0% 0.0% skip:83.1% [libx264 @
0x7fa825031600] coded y,uvDC,uvAC intra : 57.8% 71.6% 47.8% inter : 6.0%
7.1% 2.1% [libx264 @ 0x7fa825031600] i16 v,h,dc,p : 21% 39% 23% 18% [libx264 @ 0x7fa825031600] i8c dc,h,v,p : 36% 38% 16% 10% [libx264 @
0x7fa825031600] kb/s:1177.39 [aac @ 0x7fa82502d800] Qavg : 179.328
Exiting normally, received signal 2.