Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I am trying to assign new metadata to video file. The command looks like this:

avconv -i input.avi -codec copy -map 0 \
  -metadata title="Video title" \ 
  -metadata artist="Video artist" \ 
  -metadata genre="Video genre" \ 
  -metadata copyright="Video copyright" \ 
  -metadata comment="Video comment" \ 
  -metadata encoder="Video encoder" \ 
  output.avi

Program output:

avconv version 0.8.6-4:0.8.6-0ubuntu0.12.04.1, Copyright (c) 2000-2013 the Libav developers
  built on Apr  2 2013 17:02:36 with gcc 4.6.3
Input #0, avi, from 'input.avi':
  Metadata:
    encoder         : Encoder
    title           : Title
    artist          : Artist
    copyright       : Copyright
    comment         : Comment
  Duration: 01:40:36.19, start: 0.000000, bitrate: 3109 kb/s
    Stream #0.0: Video: mpeg4 (Advanced Simple Profile), yuv420p, 720x384 [PAR 1:1 DAR 15:8], PAR 128:135 DAR 16:9, 23.98 tbr, 23.98 tbn, 23.98 tbc
    Stream #0.1: Audio: ac3, 48000 Hz, 5.1, s16, 448 kb/s
    Stream #0.2: Audio: ac3, 48000 Hz, 5.1, s16, 448 kb/s
Output #0, avi, to 'output.avi':
  Metadata:
    ICMT            : Video comment
    ICOP            : Video copyright
    INAM            : Video title
    IGNR            : Video genre
    IART            : Video artist
    ISFT            : Video encoder
    Stream #0.0: Video: mpeg4, yuv420p, 720x384 [PAR 128:135 DAR 16:9], q=2-31, 23.98 tbn, 23.98 tbc
    Stream #0.1: Audio: ac3, 48000 Hz, 5.1, 448 kb/s
    Stream #0.2: Audio: ac3, 48000 Hz, 5.1, 448 kb/s
Stream mapping:
  Stream #0:0 -> #0:0 (copy)
  Stream #0:1 -> #0:1 (copy)
  Stream #0:2 -> #0:2 (copy)
...
video:1617716kB audio:660037kB global headers:0kB muxing overhead 0.535363%

The problem with output video file its audio tracks are played 4 times as fast. How can I perform the desired action keeping video file in sane state?

share|improve this question

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.