[MEncoder-users] One more problem with audio when joining two files

Apple7777 applepro7777 at gmail.com
Mon Jan 14 08:29:13 CET 2008


Hello,

I have a problem with joining two files:
http://www.roamearth.com/ff/logo7aaa.avi
http://www.roamearth.com/ff/test07g.avi

When I encode these files separately, everything is ok. But when I join them,
audio plays too fast (like 2x faster):

mencoder -vf scale=448:-3,expand=448:336 -sws 9 -of lavf -ovc lavc -lavcopts
vcodec=flv:vbitrate=400:vpass=2 -oac mp3lame -lameopts abr:br=80:mode=3 
-channels 1 -o testr.flv logo7aaa.avi test07g.avi

The result movie is here:
http://www.roamearth.com/ff/testr.avi

The output is:

MEncoder dev-SVN-r25703-4.1.2 (C) 2000-2008 MPlayer Team
CPU: Intel(R) Celeron(R) D CPU 3.20GHz (Family: 15, Model: 6, Stepping: 5)
CPUflags: Type: 15 MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1
Compiled for x86 CPU with extensions: MMX MMX2 SSE SSE2

success: format: 0  data: 0x0 - 0x206cb1c
AVI file format detected.
[aviheader] Video stream found, -vid 0
[aviheader] Audio stream found, -aid 1
Detected NON-INTERLEAVED AVI file format.
VIDEO:  []  448x336  24bpp  25.000 fps  90316.8 kbps (11025.0 kbyte/s)
[V] filefmt:3  fourcc:0x0  size:448x336  fps:25.00  ftime:=0.0400
==========================================================================
Opening audio decoder: [mp3lib] MPEG layer-2, layer-3
AUDIO: 44100 Hz, 2 ch, s16le, 320.0 kbit/22.68% (ratio: 40000->176400)
Selected audio codec: [mp3] afm: mp3lib (mp3lib MPEG layer-2, layer-3)
==========================================================================
** MUXER_LAVF *****************************************************************
REMEMBER: MEncoder's libavformat muxing is presently broken and can generate
INCORRECT files in the presence of B frames. Moreover, due to bugs MPlayer
will play these INCORRECT files as if nothing were wrong!
*******************************************************************************
OK, exit
Opening video filter: [expand osd=1]
Expand: -1 x -1, -1 ; -1, osd: 1, aspect: 0.000000, round: 1
Opening video filter: [expand w=448 h=336]
Expand: 448 x 336, -1 ; -1, osd: 0, aspect: 0.000000, round: 1
Opening video filter: [scale w=448 h=-3]
==========================================================================
Opening video decoder: [raw] RAW Uncompressed Video
VDec: vo config request - 448 x 336 (preferred colorspace: BGR 24-bit)
The selected video_out device is incompatible with this codec.
Try appending the scale filter to your filter list,
e.g. -vf spp,scale instead of -vf spp.
VDecoder init failed :(
Opening video decoder: [raw] RAW Uncompressed Video
VDec: vo config request - 448 x 336 (preferred colorspace: BGR 24-bit)
The selected video_out device is incompatible with this codec.
Try appending the scale filter to your filter list,
e.g. -vf spp,scale instead of -vf spp.
VDecoder init failed :(
Opening video decoder: [raw] RAW Uncompressed Video
VDec: vo config request - 448 x 336 (preferred colorspace: BGR 24-bit)
The selected video_out device is incompatible with this codec.
Try appending the scale filter to your filter list,
e.g. -vf spp,scale instead of -vf spp.
VDecoder init failed :(
Opening video decoder: [raw] RAW Uncompressed Video
VDec: vo config request - 448 x 336 (preferred colorspace: BGR 24-bit)
The selected video_out device is incompatible with this codec.
Try appending the scale filter to your filter list,
e.g. -vf spp,scale instead of -vf spp.
VDecoder init failed :(
Opening video decoder: [raw] RAW Uncompressed Video
VDec: vo config request - 448 x 336 (preferred colorspace: BGR 24-bit)
The selected video_out device is incompatible with this codec.
Try appending the scale filter to your filter list,
e.g. -vf spp,scale instead of -vf spp.
VDecoder init failed :(
Opening video decoder: [raw] RAW Uncompressed Video
VDec: vo config request - 448 x 336 (preferred colorspace: BGR 24-bit)
VDec: using BGR 24-bit as output csp (no 0)
Opening video filter: [flip]
Movie-Aspect is undefined - no prescaling applied.
[swscaler @ 0xd9b200]SwScaler: using unscaled bgr24 -> yuv420p special converter
videocodec: libavcodec (448x336 fourcc=31564c46 [FLV1])
Selected video codec: [rawbgr24flip] vfm: raw (RAW BGR24)
==========================================================================
MP3 audio selected.
New_Face failed. Maybe the font path is wrong.
Please supply the text font file (~/.mplayer/subfont.ttf).
subtitle font: load_sub_face failed.
VIDEO CODEC ID: 22
AUDIO CODEC ID: 15001, TAG: 0
Writing header...
Pos:   1.0s     26f (33%)  0.00fps Trem:   0min   0mb  A-V:0.081 [140:77]
Skipping frame!
Pos:   2.4s     61f (79%)  0.00fps Trem:   0min   0mb  A-V:0.052 [70:77]]
Broken frame at 0x1CD39                                                  
success: format: 0  data: 0x0 - 0xfd0cf4   0min   0mb  A-V:0.065 [60:77]
AVI file format detected.
[aviheader] Video stream found, -vid 0
[aviheader] Audio stream found, -aid 1
VIDEO:  [DX50]  480x204  24bpp  23.975 fps  799.3 kbps (97.6 kbyte/s)
[V] filefmt:3  fourcc:0x30355844  size:480x204  fps:23.98  ftime:=0.0417
==========================================================================
Opening audio decoder: [mp3lib] MPEG layer-2, layer-3
AUDIO: 44100 Hz, 2 ch, s16le, 112.0 kbit/7.94% (ratio: 14000->176400)
Selected audio codec: [mp3] afm: mp3lib (mp3lib MPEG layer-2, layer-3)
==========================================================================
Opening video filter: [expand osd=1]
Expand: -1 x -1, -1 ; -1, osd: 1, aspect: 0.000000, round: 1
Opening video filter: [expand w=448 h=336]
Expand: 448 x 336, -1 ; -1, osd: 0, aspect: 0.000000, round: 1
Opening video filter: [scale w=448 h=-3]
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
Selected video codec: [ffodivx] vfm: ffmpeg (FFmpeg MPEG-4)
==========================================================================
VDec: vo config request - 480 x 204 (preferred colorspace: Planar YV12)
VDec: using Planar YV12 as output csp (no 0)
Movie-Aspect is 2.35:1 - prescaling to correct movie aspect.
Pos:   3.5s     89f ( 0%)  0.00fps Trem:   2min  25mb  A-V:0.084 [113:65]
Skipping frame!
Pos:   4.2s    108f ( 0%)  0.00fps Trem:   1min  19mb  A-V:0.083 [100:60]
Skipping frame!
Pos:   4.5s    117f ( 0%)  0.00fps Trem:   1min  17mb  A-V:0.080 [94:58]]
Skipping frame!
Pos:   5.3s    137f ( 0%)  0.00fps Trem:   1min  14mb  A-V:0.084 [83:59]
Skipping frame!
Pos:   6.0s    156f ( 0%)  0.00fps Trem:   1min  10mb  A-V:0.083 [75:60]
Skipping frame!
Pos:   6.3s    165f ( 1%)  0.00fps Trem:   1min   8mb  A-V:0.081 [72:61]
Skipping frame!
Pos:   7.1s    185f ( 2%)  0.00fps Trem:   0min   4mb  A-V:0.084 [71:62]
Skipping frame!
Pos:   7.8s    204f ( 3%)  0.00fps Trem:   0min   4mb  A-V:0.083 [66:63]
Skipping frame!
Pos:   8.1s    213f ( 4%)  0.00fps Trem:   0min   3mb  A-V:0.081 [66:64]
Skipping frame!
Pos:   8.8s    232f ( 5%) 209.20fps Trem:   0min   2mb  A-V:0.080 [76:65]
Skipping frame!
Pos:   9.6s    252f ( 7%) 204.71fps Trem:   0min   2mb  A-V:0.083 [84:65]
Skipping frame!
Pos:   9.9s    261f ( 8%) 203.75fps Trem:   0min   2mb  A-V:0.081 [86:66]
Skipping frame!
Pos:  10.6s    280f ( 8%) 197.32fps Trem:   0min   3mb  A-V:0.080 [180:67]
Skipping frame!
Pos:  11.4s    300f ( 9%) 193.67fps Trem:   0min   4mb  A-V:0.084 [208:67]
Skipping frame!
Pos:  12.1s    319f (10%) 194.39fps Trem:   0min   3mb  A-V:0.083 [197:68]
Skipping frame!
Pos:  12.4s    328f (10%) 192.94fps Trem:   0min   4mb  A-V:0.080 [218:68]
Skipping frame!
Pos:  13.2s    348f (11%) 189.03fps Trem:   0min   5mb  A-V:0.084 [292:68]
Skipping frame!
Pos:  13.9s    367f (14%) 186.48fps Trem:   0min   4mb  A-V:0.083 [297:69]
Skipping frame!
Pos:  14.2s    376f (15%) 185.50fps Trem:   0min   4mb  A-V:0.081 [301:69]
Skipping frame!
Pos:  15.0s    396f (16%) 182.07fps Trem:   0min   5mb  A-V:0.084 [397:69]
Skipping frame!
Pos:  15.7s    415f (17%) 181.06fps Trem:   0min   5mb  A-V:0.083 [392:70]
Skipping frame!
Pos:  16.0s    424f (17%) 180.66fps Trem:   0min   5mb  A-V:0.081 [393:70]
Skipping frame!
Pos:  16.8s    443f (18%) 179.06fps Trem:   0min   5mb  A-V:0.080 [401:70]
Skipping frame!
Pos:  17.5s    463f (18%) 179.39fps Trem:   0min   5mb  A-V:0.084 [390:70]
Skipping frame!
Pos:  18.2s    482f (18%) 178.45fps Trem:   0min   5mb  A-V:0.083 [392:70]
Skipping frame!
Pos:  18.6s    491f (18%) 178.35fps Trem:   0min   5mb  A-V:0.080 [389:70]
Skipping frame!
Pos:  19.3s    511f (19%) 177.18fps Trem:   0min   5mb  A-V:0.084 [395:70]
Skipping frame!
Pos:  20.0s    530f (19%) 175.96fps Trem:   0min   6mb  A-V:0.083 [410:71]
Skipping frame!
Pos:  20.4s    539f (19%) 176.20fps Trem:   0min   5mb  A-V:0.081 [405:71]
Skipping frame!
Pos:  21.1s    559f (21%) 175.07fps Trem:   0min   5mb  A-V:0.084 [415:71]
Skipping frame!
Pos:  21.8s    578f (21%) 175.63fps Trem:   0min   5mb  A-V:0.083 [405:71]
Skipping frame!
Pos:  22.2s    587f (21%) 175.54fps Trem:   0min   5mb  A-V:0.081 [408:71]
Skipping frame!
Pos:  22.9s    606f (22%) 173.94fps Trem:   0min   6mb  A-V:0.080 [431:71]
Skipping frame!
Pos:  23.6s    626f (22%) 172.78fps Trem:   0min   6mb  A-V:0.083 [441:71]
Skipping frame!
Pos:  24.0s    635f (23%) 172.51fps Trem:   0min   6mb  A-V:0.081 [441:71]
Skipping frame!
Pos:  24.7s    654f (23%) 172.97fps Trem:   0min   6mb  A-V:0.080 [430:71]
Skipping frame!
Pos:  25.4s    674f (24%) 173.18fps Trem:   0min   6mb  A-V:0.084 [421:72]
Skipping frame!
Pos:  26.2s    693f (24%) 172.73fps Trem:   0min   6mb  A-V:0.083 [417:72]
Skipping frame!
Pos:  26.5s    702f (25%) 172.65fps Trem:   0min   6mb  A-V:0.080 [416:72]
Skipping frame!
Pos:  27.2s    722f (25%) 172.89fps Trem:   0min   6mb  A-V:0.084 [409:72]
Skipping frame!
Pos:  28.0s    741f (26%) 172.77fps Trem:   0min   6mb  A-V:0.083 [405:72]
Skipping frame!
Pos:  28.3s    750f (27%) 172.73fps Trem:   0min   6mb  A-V:0.081 [403:72]
Skipping frame!
Pos:  29.0s    770f (29%) 172.72fps Trem:   0min   5mb  A-V:0.084 [399:72]
Skipping frame!
Pos:  29.8s    789f (30%) 173.44fps Trem:   0min   5mb  A-V:0.083 [389:72]
Skipping frame!
Pos:  30.1s    798f (30%) 173.78fps Trem:   0min   5mb  A-V:0.081 [387:72]
Skipping frame!
Pos:  30.8s    817f (31%) 173.76fps Trem:   0min   5mb  A-V:0.080 [381:73]
Skipping frame!
Pos:  31.6s    837f (32%) 173.47fps Trem:   0min   5mb  A-V:0.084 [377:73]
Skipping frame!
Pos:  32.3s    856f (33%) 173.53fps Trem:   0min   5mb  A-V:0.083 [370:73]
Skipping frame!
Pos:  32.6s    865f (34%) 173.59fps Trem:   0min   5mb  A-V:0.080 [367:73]
Skipping frame!
Pos:  33.4s    885f (35%) 173.63fps Trem:   0min   5mb  A-V:0.084 [361:73]
Skipping frame!
Pos:  34.1s    904f (36%) 173.45fps Trem:   0min   4mb  A-V:0.083 [358:73]
Skipping frame!
Pos:  34.4s    913f (36%) 173.81fps Trem:   0min   4mb  A-V:0.081 [355:73]
Skipping frame!
Pos:  35.2s    933f (37%) 173.65fps Trem:   0min   4mb  A-V:0.084 [351:73]
Skipping frame!
Pos:  35.9s    952f (37%) 173.06fps Trem:   0min   4mb  A-V:0.083 [361:73]
Skipping frame!
Pos:  36.2s    961f (38%) 172.69fps Trem:   0min   5mb  A-V:0.081 [364:73]
Skipping frame!
Pos:  37.0s    981f (39%) 172.59fps Trem:   0min   4mb  A-V:0.084 [361:73]
Skipping frame!
Pos:  37.7s   1000f (40%) 172.83fps Trem:   0min   4mb  A-V:0.083 [357:73]
Skipping frame!
Pos:  38.0s   1009f (41%) 172.92fps Trem:   0min   4mb  A-V:0.081 [357:73]
Skipping frame!
Pos:  38.7s   1028f (42%) 172.95fps Trem:   0min   4mb  A-V:0.080 [354:73]
Skipping frame!
Pos:  39.5s   1048f (43%) 172.77fps Trem:   0min   4mb  A-V:0.084 [352:73]
Skipping frame!
Pos:  40.2s   1067f (43%) 172.88fps Trem:   0min   4mb  A-V:0.083 [348:73]
Skipping frame!
Pos:  40.5s   1076f (43%) 172.99fps Trem:   0min   4mb  A-V:0.080 [348:73]
Skipping frame!
Pos:  41.3s   1096f (44%) 172.57fps Trem:   0min   4mb  A-V:0.084 [350:74]
Skipping frame!
Pos:  42.0s   1115f (45%) 172.52fps Trem:   0min   4mb  A-V:0.083 [350:74]
Skipping frame!
Pos:  42.3s   1124f (45%) 172.55fps Trem:   0min   4mb  A-V:0.081 [350:74]
Skipping frame!
Pos:  43.1s   1144f (46%) 172.39fps Trem:   0min   4mb  A-V:0.084 [349:74]
Skipping frame!
Pos:  43.8s   1163f (46%) 172.35fps Trem:   0min   4mb  A-V:0.083 [347:74]
Skipping frame!
Pos:  44.1s   1172f (47%) 172.40fps Trem:   0min   4mb  A-V:0.081 [345:74]
Skipping frame!
Pos:  44.8s   1191f (47%) 172.41fps Trem:   0min   4mb  A-V:0.080 [342:74]
Skipping frame!
Pos:  45.6s   1211f (48%) 172.36fps Trem:   0min   4mb  A-V:0.083 [339:74]
Skipping frame!
Pos:  45.9s   1220f (48%) 172.39fps Trem:   0min   4mb  A-V:0.081 [338:74]
Skipping frame!
Pos:  46.6s   1239f (49%) 172.39fps Trem:   0min   4mb  A-V:0.080 [335:74]
Skipping frame!
Pos:  47.4s   1259f (50%) 172.42fps Trem:   0min   4mb  A-V:0.084 [333:74]
Skipping frame!
Pos:  48.1s   1278f (51%) 172.35fps Trem:   0min   4mb  A-V:0.083 [336:74]
Skipping frame!
Pos:  48.4s   1287f (52%) 172.24fps Trem:   0min   4mb  A-V:0.080 [340:74]
Skipping frame!
Pos:  49.2s   1307f (54%) 171.41fps Trem:   0min   4mb  A-V:0.084 [354:74]
Skipping frame!
Pos:  49.9s   1326f (55%) 171.01fps Trem:   0min   4mb  A-V:0.083 [356:74]
Skipping frame!
Pos:  50.2s   1335f (56%) 170.72fps Trem:   0min   4mb  A-V:0.081 [361:74]
Skipping frame!
Pos:  51.0s   1355f (56%) 170.44fps Trem:   0min   4mb  A-V:0.084 [361:74]
Skipping frame!
Pos:  51.7s   1374f (58%) 170.49fps Trem:   0min   4mb  A-V:0.083 [359:74]
Skipping frame!
Pos:  52.0s   1383f (59%) 170.57fps Trem:   0min   4mb  A-V:0.081 [358:74]
Skipping frame!
Pos:  52.8s   1402f (59%) 170.50fps Trem:   0min   4mb  A-V:0.080 [354:74]
Skipping frame!
Pos:  53.5s   1422f (60%) 170.12fps Trem:   0min   4mb  A-V:0.084 [355:74]
Skipping frame!
Pos:  54.2s   1441f (60%) 169.81fps Trem:   0min   4mb  A-V:0.083 [357:74]
Skipping frame!
Pos:  54.6s   1450f (60%) 169.73fps Trem:   0min   4mb  A-V:0.080 [356:74]
Skipping frame!
Pos:  55.3s   1470f (62%) 169.77fps Trem:   0min   4mb  A-V:0.084 [354:74]
Skipping frame!
Pos:  56.0s   1489f (65%) 169.44fps Trem:   0min   4mb  A-V:0.083 [356:74]
Skipping frame!
Pos:  56.4s   1498f (65%) 169.42fps Trem:   0min   4mb  A-V:0.081 [356:74]
Skipping frame!
Pos:  57.1s   1518f (66%) 169.25fps Trem:   0min   4mb  A-V:0.084 [356:74]
Skipping frame!
Pos:  57.8s   1537f (68%) 168.86fps Trem:   0min   4mb  A-V:0.083 [358:74]
Skipping frame!
Pos:  58.2s   1546f (69%) 168.87fps Trem:   0min   4mb  A-V:0.081 [360:74]
Skipping frame!
Pos:  58.9s   1565f (70%) 168.70fps Trem:   0min   4mb  A-V:0.080 [360:74]
Skipping frame!
Pos:  59.6s   1585f (73%) 168.56fps Trem:   0min   4mb  A-V:0.083 [359:74]
Skipping frame!
Pos:  60.0s   1594f (73%) 168.53fps Trem:   0min   4mb  A-V:0.081 [359:74]
Skipping frame!
Pos:  60.7s   1613f (74%) 168.42fps Trem:   0min   4mb  A-V:0.080 [358:74]
Skipping frame!
Pos:  61.4s   1633f (75%) 168.39fps Trem:   0min   4mb  A-V:0.084 [355:74]
Skipping frame!
Pos:  62.2s   1652f (77%) 168.35fps Trem:   0min   4mb  A-V:0.083 [353:74]
Skipping frame!
Pos:  62.5s   1661f (78%) 168.30fps Trem:   0min   4mb  A-V:0.080 [353:74]
Skipping frame!
Pos:  63.2s   1681f (79%) 168.52fps Trem:   0min   4mb  A-V:0.084 [350:74]
Skipping frame!
Pos:  64.0s   1700f (80%) 168.55fps Trem:   0min   4mb  A-V:0.083 [348:74]
Skipping frame!
Pos:  64.3s   1709f (81%) 168.54fps Trem:   0min   4mb  A-V:0.081 [349:74]
Skipping frame!
Pos:  65.0s   1729f (82%) 168.22fps Trem:   0min   4mb  A-V:0.084 [350:74]
Skipping frame!
Pos:  65.8s   1748f (83%) 167.98fps Trem:   0min   4mb  A-V:0.083 [352:74]
Skipping frame!
Pos:  66.1s   1757f (83%) 167.91fps Trem:   0min   4mb  A-V:0.081 [352:74]
Skipping frame!
Pos:  66.8s   1776f (84%) 167.72fps Trem:   0min   4mb  A-V:0.080 [353:74]
Skipping frame!
Pos:  67.6s   1796f (86%) 167.60fps Trem:   0min   4mb  A-V:0.084 [353:74]
Skipping frame!
Pos:  68.3s   1815f (87%) 167.70fps Trem:   0min   4mb  A-V:0.083 [351:74]
Skipping frame!
Pos:  68.6s   1824f (88%) 167.72fps Trem:   0min   4mb  A-V:0.080 [351:74]
Skipping frame!
Pos:  69.4s   1844f (90%) 167.58fps Trem:   0min   3mb  A-V:0.084 [353:74]
Skipping frame!
Pos:  70.1s   1863f (92%) 167.34fps Trem:   0min   3mb  A-V:0.083 [356:74]
Skipping frame!
Pos:  70.4s   1872f (93%) 167.43fps Trem:   0min   3mb  A-V:0.081 [357:74]
Skipping frame!
Pos:  71.2s   1892f (94%) 167.37fps Trem:   0min   3mb  A-V:0.084 [356:74]
Skipping frame!
Pos:  71.9s   1911f (96%) 167.31fps Trem:   0min   3mb  A-V:0.083 [354:74]
Skipping frame!
Pos:  72.2s   1920f (96%) 167.41fps Trem:   0min   3mb  A-V:0.081 [353:74]
Skipping frame!
Pos:  73.0s   1940f (97%) 167.31fps Trem:   0min   3mb  A-V:0.084 [353:74]
Skipping frame!
Pos:  73.7s   1959f (98%) 167.31fps Trem:   0min   3mb  A-V:0.083 [352:74]
Skipping frame!
Pos:  74.0s   1968f (99%) 167.35fps Trem:   0min   3mb  A-V:0.081 [352:74]
Skipping frame!
Pos:  74.4s   1980f (99%) 167.31fps Trem:   0min   3mb  A-V:0.051 [353:74]
Broken frame at 0x209679                                                  
Pos:  74.7s   1987f (100%) 167.30fps Trem:   0min   3mb  A-V:0.080 [354:74]
Skipping frame!
Pos:  75.5s   2007f (100%) 167.42fps Trem:   0min   3mb  A-V:0.084 [357:74]
Skipping frame!
Pos:  76.2s   2026f (100%) 167.78fps Trem:   0min   3mb  A-V:0.083 [357:74]
Skipping frame!
Pos:  76.5s   2035f (100%) 167.93fps Trem:   0min   3mb  A-V:0.080 [358:74]
Skipping frame!
Pos:  77.3s   2055f (100%) 168.30fps Trem:   0min   3mb  A-V:0.084 [358:74]
Skipping frame!
Pos:  78.0s   2074f (100%) 168.60fps Trem:   0min   3mb  A-V:0.083 [359:74]
Skipping frame!
Pos:  78.3s   2083f (100%) 168.81fps Trem:   0min   3mb  A-V:0.081 [358:74]
Skipping frame!
Pos:  79.1s   2103f (100%) 169.09fps Trem:   0min   3mb  A-V:0.084 [359:74]
Skipping frame!
mencoder: ratecontrol.c:698: ff_rate_estimate_qscale: Assertion
`picture_number<rcc->num_entries' failed.
Aborted







I wonder where is the problem and how can I fix it?

Thanks.




More information about the MEncoder-users mailing list