LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices

Reply
 
Search this Thread
Old 12-05-2011, 10:00 PM   #1
joboy
Member
 
Registered: Jul 2009
Distribution: Ubuntu, Puppy, Mint
Posts: 259

Rep: Reputation: 3
How to capture video on desktop ?


Hi there,

I want to download a flash video, I tried many FireFox add on but none can do that, the video is not found or just a dummy, I wonder if I can download it with VLC or any screen capture app, please advise.
 
Old 12-06-2011, 01:37 AM   #2
raju.mopidevi
Senior Member
 
Registered: Jan 2009
Location: vijayawada, India
Distribution: openSUSE 11.2, Ubuntu 9.0.4
Posts: 1,155
Blog Entries: 12

Rep: Reputation: 92
If you want screen capture program .. try this -> XvidCap
If you want to download online videos through firefox browser .... try this addon-> VideoDownloadHelper
 
Old 12-07-2011, 12:17 AM   #3
joboy
Member
 
Registered: Jul 2009
Distribution: Ubuntu, Puppy, Mint
Posts: 259

Original Poster
Rep: Reputation: 3
The movie is protected by a script can't be downloaded normally, I checked the source code but no luck, and I tried all the FF downloader but none can download the movie except a small dummy file. I wonder if I can capture the video on the fly with vlc, this is the last resource if all fail, and it will take long time to download.
 
Old 12-07-2011, 08:32 AM   #4
raju.mopidevi
Senior Member
 
Registered: Jan 2009
Location: vijayawada, India
Distribution: openSUSE 11.2, Ubuntu 9.0.4
Posts: 1,155
Blog Entries: 12

Rep: Reputation: 92
Hi,

You didn't replied on my previous post suggestions. Did you try options that I have provided?
 
Old 12-08-2011, 02:24 AM   #5
joboy
Member
 
Registered: Jul 2009
Distribution: Ubuntu, Puppy, Mint
Posts: 259

Original Poster
Rep: Reputation: 3
I said I tried all Firefox downloader but none work.

I finally got it done with windows via CoolJah, I wished I can do it on Ubuntu.
 
Old 12-14-2011, 11:25 AM   #6
CrashDummy
LQ Newbie
 
Registered: Dec 2011
Posts: 14

Rep: Reputation: Disabled
Joboy,

it looks like I'm following you lately, but I'm not. For Firefox extensions there is also "Unplug" and "Download Youtube Videos as MP4 and FLV", and that second one requires the "Greasemonkey" addon. I use these.

There is also a trick to grab most of the flash videos. Use at your own risk. Older versions of Adobe flashplayer put all the flash videos in the folder /tmp. You find that folder by going to "Places" (on the desktop menu)/Computer/File System/tmp. The newer versions do not place the video there. Sometimes (almost never) it is now placed in the "~/.mozilla/firefox/vkuuxfit.default/Cache" folder which you can only view in Nautilus by choosing to view hidden files (find in Nautilus menu). Sometimes only the first 20KB is there, and you cannot find more. The Firefox plugins will catch this though. The trick is to downgrade to an older version of the flash plugin which will allow you to find the file in the /tmp folder, but it will disappear from there, if you close the browser window that the video came from; so you have to copy it from /tmp and paste it somewhere else first. This only works in Firefox, and only if you are using the Adobe flashplugin. The last version that worked this way was 10.1.102.64.

First, you must already have Adobe flashplayer installed- any version.

The download link for older versions of flash is http://kb2.adobe.com/cps/142/tn_14266.html

Download the file "Flash Player 10.1.102.64 and 9.0.289.0" to a folder you can easily find later. Then from that download, extract the file named flashplayer10_1r102_64_linux.tar.gz by right-clicking on the file and select "extract here".

From this file extract libflashplayer.so, by right-clicking on the file and select "extract here". That one file is all you want. The rest of that download can be discarded. Then use this command in terminal:

gksudo nautilus

Then type in your password at the prompt. Nautilus will open and if you are not careful, you can ruin your system, since you now have root privileges to destroy your files.

Navigate to /usr/lib/adobe-flashplugin and rename the file there named libflashplayer.so to libflashplayer.so.old, and then copy your new libflashplayer.so file that you extracted and saved earlier, and paste it into this same folder (/usr/lib/adobe-flashplugin).

Close Nautilus window and close terminal. Open and close Firefox.

Now that you have the old version of flash player, Ubuntu will try to upgrade it back to the newer version by the synaptic package manager. To prevent this, you have to "pin" the version of flashplayer. Open Synaptic Package Manager and search for "adobe-flashplugin". When it is found, left-click on the text line (not the check box) and then while the line is highlighted, find the "Package" button at the top of the window and select "lock version". This will prevent upgrading. You probably might run into problems sometime in the future with out of date software and maybe miss security updates, but this can all be undone by undoing all these steps, or better by just unpinning the adobe-flashplugin in Synaptic and then updating it with Synaptic.

With only Firefox your flash videos will be in the /tmp directory. Google Chrome uses it's own flash plugin, and does not work this way.

Last edited by CrashDummy; 01-12-2012 at 10:54 AM. Reason: fixed error: changed "firefox" to "flash plugin"
 
Old 12-15-2011, 05:17 AM   #7
joboy
Member
 
Registered: Jul 2009
Distribution: Ubuntu, Puppy, Mint
Posts: 259

Original Poster
Rep: Reputation: 3
Thanks for the tips, I'll study and try out later.
 
Old 01-11-2012, 07:19 PM   #8
kabish
LQ Newbie
 
Registered: Dec 2011
Location: Alaska
Posts: 5

Rep: Reputation: Disabled
To record movie which is protected for downloading, I think the only feasible way to capture it is to use screen recording software. Such as, camstudio, Jing.
 
Old 01-12-2012, 10:51 AM   #9
CrashDummy
LQ Newbie
 
Registered: Dec 2011
Posts: 14

Rep: Reputation: Disabled
Quote:
Originally Posted by kabish View Post
To record movie which is protected for downloading, I think the only feasible way to capture it is to use screen recording software. Such as, camstudio, Jing.

Both these software, the last I checked, operate only in Windows and also at low framerate. Jing is rated as "garbage" when used with Wine. Camstudio uses VFW which is not supported in Wine for Linux. Jing records no sound. Both have low reduced frame rate. Not feasible in my opinion, but it seems those are just your examples.

For Linux, Xvidcap and RecordMyDesktop also give low framerate and records sound.

I've seen a webm file downloaded using the "Unplug" extension for firefox and at 720px HD. It also downloads flv, mp4, wmv, avi and all types. It records the whole file, not a snapshot 5-10 times a second. Top that in Linux. When and if flv is replaced with webm on the internet, the method of going back to a prior version of flash that I gave in the last post will not be any help, unless maybe flash player implements webm. Unplug will usually work for that.

I haven't tried the VideoDownloadHelper for Firefox, it has good ratings. What Unplug won't catch is an rtmp stream, which you can catch with vlc, using rtmpdump in vlc, but you have to know the full url of the stream source to use it.

Last edited by CrashDummy; 01-18-2012 at 09:48 AM.
 
Old 01-17-2012, 12:49 AM   #10
sifansteve
LQ Newbie
 
Registered: Dec 2011
Posts: 1

Rep: Reputation: Disabled
There are so many applications that could grab online videos, I mean, you could grab flash videos from the internet by the four methods. Free web-based tools, commercial software like on video recorder, video capture tool and screen recorder software. According to the different sites, choose the corresponding method to grab streaming video from internet.

Last edited by sifansteve; 01-17-2012 at 12:56 AM.
 
Old 01-17-2012, 01:38 AM   #11
andrew62
LQ Newbie
 
Registered: Jan 2012
Posts: 2

Rep: Reputation: Disabled
Quote:
Originally Posted by joboy View Post
Hi there,

I want to download a flash video, I tried many FireFox add on but none can do that, the video is not found or just a dummy, I wonder if I can download it with VLC or any screen capture app, please advise.
VLC can help you download video from VLC media player to your computer.
 
Old 01-17-2012, 12:58 PM   #12
CrashDummy
LQ Newbie
 
Registered: Dec 2011
Posts: 14

Rep: Reputation: Disabled
Quote:
Originally Posted by sifansteve View Post
There are so many applications that could grab online videos, I mean, you could grab flash videos from the internet by the four methods. Free web-based tools, commercial software like on video recorder, video capture tool and screen recorder software. According to the different sites, choose the corresponding method to grab streaming video from internet.
And none of these 4 methods work in Linux. All were for Winjunk and a few for Mac. The question was how to do this in Linux, and this is a Linux forum. I think it was the frustration of his not being able to do this in Linux and having to return to Winjunk that caused him to post. It's a "Linux Question". Many Winjunk methods are available, and all of them cost money and only work on a percentage of the videos. All of the Linux methods are free, and have no higher rate of failure.

In Linux, for nearly everything except flash and webm, the file will be in the /tmp folder if firefox was used, or in the browser's cache folder. VLC captures streams if the url is known, but this url is often hidden and sometimes impossible to find except using Wireshark(for linux). Nothing will be 100%, because some of it is aggressively protected. Screen capture is the last resort and usually has poor results, but you do always get something.

If you get the Wireshark .deb package from the Ubuntu repositories (free of course) and install it, then run it with root privileges ( I typed "gksudo wireshark" in the terminal and left the terminal open and the (GUI) windowed interface pops up- if you don't login as root it won't recognize your internet devices) Then you can run a "capture" of the packet headers coming into your computer and get the url of all the packets (files) streaming into (or out of) your internet port (eth0 on mine). The video has to be started immediately after the capture starts, not before. You can get the url of the file (in two halves that you connect together= host + the rest of the url on another line) from Wireshark's output to put into vlc's media/ <convert/save> /network tab, and save as "dump raw input", or else specify a conversion format.

In Wireshark you will find that most of your videos will use the http or rtmp protocol. You will need to know that also for vlc. Videos streaming in use the "GET" method, and that word and the website name matching the website you are viewing will help you find the video in Wireshark's list of other junk streaming in.

You can do a lot in Linux without needing Winjunk.
 
Old 01-18-2012, 03:18 AM   #13
joboy
Member
 
Registered: Jul 2009
Distribution: Ubuntu, Puppy, Mint
Posts: 259

Original Poster
Rep: Reputation: 3
Wireshark is new to me I'll check it out, thanks !
 
Old 01-18-2012, 07:01 AM   #14
CrashDummy
LQ Newbie
 
Registered: Dec 2011
Posts: 14

Rep: Reputation: Disabled
Quote:
Originally Posted by joboy View Post
Wireshark is new to me I'll check it out, thanks !
Here's a few things about Wireshark and VLC I learned from experience that I will pass on to you:

First where I said I ran it by typing the command "gksudo wireshark" in the terminal, it will run using the "sudo" instead of "gksudo", but "gksudo" is the proper way to open a GUI application as root. You will get a warning about being unsafe, but that's the way it is.

Wireshark's GUI has 3 frames. The top frame has the list of packets. Click on the line in that frame to get it's description to appear in the middle frame (should be the line that says "GET" and mentions your file). As example, if the packet you chose in the top frame said protocol was HTTP, then in the middle frame expand by clicking the "Hypertext Transfer Protocol" line. Under that line in the middle frame will appear the line "Host: something.com\r\n". Discard the "\r\n" from that part of the url, and copy the rest by left clicking the line and choose "copy" "value". Then look in that same area in that middle window for the line that says "GET some name/something/something .../ something.flv(and maybe some numbers and letters following that). All this after the space after "GET" plus any numbers and letters without a space following the .flv (or whatever file type it is) is the rest of the url you need. There may be a space after that with something else, but don't copy it. Put it all together (the first part might end in a slash and the second part may begin with a slash; so don't put two slashes together, omit one) and paste it into the save/convert window of VLC. If you check the box in VLC for "dump raw input" and choose a place to store the file, you will get the original file in the original format saved to the location you chose.

Also if you choose "dump raw input", I think it will not have a file extension added to the file name, but you will rename the file after it is saved, if you want, and add the .flv or whatever it originally was. Linux does not need the file extension added to the name, since it gets the file type from the headers. You'll only need to add the file type to the name for Winjunk, which requires it. (Also you cannot fool Linux by using the wrong file extension on the file name).

Or if you just want to try it in VLC without saving and just view it, put the same url into the "network stream" window of VLC.

So, doesn't Wireshark + VLC seem like Coojah + Blade? And Coojah is not 100%

I have attached a screenshot of Wireshark. The blue highlighted lines are examples of my choices based on what I wrote here. My example shows a weather forecast being fetched by the gnome weather applet. It is a GET operation, protocol HTTP, and is a .txt file.
Attached Images
File Type: jpg Wireshark.jpg (176.1 KB, 3 views)

Last edited by CrashDummy; 01-21-2012 at 07:57 PM.
 
1 members found this post helpful.
Old 01-18-2012, 09:04 AM   #15
CrashDummy
LQ Newbie
 
Registered: Dec 2011
Posts: 14

Rep: Reputation: Disabled
One last thing I want to add is that you can get the .deb package called "Uget" from the repositories and use that to download instead of using VLC. Just paste the url in (make sure to add the "http://" or it won't do anything) and download it in a GUI window with a progress indicator. Does batch downloads also. Does not re-encode the file- just downloads as is in the same filetype and names it with the right extension for you. You can pause/resume the download.
 
1 members found this post helpful.
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
desktop screen capture with video help neverwhere Linux - General 5 01-17-2012 01:38 AM
Exact time of image capture and Unicap library for video capture devices Dstruct0 Programming 3 09-10-2011 06:34 PM
Desktop video capture software for (K)ubuntu darkduck Linux - Software 2 02-14-2011 09:25 PM
Wanting to capture desktop as video on Red Hat EL5 digieditny Linux - Software 2 09-27-2009 09:40 PM
Capture support for dvd and video capture in linux is it even going to be real ever? maximalred Linux - Distributions 3 07-06-2003 07:29 PM


All times are GMT -5. The time now is 03:18 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration