TranslationStatus
Attachment '20070918_watching_video_en.srt'
Download1 00:00:00,000 --> 00:00:00,087 2 00:00:00,187 --> 00:00:04,244 This is a screencast about watching videos in Ubuntu, 3 00:00:04,350 --> 00:00:07,413 by the screencast team. 4 00:00:07,513 --> 00:00:10,631 The version I am using is 7.10 Gutsy Gibbon, 5 00:00:10,731 --> 00:00:14,060 but this information is going to apply pretty much for everything. 6 00:00:14,160 --> 00:00:17,735 Watching videos on Ubuntu is pretty easy, 7 00:00:17,835 --> 00:00:24,288 but because videos are delivered to computers as encoded and compressed video files, 8 00:00:24,388 --> 00:00:30,210 there are some extra little plugins or codecs specifically that you'll need to install 9 00:00:30,310 --> 00:00:32,612 to watch certain video items. 10 00:00:32,712 --> 00:00:35,371 Now Ubuntu comes with a couple of different programs 11 00:00:35,471 --> 00:00:39,610 that'll help you watch your videos and listen to your songs. 12 00:00:40,148 --> 00:00:44,023 Maybe the most popular way of watching videos is with a DVD. 13 00:00:44,123 --> 00:00:46,151 So I'm going to pop in a DVD here 14 00:00:46,251 --> 00:00:49,244 and it'll open up automatically in the default movie player, 15 00:00:49,344 --> 00:00:51,412 which is called Totem. 16 00:00:51,512 --> 00:00:56,767 But as you'll see, because DVDs use a special MPEG 2 codec, 17 00:00:56,867 --> 00:01:01,590 which doesn't belong to Ubuntu, the code actually belongs to someone else, 18 00:01:01,730 --> 00:01:05,565 we'll need to download a codec plugin 19 00:01:05,705 --> 00:01:11,808 that will interpret the MPEG 2 encoding that DVDs use. 20 00:01:11,908 --> 00:01:14,163 And Ubuntu makes this very easy. 21 00:01:14,263 --> 00:01:16,415 It tells you that you need a codec 22 00:01:16,515 --> 00:01:21,763 and invites you to search for that codec online. 23 00:01:21,863 --> 00:01:27,147 And if we do that it will takes us right to the package manager 24 00:01:27,247 --> 00:01:29,479 and help us install that. 25 00:01:31,006 --> 00:01:33,244 So here it's searching for that 26 00:01:33,344 --> 00:01:37,453 and there it's found a GStreamer plugin. 27 00:01:37,553 --> 00:01:40,586 And GStreamer you'll come across a couple of times, 28 00:01:40,686 --> 00:01:46,876 it's a really great plugin that some independent programmers have written 29 00:01:46,976 --> 00:01:54,295 that will help us, will help the Linux machine decode the encoding 30 00:01:54,395 --> 00:01:56,814 that the videos have been subject to. 31 00:01:56,914 --> 00:02:01,093 So it's warning you here that it's a restricted software package, 32 00:02:01,193 --> 00:02:04,928 meaning that it doesn't belong to Ubuntu, it doesn't belong to you. 33 00:02:05,028 --> 00:02:09,534 It's closed source, if there ever needs to be any kind of special support for it 34 00:02:09,634 --> 00:02:12,480 it's not something you or Ubuntu or anyone else can do. 35 00:02:12,814 --> 00:02:15,801 It's just strictly it belongs to someone else, 36 00:02:15,901 --> 00:02:19,285 they have not released the code to the open source community. 37 00:02:19,385 --> 00:02:23,494 So if you're okay with that you can click Ok and install it on your machine. 38 00:02:24,201 --> 00:02:28,988 It's searching for everything, it's installing and making sure that it's in the right place. 39 00:02:29,088 --> 00:02:33,899 Say Ok and pretty much immediately the movie player kicks right back in 40 00:02:33,999 --> 00:02:36,331 and starts playing the video. 41 00:02:36,805 --> 00:02:43,913 And the Totem movie player is a pretty simple application to grasp. 42 00:02:44,077 --> 00:02:46,572 It sits there and plays the video in that window, 43 00:02:46,672 --> 00:02:48,817 you can also switch to full screen, 44 00:02:48,917 --> 00:02:51,834 which I do typically if I'm just watching a movie. 45 00:02:52,775 --> 00:02:55,371 So there's the full screen view. 46 00:02:55,558 --> 00:03:00,251 If you move the mouse you get your controls at the bottom to pause or fast forward, 47 00:03:00,351 --> 00:03:05,028 you can leave the full screen, things like that. 48 00:03:05,496 --> 00:03:10,125 And you can play also, you can also play local files, you don't have to just play a DVD. 49 00:03:10,225 --> 00:03:14,708 Like if you had something saved on your hard drive and you want to see that, you can. 50 00:03:14,872 --> 00:03:19,221 If there's any kind of correction, like de-interlacing to get rid of jagged edges, 51 00:03:19,321 --> 00:03:21,279 or aspect ratio correction 52 00:03:21,379 --> 00:03:24,085 or if you need to attach a subtitle file to something, 53 00:03:24,185 --> 00:03:25,839 you can do that. 54 00:03:25,979 --> 00:03:29,737 So that's a really good little program to use. 55 00:03:29,837 --> 00:03:32,637 You can open up files from pretty much anywhere, 56 00:03:32,737 --> 00:03:35,940 from a DVD, CD-ROM or whatever. 57 00:03:36,040 --> 00:03:38,997 So I'm going to quit out of that, I'm going to eject this DVD, 58 00:03:39,097 --> 00:03:43,019 because I'm pretty much finished with that now I've got the codec installed. 59 00:03:43,680 --> 00:03:48,256 The other popular place to see videos are online. 60 00:03:48,356 --> 00:03:52,916 So if we launch Firefox, the default web browser, 61 00:03:54,015 --> 00:03:57,048 we can go to some place with videos on it 62 00:03:57,148 --> 00:04:00,258 and kind of get a feel for all of the different formats of video 63 00:04:00,358 --> 00:04:02,333 that you are going to encounter online. 64 00:04:02,433 --> 00:04:09,348 A great place for that, for open source, open culture videos is archive.org 65 00:04:09,448 --> 00:04:13,253 So here is a really funny public domain movie that they've posted. 66 00:04:13,353 --> 00:04:15,364 And as you can see on the left 67 00:04:15,464 --> 00:04:19,549 there's just a lot of different formats of video 68 00:04:19,649 --> 00:04:23,798 that are used online to deliver content to people. 69 00:04:23,898 --> 00:04:26,657 And that kind of... 70 00:04:28,037 --> 00:04:34,180 that kind of causes some problems with watching video, 71 00:04:34,280 --> 00:04:38,787 because typically whether you're on Windows, Mac OS X or Linux, 72 00:04:38,887 --> 00:04:43,416 you have to coordinate whether you've got the right codec in your system, 73 00:04:44,007 --> 00:04:48,233 versus what is being delivered to your desktop. 74 00:04:48,333 --> 00:04:55,552 So I'm searching right now for a video with an open source codec in it, 75 00:04:55,652 --> 00:05:00,579 which happens to be one of our very own Ubuntu screencasts. 76 00:05:00,679 --> 00:05:02,310 And here's Ogg Vorbis. 77 00:05:02,410 --> 00:05:05,934 Now Ogg, where you see Ogg, that's and open source codec 78 00:05:06,034 --> 00:05:10,587 that'll play fine on any Linux machine, no problem, 79 00:05:10,687 --> 00:05:14,352 because it's an open, free codec, it doesn't belong to anyone, 80 00:05:14,452 --> 00:05:16,556 it belongs to the open source community. 81 00:05:16,656 --> 00:05:21,063 You can watch it, there's no-one going to be hiding in the background, 82 00:05:21,163 --> 00:05:22,746 trying to charge you for it. 83 00:05:22,846 --> 00:05:26,207 So that's if you can get Ogg, go for Ogg, 84 00:05:26,307 --> 00:05:29,207 that's a good one and I use it a lot for my own, 85 00:05:29,307 --> 00:05:32,357 for the videos that I am storing on my computer. 86 00:05:32,457 --> 00:05:36,542 But otherwise, there's other codecs that you're probably going to encounter 87 00:05:36,642 --> 00:05:40,611 and you're probably going to need to install the decoder for it. 88 00:05:40,711 --> 00:05:44,937 So here's an MPEG 4 trying to play in my browser 89 00:05:45,037 --> 00:05:46,948 and obviously it's not working. 90 00:05:47,048 --> 00:05:49,847 I know it's not working because it's a black screen. 91 00:05:50,228 --> 00:05:57,423 To get that codec the easiest way is to just right-click on the screen where the video should be 92 00:05:57,523 --> 00:05:59,528 and select open in movie player, 93 00:05:59,628 --> 00:06:03,924 because the movie player will prompt you to find the suitable codec. 94 00:06:04,024 --> 00:06:07,104 So it's just like when we were trying to do it for the DVD. 95 00:06:07,204 --> 00:06:11,202 So I'll tell it to go ahead and search for the codec. 96 00:06:12,208 --> 00:06:14,446 It shows two different ones. 97 00:06:14,546 --> 00:06:20,689 One concentrates on the MPEG 4 or MPEG 98 00:06:20,789 --> 00:06:24,524 and another one concentrates more on the audio like AAC 99 00:06:24,624 --> 00:06:26,698 (well) and XVID, so that's video as well. 100 00:06:26,798 --> 00:06:29,762 So I'm going to go ahead and install both. 101 00:06:29,862 --> 00:06:31,873 Click install 102 00:06:34,094 --> 00:06:36,105 and it will do that for me. 103 00:06:36,806 --> 00:06:42,225 and after this installs I'll need to close my web browser and re-launch it, 104 00:06:42,325 --> 00:06:48,070 more than likely, just so it will pick up the newly installed plugin. 105 00:06:57,500 --> 00:07:00,346 Sometimes the plugins are specific to the web browser, 106 00:07:00,446 --> 00:07:04,883 so you want to make sure that you're installing the one that corresponds with your browser. 107 00:07:04,983 --> 00:07:08,186 So if you're on KDE or Kubuntu, 108 00:07:08,286 --> 00:07:12,926 you might want to make sure that you're getting the plugin for Konqueror, 109 00:07:13,026 --> 00:07:15,732 if you're not using Firefox or Mozilla. 110 00:07:15,832 --> 00:07:21,929 So now I'm going to reopen this video in Firefox 111 00:07:22,029 --> 00:07:24,297 to see if it works, yeah, so it starts playing. 112 00:07:24,397 --> 00:07:29,154 And as you can see it's really low quality because this was a really small file. 113 00:07:29,254 --> 00:07:33,714 So they compressed it a lot and I'm trying to play it as a very large picture. 114 00:07:33,814 --> 00:07:37,852 So whenever that happens you just need to shrink your browser down a little bit, 115 00:07:37,952 --> 00:07:41,507 because it wasn't meant to be this size. 116 00:07:42,395 --> 00:07:45,592 For video that going to look sharper at a very large size, 117 00:07:45,692 --> 00:07:49,410 you're going to what to click on whatever version of that video 118 00:07:50,299 --> 00:07:52,841 that happens to be a much larger file size. 119 00:07:52,941 --> 00:07:57,892 So it will take longer to download, but it will be much clearer at a full screen. 120 00:07:57,992 --> 00:08:02,077 But for something like this I think playing it in a small, little window is fine. 121 00:08:02,177 --> 00:08:06,199 It looks nice and Sharp and gets the point across. 122 00:08:17,773 --> 00:08:20,853 Now this, the in-browser view, 123 00:08:20,953 --> 00:08:24,291 which you'll see on youtube, you'll see here on archive.org. 124 00:08:24,391 --> 00:08:27,618 you'll see a lot of places, it requires the flash player. 125 00:08:28,319 --> 00:08:32,668 So if you click on that, it directs me to the flash website. 126 00:08:32,925 --> 00:08:38,350 and they just released the latest flash player for Linux. 127 00:08:38,450 --> 00:08:41,992 specifically for the x86 platform, 128 00:08:42,185 --> 00:08:47,914 pretty much all the computers, all the popular Intel computers. 129 00:08:49,083 --> 00:08:55,209 And you could download it from there, but it's been added already to the Ubuntu repository. 130 00:08:55,443 --> 00:08:58,015 So it's a lot easier to just do it through your package manager. 131 00:08:58,436 --> 00:09:02,692 So I'm opening up Synaptic and I'm going to do a search for flash 132 00:09:05,895 --> 00:09:09,637 and somewhere here there's a flash plugin. 133 00:09:10,876 --> 00:09:15,593 There's also a plugin called Gnash, 134 00:09:15,693 --> 00:09:18,048 which you could also try out. 135 00:09:18,148 --> 00:09:21,889 It's an open source version of the flash player. 136 00:09:22,450 --> 00:09:24,618 And on some system I've had good luck with that, 137 00:09:24,718 --> 00:09:27,635 on some systems I've not had such great luck with it. 138 00:09:27,758 --> 00:09:29,459 So I'm going to go for the flash, 139 00:09:29,559 --> 00:09:33,551 again it's telling you that this is a non-free plugin, 140 00:09:33,651 --> 00:09:38,087 so it's not going to be something that can really be supported by Ubuntu as such. 141 00:09:38,187 --> 00:09:41,361 It's something that Adobe owns 142 00:09:41,461 --> 00:09:47,136 and only they can access that code, so it's not very open, 143 00:09:48,078 --> 00:09:50,550 it's definitely not community property. 144 00:09:50,650 --> 00:09:53,947 But if you're okay with that you can have it install, 145 00:09:56,589 --> 00:09:59,529 Then it'll download it and install it 146 00:09:59,629 --> 00:10:03,551 I think for this one we'll probably definitely have to relaunch the browser. 147 00:10:12,864 --> 00:10:16,278 And there it's applied the change, we'll say Ok. 148 00:10:16,488 --> 00:10:22,257 I'm going to quit out of the package manager, Synaptic 149 00:10:22,357 --> 00:10:26,636 and I'm going to quit out of Firefox. 150 00:10:31,804 --> 00:10:34,540 And now I'll just quickly re-launch Firefox. 151 00:10:44,197 --> 00:10:49,364 Grab that again, click on this and there it is, there's the flash player. 152 00:10:57,969 --> 00:11:05,375 Now if you want to see video fullscreen, at full quality, that kind of thing, 153 00:11:05,475 --> 00:11:12,460 especially off of archive.org or the Ubuntu screencast site, 154 00:11:12,560 --> 00:11:16,248 Things like that where you have the option of downloading it. 155 00:11:16,348 --> 00:11:18,990 right here on the left you can see that there are 156 00:11:19,090 --> 00:11:21,813 a lot of different formats available for direct download. 157 00:11:21,913 --> 00:11:24,830 So you could actually download those straight to your desktop. 158 00:11:24,930 --> 00:11:28,641 You just right-click on it, save the link as. 159 00:11:28,741 --> 00:11:33,341 you can name it and save it to your desktop and then watch it any time you want, 160 00:11:33,581 --> 00:11:36,317 And depending on how big the video file is, 161 00:11:36,417 --> 00:11:42,491 it might be a really nice big, huge download in really great quality. 162 00:11:42,724 --> 00:11:43,489 So you could do that. 163 00:11:43,589 --> 00:11:51,930 Now again your best bet for compatibility would be to grab the Ogg files where possible. 164 00:11:52,030 --> 00:11:56,490 And certainly on the Ubuntu screencasts, you've got Ogg available to you. 165 00:11:56,590 --> 00:12:00,465 Save that link as, I'll just put it on my desktop. 166 00:12:00,565 --> 00:12:03,979 Say Ok and there it's going to start downloading. 167 00:12:04,079 --> 00:12:07,386 And you can see that that's a fairly large file, 168 00:12:07,486 --> 00:12:11,174 so if I play that at a really 169 00:12:11,274 --> 00:12:17,020 trying to fill up half my screen, it's not really going to suffer any quality loss. 170 00:12:17,120 --> 00:12:19,008 it'll be a nice clear video. 171 00:12:19,108 --> 00:12:22,562 Much better than that small, little postage stamp size 172 00:12:22,662 --> 00:12:26,724 and I can play that right in my movie player, in Totem. 173 00:12:26,824 --> 00:12:31,150 And there are also other great video players out there for Linux. 174 00:12:32,155 --> 00:12:35,055 Some of which really help playing, 175 00:12:35,155 --> 00:12:37,059 because there are so many codecs out there, 176 00:12:37,159 --> 00:12:39,514 you never know what you're going to need. 177 00:12:39,614 --> 00:12:45,039 One of the great little multipurpose players is called VLC, 178 00:12:45,139 --> 00:12:48,470 just do a search for that in Synaptic Package Manager. 179 00:12:48,570 --> 00:12:52,802 It will come up as a package that you can install. 180 00:12:56,707 --> 00:13:00,261 And this is an open source program, 181 00:13:00,495 --> 00:13:02,576 mark this for installation. 182 00:13:02,676 --> 00:13:07,814 And VLC will play, well really it plays practically everything I've ever thrown at it. 183 00:13:07,914 --> 00:13:13,145 Certainly it does all the MPEGs, it does Quicktime, it does Windows Media, 184 00:13:13,987 --> 00:13:19,412 lots and lots of different formats without really bothering you about installing 185 00:13:19,512 --> 00:13:23,077 too many codecs and it will play subtitle files as well 186 00:13:23,177 --> 00:13:27,894 along with that video, so it's a really nice little versatile program. 187 00:13:27,994 --> 00:13:32,132 That also actually you can set it up to be a streaming server, 188 00:13:32,232 --> 00:13:34,581 a streaming video server, so if you ever want to do that. 189 00:13:34,681 --> 00:13:39,000 Another really cool program is called Miro. 190 00:13:39,100 --> 00:13:44,612 which is at getmiro.com or getdemocracy.com 191 00:13:44,712 --> 00:13:49,623 and this a cool little application that we can't really go into too much here. 192 00:13:49,723 --> 00:13:51,744 because it's kind of a specialized program. 193 00:13:51,844 --> 00:13:54,971 But it basically delivers a lot of video content, 194 00:13:55,071 --> 00:13:58,321 it's sort of an aggregator of video content. 195 00:13:58,421 --> 00:14:01,471 So it will play youtube, it'll play different podcasts 196 00:14:01,571 --> 00:14:04,260 and there are directions on how to install it on their website 197 00:14:04,360 --> 00:14:07,668 specifically dealing with Ubuntu's install. 198 00:14:07,768 --> 00:14:14,589 So it's kind of cool to check out if you want to watch a lot of IPTV 199 00:14:14,689 --> 00:14:17,886 and podcasts and things like that. 200 00:14:17,986 --> 00:14:21,821 You should check that out, it gives you detailed instructions 201 00:14:21,921 --> 00:14:28,198 and you have to add a repository, so I don't want to go into that right now. 202 00:14:28,298 --> 00:14:33,559 There's another screencast about how to add repositories to the package manager, 203 00:14:33,793 --> 00:14:36,171 and that's what this would involve. 204 00:14:36,271 --> 00:14:41,065 But if you go to getmiro.com, they give you really good instructions on how to install. 205 00:14:41,165 --> 00:14:44,292 So it's a nice little application 206 00:14:45,531 --> 00:14:51,003 and it's something that actually Ubuntu screencasts streams out to as well. 207 00:14:51,103 --> 00:14:57,176 So you can get all the latest screencasts right there in your Miro player. 208 00:14:57,573 --> 00:15:01,472 This has been watching videos on Ubuntu. 209 00:15:01,572 --> 00:15:07,738 Hopefully it's helped you understand a little bit more about encoded videos, 210 00:15:07,838 --> 00:15:11,082 compressed videos, how to watch them smoothly. 211 00:15:11,182 --> 00:15:17,466 For more screencasts you can stop by screencasts.ubuntu.com 212 00:15:18,431 --> 00:15:23,475 And you can request a topic for us to cover. 213 00:15:24,323 --> 00:15:26,772 And certainly share them with everyone you know, 214 00:15:26,872 --> 00:15:28,672 whether they're Linux users or not. 215 00:15:28,772 --> 00:15:31,736 They're really great educational videos. 216 00:15:32,601 --> 00:15:36,085 And very unique to the Linux and Ubuntu community. 217 00:15:36,185 --> 00:15:39,709 So check them out and have fun.
Attached Files
To refer to attachments on a page, use attachment:filename, as shown below in the list of files. Do NOT use the URL of the [get] link, since this is subject to change and can break easily.You are not allowed to attach a file to this page.