Skip to main content

Questions tagged [conversion]

Conversion between file formats.

Filter by
Sorted by
Tagged with
0 votes
1 answer
254 views

Convert swf files to mp4

I came accross this nice web. There are swf and mp3 files. I'd like to convert them to mp4 or something, so it is viewable. I tried gnash and ffmpeg without success. I'm on Lubuntu 22.04
xralf's user avatar
  • 15.2k
2 votes
1 answer
326 views

can't encode a WAV file to FLAC; returns 'ERROR: unsupported format type 3'

The error reportedly originates from files created on Windows. When attempting to convert, flac 1.4.3 prints: $ flac --best ~/music/unknown-80s-german-song.wav unknown-80s-german-song.wav: ERROR: ...
user598527's user avatar
0 votes
3 answers
755 views

How to convert CR to CRLF line endings on a file?

An ASCII text file, with CR line terminators, (Mac style) needs to be converted to have CRLF line terminators (DOS/Windows style). Search for CR not followed by LF, and replace that CR with a CRLF. So ...
Pro Backup's user avatar
  • 5,014
0 votes
2 answers
186 views

I need to create a pipe to convert string from UTF-8 to UTF-7-IMAP

To automate the command line creation of hundreds of directories in IMAP maildirs, I would need to be able to convert UTF-8 strings to UTF-7-IMAP on the fly. In php, I found a way to do it with a ...
Chris972's user avatar
0 votes
0 answers
71 views

How to convert accented characters in an email

I want to send an email with the body ($BODY) containing accented characters like é, à, ô... echo "$TO" | mail -s $SUBJECT $BODY But the result shows unreadable characters. I tried to ...
Romeo Dejent's user avatar
3 votes
2 answers
286 views

Is there a way for a nonprivileged user to read/mount a UDF filesystem in linux without using sudo

I'm renting a node on a linux server. uname -a Linux 5.15.112-gentoo #2 SMP x86_64 AMD 64-Core Processor Authentic AMD GNU/Linux By nature as a renter I can't become superuser or even use sudo. I ...
keenkillr's user avatar
2 votes
2 answers
3k views

Convert json to csv with headers in jq

Is it possible to convert this json: [ { "bytes": 276697, "checked": false }, { "bytes": 276697, "checked": false ...
Daniel Krajnik's user avatar
0 votes
0 answers
778 views

Converting a TXT file to PDF from the command line using a custom font

I want to convert a UTF-8 txt file to PDF for printing with CUPS. The problem I'm facing is that all tools I've tried have either failed to format the PDF (resulting in a fully white document with no ...
psvg200's user avatar
-2 votes
2 answers
652 views

How to convert ZFS to bcachefs on Linux Mint and Linux Mint Debian Edition LMDE?

2023-10-31, Bcachefs Merged Into The Linux 6.7 Kernel: https://www.phoronix.com/news/Bcachefs-Merged-Linux-6.7 https://web.archive.org/web/20231103095158/https://www.phoronix.com/news/Bcachefs-Merged-...
Alfred.37's user avatar
  • 138
0 votes
0 answers
57 views

Converting Windows line breaks in scripts without using dos2unix [duplicate]

I have shell scripts that could or could not contain Windows line breaks. I want to convert all existing Windows line breaks to Unix-style, and not destroy the file in the process. I used dos2unix on ...
Jules's user avatar
  • 1
-2 votes
2 answers
3k views

How to convert BTRFS to bcachefs on Linux Mint and Linux Mint Debian Edition LMDE?

2023-10-31, Bcachefs Merged Into The Linux 6.7 Kernel: https://www.phoronix.com/news/Bcachefs-Merged-Linux-6.7 https://web.archive.org/web/20231103095158/https://www.phoronix.com/news/Bcachefs-Merged-...
Alfred.37's user avatar
  • 138
0 votes
1 answer
2k views

Converting data in text file to csv tables

My data in a text file have the below format today HKL1234/2, R1B HKL1274/2, R4E HREF457-74, R1A I need to present this data in excel file in two different columns like below: Product ...
Dalea Kaldeby's user avatar
1 vote
1 answer
256 views

Convert tar to 7z directly?

I have a couple tarballs that are many gigabytes large and contain several thousand files and am wondering if it is possible to convert these to more versatile 7z archives, because the current ...
Cobra_Fast's user avatar
1 vote
0 answers
134 views

Compress Zip to 7zip

I would like a shell (or other terminal based) script to convert zip files to 7z format. Some zip files contain folders with more zip files in them. This needs to work recursively since there are zip ...
Just saying's user avatar
1 vote
2 answers
130 views

How to re-convert the text file produced by pdftotext to pdf again?

Poppler has the excellent tool pdftotext for converting a pdf file to a text file: pdftotext input.pdf output.txt Is there a way to re-convert this text file to pdf? By conversion, I mean to obtain a ...
Name's user avatar
  • 183
0 votes
1 answer
105 views

Create MP4 or another playable video format from frame series of JPEG in a directory

So I have frame series of JPEG in a folder let's say folder cctv where inside of that folder is only series of JPEG with unix timestamp named in nanosecond. I mean like this ( I used tail because too ...
Muhammad Ikhwan Perwira's user avatar
7 votes
2 answers
2k views

Converting multiple .xls format files to .xlsx format

I am new to Linux. I know that there are ways to convert between file formats in Linux through the terminal. But is there any way I achieve the following? I have 3 folders, inside those folders, there ...
Marble's user avatar
  • 173
1 vote
1 answer
837 views

A2 on four A4 pages? | Convert A4 PDF to "A2 on four A4" PDF?

Given e.g. pdf (in any size) how to enlarge it to A2 size and print on four A4 pages? (if possible it would be great if pdf having multiple pages we could split like this, so if there is pdf with ...
Grzegorz Wierzowiecki's user avatar
1 vote
1 answer
832 views

Convert string time to seconds

I'm receiving an uptime in this format: 167h58m10.586582048s I want to transform it to seconds and discard the fraction part. I know awk could do that if only the received string had the same ...
markfree's user avatar
  • 365
3 votes
1 answer
2k views

How to convert output of a terminal app to an image?

Suppose the CLI application my_bin produces an output in terminal which consists of colored text, Unicode symbols and emojis. How can I convert the output to a svg or an image on Ubuntu? For example, ...
Zeta.Investigator's user avatar
2 votes
1 answer
258 views

Merge a png on top of a gif with shell

I am trying to merge a png with a gif (put the png on top of the gif) and then have the result as a gif. I played around with convert, but cannot quite get it to work the way I need it. I have tried ...
milehigh 's user avatar
4 votes
3 answers
2k views

Point out my mistake while converting TIFF to PNG/JPG

This is a input tiff image, which I want to convert to JPG/PNG. googledrive-link-to-download-sample As general rule of thumb, I always use following command to convert between 2 image formats (mainly ...
Garid Z.'s user avatar
  • 552
1 vote
2 answers
672 views

How to run PDF to TIFF conversion in parallel?

I have this command here for batch converting PDF documents (first 2 pages) to TIFF files using pdftoppm. The goal is to put the TIFF images into its own folder with folder name matching the original ...
an0nhi11's user avatar
3 votes
1 answer
882 views

ASCII to ANSI convertion does not work

Trying to convert an ASCII file to ANSI on Linux: $ file -bi relocate.xml text/xml; charset=us-ascii $ iconv -f us-ascii -t ms-ansi < relocate.xml | file -bi - text/xml; charset=us-ascii $ cat ...
SebMa's user avatar
  • 2,209
0 votes
2 answers
253 views

check width of image before convert it

I use the following script to convert all jpg and png images: # absolute path to image folder FOLDER="/home/*/public_html/" # max width WIDTH=1280 # max height HEIGHT=720 #resize png or ...
Mikel Tawfik's user avatar
1 vote
2 answers
186 views

Substract date in custom format

I need to substract some date from current date to determine the age of some connections. The date is in this format: YYMMDDHHMISS. The output can be pretty much anything that I can use to determine ...
pormulsys's user avatar
  • 145
0 votes
2 answers
419 views

Is there any linux utility to create plain binary dump of file and vice versa?

I want to know is there any linux utility or procedure for generating plain binary dump and reversing it back to the original file (as xxd is capable of doing it with -r argument)? I have tried xxd, ...
Akash's user avatar
  • 11
2 votes
3 answers
4k views

Is there a script or tool that converts HTML to PDF?

I want to convert an HTML page to PDF file. I tried online converting tools but they are slow and I can't trust them. Is there any script or tool works on the command line that convert web pages to ...
elakhdar_ayoub's user avatar
1 vote
2 answers
5k views

How to convert xlsx file to csv using shell script? [closed]

I have tried with libreoffice, ssconvert, xlsx2csv to convert the file but I am getting "command not found". Could you please help on that? xlsx2csv ssconvert file.xlsx file.csv libreoffice -...
Elsa's user avatar
  • 11
0 votes
1 answer
257 views

libreoffice headless interprets source image as text

I am trying to use libreoffice to convert different source formats to pdf. This works with most formats but image formats are always interpreted as text: libreoffice --headless --convert-to pdf:...
Hyndrix's user avatar
  • 155
1 vote
1 answer
923 views

Remarkable tablet: Convert text file into notebook page

I am using the Remarkable 2 tablet with its note-taking functionality. I can scribble new notebook pages or annotate pdf-documents with the tools on it. I would, however, like to import existing text ...
conpertura's user avatar
1 vote
0 answers
192 views

How to play .dvs (DTI's DVSSDiscPlayer format) on Linux systems?

.dvs is the exotic extension of a file / a database of files / a database of streams (cross out wrong). This type of file is used in the CCTV to let the operator watch the recording from, let's say, ...
Christianus's user avatar
2 votes
1 answer
2k views

Set PDF tags while converting images to PDF with ImageMagick

I'm converting images to a single PDF-file using convert utility: $ convert "document-*.tiff" -compress jpeg -quality 60 "output.pdf" Resulting document has the following tags set ...
anlar's user avatar
  • 4,195
-1 votes
2 answers
79 views

How to translate a non sugary syntactic shell (Bash) command into "lower" types of code such as assembly or even machine code?

Please consider: cd ~ cd $HOME I would say that the first command is a possible sugar syntax of the second command, and that the second is less abstract. Just for the sake of demonstrating how ...
timesharer's user avatar
4 votes
1 answer
7k views

How to extract every 10th frame from a video?

I have a video and I want to extract every 10th frame as I am getting way too many images. ffmpeg -i out1.avi -r 1 -f image2 image-%3d.jpeg How to extract images from video file?
Julien Tremblay McLellan's user avatar
2 votes
1 answer
2k views

How to replace Unicode code numbers by UTF-8 characters in a number of files?

I have 500 files that contain escaped Unicode characters like so: Albert Vel\u00e1zquez V\u00e9ronique Ekin etc. The data was queried from a server by a script through XMLHttpRequests and I assume ...
Ned64's user avatar
  • 8,934
0 votes
2 answers
216 views

Is there a way to strip the high bit of each byte in a file?

I've been trying to figure out if this can be done in sed or tr, but I can't find it. I have a bunch of files from an old Apple II which have the high bit set on each byte. On a Mac, this results in a ...
bjb's user avatar
  • 113
1 vote
1 answer
1k views

efficient way to compose all frames in a video to a single image

I've got a 720p video file that is about 20 minutes long. I want to compose each frame in the video using a single operator (e.g. lighten, darken, etc.) to produce a single image output. My thought ...
Michael's user avatar
  • 544
0 votes
0 answers
319 views

Conky script not running after being converted

I am attempting to convert an older conky widget to the new syntax of 1.10+, but I can't for the life of me figure out why it won't run. I've ran through everything to make sure it was converted ...
FireballFoxtrot's user avatar
9 votes
3 answers
4k views

How to convert escape sequences to text while preserving display format?

I have a text file that contains (ANSI ?) escape sequences: When I cat the file I get formatted output: How do I save / pipe the output of the text file to a new file so that the control codes are ...
mvanle's user avatar
  • 365
2 votes
3 answers
11k views

Debian: is there a shortcut for switching from Ubuntu to Debian?

I have been running Ubuntu 20 and I want to switch to Debian 10. I know how to back up my important software, install Debian 10 from a proper ISO image, and then restore my backed-up software onto the ...
HippoMan's user avatar
  • 657
0 votes
1 answer
1k views

Convert text file data to table [closed]

I have a text file with 2 columns which I would like to convert to a table. The below image is just what it looks like in the file, not a table. Formatting is putting all my text in one line when ...
Kobus Strydom's user avatar
2 votes
2 answers
6k views

Convert/replace time from epoch milliseconds to human readable date in logfiles

I have a log file with the following structure Example: 1522693524403 entity1,sometext 1522693541466 entity2,sometext 1522693547273 entity1,sometext ... Now I would like to replace the time from ...
fastboot's user avatar
1 vote
1 answer
2k views

ImageMagick generated PDF renders as blank pages in Chrome

I have drawn a png file using Krita: I then converted this file to a pdf file using convert: convert test.png test.pdf When I open this file in my PDF viewer (Evince), I see the image above, just as ...
Scriptim's user avatar
  • 215
1 vote
2 answers
471 views

Batch convert images with xargs & convert, how to name output file?

It's known that images can be converted to one single pdf with the following command (assuming images filenames are order correctly): convert *.jpg output.pdf. However, this approach may take too much ...
Firmin Martin's user avatar
3 votes
0 answers
53 views

File conversion canary

Is there a way to tell if a flat ASCII log file, eg. the output of a command, was converted to an office document (typically: Word, Excel, Notepad) and back to a flat text file? I know at least one of ...
jippie's user avatar
  • 14.2k
0 votes
1 answer
2k views

Convert folder to .bin-File

I just downloaded a bin file for my new application. The problem is that I had to change some config files, and for that I used 7-zip to unpack the files. I changed the files the way I want to have ...
user431918's user avatar
3 votes
5 answers
2k views

How to properly decode utf7 file names obtained from an IMAP server

I have a few directories that I downloaded from an IMAP server. Example: $ find . -maxdepth 1 . ./&BCEEPwQwBDw- ./&BCMENAQwBDsENQQ9BD0ESwQ1- ./inbox ./&BCcENQRABD0EPgQyBDgEOgQ4- ./&...
Vladimir Nikishkin's user avatar
0 votes
1 answer
394 views

PDF conversion: 4 pages/sheet to 1 page/sheet

I am struggling to revert / undo a 4 pages per sheet PDF to a 1 sheet per page document. The reason why I am trying to undo it is because I can barely read the printed document. The original file has ...
Sebastien's user avatar
0 votes
1 answer
652 views

How to run single command on multiple files to convert file format?

I am trying to convert file format from fa to fq using seqkit on Linux terminal. Command is simple as shown below. seqkit fq2fa Std_metabat2_bin.9_sub.fa -o Std_metabat2_bin.9_sub.fq -j 20 But, I ...
JYLee's user avatar
  • 1

1
2 3 4 5
7