网站建设资讯

NEWS

网站建设资讯

androidvlc,androidvlc srt字幕

提取不了音频 vlc安卓

换种方法,可以使用VLC Media Player从MP4提取音频

创新互联专注于民丰网站建设服务及定制,我们拥有丰富的企业做网站经验。 热诚为您提供民丰营销型网站建设,民丰网站制作、民丰网页设计、民丰网站官网定制、重庆小程序开发公司服务,打造民丰网络公司原创品牌,更为您提供民丰网站排名全网营销落地服务。

打开VLC播放器,然后单击 Media 标签点击 Convert/Save 转换或保存文件然后点击 Add 选择 MP4 您要从中提取音频的文件。 (如果是YouTube文件,请先将其下载到计算机上,然后再开始此过程)。在下一步中,选择输出格式为 MP3过单击将文件保存到所需位置Browse 并为转换后的文件分配一个新名称最后,点击 Save 保存文件

如果您的文件已损坏或损坏,这些方法可能不会成功。 如果您发现文件已损坏并且无法播放,则可以使用专业工具(例如Yodot Repair Software)对其进行修复。

vlc-android要怎么用

做vlc-android移植的道友都应该知道,当编译完vlc-android 源码后EventManager.java

类中定义了许多事件,下面是源码一部分:

public class EventManager {

/*

* Be sure to subscribe to events you need in the JNI too.

*/

//public static final int MediaMetaChanged = 0;

//public static final int MediaSubItemAdded = 1;

//public static final int MediaDurationChanged = 2;

//public static final int MediaParsedChanged = 3;

//public static final int MediaFreed = 4;

//public static final int MediaStateChanged = 5;

//public static final int MediaPlayerMediaChanged = 0x100;

//public static final int MediaPlayerNothingSpecial = 0x101;

//public static final int MediaPlayerOpening = 0x102;

//public static final int MediaPlayerBuffering = 0x103;

public static final int MediaPlayerPlaying = 0x104;

public static final int MediaPlayerPaused = 0x105;

public static final int MediaPlayerStopped = 0x106;

......

}

可是对于这些事件有很多都被注释掉了,当我们需要被注释掉的事件时,就算把注释拿掉,再调用mEventManager.addHandler(EventManager.getInstance())添加事件之后,也不会在定义的mEventHandler

的handleMessage()中监听到,下面为一个mEventHandler定义的demo:

[java] view plaincopy

private final VideoEventHandler mEventHandler = new VideoEventHandler(this);

private class VideoEventHandler extends WeakHandlerDtvPlayer{

public VideoEventHandler(DtvPlayer owner) {

super(owner);

}

@Override

public void handleMessage(Message msg) {

DtvPlayer activity = getOwner();

if(activity == null) return;

switch (msg.getData().getInt("event")) {

case EventManager.MediaPlayerBuffering:

Log.d(TAG, "MediaPlayerBuffering");

break;

case EventManager.MediaPlayerEncounteredError:

Log.d(TAG, "MediaPlayerEncounteredError");

break;

......

default:

Log.e(TAG, String.format("Event not handled (0x%x)", msg.getData().getInt("event")));

break;

}

super.handleMessage(msg);

}

}

那么如何才能够在mEventHandler中监听到我们需要的事件呢,下面将进入主题。

在libvlcjni.c中有一个静态常量,其中指定了我们目前需要获取哪些事件:

[html] view plaincopy

static const libvlc_event_type_t mp_events[] = {

libvlc_MediaPlayerPlaying,

libvlc_MediaPlayerPaused,

libvlc_MediaPlayerEndReached,

libvlc_MediaPlayerStopped,

libvlc_MediaPlayerVout,

libvlc_MediaPlayerPositionChanged

};

你可以将自己需要的事件添加在里面,然后将EventManager中响应的事件注释拿掉,之后重新编译源码就可以再mEventHandler中获取你刚添加的事件了。

(例如:你要想获取MediaPlayerEncounteredError事件,先将libvlc_MediaPlayerEncounteredError添加在mp_events[]静态常量中(注意,这里前面多了libvlc_),然后把EventManager中的public

static final int MediaPlayerEncounteredError =

0x10a;注释拿掉,重新编译源码之后就可以在你得mEventHandler

的handleMessage()中获取到EventManger.MediaPlayerEncounteredError事件)。

在vlc-android/vlc/lib/event.c中定义了所有事件:

[cpp] view plaincopy

#define DEF( a ) { libvlc_##a, #a, },

typedef struct

{

int type;

const char name[40];

} event_name_t;

static const event_name_t event_list[] = {

DEF(MediaMetaChanged)

DEF(MediaSubItemAdded)

DEF(MediaDurationChanged)

DEF(MediaParsedChanged)

DEF(MediaFreed)

DEF(MediaStateChanged)

DEF(MediaPlayerMediaChanged)

DEF(MediaPlayerNothingSpecial)

DEF(MediaPlayerOpening)

DEF(MediaPlayerBuffering)

DEF(MediaPlayerPlaying)

DEF(MediaPlayerPaused)

DEF(MediaPlayerStopped)

DEF(MediaPlayerForward)

DEF(MediaPlayerBackward)

DEF(MediaPlayerEndReached)

DEF(MediaPlayerEncounteredError)

DEF(MediaPlayerTimeChanged)

DEF(MediaPlayerPositionChanged)

DEF(MediaPlayerSeekableChanged)

DEF(MediaPlayerPausableChanged)

DEF(MediaPlayerTitleChanged)

DEF(MediaPlayerSnapshotTaken)

DEF(MediaPlayerLengthChanged)

DEF(MediaPlayerVout)

DEF(MediaListItemAdded)

DEF(MediaListWillAddItem)

DEF(MediaListItemDeleted)

DEF(MediaListWillDeleteItem)

DEF(MediaListViewItemAdded)

DEF(MediaListViewWillAddItem)

DEF(MediaListViewItemDeleted)

DEF(MediaListViewWillDeleteItem)

DEF(MediaListPlayerPlayed)

DEF(MediaListPlayerNextItemSet)

DEF(MediaListPlayerStopped)

DEF(MediaDiscovererStarted)

DEF(MediaDiscovererEnded)

DEF(VlmMediaAdded)

DEF(VlmMediaRemoved)

DEF(VlmMediaChanged)

DEF(VlmMediaInstanceStarted)

DEF(VlmMediaInstanceStopped)

DEF(VlmMediaInstanceStatusInit)

DEF(VlmMediaInstanceStatusOpening)

DEF(VlmMediaInstanceStatusPlaying)

DEF(VlmMediaInstanceStatusPause)

DEF(VlmMediaInstanceStatusEnd)

DEF(VlmMediaInstanceStatusError)

};

#undef DEF

其中DEF()将MediaPlayerEncounteredError定义为libvlc_MediaPlayerEncounteredError,当本地代码产生MediaPlayerEncounteredError事件时会将libvlc_MediaPlayerEncounteredError传递给jni,与此同时jni又会传递给java层。不管是本地libvlc_MediaPlayerEncounteredError还是java层MediaPlayerEncounteredError,对于同一个事件被定义的值都是相同的,传输的是同一个消息值。本地代码定义在vlc-android/vlc/include/libvlc_events.h,

java代码定义在EventManager.java中。

vlc 安卓版能在安卓4.4.1系统播放吗

能在安卓四点四点一系统播放。

这个不是流氓软件是一个播放器,可以播一些或是其它软件还没有下完的一些电影格式,现在删不掉是因为这个软件自己的卸载程序已经坏了,不删不碍事,如果不卸心里不舒服的话就用这个软件了。

安卓四点四介绍

可以让邮件或信息较个性化,在播放视频时可自行添加字幕,它内置了计步器等健身应用,加入了低功耗音频和定位模式,进一步减少设备的功耗,它中加入了接触式支付功能,通过智能卡可以在手机端完成支付,看电子书或使用任何应用程序时都能够较方便地进入到全屏模式,在隐藏虚拟按键,只需滑动屏幕边缘,便可找回按键。


名称栏目:androidvlc,androidvlc srt字幕
本文URL:http://cdweb.net/article/dsdihci.html