[FFmpeg-user] ffmpeg segmenter | Unable to map audio language metadata
tarun singhal
tsinghal18 at gmail.com
Fri May 29 13:04:08 CEST 2015
Hello Team,
I have a video TS file which has audio language metadata as "english"
available in it. When I use ffmpeg to segment thatsource video and create
m3u8 HLS package, the audio language metadata is missing.
I have tried all the options including -metadata and -map_metadata . But
was unsuccessfull.
#1 Source video info
>ffmpegv3 -i out.ts
ffmpeg version N-61286-gdbc3e11 Copyright (c) 2000-2014 the FFmpeg
developers
built on Mar 11 2014 22:06:56 with gcc 4.8.2 (GCC)
configuration: --enable-gpl --enable-version3 --disable-w32threads
--enable-av
isynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls
--enab
le-iconv --enable-libass --enable-libbluray --enable-libcaca
--enable-libfreetyp
e --enable-libgsm --enable-libilbc --enable-libmodplug --enable-libmp3lame
--ena
ble-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg
--enable-l
ibopus --enable-librtmp --enable-libschroedinger --enable-libsoxr
--enable-libsp
eex --enable-libtheora --enable-libtwolame --enable-libvidstab
--enable-libvo-aa
cenc --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx
--enable-libwavp
ack --enable-libx264 --enable-libx265 --enable-libxavs --enable-libxvid
--enable
-zlib
libavutil 52. 66.101 / 52. 66.101
libavcodec 55. 52.102 / 55. 52.102
libavformat 55. 34.100 / 55. 34.100
libavdevice 55. 11.100 / 55. 11.100
libavfilter 4. 3.100 / 4. 3.100
libswscale 2. 5.101 / 2. 5.101
libswresample 0. 18.100 / 0. 18.100
libpostproc 52. 3.100 / 52. 3.100
Input #0, mpegts, from 'out.ts':
Duration: 00:00:10.67, start: 1.400000, bitrate: 1345 kb/s
Program 1
Metadata:
service_name : Service01
service_provider: FFmpeg
Stream #0:0[0x100](eng): Audio: aac ([15][0][0][0] / 0x000F), 44100 Hz,
ster
eo, fltp, 72 kb/s
Stream #0:1[0x101]: Video: h264 (Main) ([27][0][0][0] / 0x001B),
yuv420p, 86
4x480 [SAR 1:1 DAR 9:5], 29.97 fps, 29.97 tbr, 90k tbn, 59.94 tbc
At least one output file must be specified
#2 ffmpeg command console output
C:\Users\t.singhal\Documents\trash>ffmpegV3.exe -re -i out.ts -codec copy
-map 0
-f segment -segment_list
"Airplane_II_The_Sequel_1_20150501_1972772_HD_1264.m3u
8" -segment_list_flags +cache -segment_list_type hls -map_metadata:s:a 0:g
-segm
ent_time 2 "Airplane_II_The_Sequel_1_20150501_1972772_HD_1264_%06d.ts"
ffmpeg version N-61286-gdbc3e11 Copyright (c) 2000-2014 the FFmpeg
developers
built on Mar 11 2014 22:06:56 with gcc 4.8.2 (GCC)
configuration: --enable-gpl --enable-version3 --disable-w32threads
--enable-av
isynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls
--enab
le-iconv --enable-libass --enable-libbluray --enable-libcaca
--enable-libfreetyp
e --enable-libgsm --enable-libilbc --enable-libmodplug --enable-libmp3lame
--ena
ble-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg
--enable-l
ibopus --enable-librtmp --enable-libschroedinger --enable-libsoxr
--enable-libsp
eex --enable-libtheora --enable-libtwolame --enable-libvidstab
--enable-libvo-aa
cenc --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx
--enable-libwavp
ack --enable-libx264 --enable-libx265 --enable-libxavs --enable-libxvid
--enable
-zlib
libavutil 52. 66.101 / 52. 66.101
libavcodec 55. 52.102 / 55. 52.102
libavformat 55. 34.100 / 55. 34.100
libavdevice 55. 11.100 / 55. 11.100
libavfilter 4. 3.100 / 4. 3.100
libswscale 2. 5.101 / 2. 5.101
libswresample 0. 18.100 / 0. 18.100
libpostproc 52. 3.100 / 52. 3.100
Input #0, mpegts, from 'out.ts':
Duration: 00:00:10.67, start: 1.400000, bitrate: 1345 kb/s
Program 1
Metadata:
service_name : Service01
service_provider: FFmpeg
Stream #0:0[0x100](eng): Audio: aac ([15][0][0][0] / 0x000F), 44100 Hz,
ster
eo, fltp, 72 kb/s
Stream #0:1[0x101]: Video: h264 (Main) ([27][0][0][0] / 0x001B),
yuv420p, 86
4x480 [SAR 1:1 DAR 9:5], 29.97 fps, 29.97 tbr, 90k tbn, 59.94 tbc
Output #0, segment, to
'Airplane_II_The_Sequel_1_20150501_1972772_HD_1264_%06d.t
s':
Metadata:
encoder : Lavf55.34.100
Stream #0:0: Audio: aac ([15][0][0][0] / 0x000F), 44100 Hz, stereo, 72
kb/s
Stream #0:1: Video: h264 ([27][0][0][0] / 0x001B), yuv420p, 864x480
[SAR 1:1
DAR 9:5], q=2-31, 29.97 fps, 90k tbn, 29.97 tbc
Stream mapping:
Stream #0:0 -> #0:0 (copy)
Stream #0:1 -> #0:1 (copy)
Press [q] to stop, [?] for help
frame= 320 fps= 30 q=-1.0 Lsize=N/A time=00:00:10.70 bitrate=N/A
video:1500kB audio:88kB subtitle:0 data:0 global headers:0kB muxing
overhead -10
0.001350%
If you see in the Output #0 section on the console output, you can clearly
see that the audio language metadata is missing. Kindly help me on how to
get audio language metadata mapped to the output.
Regards,
Tarun Singhal
Senior Software Engineer
Accenture - India
More information about the ffmpeg-user
mailing list