
Recherche avancée
Médias (1)
-
Rennes Emotion Map 2010-11
19 octobre 2011, par
Mis à jour : Juillet 2013
Langue : français
Type : Texte
Autres articles (27)
-
Encoding and processing into web-friendly formats
13 avril 2011, parMediaSPIP automatically converts uploaded files to internet-compatible formats.
Video files are encoded in MP4, Ogv and WebM (supported by HTML5) and MP4 (supported by Flash).
Audio files are encoded in MP3 and Ogg (supported by HTML5) and MP3 (supported by Flash).
Where possible, text is analyzed in order to retrieve the data needed for search engine detection, and then exported as a series of image files.
All uploaded files are stored online in their original format, so you can (...) -
Installation en mode ferme
4 février 2011, parLe mode ferme permet d’héberger plusieurs sites de type MediaSPIP en n’installant qu’une seule fois son noyau fonctionnel.
C’est la méthode que nous utilisons sur cette même plateforme.
L’utilisation en mode ferme nécessite de connaïtre un peu le mécanisme de SPIP contrairement à la version standalone qui ne nécessite pas réellement de connaissances spécifique puisque l’espace privé habituel de SPIP n’est plus utilisé.
Dans un premier temps, vous devez avoir installé les mêmes fichiers que l’installation (...) -
Les formats acceptés
28 janvier 2010, parLes commandes suivantes permettent d’avoir des informations sur les formats et codecs gérés par l’installation local de ffmpeg :
ffmpeg -codecs ffmpeg -formats
Les format videos acceptés en entrée
Cette liste est non exhaustive, elle met en exergue les principaux formats utilisés : h264 : H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10 m4v : raw MPEG-4 video format flv : Flash Video (FLV) / Sorenson Spark / Sorenson H.263 Theora wmv :
Les formats vidéos de sortie possibles
Dans un premier temps on (...)
Sur d’autres sites (4293)
-
How to swtich audio stream with ffmpeg ?
6 octobre 2022, par JasonI have a file which has both english and japanese audio tracks. This is the meta data of the file (using command ffmpeg -i "my_vid.mp4" :


Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'my_vid.mp4':
 Metadata:
 major_brand : isom
 minor_version : 512
 compatible_brands: isomiso2mp41
 encoder : Lavf58.76.100
 Duration: 00:27:13.14, start: 0.000000, bitrate: 1699 kb/s
 Chapters:
 Chapter #0:0: start 0.000000, end 263.012000
 Metadata:
 title : Chapter 01
 Chapter #0:1: start 263.012000, end 353.019000
 Metadata:
 title : Chapter 02
 Chapter #0:2: start 353.019000, end 891.098000
 Metadata:
 title : Chapter 03
 Chapter #0:3: start 891.098000, end 1535.075000
 Metadata:
 title : Chapter 04
 Chapter #0:4: start 1535.075000, end 1624.080000
 Metadata:
 title : Chapter 05
 Chapter #0:5: start 1624.080000, end 1633.140000
 Metadata:
 title : Chapter 06
 Stream #0:0[0x1](und): Video: hevc (Main 10) (hev1 / 0x31766568), yuv420p10le(tv), 1920x1080 [SAR 1:1 DAR 16:9], 1413 kb/s, 23.98 fps, 23.98 tbr, 16k tbn (default)
 Metadata:
 handler_name : VideoHandler
 vendor_id : [0][0][0][0]
 Stream #0:1[0x2](eng): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 136 kb/s (default)
 Metadata:
 handler_name : SoundHandler
 vendor_id : [0][0][0][0]
 Stream #0:2[0x3](jpn): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 137 kb/s
 Metadata:
 handler_name : SoundHandler
 vendor_id : [0][0][0][0]
 Stream #0:3[0x4](eng): Data: bin_data (text / 0x74786574)
 Metadata:
 handler_name : SubtitleHandler



Per the ffmpeg documentation I'm trying to switch the video's audio output to japanese. However, the output video is still in english (which it was in before). This is my current ffmpeg cmd :


ffmpeg -i "my_vid.mp4" -c copy -disposition:a:1 default "output.mp4"



what am I doing wrong ? Still pretty new to ffmpeg


Edit :


With one of the suggestions I tried adding the -map 0 option to my command


ffmpeg -i "my_vid.mp4" -map 0 -c copy -disposition:a:2 default "output.mp4"



but still not change. The meta data for the output video is as follows :


Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'output.mp4':
 Metadata:
 major_brand : isom
 minor_version : 512
 compatible_brands: isomiso2mp41
 encoder : Lavf59.33.100
 Duration: 00:27:13.14, start: 0.000000, bitrate: 1699 kb/s
 Chapters:
 Chapter #0:0: start 0.000000, end 263.012000
 Metadata:
 title : Chapter 01
 Chapter #0:1: start 263.012000, end 353.019000
 Metadata:
 title : Chapter 02
 Chapter #0:2: start 353.019000, end 891.098000
 Metadata:
 title : Chapter 03
 Chapter #0:3: start 891.098000, end 1535.075000
 Metadata:
 title : Chapter 04
 Chapter #0:4: start 1535.075000, end 1624.080000
 Metadata:
 title : Chapter 05
 Chapter #0:5: start 1624.080000, end 1633.140000
 Metadata:
 title : Chapter 06
 Stream #0:0[0x1](und): Video: hevc (Main 10) (hev1 / 0x31766568), yuv420p10le(tv), 1920x1080 [SAR 1:1 DAR 16:9], 1413 kb/s, 23.98 fps, 23.98 tbr, 16k tbn (default)
 Metadata:
 handler_name : VideoHandler
 vendor_id : [0][0][0][0]
 Stream #0:1[0x2](eng): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 136 kb/s (default)
 Metadata:
 handler_name : SoundHandler
 vendor_id : [0][0][0][0]
 Stream #0:2[0x3](jpn): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 137 kb/s
 Metadata:
 handler_name : SoundHandler
 vendor_id : [0][0][0][0]
 Stream #0:3[0x4](eng): Data: bin_data (gpmd / 0x646D7067)
 Metadata:
 handler_name : SubtitleHandler
 Stream #0:4[0x5](eng): Data: bin_data (text / 0x74786574)
 Metadata:
 handler_name : SubtitleHandler



-
fftools/ffmpeg : store forced keyframe pts in AV_TIME_BASE_Q
17 novembre 2022, par Anton Khirnovfftools/ffmpeg : store forced keyframe pts in AV_TIME_BASE_Q
Rather than the encoder timebase. Since the times are parsed as
microseconds, this will not reduce precision, except possibly when
chapter times are used and the chapter timebase happens to be better
aligned with the encoder timebase, which is unlikely.This will allow parsing the keyframe times earlier (before encoder
timebase is known) in future commits. -
doc/developer.texi : refine the "contributing code" section
9 novembre 2022, par Anton Khirnov