this post was submitted on 25 Mar 2025
393 points (100.0% liked)

Technology

72414 readers
2710 users here now

This is a most excellent place for technology news and articles.


Our Rules


  1. Follow the lemmy.world rules.
  2. Only tech related news or articles.
  3. Be excellent to each other!
  4. Mod approved content bots can post up to 10 articles per day.
  5. Threads asking for personal tech support may be deleted.
  6. Politics threads may be removed.
  7. No memes allowed as posts, OK to post as comments.
  8. Only approved bots from the list below, this includes using AI responses and summaries. To ask if your bot can be added please contact a mod.
  9. Check for duplicates before posting, duplicates may be removed
  10. Accounts 7 days and younger will have their posts automatically removed.

Approved Bots


founded 2 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 3 points 3 months ago (9 children)

Which offline converter? I find myself often trying to convert:

  • PDF to JPEG
  • AVC to MP4
  • OPUS to MP3

etc. I have no idea how to do that but if I type it into a search engine there's usually tools there.

[–] [email protected] 13 points 3 months ago (1 children)

FFmpeg and handbrake do the latter two quite handily. The latter even has a nice program interface, rather than needing commands.

ImageMagick is capable of the first. I've had it go the other way before, and I should be most surprised if it couldn't convert a PDF to a jpg.

[–] [email protected] 5 points 3 months ago (3 children)

I don't have the knowledge or the time to learn to use these tools.

[–] [email protected] 20 points 3 months ago (1 children)

Then I suppose you're up shit creek.

[–] [email protected] 4 points 3 months ago (1 children)

Thanks for that deep analysis.

[–] [email protected] 8 points 3 months ago (14 children)

Let me tell you a little bit about all those various file converter tools, be it ffmpeg, pandoc, imagemagick, whatever.

The majority of them can be used like this: magick inputfile.bmp outputfile.jpg. If all you need is this file in that format, that's how you do it. They're ridicluously capable, you can do editing and compositing and such with them and whatever. If you have a use case where you do that a lot, like you just always put a watermark on images or you always desaturate them or whatever, you can write a script, then just run that script.

They're basically all like that. Fairly simple to use for basic format translation, shockingly capable if you want to write a script.

load more comments (14 replies)
[–] [email protected] 7 points 3 months ago (1 children)

Handbrake has a GUI, and it's relatively straightforward to use. VLC also works well. You can also use ffmpeg on the CLI like so:

ffmpeg -i input_video.mp4 output_video.avi

imagemagick isn't really that hard, in most cases it's:

convert <file1> <file2>

For example:

convert file.pdf file.jpg

If that doesn't work, try pdftoppm:

pdftoppm input.pdf outputname -png

I don't know of a good GUI for it, I recommend just learning to use either imagemagick or pdftoppm.

[–] [email protected] 2 points 3 months ago (1 children)

Handbrake has a GUI, and it's relatively straightforward to use

I downloaded it and it immediately did not work so I'm gonna have to disagree with you there, champ.

You can also use ffmpeg on the CLI like so:

I've lost far too many hours to the CLI. I don't fall for that trick anymore.

[–] [email protected] 13 points 3 months ago (1 children)

You do you, I guess. Those are incredibly simple commands I provided, and you can intuit pretty easily how to tweak them for other formats.

I guess it's up to you. You can gamble with random services online, or you can spend a few minutes and learn to use a tool that's all but guaranteed to not have malware.

[–] [email protected] 2 points 3 months ago* (last edited 3 months ago) (1 children)

or you can spend a few minutes

This is just a fucking lie and I'm tired of hearing it. What did I just say?

I've lost far too many hours to the CLI.

I've tried to learn this shit. It's a fucking rabbit hole. I type these commands, letter for letter, the terminal returns some completely useless error that provides me with no diagnostic information whatsoever, I spend hours searching and trying to understand why and come up empty-handed. I don't have time for that anymore. I already have multiple jobs. It's not how I prefer to spend my free time. And frankly, I don't believe it anymore when software engineers feed me this bullshit.

You know what those web services do? I just click a button and it does what the button says. Why is that so hard?

[–] [email protected] 11 points 3 months ago (1 children)

You know what those web services do? I just click a button and it does what the button says. Why is that so hard?

There's also a pretty big chance that they'll do more than what the button says, like inject malware. That's the whole point of the article.

[–] [email protected] 1 points 3 months ago (1 children)

I understand that but that's beside the point. It does what they advertise. It's incredibly simple and easy to use. Why can no one make something comparable that's FOSS?

[–] [email protected] 9 points 3 months ago (10 children)

They did, it's often a CLI interface because it's incredibly flexible. ffmpeg and imagemagick are quite easy for basic things.

Building a cross-platform GUI is a pain, and hosting a website costs money. Building a cross-platform CLI is incredibly easy, which is why it's so popular.

Some of these tools have GUI frontends or alternatives, some don't. The more niche you go, the harder it'll be to find a reasonable GUI, and I consider PDF to JPEG pretty niche.

load more comments (10 replies)
[–] [email protected] 3 points 3 months ago (2 children)

It is indeed very difficult to type convert 001.jpg example.pdf and ffmpeg -i rock.mp4 rock.avi

[–] [email protected] 2 points 3 months ago* (last edited 3 months ago) (1 children)

TYPE IT WHERE!? WHAT DO I DO WITH THIS INFORMATION!? How are you so completely unaware of how non-sensical this information is?

[–] [email protected] 3 points 3 months ago (1 children)

The terminal? Your post history suggests you are quite familiar with Linux. But I agree that those who are most prone to use random file conversion sites because they need something as PDF for work will be very confused by those instructions.

[–] [email protected] 2 points 3 months ago* (last edited 3 months ago) (1 children)

I am familiar with Linux but I avoid it whenever possible. I dailyed it for a couple of years but I've unfortunately moved on to Mac due to their deep dependency on terminal. If I have a problem and go and look up support, 99% of the time the advice is to open the terminal and start running commands, which is almost never the case for Windows or Mac. I've been using a Mac for about a year and I don't even know where the terminal is. Even where there's a perfectly suitable GUI solution, they'll send you into the terminal anyway. Linux is made by and for devs and it is and will remain that way until the mentality of it's creators change. And I am not a dev.

I can follow instructions. The problem is #1 I'm told "don't type commands you don't understand" and #2 no one ever explains what any of these commands do, so I never learn anything, and #3 the commands don't work, and they return a generic error with zero diagnostic information, or sometimes just nothing at all happens. I don't have time for that. I just want something that works.

[–] [email protected] 1 points 3 months ago* (last edited 3 months ago) (1 children)

I understand that you may not know the commands you are told by strangers, but many of these are tools are meant for professionals. ffmpeg, for example, is used by many industries and companies worth millions of dollars to handle production workloads. They often have documentation to tell you what they do, though

There's a manual for ffmpeg for example: https://ffmpeg.org/ffmpeg.html

Here's imgemagick's documentation: https://imagemagick.org/script/magick.php

Obviously you won't understand any of that because the command line doesn't work for you, but for those of us who do understand it and can use it, it's very informative.

I think handbrake is a gui wrapper on top of ffmpeg, but I never used it, I just memorized the ffmpeg commands and can type so much faster than i can click.

[–] [email protected] 1 points 3 months ago (2 children)

these are tools are meant for professionals...these are often not consumer-level software

Then stop recommending them to random people.

There's a manual

How many times do I need to repeat "I don't have time for this" before you people will stop pestering me with this?

load more comments (2 replies)
[–] [email protected] 1 points 3 months ago (2 children)

convert 001.jpg example.pdf and ffmpeg -i rock.mp4 rock.avi

[–] [email protected] 2 points 3 months ago* (last edited 3 months ago) (1 children)

Lol, apparently it is hard. You were supposed to enter

convert 001.jpg example.pdf

And

ffmpeg -i rock.mp4 rock.avi

By putting the "and" in the commands you just caused an error lol

[–] [email protected] 3 points 3 months ago* (last edited 3 months ago) (1 children)

By putting the "and" in the commands you just caused an error lol

I didn't put the "and" in the commands, I copied and pasted them from the comment above, but thank you for illustrating my point so very well.

[–] [email protected] 2 points 3 months ago* (last edited 3 months ago) (1 children)

I didn't put the "and" in the commands, I copied and pasted them from the comment above

Yes you did, but you copy pasted two different commands connected with "and".

The word "and" isn't meant to be typed into the cli. They're stringing together two different lines.

but thank you for illustrating my point so very well.

If your point was that it's easy to copy and paste I'm confused how I helped.

It is easy to copy and paste though. People generally format the commands like I did instead of in the middle of a sentence like OP did where you can make parsing mistakes.

[–] [email protected] 2 points 3 months ago (1 children)

My point is that if I had followed the instructions it wouldn't have worked. Which is what always happens.

[–] [email protected] 2 points 3 months ago (1 children)

Right, but I just pointed out to you why it wouldn't work and how to fix it.

So if you had followed my instructions they would have worked.

[–] [email protected] 2 points 3 months ago (1 children)

Would it? I'm not wasting anymore time to figure it out. Is there no point at which I'm allowed to give up? Am I forced to continue trying forever and ever because you want me to?

[–] [email protected] 2 points 3 months ago* (last edited 3 months ago)

Oh sorry. You're right, you're allowed to give up.

I have 100% confidence that you personally had negative experiences in the past trying to get stuff like this working. Like I fully believe you.

I've just done this before you know? I know what these tools are and how easy they are! I use ffmpeg.

Im also 100% sure that, if you had put that aside the attitude that it would be a time waste and you had just given it an honest try, me or a bunch of different people on this thread would have easily helped you get it working by now.

Maybe it'd take a couple comments back and forth, but weve already expensed that effort arguing. And I know for a fact it would've taken less effort than we've spent so far.

It's okay for you to give up, but you gotta realize how it feels for us to hear you complain, for us to know with certainty we can help you, and not feel a little frustrated when you refuse the help while continuing to complain.

Everytime you keep popping up in the thread complaining about this non existent problem it just hurts cause it's so easily solvable.

But you're right, no matter how easy this is I can't force you to try. So, cheers!

[–] [email protected] 1 points 3 months ago

okay, now what?

[–] [email protected] 7 points 3 months ago* (last edited 3 months ago) (1 children)

imagemagick handles almost all image files

images ) ls
001.jpg  002.jpg  003.jpg  004.jpg  005.jpg
images ) convert 001.jpg example.pdf

ffmpeg handles almost all video files

ex ) ls
rock.mp4
ex ) ffmpeg -i rock.mp4 rock.avi

if you use gnome there's a nice little feature of the file explorer where you can just drag and drop scripts into ~/.local/share/nautilus/scripts/

for example

make a fish script (ignoring error checking for brevity here, my real script had a couple guard rails)

/#!/usr/bin/env fish
set file $argv[1]
convert $file (basename $file .png).pdf

then when you right click on a file in your gnome file explorer you can click the scripts option

example

and the script is right there so you can just easily convert with the press of a button

example

note, i crossed out some stuff that includes client names

tldr: there are so many ways to do what you need to do there's no reason to trust random websites you don't know. there's a lot of slimey people out there wanting to take advantage of people. and everybody should strive to be at least a little computer literate. the examples i gave here aren't complicated. they're simple commands

[–] [email protected] 3 points 3 months ago* (last edited 3 months ago)

That's a pretty sweet feature in GNOME! I'll need to see if there is something similar for KDE.

[–] [email protected] 2 points 3 months ago (2 children)

PDF to JPEG

Don't most pdf viewers have an export to image option?

AVC to MP4

Do you actually have files with an .avc extension? AVC is a codec that can be used in many different container formats, including MP4. Where did these files come from?

OPUS to MP3

I actually agree that most audio conversion tools are needlessly awkward. Audacity will convert these just fine, though doesn't really do bulk conversion. Foobar2000 will do it in bulk if you're on windows.

[–] [email protected] 1 points 3 months ago

On the PDF to JPEG, you can also open the PDFs with an image editor, such as Inkscape or krita, and then save the image on the format and quality needed. This method also has the benefit that on some cases you play with the assets if needed. (Depends on how was the PDF generated)

load more comments (1 replies)
[–] [email protected] 1 points 3 months ago (1 children)

You could try Permute. It's a pretty simple app for converting video and audio. Permute is my go-to for quick video conversion.

DBPowerAmp has an easy-to-use audio converter that supports pretty much every audio format and does batch file conversion as well. DBPowerAmp is my go-to for audio conversion.

Both of these are paid apps.

load more comments (1 replies)
[–] [email protected] 1 points 3 months ago* (last edited 3 months ago)

In Windows, Foobar2000 does easy audio file conversions, once you have installed the relevant codecs.

load more comments (4 replies)