Tag Info

Hot answers tagged

19

For MP3, I strongly suggest using Lame , considered by many (including me) THE best MP3 encoder, specially for VBR. sudo apt-get install lame And to encode: lame -V 5 file.wav file.mp3 This will create a high-quality MP3 VBR file around ~130kbps, which is great for casual listening. Use -V 3 for average bitrates around ~200kbps If you want to create ...


17

SoundConverter can do this without having to mess around on the command-line, and it's available in the Ubuntu Software Center:


17

Searching for packages matching ogg, I found dir2ogg which seems to be exactly what you want. Just sudo apt-get install dir2ogg dir2ogg -r /path/to/mp3s/ And it recursively finds and converts all mp3 files under /path/to/mp3s/ to ogg (assuming I read the manual correctly).


15

Just for the record, there is a software (actually, a mini-distro) that does exactly the procedure arrange said in enzotib's answer: Parted Magic It looks like a direct conversion from NTFS to ext4, but internally the procedures are: Shrink the NTFS partition Create an ext4 partition in the empty space Move data from NTFS to ext4 until ext4 is full If ...


12

The simple way to do it is: ffmpeg -v 5 -y -i input.m4a -acodec libmp3lame -ac 2 -ab 192k output.mp3 If you want a script to wrap that, try aac2mp3, which should work for you. (The syntax for that last statement was pulled from there.) Inline code included below: #!/bin/bash # # $Id: aac2mp3,v 1.2 03/30/2008 10:00 Daniel Tavares ([email protected]) - ...


12

I don't know if Calibre is worth installing for your job, but if you have it you could use the powerful ebook converter: ebook-convert input.epub output.txt Output format is deducted from output file extension I imagine there could be some XML tools/scripts (XSLT) that can transform epub in text as epub is basically XHTML in ZIP archive


12

Be careful with conversions from MP3, M4A, etc. to OGG because the result may sound poor! Warning: Both MP3 and OGG are lossy formats, unlike say WAV or FLAC. This means that they achieve their compression in great part by throwing away bits of audio information that are imperceptible to the human ear (called psychoacoustics [wikipedia]) When you encode ...


12

the following will convert all files in the current directory: for file in *.pdf; do pdftotext "$file" "$file.txt"; done Sam


11

Method 1 Simply use DJView and export as PDF Goto Synaptic Package Manager Install DJview4 Run DJview (Applications - Graphics - DJView4) Open your .djvu document : Menu - Export As: PDF Method 2 Open the djvu file in evince Select print ----> print to file change .ps to .pdf and click print Method 3 Goto Synaptic Package Manager Install ...


10

Here is one way, which would require some not so common tools: ocrodjvu pdfbeads, that has it's own requirements which can be found by Google We can use djvu2hocr command (from ocrodjvu package) to extract hidden text layer from DjVu file (it doesn't do any OCR or similar, it just extracts text layer with geometry), i.e.: djvu2hocr -p 10 sample.djvu | ...


10

With Handbrake you can convert all kinds of files: Supported Sources: Any DVD or Bluray-like source: VIDEO_TS folder, DVD image, real DVD or bluray (unencrypted -- removal of copy protection is not supported), and some .VOB, .TS and M2TS files Most any multimedia file it can get libavformat to read and libavcodec to decode. Outputs: ...


10

Use a combination of FFMPEG and String Manipulation. Change into the folder where your mp3's are located: cd mp3folder One example is to use a simple "for" loop: for file in *.mp3 do ffmpeg -i "${file}" "${file/%mp3/ogg}" done The double quotes prevent spaces in the filenames being treated as 'newlines'. ffmpeg has several options to include in the ...


10

convert -geometry 1600x1600 -density 200x200 -quality 100 file.pdf file.jpg When converting to jpg, you can use the -quality option. The "best" quality would be -quality 100. There is a much simpler way to split multipage pdfs into a jpg: convert -quality 100 -density 600x600 multipage.pdf single%d.jpg The -density option defines the quality the pdf ...


9

One different way would be GhostScript: gs -dNOPAUSE -dBATCH -sDEVICE=jpeg -r96 -sOutputFile='page-%00d.jpg' input.pdf where -r96 is desired dpi resolution Output are multiple JPEG images. You can generate transparent PNGs also if you wish: gs -dNOPAUSE -dBATCH -sDEVICE=pngalpha -r96 -sOutputFile='page-%00d.png' input.pdf


9

No, there is no way that I am aware of. The only way, as you said, is to backup->format->restore.


9

You can convert an m4a file to flac with the ffmpeg command-line tool: To install ffmpeg: sudo apt-get install ffmpeg To convert: ffmpeg -i filein.m4a -f flac fileout.flac


9

You can use Avidemux to convert different formats together.Also you can have great editing features. WinFF is another option only for video conversion.As the app site says: WinFF is a GUI for the command line video converter, FFMPEG. It will convert most any video file that FFmpeg will convert. WinFF does multiple files in multiple formats at one ...


9

The main difference between main Ubuntu, XUbuntu, KUbuntu, and LUbuntu is the Desktop Environment. You can install one of these DEs onto your system with the following commands: Ubuntu: sudo apt-get install ubuntu-desktop KUbuntu: sudo apt-get install kubuntu-desktop XUbuntu: sudo apt-get install xubuntu-desktop LUbuntu: sudo apt-get install ...


9

There is a good soundconverter called "soundconverter" in the Softwarecenter. I made the test, tags are maintained when converting from .mp3 to .ogg.


8

The Ubuntu source package for imagemagick does not declare a build dependency on libwebp-dev. Thus imagemagick gets built without webp support. This could be considered a bug in Ubuntu. Relevant output from the build process: checking for WEBP... checking webp/decode.h usability... no checking webp/decode.h presence... no checking for webp/decode.h... no ...


8

It appears you can use Inkscape from command line: `#{INKSCAPE_PATH} -z -f #{source_svg} -w #{width} -j -e #{dest_png}` more details I imagine you can write a simple bash script to process all SVG files: #!/bin/sh for file in *.svg do /usr/bin/inkscape -z -f "${file}" -w 640 -e "${file}.png" done the example above converts all .svg files in the ...


8

ffmpeg I think ffmpeg will do the job it's quite simply copy all the streams and output them in an mkv container. No information is lost/re-encoded. ffmpeg -i input.mt2s -scodec copy -acodec copy -vcodec copy -f matroska input.mkv


8

OK well, I did some more research and although tohuwawohu's method does work, I found it easier to use a program called pdftoppm to achieve what I wanted done. Since I am pretty much a layperson when it comes to using command line apps, I will do my best to explain how I got this to work for me. Navigate to the folder containing the .pdf you wish to edit ...


7

I realize this is an old question, but I just stumbled upon it and found the answer. After you separate the image into the CMYK channels, you get a .tif image with 4 layers (one for each color). This image looks inverted because each area where this is white/grey represents a certain amount of cyan, magenta, yellow, or black. Once you have this, just go to ...


6

sudo aptitude install libav-tools for file in *.m4a; do avconv -i "$file" -f flac "`basename "$file" .m4a`.flac"; done


6

avconv (or ffmpeg, which avconv is a fork of) can do this from the command line: avconv -i input.flac -c:a alac output.m4a It should preserve the metadata by itself. To do every flac in a directory: for f in ./*.flac; do avconv -i "$f" -c:a alac "${f%.*}.m4a"; done To do every flac recursively (in the current directory and all sub-directories): shopt ...


6

We can use convert command to convert images to black & white: convert -colorspace GRAY image.png b-w_image.png Where image.png is the input image and b-w_image.png is output imgage. Combining this command with find we can create a bash one liner to convert all the images found under parent directory. How-to: Open terminal by hitting Ctrl+Alt+T, cd ...


5

One alternative is http://johnmacfarlane.net/pandoc/ which is in the repos, sudo apt-get install pandoc Then you can take your markdown file and convert it to rtf, or a variety of other formats with, pandoc -s -f markdown -t rtf -o file.rtf file.txt The -s switch is for standalone, so that it doesn't just create an rtf fragment. There are also a ...


5

Imagemagick seems to be very violent with memory usage. A suggestion is to use -limit to limit the memory size convert will use, it should use a disk cache for anything else it needs. Read an explanation here: http://www.imagemagick.org/pipermail/magick-users/2002-March/001285.html And here's how to use the -limit option : ...


5

I would do it with SoX (Sound eXchange) and ffmpeg (or avconv instead of ffmpeg). SoX is "the Swiss Army knife of audio manipulation", an effects and audio manupilation & generation tool for the command line. Install both: sudo apt-get install sox ffmpeg Convert your ac3 file to a wave file. Since SoX cannot read ac3 files directly, this step is ...



Only top voted, non community-wiki answers of a minimum length are eligible