Questions tagged [conversion]

Conversion between file formats.

52 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
5
votes
4answers
87 views

Replicate directory structure applying a command to each file instead of simply copying it?

Over time, I've encountered the same pattern again and again: I have some kind of directory structure: example/ ├── a │   └── c │   ├── d.txt (120k) │   └── e.txt (60k) └── b └── f.txt (...
3
votes
1answer
228 views

How to convert root filesystem to virtual disk format (img, vmdk or vdi)?

I unpacked the contents of a Mageia 6 ISO image, including a Linux root file system in it, and I've updated the root file system by chrooting into it and running dnf update. I also installed a few ...
3
votes
0answers
548 views

Convert NEF to JPG with optimal brightness

There are multiple tools for converting Nikon raw images (.NEF) to JPEG, as well as there are multiple discussions on this topic (e.g. Converting .NEF to .JPG). My question regards optimal settings ...
2
votes
1answer
112 views

How do I convert an OGG OPUS file to an Apple Core Audio container?

I've got some OPUS files I've created with FFMPEG on Linux (from MP3 originals I've deleted to save storage space). I'd like to make them playable on a Mac and, if possible, on an iPhone via iTunes. ...
2
votes
0answers
225 views

How to convert files from mbox format to PST?

I'm using readpst to convert a PST file from Outlook into text files which can be parsed in Linux. I want to select a subset of these messages, and make a new PST out of them so that they can be read ...
2
votes
1answer
294 views

Feeding unicode to unrtf

I'm trying to convert some files that contain utf-8 characters from rtf to text but i can't get unrtf to not just remove them: ➜ ~ file test test: UTF-8 Unicode text ➜ ~ cat test eeeééééèèèèfff ➜ ~...
2
votes
0answers
382 views

convert attachments of type winmail.dat (TNEF) to “real” attachments in stored email messages, recursively in MailDir

Some email messages contain the attachments in a format called TNEF (Transport_Neutral_Encapsulation_Format). This attachment is usually called winmail.dat. Extraction tools exist for linux, but ...
2
votes
0answers
1k views

How do I convert the complete AMD64 Gentoo Handbook into a PDF from the command-line?

I have been writing shell scripts for converting the AMD64 Handbook of Gentoo Linux to PDF and this is my current shell script: function ghand { # Input 1 is the architecture # Input 2 is the ...
2
votes
1answer
189 views

Convert / import flat file with multiple records, one variable per line

I am searching for an efficient way using (UNIX) command line tools to read a flat file into a(ny) database, perhaps after first converting to an intermediate structured format, for example XML or csv....
2
votes
1answer
3k views

Migrate from thunderbird to sylpheed while preserving folder structure

Is there an automatic way migrate a thunderbird mailbox to sylpheed while preserving the folder structure. I tried the importexport extension for thunderbird and got a directory with multiple mbox ...
2
votes
1answer
2k views

Ffmpeg problems on centOS 5.8 64 bit

I did install ffmpeg with winff, unsuccessfully when I try converting avi to x264, it says I don't have it. When I try to convert mp4 to Xvid I get unknown encoder 'libxvid'. It's like nothing really ...
2
votes
0answers
2k views

Using Image Magick Convert to Change Channel Depth?

I want to change an image depth of bitmap for testing purposes. Right now I am trying to get a 2 bit palette image, and a 4444 Hicolor image. I have a true color bitmap. I used the below command ...
2
votes
0answers
494 views

'convert' taking a long time to create a PNG thumbnail

I made a png from a pdf using ghostscript. It was converted very fast (not more than 1 sec), and has good quality. $ identify 1.png 1.png PNG 3508x2480 3508x2480+0+0 8-bit PseudoClass 2c 51KB 0.000u ...
2
votes
0answers
197 views

How do I install dvd-slideshow on Centos 5?

How do I install dvd-slideshow on Centos 5? http://dvd-slideshow.sourceforge.net/wiki/Main_Page I tried but only found a gui to install on Ubuntu. I'm using Centos 5, command line.
2
votes
2answers
3k views

Splitting WavPack files when the .cue file and .wv file have different names?

If a directory contains an album encoded as one large .wv file and a .cue file, splitting the entire album into individual .flac tracks is a simple task: $ cuebreakpoints foo.cue | shnsplit -o flac ...
2
votes
1answer
100 views

Convert scanned image to PDF with fixed DPI

Imagine I have a bunch of JPEG files that I have scanned using a known resolution (300 dpi in this case). However the JPEG file has some additional margin at the border because the scanner's area is ...
1
vote
0answers
312 views

Using iconv to convert utf-8 characters to the closest ASCII character

I can use the iconv command to "translit" a utf-8 string to an ASCII-only string with characters being replaced with their closest ASCII character. However, my problem is that I need the resulting ...
1
vote
0answers
43 views

Include index info in pdf man pages

I know that I can get to output manual page content with man -Tpdf. Many pdf readers can display and jump to specific points or sections in the document (i.e. by hitting tab from inside zathura). I ...
1
vote
0answers
67 views

How do I convert .JB2E files to a more common format?

I'm trying to convert some .jb2e images, which I extracted from a PDF, into a proper, common image file format like PNG or JPG. I tried using jbig2dec, but that told me jbig2dec FATAL ERROR Not a ...
1
vote
1answer
76 views

QPDF renders streams as gibberish

I have been trying to use a variety of programs to render a multilingual pdf (Hebrew/English dictionary) machine readable. QPDF (as well as pretty much every other program) renders the text as ...
1
vote
1answer
46 views

How to get convert to not interpolate pixels?

I am using ImageMagick's convert to convert a bunch of .fits files (an image format used in astronomy) to an animated .gif. My astronomical images are pretty low resolution (150 x 300 pixels) but ...
1
vote
0answers
4k views

Lightweight PDF to mobi and epub converter for Ubuntu

By lightweight I mean NOT Calibre. Please. I do not need a cataloging/library management software- which would not only consume unnecessary disk space but also ignore my current cataloging which I ...
1
vote
1answer
273 views

How to convert prc to pdf in Ubuntu cli?

Is there any CLI tool, that can convert a (Mobipocket eBook) PRC file to a PDF? I Googled on it but all I found was about converting doc(x)/HTML/series of images to pdf.
1
vote
0answers
58 views

Convert multiple group of PNG files to multilayered ICO files

Let say I've many files named e.g.: FirstIcon_16.png FirstIcon_32.png FirstIcon_colored_16.png FirstIcon_colored_32.png SecondIcon_16.png SecondIcon_32.png SecondIcon_colored_16.png ...
1
vote
1answer
217 views

tiff2pdf is auto-rotating my image

I am using: tiff2pdf -ox.pdf x.tif to generate a PDF from a TIFF. Why does the PDF show up as rotated 90 degrees left? I am using tiff2pdf version 3.9.5 on Solaris. I don't see any options to ...
1
vote
0answers
668 views

Converting FLAC with images into OGG with ffmpeg/libvorbis creates corrupt files

I have a script that extracts a specified subset of my music collection. Most of my music is FLAC; since space (and supported formats) may be an issue on the target device (smartphon, car radio, ...) ...
1
vote
0answers
140 views

Encoder to msrle format with FFMPEG

I need to create some files for an old windows API, for a video playback. The native windows files which works with this old API have the format of MSRLE. They are used as small animations during copy,...
1
vote
0answers
149 views

crop and convert to pdf adds unwanted margin

I have a few PNG files that I want to print in a certain scale. For that I want to convert each of them to (DIN-A4 sized) PDF and crop into multiple pages. So far I've used this command: convert -...
1
vote
1answer
1k views

Convert non-raid disk with data into RAID 1 disk (hardware controller)

I moved away from software RAID due to all the hassle it brings. After OS reinstall, I am left with only one drive. I ordered a hardware RAID controller today, and when the controller arrives, I'd ...
1
vote
0answers
385 views

Converting .odm to .odt or .pdf - command line

I saw this question: Converting .odm to .odt, where someone shows to convert an .odm file into .odt or .pdf. Is there also a way to do this in a command line? I have an Open Document Master file, ...
1
vote
1answer
399 views

pdftoppm (v 3.0) very slow to convert thumbnail in newer version

On one of our local servers, I use pdftoppm (v 0.18.4) to capture the first page of a pdf file as a 1200px wide jpg. It's very quick, and works very well. I'm doing it like so: pdftoppm -f 1 -l 1 -...
1
vote
0answers
227 views

Convert video with broken codec information

I downloaded using youtube-dl from https://www.dr.dk/tv/live/dr2#!/ The saved file is .flv, but it does not play with vlc/mplayer. avconv cannot convert it: $ avconv -i hl.flv hl.mp4 avconv version 9....
1
vote
1answer
562 views

How do I convert image files to .edj format from the command-line?

I have recently installed the E17 fork, Moksha, on my Sabayon Linux machine the problem is that the graphical tools for changing the wallpaper to JPG or PNG files are causing me grief (and yes I have ...
1
vote
1answer
394 views

Print pdf like paps, but with actual fonts?

So I convert a piece of text to PDF like so: INPUT="this text goes to a pdf file" paps $INPUT 2>/dev/null | ps2pdf -sPAPERSIZE=a4 -dOptimize=true -dEmbedAllFonts=true - out.pdf Which works great, ...
1
vote
1answer
459 views

Avconv creates 0 byte outputfile after applying frame rate reduction

I installed avconv because I am too stupid to install ffmpeg, now I realized I am even more stupid. I tried to reduce the framrate from 30 fps to 24 fps following a very straigtforward tutorial: # ...
1
vote
0answers
208 views

Can htmldoc create multi-level pdf bookmarks?

I downloaded an online html book (http://www.cim.mcgill.ca/~franco/OpSys-304-427/lecture-notes/lecture-notes.html), by the following command wget -r -np -nH --cut-dirs=3 -p -k http://www.cim.mcgill....
0
votes
0answers
46 views

Converting text file encodings

I have been having a horrible time with text files that mostly have cp1252 encoding, but some don't. When I try to iterate over them in Python, I'll hit a file with some other weird encoding and the ...
0
votes
0answers
15 views

Convert source/ text files

[openvms] so i know how to use command convert source files to sym or text files. But how do i convert text or sym to source file? Is it simply “convert *.text to convert to source file? I use the ...
0
votes
1answer
631 views

Convert this particular .bash_profile to .zprofile

I have this .bash_profile: alias ip='ipconfig getifaddr en0' PS1="\[\e[0;31m\]\$ \[\e[0;32m\]\w\[\e[0m\] : " export NVM_DIR="$HOME/.nvm" [ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" [ -s ...
0
votes
0answers
52 views

How can I convert all bin-cue files to iso in a folder with bchunk respecting its filenames? (PSX mode)

I know that the command is bchunk -p foo.bin foo.cue foo, but how I could conver all bin/cue files in a folder to iso at once? Thank you.
0
votes
0answers
125 views

Why Can't BPG images be converted to BPG animation?

I can convert JPG and PNG images to BPG (Better Portable Graphics) animation, using the following command: bpgenc -a input_%03d.jpg -o out.bpg According to the BPG documentation it is not possible ...
0
votes
1answer
219 views

img2pdf batch script

I currently have over 10K folders. Each folder has .png and .jpg images that need to be turned into .pdf files. Files are numerically in order already. I am looking for speed. I can currently cd into ...
0
votes
1answer
506 views

alien conversion from deb to rpm on fedora 27

I find myself unable to convert a .deb package to .rpm to install it on fedora. I am not able to download the equivalent rpm file, so conversion is my only way out. I get this error after using the ...
0
votes
1answer
42 views

convert a md file in odt with correct name

I added this command in Dolphin menu for convert a .md (Mark Down) file to .odt (Open Document Text ) file: pandoc %U -o %F.odt and I get the right file, but with two extension: fileorig.md.odt ...
0
votes
0answers
21 views

Supply dimensions to convert -crop from a list of dims

I have several hundred images I want to crop, unfortunately they are all of different sizes. I have a file that contains the correct cropping dimensions for each image called crop_dim. I want to ...
0
votes
0answers
106 views

How do I convert AAC to FLAC and downsize s32le to s16le while keeping media tags?

I'm struggling with this and cannot figure out how to do that: I have a couple of audio files, *.m4a encoded with AAC, 32 bits per sample, which I'd like to convert to FLAC, 16 bits per sample, ...
0
votes
1answer
197 views

Automatic conversion of Inkscape <=0.91 files to the new 0.92 CSS format

Inkscape 0.92 asks the user if old files should be converted to match the new resolution. I aligned all old pictures in units of millimetre. How can I convert all old files with a script? Is there an ...
0
votes
1answer
736 views

How to convert .bin-files to .iso-files fast?

I try to convert a .bin CD image file (with no .cue-file) of less than 800 MB with iat (Iso9660 Analyzer Tool v0.1.7) to an .iso-file on FreeBSD. With an AMD FX-8370 after 30 minutes iat still has not ...
0
votes
0answers
1k views

How to convert a video file from mp4 to mp2

I have been searching a lot and I can't find a solution. How do you convert a video from MPEG-4 to MPEG-2? That shouldn't be too hard. But the avconv man pages don't give enough info to do this ...
-1
votes
1answer
130 views

Archived rootfs: convert tar to cpio for initramfs

I have a Debian rootfs as a tar file. I would like to specify it as the initramfs source in Kconfig (using PetaLinux), but the source must be a cpio archive. How can I convert the .tar to .cpio, ...