Hot answers tagged

146

From the imagemagick package, use the convert command: convert *.jpg pictures.pdf You will get a single pdf containing all jpg in the current folder. Install IM with: sudo apt-get install imagemagick source: stackoverflow Edit: Note that images will be out of specific order if they are not numbered. if you have 10 or more you need to name them ending ...


52

If you are using pdftotext you can use the -layout flag to preserve the layout of the text on the pages in your input pdf file: pdftotext -layout input.pdf output.txt


40

You definitely want Calibre. You can use it to convert virtually any file type to any other file type, as long as the source file doesn't have DRM (like Amazon, Adobe, etc.). If it does have DRM, check out Apprentice Alf's blog for help stripping it out with Calibre plugins. Don't use the DRM stripper to pirate books or otherwise violate your agreement ...


32

I would recommend Sound Converter. It is extremely simple to use for what you want. You can find it in the Software Center, or install it from the terminal: sudo apt-get install soundconverter Ubuntu Repo: soundconverter Apt Link: Install soundconverter All you need to do is open it up, change your preferences (Edit -> Preferences) then click the "Add ...


31

If you only want to convert mkv to mp4 then you will save quality and a lot of time by just changing the containers. Both of these are just wrappers over the same content so the cpu only needs to do a little work. Don't re encode as you will definitely lose quality. It's very straight forward using ffmpeg: ffmpeg -i LostInTranslation.mkv -vcodec copy ...


24

Updated Answer for Pre-2015 Releases Because no one is maintaining an all-inclusive ppa like Jon Severinsson's, Rmano's method of using a static build is now easiest. Note updates have to be checked and done manually. After heading to the official ffmpeg download page, click the link under Linux Static Builds. (The target may change so it's not linked ...


24

Install Soundconverter and run Soundconverter from launcher or terminal The default conversion is .ogg change this to mp3 going to edit-> preferences under type of results. Format to MP3 as follow: Click on add folder and then select your music folder. You may select the output folder on the above preference configuration before you clicking on ...


23

These commands do what you want: python -c "import urllib, sys; print urllib.quote(sys.argv[1])" æ python -c "import urllib, sys; print urllib.unquote(sys.argv[1])" %C3%A6 If you want to encode spaces as +, replace urllib.quote with urllib.quote_plus. I'm guessing you will want to alias them ;-)


19

It sounds like you're trying to make a video. If that's the case, then I'd use a proper video format. In this case, I'd use ffmpeg to convert the individual PNG files to a H.264 video. Since ffmpeg is made to work with videos that can be hours long, it should have no problem with your thousands of images. Using H.264 instead of animated gif will result in ...


18

The standard command from http://manpages.ubuntu.com/manpages/precise/man1/avconv.1.html shows this: avconv -i test.avi -c:v libx264 -c:a copy outputfile.mp4 This will re-encode your video to h264 (=AVC) and keep your sound unchanged which is mp3 and completely legal to the standard. A few other options to consider with this commandline are: Tweak the ...


18

Once you have installed the calibre package, you can use the GUI, but if you want to script it, there is also a command line converter installed as part of the calibre package - ebook-converter. The simplest way to call it would be: ebook-converter document.pdf .mobi which will convert the pdf into MOBI format with the same name. That should "just work" ...


16

Per default the audio converter shipped with the opus-tools can convert audio in raw, wave or AIFF format. The minimal syntax uses default settings: opusenc input.wav output.opus We may want to add a better bitrate as the default 96 kbps with the option --bitrate N.nnn (for all options consult the manpage for opusenc). To convert mp3 "on the fly". i.e. ...


16

You can find the pdfedit for Linux at: http://sharadchhetri.com/2013/12/29/install-pdfedit-for-editing-pdf-file-in-ubuntu/ The current Ubuntu dropped support for the libqt3-mt library. Currently you can add it by editing your /etc/apt/sources.list and adding the lines: # libqt3-mnt deb http://cz.archive.ubuntu.com/ubuntu lucid main Then run: $ sudo ...


15

Arista can do both of these things, and it provides a very nice, easy GUI. It's available in the repos.


15

You could try ebook-convert from Calibre. If anything, I'd say it errs in the other direction: too many line breaks. Another thing I'd definitely consider though is converting to HTML using pdfreflow, and then convert the HTML to TXT.


15

Handbrake is the best video converter tool I know. From the details page: Supported Sources: Any DVD-like source: VIDEO_TS folder, DVD image or real DVD (unencrypted--protection >methods including CSS are not supported internally and must be handled externally with >third-party software and libraries), and some .VOB and .TS files Most any ...


13

Ogg Vorbis is a superior format for many reasons, not only being an open, royalty-free, patent-free standard. Just to name a few technical aspects, it has native metadata support, gapless play and multichannel, unlike MP3's ID3v1/v2 tags (v2 has no standard at all), player hacks to mitigate gaps (try listening to a live album) and 2 max channels (stereo). So ...


13

Worked for me (BUT warning! turns off compression and resulting PDF will be big!): convert page1.jpg page2.jpg +compress file.pdf or even: convert -rotate 90 page\*.jpg +compress file.pdf From ubuntuforums.org, the +compress helps it to not hang. NOTE: the +compress turns off compression. The machine I was working on at the time seemed to hang ...


13

@Nicolas Raoul you made a little mistake, it's not -nv it's -vn try: avconv -i file.mp4 -vn file.ogg it will work.


12

shell Try the following command line: $ echo "%C3%A6ndr%C3%BCk" | sed 's@+@ @g;s@%@\\x@g' | xargs -0 printf "%b" ændrük You may define it as alias and add it to your shell rc files: $ alias urldecode='sed "s@+@ @g;s@%@\\\\x@g" | xargs -0 printf "%b"' Then every time when you need it, simply go with: $ echo "http%3A%2F%2Fwww" | urldecode http://www ...


12

Try http://calibre-ebook.com/ I'm not sure how well it works for Linux but on Windows it is the perfect solution for managing your eBook library and obviously also converting from anything


12

My suggestion involves: recording your tape as one file Removing the tape hiss Splitting the file individual tracks Re-encoding the tracks into individual mp3 files To do this will involve the following software which you can install from the Software Centre: Audacity Gramofile Installing restricted codecs - search for restricted and choose the ...


11

convert `ls -1v` file.pdf This ls will list one file a time in a "natural order" (1,2,3...) and proceed with conversion.


11

To simply convert files from Windows WAV to FLAC on the commandline the official tool flac would be the obvious choice. flac ~/Music/*.wav would convert all WAV files from the Music directory in your HOME to flac. By using the option: flac --keep-foreign-metadata ~/Music/*.wav even non-flac metadata will be preserved in your resulting *.flac file. ...


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

You can use: png2icns file.icns file.png The first one is the name you want your .icns file to have. The last one is the .png file you want to export as an icon. Important: Only convert the icons that match sizes icns supports: (16x16, 32x32, 128x128, 256x256, 512x512 and 1024x1024 pixels) Or you can use an online service: iConvert Icons Source: ...


10

If you mean export the audio from the video MP4 file then use ffmpeg, I do this all the time from FLV files. Firstly install ffmpeg: sudo apt-get install ffmpeg libavcodec-unstripped-52 ffmpeg libavcodec-unstripped-52 Then you run this: ffmpeg -i video.mp4 -f mp3 -ab 192000 -vn music.mp3 It might say that your missing some codecs for MP4, in that ...


9

You can use GhostScript for batch output .ai to various formats, i.e. transparent PNG: gs -dNOPAUSE -dBATCH -sDEVICE=pngalpha -r300 -sOutputFile=out.png in.ai Where -r300 is dpi resolution. For available devices with which you can convert .ai format, reference documentation.



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