Ubuntu Multimedia :: How To Save A Web Image From Command Line
Jun 9, 2010
How do I save it as a jpg somewhere on my puter using a script? I can wget, but it gets saved as a .evif, which is totally useless. I can right-click on the image in a browser and use the context menu to save it as a jpg, but I want this process automated. How can I DL this image and save it as a jpg? GIMP's CL options don't include the capacity to save/convert this image, though it's possible from teh GUI. ImageMagick won't read this dynamic URL. What do I do?
I am implementing a strategy to organize my data among the several machines I work with and thought that getting some ISO images out of it could be a good idea because that way data would be 'read only' thus allowing for easier synchronization.
At first I thought of using the "dd" command to create the ISO out of a directory, but it fails code... So, I have two questions:
Is the ISO 'format' capable of storing complex directory structures with long filenames (pretty much as any Linux filesystem does), or are there some inherent limitations?
Supposing the ISO format is not constrained, which command would allow me to create an ISO file out of a directory?
I do computer forensics here in Afghanistan and I am trying to keep a clean image of a dual bootable hard drive. Here is what I try to do...
1. Boot into UbuntuLiveCD 2. I run "sudo dd if=/dev/zero of=/dev/sda conv=sync,notrunc bs=64K" to wipe the drive with all zeros. 3. I then install Windows by creating a new partician about 50GB. 4. I then install Linux by creating a partician in ext4 mounting it at '/' in addition I create a swap partician. 5. Next configure everything just the way I want it. I install all the drivers and software I need for my windows partician and build out the remaining part of the disc as a "data drive." 6. Then I use "dd" again to try to image my "clean slate" of a system. Remember I am dual booting. I dd the /dev/sda and gzip it. 7. When I go to restore it, I boot from the live CD again and unzip ig and "dd" it back onto /dev/sda. 8. I run fdisk -l and I get:/dev/sda1 * 1 6375 5120000000 7 HPFS/NTFS/dev/sda2 6376 11724 42965842+ 83 Linux/dev/sda3 11725 12453 ...... 82 Linux swap / Solaris.This means to me that it can "understand the file system" 9. But then when I take out the Live boot CD and try to get my "clean slate" machine back, the system goes into Grub Rescue mode with a grub command line "grub rescue>" 10. I tried using the tutorial on Grub2, but... a. It would not understand the command "linux" b. When I try to do insmod, it says it doesn't recognize the file system.
simple scan error as follows: Failed to save file ImageMagick returned error code 11 Command line: convert -adjoin /tmp/simple-scan-DA9MBV.jpg /tmp/simple-scan-XCK4BV.jpg /tmp/simple-scan-NZVYBV.pdf Stdout: Stderr: using karmic note: I have apparmor extra profiles installed but didn't notice one that related to simple scan or imagemagick. Red herring or not?
I use webcam with the streamer application. So, to record a video I have to put in terminal something like this: Code: streamer -q -c /dev/video0 -f rgb24 -r 24 -t 00:30:00 -o /home/shark/untitled.avi I know I can use other applications but I have got problems with all except with this. This is really annoying because it is a delay job. So, I am wondering how can I make a script that the terminal will ask me to name the file or even better to ask where to put my file.
i've gotten my fedora 12 to the point where i can run python3 scripts from command line and can call up python 2.6.2 idle with the command 'idle' from command line. what command will call up python3 (3.1.2 to be exact) idle?
Everything is plain and simple. I want to know what's the least painful way to control vlc from local command line while having GUI as well?
I would like to e.g. use something like "vlc --pause" in one of my bash scripts to pause music if something hapens. So rc interface is useless, is it not?
not making a thorough search on this as the irrelevance of results is beneath me... Well actually I have made it but it was a while ago and to no avail since the new vlc shipped with karmic got rid of the old http interface which allowed to do this just by using wget on an url....
Ubuntu 9.10 (Karmic Koala) 64 bitlaptop Asus f5n vidio: GeForce 7000MI try to remove piton2.6, but system freeze, after these ubuntu show massage (after reboot)"Ubuntu is running in low-grahics mode our screen, graphics card, and input device settings could not be detected correctly. You will need to configure these yourself"I press "ok"and give me next list of options"run ubuntu in low-graphics mode for just one session" -- system freeze "regonfigure graphics" -- no resultI try to reinstall graphic driver "nvidia-glx-185" -- no result
you longed to listen to your favorite sirius XM satellite radio without the annoying popup every 90ish minutes. And if you were like me, you missed sipie, an application that allowed you to stream sirius via a command line. Since sipie has been flakey, some people have decided to start a new project on GITHUB, called pyxis, and I have to say, after installing (which is a breeze), it is working perfectly. I am excited to have my sirius back up and running strong from the command line.
note, I have no affiliation with the development team, I just thought that this very handy application deserved to be recognized.
I installed Phatch today hoping to use it to reduce the file size of some picturesI took for work.I originally took the pics with 12 MP camera and now want to email them to a few peopleas smaller files.I found Phatch, but the docs under man phatch suck...Would anyone mind sharing an example of how to make the above changes to adirectory of pics. My guess is it starts: phatch -vkc --desktop [action] [path]
I wanted to share this nifty technique I came across for capturing video using the command line. The problem: I have a bunch of old VHS tapes (remember those...?) and need to get them digitized. I have a VCR, and a Dazzle Hollywood DV Bridge which captures video to DV over Firewire (IEEE1394). I first tried using Final Cut Pro, but it wouldn't capture, perhaps because it expects a controllable DV camera, and the Dazzle isn't a DVC device. I then tried my other favorite video editing app, Kdenlive, but it seemed to have the same problem.
I took a quick stab at the other common editors in the repositories (Kino, Openshot, etc.), but no luck with any of them. Then I remembered the dvgrab command, and gave that a shot and it worked, giving me a nice .dv file. However, DV makes pretty big files, which I wanted to compress down to something more manageable. Since I was going to be digitizing hours and hours of tapes, it would be great if I could compress while capturing. A little more googling and I had the answer - you can pipe dvgrab directly into ffmpeg! Here's the command:
the first part starts the capture, in DV1 format, and outputs it to a pipe file. usually you give dvgrab a filename, like
dvgrab -format dv1 capture.dv
the second part does the encoding:
-f dv: use DV format -i -: input from the pipe -b 2000k: video encoding bitrate of 2000k/sec, high quality -ab 512k: audio encoding bitrate -y: overwrite file if it exists
I didn't set the codec explicitly, for Quicktime it defaults to MPEG4. This worked great, capturing a 2-hour tape into a high-quality quicktime around 2GB. But I also wanted to be able to view the capture while it was going. Since I left the field monitors and audio splitters at the office, I had to figure out how to do this in software. Turns out that the "tee" command does exactly what I needed - the shell never ceases to amaze! Here's the full command:
dvgrab -format dv1 - | tee >(ffmpeg -f dv -i - -b 2000k -ab 512k output.mov) >(playdv --disable-audio --no-mmap)
tee uses the
syntax to pipe simultaneously to multiple processes. The only thing that didn't work was audio playback, which was choppy and introduced errors in the capture file. I think a little tweaking with the capture rates could fix that.
I am looking for a command line command to convert ~2500 .flac files to .ogg files. All of the .flac files are in one folder and I would like to have the .ogg files put in a folder labled OGG - I would like to retain song information etc if possible.
I want to take consecutive screenshots of a video using command line operations but I can't seem to find accurate documentation on different websites.Does anyone know how to do this using vlc, totem or another program?I've used ffmpeg as well, but then reencodes and splits the video file. I just want to take consecutive screenshots.
Is there a way to control the gnome sound preferences widget via the command line? I use optical digital out (IEC95. It works fine. but everytime I reboot there is no sound, I have to go to sound preferences, hardware tab, select my internal audio device, change it from digital stereo duplex to analog surround 5.1, then back to digital stereo duplex, and then the sound works again. I would like to be able to do this via command line so I can write a little startup script and not have to do that every time i reboot.
Does anyone know of any good command line audio editing tools? I would like one that can take an mp3 file and crop everything but the first 30 seconds or so (possibly decompressing those 30 seconds as well).
i have a bunch of shorten files i want to play from the command line and ffplay will play them one at a time but i want to play them one after the other (the whole album)does not work i must have forgotten something as it plays one track then stops.
with the current Musicbrainz fiasco with Rythmbox and Sound Juicer I am now using RipperX. I like RipperX, but I would like to know if there are any command line parameters or some way of selecting the CD/DVD drive. It appears that RipperX can multi-task which would save me some time.
I'm using recordmydesktop for screencasts and currently use pavucontrol to select the monitor as the input source, as shown in many guides across the Internet, but I can't find anything on how to do it from the command line. How can I select a monitor as the audio input source for recordmydesktop from the command line?
By (first step) doing: pcmanfm --set-wallpaper /point-to-new-wallpaper, it change the configuration to the new wallpaper, then, my question is: What is the most correct way to "refresh the desktop screen" (by command line) so that the new wallpaper is then displayed.
And by (second step) doing: lxsession-logout, and choosing 'Logout', the new wallpaper is displayed after the new login. No problem here. Is there a (most correct) way to completely change the picture and activate it by command line (without user intervention)?
my computer is connected to my TV through HDMI using ATI HDMI output. I have written a small script to switch display from monitor to TV when a want to watch a DVD, but I didn't find how to switch sound from speakers to HDMI in command line. For the moment I have to open KDE system settings -> Multimedia and move sound devices by hand.