[libav-bugs] [Bug 623] Cannot assign languages to audio streams' metadata in the mp4 container.

bugzilla at libav.org bugzilla at libav.org
Fri Jun 13 21:29:58 CEST 2014


https://bugzilla.libav.org/show_bug.cgi?id=623

--- Comment #3 from jcoffi at gmail.com 2014-06-13 21:29:58 CEST ---
I tried it again with a different file. I made sure to run it in verbose mode. 

avconv -v 9 -loglevel 99 -y -i KABLAM\!\!\!-Slogan.avi -map 0:v -map 0:a -c
copy -metadata:s:a:0 language=zh "sample.mp4"       avconv version
v10_beta1-817-gcd62c04, Copyright (c) 2000-2014 the Libav developers
  built on Jun 11 2014 13:55:01 with gcc 4.8 (Ubuntu 4.8.2-19ubuntu1)
  configuration: --extra-cflags=-I/usr/local/include
--extra-ldflags=-L/usr/local/lib --extra-libs=-ldl --enable-gpl
--disable-avplay --disable-avprobe --disable-avserver --enable-libfdk-aac
--enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb
--enable-libspeex --enable-libtheora --enable-libvorbis --enable-libopus
--enable-libvpx --disable-network --enable-libx264 --enable-nonfree
--enable-version3 --enable-vaapi --enable-vdpau --enable-runtime-cpudetect
  libavutil     53. 16. 0 / 53. 16. 0
  libavcodec    55. 54. 0 / 55. 54. 0
  libavformat   55. 19. 1 / 55. 19. 1
  libavdevice   54.  0. 0 / 54.  0. 0
  libavfilter    4.  5. 0 /  4.  5. 0
  libavresample  1.  3. 0 /  1.  3. 0
  libswscale     2.  1. 2 /  2.  1. 2
Splitting the commandline.
Reading option '-v' ... matched as option 'v' (set libav* logging level) with
argument '9'.
Reading option '-loglevel' ... matched as option 'loglevel' (set libav* logging
level) with argument '99'.
Reading option '-y' ... matched as option 'y' (overwrite output files) with
argument '1'.
Reading option '-i' ... matched as input file with argument
'KABLAM!!!-Slogan.avi'.
Reading option '-map' ... matched as option 'map' (set input stream mapping)
with argument '0:v'.
Reading option '-map' ... matched as option 'map' (set input stream mapping)
with argument '0:a'.
Reading option '-c' ... matched as option 'c' (codec name) with argument
'copy'.
Reading option '-metadata:s:a:0' ... matched as option 'metadata' (add
metadata) with argument 'language=zh'.
Reading option 'sample.mp4' ... matched as output file.
Finished splitting the commandline.
Parsing a group of options: global .
Applying option v (set libav* logging level) with argument 9.
Applying option y (overwrite output files) with argument 1.
Successfully parsed a group of options.
Parsing a group of options: input file KABLAM!!!-Slogan.avi.
Successfully parsed a group of options.
Opening an input file: KABLAM!!!-Slogan.avi.
[avi @ 0x1d3e180] Probed with size=2048 and score=100
[avi @ 0x1d3e180] All info found
Guessed Channel Layout for  Input Stream #0.1 : stereo
Input #0, avi, from 'KABLAM!!!-Slogan.avi':
  Metadata:
    encoder         : Lavf53.6.0
  Duration: 00:00:20.01, start: 0.000000, bitrate: 1128 kb/s
    Stream #0.0, 40, 50/2997: Video: mpeg4 (Simple Profile), yuv420p, 624x352
[PAR 255:254 DAR 9945:5588], 100/2997, 29.97 fps, 59.94 tbn, 29.97 tbc
    Stream #0.1, 55, 3/125: Audio: mp3, 48000 Hz, 2 channels, s16p, 128 kb/s
Successfully opened the file.
Parsing a group of options: output file sample.mp4.
Applying option map (set input stream mapping) with argument 0:v.
Applying option map (set input stream mapping) with argument 0:a.
Applying option c (codec name) with argument copy.
Applying option metadata:s:a:0 (add metadata) with argument language=zh.
Successfully parsed a group of options.
Opening an output file: sample.mp4.
Successfully opened the file.
Output #0, mp4, to 'sample.mp4':
  Metadata:
    encoder         : Lavf55.19.1
    Stream #0.0, 0, 1/2997: Video: mpeg4, yuv420p, 624x352 [PAR 255:254 DAR
9945:5588], 50/2997, q=2-31, 2997 tbn, 59.94 tbc
    Stream #0.1(zh), 0, 1/48000: Audio: libmp3lame, 48000 Hz, stereo, 128 kb/s
Stream mapping:
  Stream #0:0 -> #0:0 (copy)
  Stream #0:1 -> #0:1 (copy)
Press ctrl-c to stop encoding
No more output streams to write to, finishing.
frame=  457 fps=  0 q=-1.0 Lsize=    2202kB time=15.19 bitrate=1187.3kbits/s
video:1957kB audio:238kB other streams:0kB global headers:0kB muxing overhead:
0.336161%
Input file #0 (KABLAM!!!-Slogan.avi):
  Input stream #0:0 (video): 457 packets read (2004208 bytes);
  Input stream #0:1 (audio): 634 packets read (243456 bytes);
  Total: 1091 packets (2247664 bytes) demuxed
Output file #0 (sample.mp4):
  Output stream #0:0 (video): 457 packets muxed (2003680 bytes);
  Output stream #0:1 (audio): 634 packets muxed (243456 bytes);
  Total: 1091 packets (2247136 bytes) muxed

-- 
Configure bugmail: https://bugzilla.libav.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching all bug changes.


More information about the libav-bugs mailing list