[MEncoder-users] Problem when joining two video files

ApplePro applepro7777 at gmail.com
Tue Dec 11 11:58:08 CET 2007


Hello,

I'm trying to join two files. When I do this:

--------------------
mencoder -vf scale=448:-3,expand=448:336 -sws 9 -of lavf -ovc lavc -lavcopts
vcodec=flv:vbitrate=400 -frames 200 -ofps 15 -oac mp3lame -lameopts
abr:br=80:mode=3  -af channels=1 -o test2.flv logo7.avi  test23.m4v
--------------------


I get error:

--------------------
ISO: Unknown File Type Major Brand: M4V 
Quicktime/MOV file format detected.
[mov] Video stream found, -vid 0
[mov] Audio stream found, -aid 1
VIDEO:  [avc1]  640x360  24bpp  29.970 fps    0.0 kbps ( 0.0 kbyte/s)
[V] filefmt:7  fourcc:0x31637661  size:640x360  fps:29.97  ftime:=0.0334
==========================================================================
Opening audio decoder: [faad] AAC (MPEG2/4 Advanced Audio Coding)
AUDIO: 44100 Hz, 2 ch, s16le, 128.0 kbit/9.07% (ratio: 16000->176400)
Selected audio codec: [faad] afm: faad (FAAD AAC (MPEG-2/MPEG-4 Audio) decoder)
==========================================================================
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: [ffh264] vfm: ffmpeg (FFmpeg H.264)
==========================================================================
--------------------




First one is the 5 seconds logo with null sound (just silent sound in PCM/Mono),
ffmpeg shows this:

--------------------
Input #0, avi, from 'logo7.avi':
  Duration: 00:00:05.0, start: 0.000000, bitrate: 90338 kb/s
    Stream #0.0: Video: rawvideo, bgr24, 448x336 [PAR 0:1 DAR 0:1], 25.00 fps(r)
    Stream #0.1: Audio: pcm_s16le, 44100 Hz, mono, 705 kb/s
--------------------


Second one is test 2 seconds movie:

--------------------
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'test23.m4v':
  Duration: 00:00:02.4, start: 0.000000, bitrate: 1635 kb/s
    Stream #0.0(eng): Video: h264, yuv420p, 640x360 [PAR 0:1 DAR 0:1], 29.97 fps(r)
    Stream #0.1(eng): Audio: mp4a / 0x6134706D, 44100 Hz, stereo
--------------------


So, both files have audio. I wonder how can I fix this and encode video?

PS: I'm using mencoder on linux server.




More information about the MEncoder-users mailing list