[gst-devel] transcoding to mp4

Richard Brown mynamewasgone at gmail.com
Tue Jun 7 08:12:11 CEST 2005


Sorry, forgot to send this to the list as well

---------- Forwarded message ----------
From: Richard Brown <mynamewasgone at gmail.com>
Date: 07-Jun-2005 15:54
Subject: Re: [gst-devel] transcoding to mp4
To: "Ronald S. Bultje" <rbultje at ronald.bitfreak.net>


On 07/06/05, Ronald S. Bultje <rbultje at ronald.bitfreak.net> wrote:
> Hi,
>
> That was one of my testcases, works for me. How so does faad not like it?
>

Hi, output from faad is:

 *********** Ahead Software MPEG-4 AAC Decoder V2.0      ******************

 Build: Jun  3 2005
 Copyright 2002-2004: Ahead Software AG
 http://www.audiocoding.com
 Floating point version

 This program is free software; you can redistribute it and/or modify
 it under the terms of the GNU General Public License as published by
 the Free Software Foundation; either version 2 of the License, or
 (at your option) any later version.

 You should have received a copy of the GNU General Public License
 along with this program; if not, write to the Free Software
 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.

 **************************************************************************

Unable to find correct AAC sound track in the MP4 file.

** Output from gst-launch was
gst-launch-0.8 -v filesrc location=in.mp3 ! mad ! faac profile=1 !
ffmux_mp4 ! filesink location=out.m4a
RUNNING pipeline ...
/pipeline0/filesrc0.src: caps = audio/mpeg, mpegversion=(int)1,
layer=(int)1, rate=(int)8000, channels=(int)1
/pipeline0/mad0.sink: caps = audio/mpeg, mpegversion=(int)1,
layer=(int)1, rate=(int)8000, channels=(int)1
/pipeline0/ffmux_mp40.src: caps = application/x-gst_ff-mp4
/pipeline0/filesink0.sink: caps = application/x-gst_ff-mp4
/pipeline0/filesrc0.src: active = TRUE
/pipeline0/mad0.sink: active = TRUE
/pipeline0/mad0.src: active = TRUE
/pipeline0/faac0.sink: active = TRUE
/pipeline0/faac0.src: active = TRUE
/pipeline0/ffmux_mp40.src: active = TRUE
/pipeline0/ffmux_mp40.audio_0: active = TRUE
/pipeline0/filesink0.sink: active = TRUE
/pipeline0/mad0.src: caps = audio/x-raw-int, endianness=(int)1234,
signed=(boolean)true, width=(int)16, depth=(int)16, rate=(int)44100,
channels =(int)2
/pipeline0/faac0.sink: caps = audio/x-raw-int, endianness=(int)1234,
signed=(boolean)true, width=(int)16, depth=(int)16, rate=(int)44100,
channe ls=(int)2
/pipeline0/faac0.src: caps = audio/mpeg, mpegversion=(int)4,
channels=(int)2, rate=(int)44100
/pipeline0/ffmux_mp40.audio_0: caps = audio/mpeg, mpegversion=(int)4,
channels=(int)2, rate=(int)44100
/pipeline0/filesrc0.src: active = FALSE
/pipeline0/faac0.sink: active = FALSE
/pipeline0/faac0.src: active = FALSE
/pipeline0/mad0.sink: active = FALSE
/pipeline0/mad0.src: active = FALSE
/pipeline0/filesink0.sink: active = FALSE
/pipeline0/ffmux_mp40.src: active = FALSE
/pipeline0/ffmux_mp40.audio_0: active = FALSE
Execution ended after 10946 iterations (sum 24715535000 ns, average
2257951 ns, min 27000 ns, max 235431000 ns).
/pipeline0/filesrc0.src: caps = NULL
/pipeline0/mad0.sink: caps = NULL
/pipeline0/mad0.src: caps = NULL
/pipeline0/faac0.sink: caps = NULL
/pipeline0/faac0.src: caps = NULL
/pipeline0/ffmux_mp40.audio_0: caps = NULL
/pipeline0/ffmux_mp40.src: caps = NULL
/pipeline0/filesink0.sink: caps = NULL

running mplayer out.m4a does play it, but too slowly output is

MPlayer 1.0pre6-3.4.3 (C) 2000-2004 MPlayer Team
CPU: Advanced Micro Devices Athlon MP/XP/XP-M Barton (Family: 6, Stepping: 0)
Detected cache-line size is 64 bytes
MMX2 supported but disabled
3DNowExt supported but disabled
CPUflags:  MMX: 1 MMX2: 0 3DNow: 1 3DNow2: 0 SSE: 1 SSE2: 0
Compiled for x86 CPU with extensions: MMX 3DNow SSE

Warning unknown option cache_min at line 144
Warning unknown option cache_prefill at line 147

77 audio & 189 video codecs
Linux RTC init error in ioctl (rtc_irqp_set 1024): Permission denied
Try adding "echo 1024 > /proc/sys/dev/rtc/max-user-freq" to your
system startup scripts.
Playing out.m4a.
Cache fill: 19.63% (1646592 bytes)    QuickTime/MOV file format detected.
--------------
MOV track #0: 10944 chunks, 10944 samples
Audio bits: 16  chans: 2  rate: 44100
MOV: Found MPEG4 audio Elementary Stream Descriptor atom (35)!
Fourcc: mp4a
--------------
MOV: longest streams: A: #0 (10944 samples)  V: #-1 (0 samples)
Clip info:
 name: Number Of The Beast
==========================================================================
Opening audio decoder: [faad] AAC (MPEG2/4 Advanced Audio Coding)
FAAD: compressed input bitrate missing, assuming 128kbit/s!
AUDIO: 44100 Hz, 1 ch, 16 bit (0x10), ratio: 16000->88200 (128.0 kbit)
Selected audio codec: [faad] afm:faad (FAAD AAC (MPEG2/MPEG4 Audio) decoder)
==========================================================================
Checking audio filter chain for 44100Hz/1ch/16bit -> 44100Hz/2ch/16bit...
AF_pre: af format: 2 bps, 1 ch, 44100 hz, little endian signed int
AF_pre: 44100Hz 1ch Signed 16-bit (Little-Endian)
AO: [oss] 44100Hz 2ch Signed 16-bit (Little-Endian) (2 bps)
Building audio filter chain for 44100Hz/1ch/16bit -> 44100Hz/2ch/16bit...
Video: no video
Starting playback...
A:   2.8 (02.8)  1.0% 62%

MPlayer interrupted by signal 2 in module: play_audio

Hope this helps,

Regards

--
Richard Brown


-- 
Richard Brown




More information about the gstreamer-devel mailing list