From owner-freebsd-questions@FreeBSD.ORG Sun Mar 7 16:29:27 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2DA5316A4CE for ; Sun, 7 Mar 2004 16:29:27 -0800 (PST) Received: from mail.ic.sunysb.edu (mail.ic.sunysb.edu [129.49.1.4]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5C2E243D3F for ; Sun, 7 Mar 2004 16:29:26 -0800 (PST) (envelope-from tscheng@ic.sunysb.edu) Received: from postal.ic.sunysb.edu (mail [129.49.1.4]) by mail.ic.sunysb.edu (8.12.10/8.12.10) with SMTP id i280TIFx028998; Sun, 7 Mar 2004 19:29:25 -0500 (EST) Received: from smtp.ic.sunysb.edu ([129.49.1.24]) by postal.ic.sunysb.edu (SAVSMTP 3.1.3.37) with SMTP id M2004030719292430591 ; Sun, 07 Mar 2004 19:29:24 -0500 Received: from sparky.ic.sunysb.edu (daemon@sparky.ic.sunysb.edu [129.49.1.3]) by smtp.ic.sunysb.edu (8.12.10/8.12.10) with ESMTP id i280TOc2029048; Sun, 7 Mar 2004 19:29:24 -0500 (EST) Received: from localhost (tscheng@localhost) by sparky.ic.sunysb.edu (8.12.10/8.12.9) with ESMTP id i280TNt0019357; Sun, 7 Mar 2004 19:29:24 -0500 (EST) Date: Sun, 7 Mar 2004 19:29:23 -0500 (EST) From: Tsu-Fan Cheng To: Gautam Gopalakrishnan In-Reply-To: <20040225210350.2ad0cbed.gautam@inspired.net.au> Message-ID: References: <20040225210350.2ad0cbed.gautam@inspired.net.au> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: freebsd-questions@freebsd.org Subject: Re: mp4 spliter X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 08 Mar 2004 00:29:27 -0000 Hi, thank you for the tip, but I have tried a few times and it doesn't work :( The vedio track can be processed but not the audio. I played the original movie file again with mplayer and logged the output: ..... MOV: File-Type unknown Major-Brand: mp42 QuickTime/MOV file format detected. -------------- MOV track #0: 29325 chunks, 262913 samples Audio bits: 16 chans: 2 rate: 44100 MOV: Found MPEG4 audio Elementary Stream Descriptor atom (51)! Fourcc: mp4a -------------- MOV track #1: 24427 chunks, 146411 samples MOV: Found MPEG4 movie Elementary Stream Descriptor atom (86)! Image size: 640 x 344 (32 bpp) Display size: 640 x 344 Fourcc: mp4v Codec: '' -------------- MOV track #2: 1 chunks, 0 samples Generic track - not completly understood! (id: 2) -------------- MOV track #3: 1 chunks, 0 samples Generic track - not completly understood! (id: 3) -------------- MOV: longest streams: A: #0 (262913 samples) V: #1 (146411 samples) ========================================================================== Opening audio decoder: [faad] AAC (MPEG2/4 Advanced Audio Coding) FAAD: compressed input bitrate missing, assuming 128kbit/s! ^^^^^^^^^^^^^^^^^^^^^^^^^^^ is this what went wrong? AUDIO: 44100 Hz, 2 ch, 16 bit (0x10), ratio: 16000->176400 (128.0 kbit) Selected audio codec: [faad] afm:faad (AAC MPEG2/MPEG4 Audio) ========================================================================== ========================================================================== Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family Selected video codec: [ffodivx] vfm:ffmpeg (FFmpeg MPEG-4) ========================================================================== Checking audio filter chain for 44100Hz/2ch/16bit -> 44100Hz/2ch/16bit... AF_pre: af format: 2 bps, 2 ch, 44100 hz, little endian signed int AF_pre: 44100Hz 2ch Signed 16-bit (Little-Endian) AO: [oss] 44100Hz 2ch Signed 16-bit (Little-Endian) (2 bps) Building audio filter chain for 44100Hz/2ch/16bit -> 44100Hz/2ch/16bit... Starting playback... VDec: vo config request - 640 x 344 (preferred csp: Planar YV12) VDec: using Planar YV12 as output csp (no 0) Movie-Aspect is 1.86:1 - prescaling to correct movie aspect. VO: [xv] 640x344 => 640x344 Planar YV12 A: 1.5 V: 1.5 A-V: 0.003 ct: 0.021 37/ 37 11% 6% 6.1% 0 0 0% any help is appreciated! thanks! > > Hi freebsders, I have a movie file ended with mp4 and it's bigger than > > 700mb, does anybody know how I can split the file into 2 so I can make > > a CD out of it? thanks a lot! > > If you can play it with mplayer, then you can (assuming your movie file > is a.mp4 and length is 1000 secs) > > $ mencoder -oac copy -ovc copy -ss 0 -endpos 500 -o first.mp4 a.mp4 > $ mencoder -oac copy -ovc copy -ss 500 -endpos 1000 -o second.mp4 a.mp4 > > Or you could take the easy way out and run this to get split files. > $ split -b 700m a.mp4 > > Gautam >