关于 mplayer,mencoder,ffmpeg 视频操作的一些资料

Posted 9 months, 2 weeks ago at 11:32 am. 0 comments

关于 mplayer,mencoder,ffmpeg 视频操作的一些资料,不错,有时间一一测试。
http://www.fwolf.com/blog/post/251

Popularity: 16% [?]

Tags: ,

ubuntu 下中文字幕问题

Posted 9 months, 2 weeks ago at 11:32 am. 0 comments

totem 中文字幕问题

感谢 Huang Jiahua在源里做好的 xine-fonts-cn,直接在新立得中搜索安装 xine-fonts-cn 即可。甚至都不用配置 ~/.gnome2/totem_config 文件。这样即可解决 totem 支持 .srt 中文字幕的问题。

源里没有的话,直接用 xine-fonts-cn_0.1.2_all.deb 地址下载

注:srt 与 avi 同名,totem 会自动加载字幕;或者,把两个文件一起拖到 totem 窗口中;或者命令行

totem file:///home/ubuntu/av/[地狱神探].Constantine.DVDRip.XviD.CD1-DoNE.avi#subtitle:file:///home/ubuntu/av/[地狱神探].Constantine.DVDRip.XviD.CD1-DoNE.chs.srt

原理如下:

totem 使用的字体在 /usr/share/xine/libxin/fonts 中,而这里没有中文字体,所以字幕乱码或干脆不显示。需要 xine-fontconv 这个软件来制作所需的中文字体。

以下为引用内容:

一:添加源代码源:
sudo gedit /etc/apt/sources.list
增加
deb-src http://archive.ubuntu.com/ubuntu/ breezy main restricted universe multiverse

二:下载源代码,编译出 xine-fontconv :
sudo apt-get update
sudo apt-get source libxine1c2
cd xine-lib-1.0.1/misc/
sudo gcc -o /usr/local/bin/xine-fontconv xine-fontconv.c `freetype-config –cflags –libs`

三:生成中文字体
cd /usr/share/xine/libxine1/fonts
sudo xine-fontconv /usr/share/fonts/zh_CN/TrueType/SIMSUN.TTF simsun gb18030

四:修改totem的配置:
gedit ~/.gnome2/totem_config
找到中间的项目修改为:
subtitles.separate.font:simsun
subtitles.separate.src_encoding:gb18030

五:播放:
totem file:///home/ubuntu/av/[地狱神探].Constantine.DVDRip.XviD.CD1-DoNE.avi#subtitle:file:///home/ubuntu/av/[地狱神探].Constantine.DVDRip.XviD.CD1-DoNE.chs.srt


via http://forum.ubuntu.org.cn/about2760.html

Mplayer 中文字幕

大约这样的命令格式

mplayer 影片名 -sub 字幕名 -subcp cp936 -font 中文字体名

中文字体名,就是类似 /media/hda1/WINDOWS/Fonts/simsun.ttc 这样(我的 windows 在 hda1)。我试验了

-font /usr/share/fonts/X11/misc/wenquanyi_12pt.pcf.gz

但是很卡。所以还是推荐 windows 的那些字体。下面是比较完整的例子

mplayer [肥皂].A.Soap.2006.LIMITED.DVDRip.XviD-MESS.avi -sub [肥皂].A.Soap.2006.LIMITED.DVDRip.XviD-MESS.srt -subcp cp936 -font /media/hda1/WINDOWS/Fonts/simsun.ttc

简写

mplayer *.avi -subcp cp936 -font /media/hda1/WINDOWS/Fonts/simsun.ttc

即可。但还avi和字幕要同名。

以下为引用内容:

mplayer 如果希望默认字体就支持中文

1、修改~/.mplayer/config文件中间的项目为:
font=/usr/share/fonts/zh_CN/TrueType/SIMSUN.TTF
subcp=cp936

2、修改`/.mplayer/gui.conf文件中间的项目为:
sub_auto_load = “yes”
sub_unicode = “yes”
sub_pos = “99″
sub_overlap = “no”
sub_cp = “cp936″
font_factor = “0.750000″
font_name = “/usr/share/fonts/zh_CN/TrueType/SIMSUN.TTF”
font_encoding = “unicode”


参考资料:

totem 观看 avi+src 中文字幕方法

guoshuang2007-11-06+把电影和字幕拖进 Kaffeine 窗口,在设置中 subtiltle 选择编码,中文一般是 gb18030。

Popularity: 27% [?]

Tags: , , , , ,

gmplayer 错误问题

Posted 9 months, 2 weeks ago at 11:32 am. 0 comments

错误信息 Error opening/initializing the selected video_out(-vo) device!

如果是在终端中敲命令的话

mplayer -vo x11 *.asf

如果用skin的话(必须保证有skin)

修改~.mplayer/gui.conf

找到相关选项,将其该为

vo_driver = “x11″

运行gmplayer

错误信息 Requested audio codec family [mp3] (afm=mp3lib) not available. enable it at compilation

# 開啟 Mplayer
# 在 Mplayer 上按右鍵 選 Preferences
# 切換到Codecs & Demuxer
# 找到 Audio codec family 選擇”FFmpeg/libavcodec audio decoders
# 按OK 重启 gmplayer

修復 Try adding “echo 1024 > /proc/sys/dev/rtc/max-user-freq” to your system startup scripts. 的方法有下列三種:

* echo 1024 > /proc/sys/dev/rtc/max-user-freq
* sysctl dev/rtc/max-user-freq=1024
* /etc/sysctl.conf 加入 dev/rtc/max-user-freq=1024

加了這個後, 若聲音會不同步, 建議就拿掉, 不然就在 mplayer 的 script 加入 -autosync 30 的參數

附上我的 ~/.mplayer/gui.conf 文件内容

enable_audio_equ = “no”
vo_driver = “x11″
vo_panscan = “0.000000″
vo_doublebuffering = “yes”
vo_direct_render = “no”
vo_dxr3_device = “/dev/em8300-0″
v_framedrop = “0″
v_flip = “0″
v_ni = “no”
v_idx = “-1″
a_afm = “ffmpeg”
vf_pp = “no”
vf_autoq = “0″
vf_lavc = “no”
ao_driver = “alsa”
ao_volnorm = “no”
softvol = “no”
ao_surround = “no”
ao_extra_stereo = “no”
ao_extra_stereo_coefficient = “1.000000″
dvd_device = “/dev/dvd”
cdrom_device = “/dev/cdrom”
osd_level = “1″
sub_auto_load = “yes”
sub_unicode = “no”
sub_pos = “100″
sub_overlap = “no”
sub_cp = “cp936″
font_factor = “0.750000″
font_name = “/media/hda1/WINDOWS/Fonts/simsun.ttc”
font_text_scale = “5.000000″
font_osd_scale = “6.000000″
font_blur = “2.000000″
font_outline = “2.000000″

Popularity: 22% [?]

Tags: , , , ,

ubuntu 下的音乐播放器

Posted 9 months, 2 weeks ago at 11:32 am. 0 comments

Beep Media Player
简单的播放器

Banshee
音乐管理和播放
Import, organize, play, and share your music using Banshee’s simple, powerful interface.
Rip CDs, play and sync your iPod, create playlists, and burn audio and MP3 CDs. Most portable music devices are supported.

Rhythmbox
带 Album 管理的播放器

Listen

据说是最好的音乐播放器。

A nice music player and manager for GNOME

With Listen you can:

- Play your favorite songs
- Manage your library
- Make playlists
- Automatically or manually download album covers
- Automatically synchronize album covers with iPod
- Easily burn an audio CD
- Directly get informations from wikipedia when you play a song
- See the lyrics of a song
- Have statistics about your favorite songs, albums or artists
- Listen to web radio
- Submit your songs to Audioscrobbler
- Quick access to last.fm related file

XMMS
老牌播放器,现在显得有点过时了。

quod libet

amarok
KDE下的播放器。功能强大。我喜欢它的 win+b 下一首歌快捷键,以及显在在系统托盘功能。

Muine Music Player
简洁、舒适的播放器

mplayer
强大的播放器,甚至可以在tty终端中播放。就是图形界面差了些。

kaffeine
KDE 音乐播放器。

Juk
KDE 播放器

Quod Libet
Quod Libet is a GTK+-based audio player written in Python. It’s designed around the idea that you know how to organize your music better than we do. It lets you make playlists based on regular expressions (don’t worry, regular searches work too). It lets you display and edit any tags you want in the file. And it lets you do this for all the file formats it supports — Ogg Vorbis, FLAC, MP3, Musepack, and MOD.

exaile

Exaile
is a music player aiming to be similar to KDE’s Amarok, but for GTK+ and written in Python.

Decibel Audio Player

Decibel Audio Player is a GTK+ open-source (GPL license) audio player designed for GNU/Linux, which aims at being very straightforward to use by mean of a very clean and user friendly interface. It is especially targeted at Gnome and will follow as closely as possible the Gnome HIG.

相关日志:

linux mp3 中文乱码问题
ubuntu 媒体
Guide to Best Linux [Ubuntu (GNOME)] Applications
ubuntu 下中文字幕问题
ubuntu 下让 totem 播放 rmvb
ubuntu feisty amd64 播放 rmvb 问题

Popularity: 63% [?]

Tags: , , , , , , , , , , , , ,

funny stuffs

Posted 9 months, 2 weeks ago at 11:32 am. 0 comments

Firefox 2.0 与 Access Key
打开 (g)mplayer 截图功能最简法
Cairo-Clock 漂亮的linux桌面时钟
nLite输入法
Remove text AD of MSN msgr 7
apache统计日志的小脚本
再谈IE中Flash控件的自动激活

Popularity: 21% [?]

Tags: , , , , , ,

im-switch -c 切换输入法

Posted 9 months, 2 weeks ago at 11:32 am. 0 comments

im-switch -c 切换输入法

BTW:should try this
在system->administration->Login windows下有一个选项:允许远程用户登录,选中即可以使用xmanager(win下)登录

在服务器上部署了ubuntu, 准备用远程桌面做远程控制。但是机器重启后(还没有login),远程桌面不能连接上。请问如何设置远程控制呢?我在本地PC用的是VNC viewer.

xdmcp
or
freenx

mplayer播放文件图像倒置

看看~/.mplayer/gui.conf里面的v_flip是不是给设置成“1”了,如果是那就改成“0“试试。

caused by flashplayer,
sudo gedit /usr/bin/firefox
and add the following line as last but one line of the file:

export XLIB_SKIP_ARGB_VISUALS=1

现在 firefox应该不可能再崩溃了

Popularity: 16% [?]

Tags: , , , , ,

sopcast

Posted 9 months, 2 weeks ago at 11:32 am. 0 comments

sopcast 现在的节目源还不少,比开始好多了…

安装图形界面版本:

rpm:http://apt.magiclinux.org/magic/2.1/unstable/RPMS.os/qsopcast-0.2.4-4mgc.i686.rpm
或者
srpm:http://apt.magiclinux.org/magic/2.1/unstable/SRPMS.os/qsopcast-0.2.4-4mgc.src.rpm

sudo alien -i xxxx.rpm

即可。在 配置 - 配置 中可以设置声音或者视频的播放器。默认是 amarok 和 kaffine,可以改成 mplayer 之类。

guoshuang2007-12-10+我转好的 .deb 文件

qsopcast_0.3.5-3_i386.deb
sp-sc_1.0.2-2_i386.deb

Popularity: 19% [?]

Tags: , , ,

ubuntu software

Posted 9 months, 2 weeks ago at 11:32 am. 0 comments

Graphics:

* The GIMP - free software replacement for Adobe Photoshop
* F-Spot - full-featured personal photo management application for the GNOME desktop
* Google Picasa - application for organizing and editing digital photos

Internet:

* Firefox
* Opera
* Flash Player 9
* gFTP - multithreaded FTP client
* Thunderbird - email and news client
* Evolution - combines e-mail, calendar, address book, and task list management functions
* aMule - P2P file sharing application
* Bittorrent client
* Azureus - Java Bittorrent client
* Gaim - multi-platform instant messaging client
* Skype
* Google Earth
* Xchat IRC - IRC client

Office:

* OpenOffice Writer - replacement for Microsoft Word
* OpenOffice Calc - replacement for Microsoft Excel
* Adobe Reader
* GnuCash - double-entry book-keeping personal finance system, similar to Quicken
* Scribus - open source desktop publishing (DTP) application

Sound & Video:

* Amarok - audio player
* Audacity - free, open source, cross platform digital audio editor
* Banshee - audio player, can encode/decode various formats and synchronize music with Apple iPods
* MPlayer - media player (video/audio), supports WMA
* Rhythmbox Music Player - audio player, similar to Apple’s iTunes, with support for iPods
* gtkPod - software similar to Apple’s iTunes, supports iPod, iPod nano, iPod shuffle, iPod photo, and iPod mini
* XMMS - audio player similar to Winamp
* dvd::rip - full featured DVD copy program
* Kino - free digital video editor
* Sound Juicer CD Extractor - CD ripping tool, supports various audio codecs
* VLC Media Player - media player (video/audio)
* Real Player
* Totem - media player (video/audio)
* Xine - media player, supports various formats; can play DVDs
* GnomeBaker - CD/DVD burning program
* K3B - CD/DVD burning program
* Multimedia-Codecs

Programming:

* Nvu - WYSIWYG HTML editor, similar to Macromedia Dreamweaver, but not as feature-rich (yet)
* Bluefish - text editor, suitable for many programming and markup languages
* Quanta Plus - web development environment, including a WYSIWYG editor

Other:

* VMware Server - lets you run your old Windows desktop as a virtual machine under your Linux desktop, so you don’t have to entirely abandon Windows
* TrueType fonts
* Java
* Read/Write support for NTFS partitions

Ubuntu automatically installs the GNOME desktop.

Lots of our desired applications are available in the Ubuntu repositories, and some of these applications have been contributed by the Ubuntu community. The rest (except for Nvu) can be obtained by using Automatix.

I will use the username falko in this tutorial. Please replace it with your own username.

via http://www.howtoforge.com/the_perfect_desktop_ubuntu7.04

Popularity: 49% [?]

Tags: , , , , , , , , , , , , ,

pclinuxos 测试

Posted 9 months, 2 weeks ago at 11:32 am. 0 comments

这几天似乎 pclinuxos成了 DW和 linux.ubuntu.org.cn 的第一,作为白鼠一族当然不能放过测试的机会。大致测试笔记如下:

我下载的是 2007 9 的livecd,安装没有简体中文,安装后也没有,需要在 synaptic 中搜索 chinese 安装 de-il8n-zh_CN-GB2312,fonts-ttf-chinese,中文输入法fcitx(scim似乎与某个软件冲突,默认情况下不能用)(郭爽注:但我还是选择了 scim-bridge,我受不了 fcitx 的选字和翻页方式,很不习惯)可选包manpage。

以下为引用内容:

我们目前能够的下载的到的最新版本是2007最终版,但是语言选择了没有简体中文。但你安装完成后,可以根据下面说明很快得到简体中文版本。

第一步
下载并安装相应软件包
软件包管理参见
http://www.pclinuxos.cn/forum/viewtopic.php?p=51#51
在synaptic里搜索chinese
如图
-安装语言支持kde-il8n-zh_CN-GB2312
中文字体fonts-ttf-chinese
中文输入法fcitx(scim似乎与某个软件冲突,默认情况下不能用)
可选包manpage…

第二步
配置生效
控制中心参见
http://www.pclinuxos.cn/forum/viewtopic.php?p=71#71
在control center里的system里的国家语言里选中文
如图
输入法是fcitx
在KDE控制中心里把语言换成中文
参见KDE语言设置
http://www.pclinuxos.cn/forum/viewtopic.php?p=74#74
登出

第三步
软件汉化部分软件会随KDE的汉化自动变成中文 如openoffice
有的要配置修改 如opera
参见

有的需要重装 如kmplayer amarok…


我看 pclinuxos 是 apt+rpm+…的怪胎。好处是默认安装的的东西比较多。

主题定制办法
http://linux-blog.org/index.php?/archives/222-Install-extra-Themes-and-Icons-in-PCLinuxOS.html

默认源太慢

su root
vi /etc/apt/sources.list

最前面加入下面的源

rpm http://pclosusers.com/pclosusers/pclosfiles pclinuxos/2007 main extra nonfree kde

直接可以开启 beryl 效果而且终端默认有 tab bar,都不错的功能。

pclinuxos 的文档、资料以及社区都不如ubuntu,比如我搜索 pclinuxos 源,得到的大部分都是 ubuntu 的。

Popularity: 14% [?]

Tags: , , , , , , ,

linux 下载 rm 流媒体(rtsp)

Posted 9 months, 2 weeks ago at 11:32 am. 0 comments

via Capture or record a real audio/video (rtsp) stream in Linux,还没有试验,毕竟现在 rm 越来越少了,都是 flv 的天下,:( 以后也要用到,备份在此

以下为引用内容:

Problem
You want to save (capture) a RealAudio or RealVideo stream to a file for later viewing or listening.
Keywords
Real, RealAudio, RealVideo, capture, record, streaming, stream, rip, ripping, mplayer, Linux.
Solution

mplayer -noframedrop -dumpfile out.rm -dumpstream rtsp://url/to/file.rm

(Michael Carr notes that passing a -bandwidth N option, where N is your available bandwidth may considerably speed up the download; the mplayer manual seems to be unclear about it being bits or bytes, though.)

When the download is done you can watch or listen to out.rm with a media player, like realplay or mplayer.


Popularity: 10% [?]

Tags: , , ,

ad 468x60