How to play .rmvb files in Ubuntu

本文提供了一步一步的指南,说明如何在Ubuntu Linux上安装所需软件,以便播放rmvb(RealMedia Variable Bitrate)文件。首先通过Synaptic Package Manager安装MPlayer,然后下载并解压相应的二进制编解码器。接着设置文件路径、创建目录并复制文件。确保安装libstdc++5以播放rmvb文件。最后,在MPlayer中配置视频和音频解码器,设置默认打开方式,即可双击rmvb文件进行播放。
部署运行你感兴趣的模型镜像

原文:

How to play .rmvb files in Ubuntu

This tutorial will take you step by step through installing all of the software necessary to play rmvb (RealMedia Variable Bitrate) files in Ubuntu Linux.

Though the steps and screenshots are specific to Ubuntu, they will likely be similar for other versions of Linux. With that said, be sure to read the MPlayer README file if you’re not using Ubuntu. Similar to some of the other tutorials on Simplehelp, this is almost certainly not the only way to play .rmvb files in Ubuntu, but it’s the easiest way I could find. If you know of a easier method, by all means please feel free to leave a comment.

  1. The first step in playing .rmvb files in Ubuntu is to use the Synaptic Package Manager to install MPlayer. When you mark MPlayer for installation, you’ll be prompted to install additional software packages (if they’re not already installed).

    play rmvb files in ubuntu linux
    click to enlarge

  2. After MPlayer has been installed, exit out of the Synaptic Package Manager and visit the MPlayer binary codec download page. Download the codec package for your platform (for example, if you’re using a 32bit Intel or AMD processor, download the Linux x86 package).

    Save the file to your desktop (or home folder). Once the download has completed, double-click that file. Select the folder to uncompress, and click the Extract button.

    play rmvb files in ubuntu linux
    click to enlarge

  3. Choose a location to extract the files (your desktop is ideal) and again click Extract.

    play rmvb files in ubuntu linux
    click to enlarge

  4. Make sure the files extracted correctly. They’ll be in a folder titled essential-date.

    play rmvb files in ubuntu linux

  5. Open up a Terminal by selecting Applications -> Accessories -> Terminal.

    play rmvb files in ubuntu linux

  6. Enter the following commands (and your password when prompted):

    cd Desktop
    cd essential-date
    sudo mkdir /usr/lib/codecs
    sudo cp * /usr/lib/codecs

    play rmvb files in ubuntu linux
    click to enlarge

  7. NOTE: you may need to install libstdc++5 to get .rmvb files to play. Even though it might not be necessary for you, it can’t hurt to install (the package isn’t very big). Run the command: sudo apt-get install libstdc++5 in a Terminal, or use Synaptic and search for libstdc++5. Thanks to everyone who commented (see comments below) for the tip.
  8. Launch MPLayer by selecting Applications -> Sound & Video -> MPlayer Movie Player. Right-click in the Mplayer – Video window and select Preferences from the menu.

    play rmvb files in ubuntu linux

  9. Select the Video tab and change the Available drivers: to x11 X11 (XImage/Shm).

    play rmvb files in ubuntu linux
    click to enlarge

  10. Select the Codecs & demuxer tab and change the Video codec family: to RealVideo decoder and the Audio codec family: to FFmpeg/libavcodec audio decoders. When you’re done, click OK and close down MPlayer.

    play rmvb files in ubuntu linux
    click to enlarge

  11. Locate one of your .rmvb files, right-click it and select Properties.

    play rmvb files in ubuntu linux

  12. Select the Open With tab and change whatever the default is to MPlayer Movie Player. Click Close.

    play rmvb files in ubuntu linux
    click to enlarge

  13. Double-click any of your .rmvb files and they should open up in MPlayer and start playing.

    play rmvb files in ubuntu linux


您可能感兴趣的与本文相关的镜像

ACE-Step

ACE-Step

音乐合成
ACE-Step

ACE-Step是由中国团队阶跃星辰(StepFun)与ACE Studio联手打造的开源音乐生成模型。 它拥有3.5B参数量,支持快速高质量生成、强可控性和易于拓展的特点。 最厉害的是,它可以生成多种语言的歌曲,包括但不限于中文、英文、日文等19种语言

Ubuntu 系统中使用 `strtok_s` 函数时,需要了解其使用方法和相关注意事项。`strtok_s` 是 `strtok` 的线程安全版本,用于分割字符串。其函数原型为: ```c char *strtok_s(char *str, const char *delim, char **ptr); ``` 以下是一个示例代码,展示了如何在 Ubuntu 系统中使用 `strtok_s` 函数: ```c #include <stdio.h> #include <string.h> int main() { char str[] = "apple,banana,cherry"; char *token; char *next_token; // 初始调用 token = strtok_s(str, ",", &next_token); while (token != NULL) { printf("%s\n", token); // 后续调用 token = strtok_s(NULL, ",", &next_token); } return 0; } ``` 在这个示例中,首先定义了一个包含分隔符的字符串 `str`。然后,使用 `strtok_s` 函数进行初始调用,将字符串 `str` 按照逗号 `,` 进行分割。后续调用时,传入 `NULL` 以继续处理之前的字符串。每次分割得到的子字符串通过 `printf` 函数输出。 需要注意的是,`strtok_s` 是 Microsoft 实现的,在 POSIX 系统(如 Ubuntu)中可能没有直接支持。不过,POSIX 系统提供了 `strtok_r` 作为 `strtok` 的可重入版本,其功能与 `strtok_s` 类似。可以使用 `strtok_r` 来替代 `strtok_s`。以下是使用 `strtok_r` 的示例代码: ```c #include <stdio.h> #include <string.h> int main() { char str[] = "apple,banana,cherry"; char *token; char *saveptr; // 首次调用 token = strtok_r(str, ",", &saveptr); while (token != NULL) { printf("%s\n", token); // 后续调用 token = strtok_r(NULL, ",", &saveptr); } return 0; } ```
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值