Hello all,
For more than a day now I try to attach an audio stream from another
movie2 as second audio to an existing and well working movie1.
Unfortunately, this second stream is out of sync.
Of the many many tries, the most recent ones look like this:
avconv -i movie1.mkv -i movie2 -c copy -c:a:1:1 ac3 -filter:a:1
-metadata title="MyTitle" -metadata:s:a:0 language=eng -metadata:s:a:1
language=ger -map 0 -map 1:1 movie-out.mkv
This reports (slightly shortened):
avconv version 9.13-6:9.13-0ubuntu0.14.04.1 [...]
Input #0, matroska,webm, from 'movie1.mkv':
Duration: 01:53:41.98, start: 0.000000, bitrate: N/A
Stream #0.0: Video: h264 (High), yuv420p, 1280x720 [PAR 1:1 DAR
16:9], 23.98 fps, 23.98 tbr, 1k tbn, 47.95 tbc (default)
Stream #0.1: Audio: ac3, 48000 Hz, stereo, fltp, 192 kb/s (default)
Input #1, mov,mp4,m4a,3gp,3g2,mj2, from 'movie2':
Duration: 01:49:05.51, start: 0.000000, bitrate: 401 kb/s
Stream #1.0(und): Video: h264 (High), yuv420p, 640x360 [PAR 351:352
DAR 39:22], 356 kb/s, PAR 319:320 DAR 319:180, 25 fps, 25 tbr, 25k tbn,
50 tbc
Stream #1.1(und): Audio: aac, 44100 Hz, mono, fltp, 41 kb/s
[...]
Output #0, matroska, to 'movie-out.mkv':
[...]
Stream mapping:
Stream #0:0 -> #0:0 (copy)
Stream #0:1 -> #0:1 (copy)
Stream #1:1 -> #0:2 (aac -> ac3)
While both videos show the same movie and accordingly audios should be
of identical length, the second one is a few minutes shorter (6546s)
than the first one (6822s). It's also noticeable, music in movie2 is of
slightly higher pitch. And, as said, the second audio is out of snyc, a
few seconds early and about 4 minutes near the end of the movie.
My guess is, movie2 reports as 25 fps, while it's actually 23.98fps:
6546s * 25 / 23.98 = 6827s (very close)
My question:
- How would I tell avconv to consider movie2 being of 23.97fps and
stretching it accordingly, which shouldn't require re-coding ( = no
quality loss)?
- If this isn't possible, how would I stretch it with recoding?
Thanks,
Markus
--
- - - - - - - - - - - - - - - - - - -
Dipl. Ing. (FH) Markus Hitter
http://www.jump-ing.de/
_______________________________________________
libav-tools mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-tools