aac

How to packet encoded AAC data to flv file with ffmpeg API?

限于喜欢 提交于 2019-12-24 14:28:44
问题 I have captured the Audio data from Android Microphone and encoded them by MediaCodec. My question is: How to packet encoded AAC data to flv with ffmpeg ? 回答1: If you only want to packet audio into flv : ffmpeg -i input.aac -c copy out.flv If you have a video track to go with : ffmpeg -i input.mp4 -i input.aac -c copy out.flv 来源: https://stackoverflow.com/questions/31160039/how-to-packet-encoded-aac-data-to-flv-file-with-ffmpeg-api

Play AAC buffer on Android

半世苍凉 提交于 2019-12-24 11:54:00
问题 Is there a reasonable way to play a memory buffer containing AAC (in an MP4 container) in Android? I cannot write this buffer to disk... it must be played from memory. Seems that my only option is to decode to PCM manually and use AudioTrack since Android doesn't expose any API that plays non-PCM memory buffers. OpenSL ES has support for memory sources, but Android doesn't implement this. 回答1: The only way I can find that does this is (as indicated in my question) to manually decode the AAC.

FFmpeg iOS -> output file is invalid

安稳与你 提交于 2019-12-23 13:28:17
问题 I'm using following library to convert mkv to mp4: https://github.com/SterlingOnLoop/FFmpegWrapper. - (void)convertUsingFFmpegWrapper { NSString *mp4Extension = @"mp4"; NSString *mkvExtension = @"mkv"; NSString *videoName = @"file1"; // NSString *videoName = @"file2"; NSString *mkvVideoFilePath = [[NSBundle mainBundle] pathForResource:videoName ofType:mkvExtension]; NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES); NSString *documentsDirectory =

AAC/MP4 not working in ActionScript 3's NetStream

拥有回忆 提交于 2019-12-23 12:09:48
问题 I'm trying to play a remote AAC file in ActionScript 3 in Flash CS3 and am currently using this code: var url:String = " http://a1.phobos.apple.com/us/r1000/020/Music/d4/50/94/mzm.kjjofihr.aac.p.m4a "; var connect_nc:NetConnection = new NetConnection(); connect_nc.connect(null); var stream_ns:NetStream = new NetStream(connect_nc); stream_ns.play(url); (This is based on: http://www.adobe.com/devnet/flashplayer/articles/hd_video_flash_player_03.html) No errors are thrown, but no sound is played

How to encode resampled PCM-audio to AAC using ffmpeg-API when input pcm samples count not equal 1024

眉间皱痕 提交于 2019-12-23 09:42:46
问题 I am working on capturing and streaming audio to RTMP server at a moment. I work under MacOS (in Xcode), so for capturing audio sample-buffer I use AVFoundation-framework. But for encoding and streaming I need to use ffmpeg-API and libfaac encoder. So output format must be AAC (for supporting stream playback on iOS-devices). And I faced with such problem: audio-capturing device (in my case logitech camera) gives me sample-buffer with 512 LPCM samples, and I can select input sample-rate from

How to record raw AAC audio files in Android using MediaRecorder? AAC_ADTS doesn't work

纵饮孤独 提交于 2019-12-21 18:33:34
问题 I'm using the Android MediaRecorder to record AAC encoded audio files. Setting the output format to MPEG-4 worked pretty well. But as my audio player supports neither MPEG-4 nor 3GP I tried to get raw AAC files by using the output format AAC_ADTS , which is supported by Android since API level 16. mRecorder = new MediaRecorder(); mRecorder.setAudioSource(MediaRecorder.AudioSource.MIC); mRecorder.setOutputFormat(MediaRecorder.OutputFormat.AAC_ADTS); mRecorder.setOutputFile(mFileName);

MediaElement and AAC stream support on Windows Phone 7

浪子不回头ぞ 提交于 2019-12-21 17:03:49
问题 According to this link the Windows Phone 7 supports the AAC encoded audio stream in the browser and via the MediaElement API as well. We have tested few the icecast streams (e.g. this) it on our devices (e.g. HTC HD7 T9292, with latest updated - ver 7.0 (7392) ), but it does not work either in web browser or via API. The mp3 live stream works fine. Any clues, why the AAC does not work, even the documentation says it should? BR SteN 回答1: Icecast is not pure AAC, in 7.0 you need to strip out

MediaElement and AAC stream support on Windows Phone 7

一曲冷凌霜 提交于 2019-12-21 17:02:53
问题 According to this link the Windows Phone 7 supports the AAC encoded audio stream in the browser and via the MediaElement API as well. We have tested few the icecast streams (e.g. this) it on our devices (e.g. HTC HD7 T9292, with latest updated - ver 7.0 (7392) ), but it does not work either in web browser or via API. The mp3 live stream works fine. Any clues, why the AAC does not work, even the documentation says it should? BR SteN 回答1: Icecast is not pure AAC, in 7.0 you need to strip out

Unexpected status line: ICY 200 OK for URL openStream() method?

白昼怎懂夜的黑 提交于 2019-12-21 12:29:40
问题 According to changes for kitakt 4.4 there were some problems with playing shoutcast streams (those returning "ICY" instead of "HTTP/1.x" response). So solution for kitkat was to reregister "icy" protocol prefix in JVM once before we opened a stream by this: try { java.net.URL.setURLStreamHandlerFactory( new java.net.URLStreamHandlerFactory(){ public java.net.URLStreamHandler createURLStreamHandler( String protocol ) { Log.d( LOG, "Asking for stream handler for protocol: '" + protocol + "'" );

Conversion from mp3 to aac/mp4 container (FFmpeg/c++)

萝らか妹 提交于 2019-12-21 05:16:13
问题 I have made a small application to extract audio from an mp4 file, or simply convert an existing audio file to AAC/mp4 format (both raw AAC, or inside mp4 container). I have run this application with existing mp4 files as input, and it properly extracts audio, and encodes to mp4 (audio only:AAC), or even directly in AAC format (i.e. test.aac also works). But when I tried running it on mp3 files, output clip plays faster than it should be (a clip of 1:12 seconds plays back till 1:05 seconds