有解壓軟體,類似於電腦上的解壓軟體。在安卓市場自己找一下,按分類很容易找到。
❷ 手機解壓軟體有哪些
1、安卓解壓
安卓解壓是一款穩定、快速、高效的壓縮與解壓工具,是一款rar解壓利器, 支持zip,7-zip,rar,tar等主流壓縮格式,支持加密文件解壓與壓縮,解壓中文無亂碼,增加簡單文件管理功能。
文件壓縮率取決於多種因素,包括文件類型、文件大小和壓縮方案。
對於包含大量不重復信息的文件(例如圖像或MP3文件),則不能使用這種機制來獲得很高的壓縮率,因為它們不包含重復多次的模式。
此外文件壓縮效率還取決於壓縮程序使用的具體演算法。有些程序能夠在某些類型的文件中更好地尋找到模式,因此能更有效地壓縮這些類型的文件。
其他一些壓縮程序在字典中又使用了字典,這使它們在壓縮大文件時表現很好,但是在壓縮較小的文件時效率不高。
❸ android中如何代碼壓縮音頻視頻文件呢
知道怎麼壓縮文件,音視頻文件應該差不多吧O.O
package com.once;
import java.io.*;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Enumeration;
import java.util.zip.ZipEntry;
import java.util.zip.ZipException;
import java.util.zip.ZipFile;
import java.util.zip.ZipOutputStream;
/**
* Java utils 實現的Zip工具
*
* @author once
*/
public class ZipUtils {
private static final int BUFF_SIZE = 1024 * 1024; // 1M Byte
/**
* 批量壓縮文件(夾)
*
* @param resFileList 要壓縮的文件(夾)列表
* @param zipFile 生成的壓縮文件
* @throws IOException 當壓縮過程出錯時拋出
*/
public static void zipFiles(Collection<File> resFileList, File zipFile) throws IOException {
ZipOutputStream zipout = new ZipOutputStream(new BufferedOutputStream(new FileOutputStream(
zipFile), BUFF_SIZE));
for (File resFile : resFileList) {
zipFile(resFile, zipout, "");
}
zipout.close();
}
/**
* 批量壓縮文件(夾)
*
* @param resFileList 要壓縮的文件(夾)列表
* @param zipFile 生成的壓縮文件
* @param comment 壓縮文件的注釋
* @throws IOException 當壓縮過程出錯時拋出
*/
public static void zipFiles(Collection<File> resFileList, File zipFile, String comment)
throws IOException {
ZipOutputStream zipout = new ZipOutputStream(new BufferedOutputStream(new FileOutputStream(
zipFile), BUFF_SIZE));
for (File resFile : resFileList) {
zipFile(resFile, zipout, "");
}
zipout.setComment(comment);
zipout.close();
}
/**
* 解壓縮一個文件
*
* @param zipFile 壓縮文件
* @param folderPath 解壓縮的目標目錄
* @throws IOException 當解壓縮過程出錯時拋出
*/
public static void upZipFile(File zipFile, String folderPath) throws ZipException, IOException {
File desDir = new File(folderPath);
if (!desDir.exists()) {
desDir.mkdirs();
}
ZipFile zf = new ZipFile(zipFile);
for (Enumeration<?> entries = zf.entries(); entries.hasMoreElements();) {
ZipEntry entry = ((ZipEntry)entries.nextElement());
InputStream in = zf.getInputStream(entry);
String str = folderPath + File.separator + entry.getName();
str = new String(str.getBytes("8859_1"), "GB2312");
File desFile = new File(str);
if (!desFile.exists()) {
File fileParentDir = desFile.getParentFile();
if (!fileParentDir.exists()) {
fileParentDir.mkdirs();
}
desFile.createNewFile();
}
OutputStream out = new FileOutputStream(desFile);
byte buffer[] = new byte[BUFF_SIZE];
int realLength;
while ((realLength = in.read(buffer)) > 0) {
out.write(buffer, 0, realLength);
}
in.close();
out.close();
}
}
/**
* 解壓文件名包含傳入文字的文件
*
* @param zipFile 壓縮文件
* @param folderPath 目標文件夾
* @param nameContains 傳入的文件匹配名
* @throws ZipException 壓縮格式有誤時拋出
* @throws IOException IO錯誤時拋出
*/
public static ArrayList<File> upZipSelectedFile(File zipFile, String folderPath,
String nameContains) throws ZipException, IOException {
ArrayList<File> fileList = new ArrayList<File>();
File desDir = new File(folderPath);
if (!desDir.exists()) {
desDir.mkdir();
}
ZipFile zf = new ZipFile(zipFile);
for (Enumeration<?> entries = zf.entries(); entries.hasMoreElements();) {
ZipEntry entry = ((ZipEntry)entries.nextElement());
if (entry.getName().contains(nameContains)) {
InputStream in = zf.getInputStream(entry);
String str = folderPath + File.separator + entry.getName();
str = new String(str.getBytes("8859_1"), "GB2312");
// str.getBytes("GB2312"),"8859_1" 輸出
// str.getBytes("8859_1"),"GB2312" 輸入
File desFile = new File(str);
if (!desFile.exists()) {
File fileParentDir = desFile.getParentFile();
if (!fileParentDir.exists()) {
fileParentDir.mkdirs();
}
desFile.createNewFile();
}
OutputStream out = new FileOutputStream(desFile);
byte buffer[] = new byte[BUFF_SIZE];
int realLength;
while ((realLength = in.read(buffer)) > 0) {
out.write(buffer, 0, realLength);
}
in.close();
out.close();
fileList.add(desFile);
}
}
return fileList;
}
/**
* 獲得壓縮文件內文件列表
*
* @param zipFile 壓縮文件
* @return 壓縮文件內文件名稱
* @throws ZipException 壓縮文件格式有誤時拋出
* @throws IOException 當解壓縮過程出錯時拋出
*/
public static ArrayList<String> getEntriesNames(File zipFile) throws ZipException, IOException {
ArrayList<String> entryNames = new ArrayList<String>();
Enumeration<?> entries = getEntriesEnumeration(zipFile);
while (entries.hasMoreElements()) {
ZipEntry entry = ((ZipEntry)entries.nextElement());
entryNames.add(new String(getEntryName(entry).getBytes("GB2312"), "8859_1"));
}
return entryNames;
}
/**
* 獲得壓縮文件內壓縮文件對象以取得其屬性
*
* @param zipFile 壓縮文件
* @return 返回一個壓縮文件列表
* @throws ZipException 壓縮文件格式有誤時拋出
* @throws IOException IO操作有誤時拋出
*/
public static Enumeration<?> getEntriesEnumeration(File zipFile) throws ZipException,
IOException {
ZipFile zf = new ZipFile(zipFile);
return zf.entries();
}
/**
* 取得壓縮文件對象的注釋
*
* @param entry 壓縮文件對象
* @return 壓縮文件對象的注釋
* @throws UnsupportedEncodingException
*/
public static String getEntryComment(ZipEntry entry) throws UnsupportedEncodingException {
return new String(entry.getComment().getBytes("GB2312"), "8859_1");
}
/**
* 取得壓縮文件對象的名稱
*
* @param entry 壓縮文件對象
* @return 壓縮文件對象的名稱
* @throws UnsupportedEncodingException
*/
public static String getEntryName(ZipEntry entry) throws UnsupportedEncodingException {
return new String(entry.getName().getBytes("GB2312"), "8859_1");
}
/**
* 壓縮文件
*
* @param resFile 需要壓縮的文件(夾)
* @param zipout 壓縮的目的文件
* @param rootpath 壓縮的文件路徑
* @throws FileNotFoundException 找不到文件時拋出
* @throws IOException 當壓縮過程出錯時拋出
*/
private static void zipFile(File resFile, ZipOutputStream zipout, String rootpath)
throws FileNotFoundException, IOException {
rootpath = rootpath + (rootpath.trim().length() == 0 ? "" : File.separator)
+ resFile.getName();
rootpath = new String(rootpath.getBytes("8859_1"), "GB2312");
if (resFile.isDirectory()) {
File[] fileList = resFile.listFiles();
for (File file : fileList) {
zipFile(file, zipout, rootpath);
}
} else {
byte buffer[] = new byte[BUFF_SIZE];
BufferedInputStream in = new BufferedInputStream(new FileInputStream(resFile),
BUFF_SIZE);
zipout.putNextEntry(new ZipEntry(rootpath));
int realLength;
while ((realLength = in.read(buffer)) != -1) {
zipout.write(buffer, 0, realLength);
}
in.close();
zipout.flush();
zipout.closeEntry();
}
}
}
❹ 誰有MP3壓縮軟體,只要把體積壓到最小,不用考慮音質問題
不需要其他軟體任何轉換軟體都可以比如說千千靜聽就可以在轉換城MP3的時候點擊選項裡面把碼率降低越低佔用空間越小,當然降低的品質也就越多,你既然說無視品質了就直接降低到你所能播放的最小碼率即可,還有采樣率也同樣影響到空間。
❺ 如何將MP3文件打包到android APK中
開發程序時一般會將視頻音頻等文件放在assets、或raw下,但在2.3以前會有文件大小的限制,最大不能超過1M。如果在2.2的系統里想放超大文件該怎麼辦呢,,,我這有個方法(我也是在搜遍了整個互聯網,啥也沒找到的情況下自己摸索出來的)。可以將超大文件比如100M,放在src目錄下,例如:
。
然後使用以下代碼復制到SD卡下,就可以使用了(解壓縮的代碼網上一大堆,這里就不提供了),
String path = "org/cocos2dx/util/html.zip"; //數據存放的路徑
InputStream is = mContext.getClassLoader().getResourceAsStream(path);
FileOutputStream out = new FileOutputStream("sdcard/liangzi/html.zip");//復制到SD卡下的路徑
int data = 0;
byte[] buffer = new byte[1024];
while((data = is.read(buffer)) != -1){
out.write(buffer, 0, data);
}
is.close();
out.close(); 此代碼最好放在線程中非同步進行。不然就卡那去啦。。
❻ 哪款安卓音樂播放軟體可以直接播放壓縮文件里的音樂(包括mp3和無損)
因為大多數的手機音樂播放器都不會支持flac無損文件,一般的軟體你在安卓商店裡看看,有個叫全能播放器的,它可以支持
❼ 怎麼用手機把手機里的視頻轉換成mp3音樂(手機,不是電腦)
將視頻文件轉換為MP3音頻文件:
1、在手機應用商店中下載VidTrim。
❽ 安卓手機上壓縮/解壓縮文件有哪些軟體
一、安卓手機可以對.rar後綴的壓縮包文件進行解壓,具體步驟如下:
在網站上查找「安卓解壓軟體」。
下載並安裝解壓apk程序。
安裝後,在手機「文件管理」中找到需解壓的文件,點擊後進行解壓或長按需解壓的文件,選擇解壓軟體進行解壓。
二、壓縮軟體進行解壓的原理就是把二進制信息中相同的字元串以特殊字元標記來達到壓縮的目的。
三、解壓:將壓縮文件還原為本來的文件格式,也稱釋放、擴展。
四、壓縮包:一般將通用壓縮格式的文件稱為壓縮包,如ZIP格式壓縮文件。這種文件可以在壓縮工具的管理下對包中壓縮的文件進行管理,如查看、刪除、添加等。
壓縮文件有很多格式,目前主要是:.ZIP,.RAR,.ARJ,.CAB
❾ 怎麼壓縮手機MP3格式的音樂
大家下載到電腦後安裝,然後就可以進入在桌面生成的圖標:Lame圖形界面
MP3壓縮
器
打開後選擇要壓縮的MP3文件(選擇輸入文件),然後在輸出文件的一欄(選擇輸出文件)里把儲存
路徑改為和輸出文件路徑一樣,然後在文件名前加點東西,隨便加什麼內容,只要不重名,重名也
得。。但是原先的會被覆蓋,接著把比特率一項選到80
KBps,再選到-高品質壓縮(速度較慢)這項
,其他的設置不用改。。然後點開始編碼。。壓縮完後去目錄里看看你壓縮過的MP3再聽聽看。。所
占空間小了一倍,但是音質基本聽不出變化。。比特率最小隻能選到80,再小就認不出來了,壓了也沒用