[Libav-user] Is there a way to encoding PCM to AAC?
funta
lkm9125 at gmail.com
Fri Jan 17 06:24:54 CET 2014
I made AAC encoder(with MP4 container)
SWResample lib is used for audio resampling
It has worked well other format(AC3, MP2, MP3, AAC, FLAC)
But, I got failed on which it has PCM coded audio
The error has occured at SWResample
I've tested with several PCM coded(pcm_s16le) video/audio files though,
Results are always same
===================================
*[SWR @ 0x21f9120] Input channel count and layout are unset*
Input #0, avi, from 'test.avi':
Metadata:
TCOD : 0
TCDO : 3125789333
Duration: 00:05:12.58, start: 0.000000, bitrate: 4424 kb/s
Stream #0:0: Video: h264 (High) (H264 / 0x34363248), yuv420p, 624x352
[SAR 1:1 DAR 39:22], 29.97 fps, 29.97 tbr, 29.97 tbn, 59.94 tbc
Stream #0:1: Audio: pcm_s16le ([1][0][0][0] / 0x0001), 44100 Hz, 2
channels, s16, 1411 kb/s
===================================
Output #0, mp4, to 'out.mp4':
Metadata:
encoder : Lavf55.21.100
Stream #0:0: Video: h264 (libx264) ([33][0][0][0] / 0x0021), yuv420p,
640x360, q=-1--1, 500 kb/s, 29.97 tbr, 30k tbn, 29.97 tbc
Stream #0:1: Audio: aac (libfaac) ([64][0][0][0] / 0x0040), 44100 Hz,
stereo, s16, 128 kb/s
===================================
*Floating point exception (core dumped)* <== I found the reason, It was
program tried access 0 value(from in_channel_layout)
===================================
Any idea or suggestion??
--
View this message in context: http://libav-users.943685.n4.nabble.com/Is-there-a-way-to-encoding-PCM-to-AAC-tp4659145.html
Sent from the libav-users mailing list archive at Nabble.com.
More information about the Libav-user
mailing list