
Recherche avancée
Médias (2)
-
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
Autres articles (71)
-
Organiser par catégorie
17 mai 2013, parDans MédiaSPIP, une rubrique a 2 noms : catégorie et rubrique.
Les différents documents stockés dans MédiaSPIP peuvent être rangés dans différentes catégories. On peut créer une catégorie en cliquant sur "publier une catégorie" dans le menu publier en haut à droite ( après authentification ). Une catégorie peut être rangée dans une autre catégorie aussi ce qui fait qu’on peut construire une arborescence de catégories.
Lors de la publication prochaine d’un document, la nouvelle catégorie créée sera proposée (...) -
Récupération d’informations sur le site maître à l’installation d’une instance
26 novembre 2010, parUtilité
Sur le site principal, une instance de mutualisation est définie par plusieurs choses : Les données dans la table spip_mutus ; Son logo ; Son auteur principal (id_admin dans la table spip_mutus correspondant à un id_auteur de la table spip_auteurs)qui sera le seul à pouvoir créer définitivement l’instance de mutualisation ;
Il peut donc être tout à fait judicieux de vouloir récupérer certaines de ces informations afin de compléter l’installation d’une instance pour, par exemple : récupérer le (...) -
Le plugin : Podcasts.
14 juillet 2010, parLe problème du podcasting est à nouveau un problème révélateur de la normalisation des transports de données sur Internet.
Deux formats intéressants existent : Celui développé par Apple, très axé sur l’utilisation d’iTunes dont la SPEC est ici ; Le format "Media RSS Module" qui est plus "libre" notamment soutenu par Yahoo et le logiciel Miro ;
Types de fichiers supportés dans les flux
Le format d’Apple n’autorise que les formats suivants dans ses flux : .mp3 audio/mpeg .m4a audio/x-m4a .mp4 (...)
Sur d’autres sites (3658)
-
Revision 36038 : Améliorations diverses dont l’encodage
10 mars 2010, par kent1@… — LogAméliorations diverses dont l’encodage
-
FFMPEG - rewarp MPEGDash to MP4 changes audio bitrate mode
30 juin 2022, par Matthieu DucorpsI'm rewrapping some MPEGDash to MP4 wrapper and some files are outputed with variable audio bitrate where others with constant bitrate,and both sources looks exactly the same.


For reference :


I'm using FFMPEG 5.0 for the rewrapping


ffmpeg version 5.0-full_build-www.gyan.dev Copyright (c) 2000-2022 the FFmpeg developers
 built with gcc 11.2.0 (Rev5, Built by MSYS2 project)
 configuration: --enable-gpl --enable-version3 --enable-static --disable-w32threads --disable-autodetect --enable-fontconfig --enable-iconv --enable-gnutls --enable-libxml2 --enable-gmp --enable-bzlib --enable-lzma --enable-libsnappy --enable-zlib --enable-librist --enable-libsrt --enable-libssh --enable-libzmq --enable-avisynth --enable-libbluray --enable-libcaca --enable-sdl2 --enable-libdav1d --enable-libdavs2 --enable-libuavs3d --enable-libzvbi --enable-librav1e --enable-libsvtav1 --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxavs2 --enable-libxvid --enable-libaom --enable-libopenjpeg --enable-libvpx --enable-mediafoundation --enable-libass --enable-frei0r --enable-libfreetype --enable-libfribidi --enable-libvidstab --enable-libvmaf --enable-libzimg --enable-amf --enable-cuda-llvm --enable-cuvid --enable-ffnvcodec --enable-nvdec --enable-nvenc --enable-d3d11va --enable-dxva2 --enable-libmfx --enable-libshaderc --enable-vulkan --enable-libplacebo --enable-opencl --enable-libcdio --enable-libgme --enable-libmodplug --enable-libopenmpt --enable-libopencore-amrwb --enable-libmp3lame --enable-libshine --enable-libtheora --enable-libtwolame --enable-libvo-amrwbenc --enable-libilbc --enable-libgsm --enable-libopencore-amrnb --enable-libopus --enable-libspeex --enable-libvorbis --enable-ladspa --enable-libbs2b --enable-libflite --enable-libmysofa --enable-librubberband --enable-libsoxr --enable-chromaprint
 libavutil 57. 17.100 / 57. 17.100
 libavcodec 59. 18.100 / 59. 18.100
 libavformat 59. 16.100 / 59. 16.100
 libavdevice 59. 4.100 / 59. 4.100
 libavfilter 8. 24.100 / 8. 24.100
 libswscale 6. 4.100 / 6. 4.100
 libswresample 4. 3.100 / 4. 3.100
 libpostproc 56. 3.100 / 56. 3.100



And MediaInfo 22.09 to check the medias.




I'm using this command to rewrap the media :


ffmpeg.exe -y -i MPEGDash.mpd -map 0:v -map 0:a -c copy OutFile.mp4



This source MPEGDASH with constant audio bitrate


General
Complete name : \\Constant\PROXY\A0002_30sec\MPEGDash_A0002_30sec.mpd
Format : DASH MPD
File size : 4.14 MiB
Duration : 30 s 80 ms
Overall bit rate mode : Constant
Overall bit rate : 1 154 kb/s

Video
ID : 0-1
Format : AVC
Format/Info : Advanced Video Codec
Format profile : High@L3.1
Format settings : CABAC / 2 Ref Frames
Format settings, CABAC : Yes
Format settings, Reference frames : 2 frames
Format settings, GOP : M=3, N=30
Muxing mode : dash
Codec ID : avc1
Codec ID/Info : Advanced Video Coding
Duration : 30 s 30 ms
Bit rate mode : Constant
Bit rate : 640 kb/s
Width : 640 pixels
Height : 360 pixels
Display aspect ratio : 16:9
Frame rate mode : Constant
Frame rate : 29.970 (30000/1001) FPS
Standard : NTSC
Color space : YUV
Chroma subsampling : 4:2:0
Bit depth : 8 bits
Scan type : Progressive
Bits/(Pixel*Frame) : 0.093
Stream size : 2.28 MiB (55%)
Language : English
Encoded date : UTC 2022-06-30 08:20:16
Tagged date : UTC 2022-06-30 08:20:16
Color range : Limited
Color primaries : BT.709
Transfer characteristics : BT.709
Matrix coefficients : BT.709
Source : V0_360p_640000/V0_360p_640000_init.mp4
Codec configuration box : avcC

Audio #1
ID : 160-1
Format : AAC LC
Format/Info : Advanced Audio Codec Low Complexity
Muxing mode : dash
Codec ID : mp4a-40-2
Duration : 30 s 80 ms
Bit rate mode : Constant
Bit rate : 128 kb/s
Channel(s) : 2 channels
Channel layout : L R
Sampling rate : 48.0 kHz
Frame rate : 46.875 FPS (1024 SPF)
Compression mode : Lossy
Stream size : 460 KiB (11%)
Language : English
Encoded date : UTC 2022-06-30 08:20:16
Tagged date : UTC 2022-06-30 08:20:16
Source : A0_48000_128000/A0_48000_128000_init.mp4

Audio #2
ID : 161-1
Format : AAC LC
Format/Info : Advanced Audio Codec Low Complexity
Muxing mode : dash
Codec ID : mp4a-40-2
Duration : 30 s 80 ms
Bit rate mode : Constant
Bit rate : 128 kb/s
Channel(s) : 2 channels
Channel layout : L R
Sampling rate : 48.0 kHz
Frame rate : 46.875 FPS (1024 SPF)
Compression mode : Lossy
Stream size : 460 KiB (11%)
Language : English
Encoded date : UTC 2022-06-30 08:20:16
Tagged date : UTC 2022-06-30 08:20:16
Source : A1_48000_128000/A1_48000_128000_init.mp4

Audio #3
ID : 162-1
Format : AAC LC
Format/Info : Advanced Audio Codec Low Complexity
Muxing mode : dash
Codec ID : mp4a-40-2
Duration : 30 s 80 ms
Bit rate mode : Constant
Bit rate : 128 kb/s
Channel(s) : 2 channels
Channel layout : L R
Sampling rate : 48.0 kHz
Frame rate : 46.875 FPS (1024 SPF)
Compression mode : Lossy
Stream size : 460 KiB (11%)
Language : English
Encoded date : UTC 2022-06-30 08:20:16
Tagged date : UTC 2022-06-30 08:20:16
Source : A2_48000_128000/A2_48000_128000_init.mp4

Audio #4
ID : 163-1
Format : AAC LC
Format/Info : Advanced Audio Codec Low Complexity
Muxing mode : dash
Codec ID : mp4a-40-2
Duration : 30 s 80 ms
Bit rate mode : Constant
Bit rate : 128 kb/s
Channel(s) : 2 channels
Channel layout : L R
Sampling rate : 48.0 kHz
Frame rate : 46.875 FPS (1024 SPF)
Compression mode : Lossy
Stream size : 460 KiB (11%)
Language : English
Encoded date : UTC 2022-06-30 08:20:16
Tagged date : UTC 2022-06-30 08:20:16
Source : A3_48000_128000/A3_48000_128000_init.mp4



Has the expected output with constant audio bitrate on the MP4


General
Complete name : \\Constant\PROXY\A0002_30sec\A0002_30sec.mp4
Format : MPEG-4
Format profile : Base Media
Codec ID : isom (isom/iso2/avc1/mp41)
File size : 4.13 MiB
Duration : 30 s 96 ms
Overall bit rate mode : Constant
Overall bit rate : 1 152 kb/s
Movie name : MPEGDash_A0002_30sec.mpd
Writing application : Lavf59.16.100

Video
ID : 1
Format : AVC
Format/Info : Advanced Video Codec
Format profile : High@L3.1
Format settings : CABAC / 2 Ref Frames
Format settings, CABAC : Yes
Format settings, Reference frames : 2 frames
Format settings, GOP : M=3, N=30
Codec ID : avc1
Codec ID/Info : Advanced Video Coding
Duration : 30 s 96 ms
Source duration : 29 s 997 ms
Bit rate mode : Constant
Bit rate : 590 kb/s
Nominal bit rate : 640 kb/s
Maximum bit rate : 636 kb/s
Width : 640 pixels
Height : 360 pixels
Display aspect ratio : 16:9
Frame rate mode : Constant
Frame rate : 29.970 (30000/1001) FPS
Standard : NTSC
Color space : YUV
Chroma subsampling : 4:2:0
Bit depth : 8 bits
Scan type : Progressive
Bits/(Pixel*Frame) : 0.085
Stream size : 2.12 MiB (51%)
Source stream size : 2.28 MiB (55%)
Color range : Limited
Color primaries : BT.709
Transfer characteristics : BT.709
Matrix coefficients : BT.709
mdhd_Duration : 30030
Codec configuration box : avcC

Audio #1
ID : 2
Format : AAC LC
Format/Info : Advanced Audio Codec Low Complexity
Codec ID : mp4a-40-2
Duration : 30 s 80 ms
Bit rate mode : Constant
Bit rate : 125 kb/s
Channel(s) : 2 channels
Channel layout : L R
Sampling rate : 48.0 kHz
Frame rate : 46.875 FPS (1024 SPF)
Compression mode : Lossy
Stream size : 460 KiB (11%)
Language : English
Default : Yes
Alternate group : 1

Audio #2
ID : 3
Format : AAC LC
Format/Info : Advanced Audio Codec Low Complexity
Codec ID : mp4a-40-2
Duration : 30 s 80 ms
Bit rate mode : Constant
Bit rate : 125 kb/s
Channel(s) : 2 channels
Channel layout : L R
Sampling rate : 48.0 kHz
Frame rate : 46.875 FPS (1024 SPF)
Compression mode : Lossy
Stream size : 460 KiB (11%)
Language : English
Default : Yes
Alternate group : 2

Audio #3
ID : 4
Format : AAC LC
Format/Info : Advanced Audio Codec Low Complexity
Codec ID : mp4a-40-2
Duration : 30 s 80 ms
Bit rate mode : Constant
Bit rate : 125 kb/s
Channel(s) : 2 channels
Channel layout : L R
Sampling rate : 48.0 kHz
Frame rate : 46.875 FPS (1024 SPF)
Compression mode : Lossy
Stream size : 460 KiB (11%)
Language : English
Default : Yes
Alternate group : 3

Audio #4
ID : 5
Format : AAC LC
Format/Info : Advanced Audio Codec Low Complexity
Codec ID : mp4a-40-2
Duration : 30 s 80 ms
Bit rate mode : Constant
Bit rate : 125 kb/s
Channel(s) : 2 channels
Channel layout : L R
Sampling rate : 48.0 kHz
Frame rate : 46.875 FPS (1024 SPF)
Compression mode : Lossy
Stream size : 460 KiB (11%)
Language : English
Default : Yes
Alternate group : 4



But this source MPEGDASH which has the same characteristics :


General
Complete name : \\Variable\PROXY\A0005_30sec\MPEGDash_A0005_30sec.mpd
Format : DASH MPD
File size : 4.15 MiB
Duration : 30 s 80 ms
Overall bit rate mode : Constant
Overall bit rate : 1 157 kb/s

Video
ID : 0-1
Format : AVC
Format/Info : Advanced Video Codec
Format profile : High@L3.1
Format settings : CABAC / 2 Ref Frames
Format settings, CABAC : Yes
Format settings, Reference frames : 2 frames
Format settings, GOP : M=3, N=30
Muxing mode : dash
Codec ID : avc1
Codec ID/Info : Advanced Video Coding
Duration : 30 s 30 ms
Bit rate mode : Constant
Bit rate : 640 kb/s
Width : 640 pixels
Height : 360 pixels
Display aspect ratio : 16:9
Frame rate mode : Constant
Frame rate : 29.970 (30000/1001) FPS
Standard : NTSC
Color space : YUV
Chroma subsampling : 4:2:0
Bit depth : 8 bits
Scan type : Progressive
Bits/(Pixel*Frame) : 0.093
Stream size : 2.29 MiB (55%)
Language : English
Encoded date : UTC 2022-06-30 08:24:03
Tagged date : UTC 2022-06-30 08:24:03
Color range : Limited
Color primaries : BT.709
Transfer characteristics : BT.709
Matrix coefficients : BT.709
Source : V0_360p_640000/V0_360p_640000_init.mp4
Codec configuration box : avcC

Audio #1
ID : 160-1
Format : AAC LC
Format/Info : Advanced Audio Codec Low Complexity
Muxing mode : dash
Codec ID : mp4a-40-2
Duration : 30 s 80 ms
Bit rate mode : Constant
Bit rate : 128 kb/s
Channel(s) : 2 channels
Channel layout : L R
Sampling rate : 48.0 kHz
Frame rate : 46.875 FPS (1024 SPF)
Compression mode : Lossy
Stream size : 461 KiB (11%)
Language : English
Encoded date : UTC 2022-06-30 08:24:03
Tagged date : UTC 2022-06-30 08:24:03
Source : A0_48000_128000/A0_48000_128000_init.mp4

Audio #2
ID : 161-1
Format : AAC LC
Format/Info : Advanced Audio Codec Low Complexity
Muxing mode : dash
Codec ID : mp4a-40-2
Duration : 30 s 80 ms
Bit rate mode : Constant
Bit rate : 128 kb/s
Channel(s) : 2 channels
Channel layout : L R
Sampling rate : 48.0 kHz
Frame rate : 46.875 FPS (1024 SPF)
Compression mode : Lossy
Stream size : 460 KiB (11%)
Language : English
Encoded date : UTC 2022-06-30 08:24:03
Tagged date : UTC 2022-06-30 08:24:03
Source : A1_48000_128000/A1_48000_128000_init.mp4

Audio #3
ID : 162-1
Format : AAC LC
Format/Info : Advanced Audio Codec Low Complexity
Muxing mode : dash
Codec ID : mp4a-40-2
Duration : 30 s 80 ms
Bit rate mode : Constant
Bit rate : 128 kb/s
Channel(s) : 2 channels
Channel layout : L R
Sampling rate : 48.0 kHz
Frame rate : 46.875 FPS (1024 SPF)
Compression mode : Lossy
Stream size : 460 KiB (11%)
Language : English
Encoded date : UTC 2022-06-30 08:24:03
Tagged date : UTC 2022-06-30 08:24:03
Source : A2_48000_128000/A2_48000_128000_init.mp4

Audio #4
ID : 163-1
Format : AAC LC
Format/Info : Advanced Audio Codec Low Complexity
Muxing mode : dash
Codec ID : mp4a-40-2
Duration : 30 s 80 ms
Bit rate mode : Constant
Bit rate : 128 kb/s
Channel(s) : 2 channels
Channel layout : L R
Sampling rate : 48.0 kHz
Frame rate : 46.875 FPS (1024 SPF)
Compression mode : Lossy
Stream size : 460 KiB (11%)
Language : English
Encoded date : UTC 2022-06-30 08:24:03
Tagged date : UTC 2022-06-30 08:24:03
Source : A3_48000_128000/A3_48000_128000_init.mp4



Has this output where the MP4 have the first audio with variable bitrate


General
Complete name : \\Variable\PROXY\A0005_30sec\A0005_30sec.mp4
Format : MPEG-4
Format profile : Base Media
Codec ID : isom (isom/iso2/avc1/mp41)
File size : 4.14 MiB
Duration : 30 s 96 ms
Overall bit rate mode : Variable
Overall bit rate : 1 155 kb/s
Movie name : MPEGDash_A0005_30sec.mpd
Writing application : Lavf59.16.100

Video
ID : 1
Format : AVC
Format/Info : Advanced Video Codec
Format profile : High@L3.1
Format settings : CABAC / 2 Ref Frames
Format settings, CABAC : Yes
Format settings, Reference frames : 2 frames
Format settings, GOP : M=3, N=30
Codec ID : avc1
Codec ID/Info : Advanced Video Coding
Duration : 30 s 96 ms
Source duration : 29 s 997 ms
Bit rate mode : Constant
Bit rate : 593 kb/s
Nominal bit rate : 640 kb/s
Maximum bit rate : 640 kb/s
Width : 640 pixels
Height : 360 pixels
Display aspect ratio : 16:9
Frame rate mode : Constant
Frame rate : 29.970 (30000/1001) FPS
Standard : NTSC
Color space : YUV
Chroma subsampling : 4:2:0
Bit depth : 8 bits
Scan type : Progressive
Bits/(Pixel*Frame) : 0.086
Stream size : 2.13 MiB (51%)
Source stream size : 2.29 MiB (55%)
Color range : Limited
Color primaries : BT.709
Transfer characteristics : BT.709
Matrix coefficients : BT.709
mdhd_Duration : 30030
Codec configuration box : avcC

Audio #1
ID : 2
Format : AAC LC
Format/Info : Advanced Audio Codec Low Complexity
Codec ID : mp4a-40-2
Duration : 30 s 80 ms
Bit rate mode : Variable
Bit rate : 126 kb/s
Maximum bit rate : 128 kb/s
Channel(s) : 2 channels
Channel layout : L R
Sampling rate : 48.0 kHz
Frame rate : 46.875 FPS (1024 SPF)
Compression mode : Lossy
Stream size : 461 KiB (11%)
Language : English
Default : Yes
Alternate group : 1

Audio #2
ID : 3
Format : AAC LC
Format/Info : Advanced Audio Codec Low Complexity
Codec ID : mp4a-40-2
Duration : 30 s 80 ms
Bit rate mode : Constant
Bit rate : 125 kb/s
Channel(s) : 2 channels
Channel layout : L R
Sampling rate : 48.0 kHz
Frame rate : 46.875 FPS (1024 SPF)
Compression mode : Lossy
Stream size : 460 KiB (11%)
Language : English
Default : Yes
Alternate group : 2

Audio #3
ID : 4
Format : AAC LC
Format/Info : Advanced Audio Codec Low Complexity
Codec ID : mp4a-40-2
Duration : 30 s 80 ms
Bit rate mode : Constant
Bit rate : 125 kb/s
Channel(s) : 2 channels
Channel layout : L R
Sampling rate : 48.0 kHz
Frame rate : 46.875 FPS (1024 SPF)
Compression mode : Lossy
Stream size : 460 KiB (11%)
Language : English
Default : Yes
Alternate group : 3

Audio #4
ID : 5
Format : AAC LC
Format/Info : Advanced Audio Codec Low Complexity
Codec ID : mp4a-40-2
Duration : 30 s 80 ms
Bit rate mode : Constant
Bit rate : 125 kb/s
Channel(s) : 2 channels
Channel layout : L R
Sampling rate : 48.0 kHz
Frame rate : 46.875 FPS (1024 SPF)
Compression mode : Lossy
Stream size : 460 KiB (11%)
Language : English
Default : Yes
Alternate group : 4



Maybe I'm missing something but,I don't see what.


-
batch file FOR %%f IN (*) DO
13 juin 2017, par RyanMe321I’ve created a script based of this example however I don’t understand how to correctly implement the
FOR %%f IN (*.mkv) DO (MY SCRIPT)
component as when i do and replacevideo.mkv
with"%%f"
(contains the full file name and format ?)"%%~nf"
(only the file name ?) in the same way the example code does it doesn’t seem to work. However when run on a test file called "video.mkv" works perfectly.::ID FILE
for /F "delims=" %%I in ('C:\ffmpeg\bin\ffprobe.exe -v error -show_entries format^=filename -of default^=noprint_wrappers^=1:nokey^=1 video.mkv') do set "FILENAME=%%I"
for /F "delims=" %%I in ('C:\ffmpeg\bin\ffprobe.exe -v error -select_streams v:0 -show_entries stream^=codec_name -of default^=noprint_wrappers^=1:nokey^=1 video.mkv') do set "Vcodec=%%I"
for /F "delims=" %%I in ('C:\ffmpeg\bin\ffprobe.exe -v error -select_streams a:0 -show_entries stream^=codec_name -of default^=noprint_wrappers^=1:nokey^=1 video.mkv') do set "Acodec=%%I"
echo %FILENAME% is using %Vcodec% and %Acodec% codecs
if %Vcodec% == h264 (echo DO NOT CONVERT VIDEO) else (echo CONVERT VIDEO)
if %Acodec% == ac3 (echo DO NOT CONVERT AUDIO) else (echo CONVERT AUDIO)
timeout /t 5
:: COPY V FIX A
if %Vcodec% == h264 if not %Acodec% == ac3 (echo Copying Video, Converting Audio
timeout /t 5
C:\ffmpeg\bin\ffmpeg.exe -i video.mkv -map 0 -vcodec copy -scodec copy -acodec ac3 -b:a 640K video-AC3.mkv)
:: FIX V COPY A
if not %Vcodec% == h264 if %Acodec% == ac3 (echo Converting Video, Copying Audio
timeout /t 5
C:\ffmpeg\bin\ffmpeg.exe -i video.mkv -map 0 -vcodec libx264 -scodec copy -acodec copy video-h264.mkv)
:: FIX V FIX A
if not %Vcodec% == h264 if not %Acodec% == ac3 (echo Converting Video, Converting Audio
timeout /t 5
C:\ffmpeg\bin\ffmpeg.exe -i video.mkv -map 0 -vcodec libx264 -scodec copy -acodec ac3 -b:a 640K video-h264-AC3.mkv)
:: COPY V COPY A
if %Vcodec% == h264 if %Acodec% == ac3 (echo "Doesn't require any Conversion")
pauseI’ve limited programming experience and have come up short trying to find what is wrong with using this implementation of
FOR %%f IN
of what to search to get me to an answer.Also I’d be interested if there is a way to recognise a list of file types i.e. *.mp4 and *.mkv and *.avi etc not just MKV to be processed.