ogg

Playing an ogg stream in iOS

喜欢而已 提交于 2019-11-26 23:14:42
问题 Has anyone played an ogg stream from iOS? What can I use without having to write my own decoder? I'm using Apple's AVPlayer to play the stream. This question has been asked as part of this thread: iOS online radio streaming questions but it hasn't been answered. 回答1: There is no built-in support for playing ogg files in iOS, however, the source code for ogg compression/decompression is readily available (from xiph.com). It is fairly straightforward to compile this code for iOS and use it in

Merge two mp3 php

两盒软妹~` 提交于 2019-11-26 21:25:49
问题 Do you know a class to merge two MP3 files using PHP? I've found nothing on Google. 回答1: If by merging, you mean placing one audio over the other, then please disregard this answer. If you dont want to re-encode the MP3s, you can probably just append them. I know this worked for MPEG movies, so I guess it could work for MP3s too. Another option would be to add the audo files to a Zip Archive with no compression and then rename the extension to .mp3. I did a quick test and this file_put

Can FFmpeg be used as a library, instead of a standalone program?

耗尽温柔 提交于 2019-11-26 19:32:40
I'd like to add video conversion capabilities to a program I'm writing. FFmpeg's command line interface for doing this is simply ffmpeg -i InputFile OutputFile , but is there a way to make use of it as a library, so I can do something like ffmpeg_convert(InputFile, OutputFile) ? I'm hoping I won't have to use libavcodec directly, as I imagine it will be far more complex than a one-line function to convert between formats. If FFmpeg can't be easily retrofitted to do this, is there perhaps another library based on it that does? I've heard of libvlc, but that seems to only expose a video playing

Setting contact custom ringtone, how?

我的未来我决定 提交于 2019-11-26 16:47:43
问题 I know how to change phone ringtone, also how to get contacts, but how can I set a ringtone for a specific contact? So how do I use the method: ContactsContract.Contacts.CUSTOM_RINGTONE ? I have tried it like this: Uri contactUri = ContactsContract.Contacts.CONTENT_URI; String[] PROJECTION = new String[] { ContactsContract.Contacts._ID, ContactsContract.Contacts.DISPLAY_NAME, ContactsContract.Contacts.HAS_PHONE_NUMBER, }; String SELECTION = ContactsContract.Contacts.HAS_PHONE_NUMBER + "='1'";

How to convert the WAV/OGG file to FLAC file in Android?

流过昼夜 提交于 2019-11-26 16:12:22
问题 EDIT: Incorporated the changed uv001's answer. I can only find that ICS 4.0 support decoding of FLAC, but encode. I need some encoder to convert wav to flac, but currenty I can't find it. I find there is a jFlac avaible , but I don't know how to use this library, just simply convert the files. Could anyone give me a hand on it? Today, I just some idea by myself, with using the JavaFlacEncoder. and it works for certain bitrates of WAV. I changed the value into a hard coding value in which it

Can FFmpeg be used as a library, instead of a standalone program?

拟墨画扇 提交于 2019-11-26 06:16:49
问题 I\'d like to add video conversion capabilities to a program I\'m writing. FFmpeg\'s command line interface for doing this is simply ffmpeg -i InputFile OutputFile , but is there a way to make use of it as a library, so I can do something like ffmpeg_convert(InputFile, OutputFile) ? I\'m hoping I won\'t have to use libavcodec directly, as I imagine it will be far more complex than a one-line function to convert between formats. If FFmpeg can\'t be easily retrofitted to do this, is there