Hot answers tagged

93

You can do the same in 12.04 by using several software. Using WinFF Install winff and libavcodec-extra first sudo apt-get install winff libavcodec-extra Open Winff from dash Then in Winff window, do these Add file Select what catagory to convert (select Audio) Select Audio file format (mp3) Type the output folder for converted file Then click ...


42

you can do it using ffmpeg. Install ffmpeg using following command: sudo apt-get install ffmpeg libavcodec-unstripped-52 The package libavcodec-unstripped-52 is available in Multiverse repo, so you will need to enable it. After installing these packages, you can use a command like the one below to extract the audio as mp3: ffmpeg -i video.mp4 -f mp3 -ab ...


26

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


25

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 ...


25

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).


23

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 ...


22

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 ...


21

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 (dantavares@gmail.com) - ...


18

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


17

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 ...


17

As Denilson Sá says, ffmpeg is deprecated. This worked for me on Ubuntu 14.04: avconv -i input.m4a ouptut.mp3 To obtain the avconv command, install libav-tools : sudo apt-get install libav-tools


15

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 ...


15

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


13

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 ...


13

You can use ImageMagick to convert images in varying ways, and it should be able to this quite easily. First you can split up into to parts (original.png being the source image, and in this case 32x32pixels in size): convert original.png -crop 32x32 parts-%02d.png You can then convert it into a animation (use -loop 1 if you don't want it to loop): ...


12

I confirm with vinay, but you must modify a command line to this: sudo apt-get install libavcodec-extra P.S. Edited command.


12

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 ...


12

soundconverter is another tool that can convert audio formats and also video to audio only: or via the terminal: sudo apt-get install soundconverter


11

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: ...


11

Try these commands, mogrify -format png /path/*.jpg This will convert all the .jpg files into .png files and saves the converted files in the same directory. mv /path/*.png ~/Desktop/pic This will moves all the .png files(conerted) to the pic directory which resides on the Desktop.


10

You are after the -threads option of avconv. Safest setting would be: -threads auto but you can also set an integer there if you want to experiment a little.


10

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


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

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 ...


10

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


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 ...


10

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


10

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 ...


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



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