Hacker News new | ask | show | jobs
by bo1024 3000 days ago
If you run Linux, you can use `ffmpeg` and `convert` to duplicate the functionality of this site locally. For example

    $ convert input-file.jpg output-file.pdf
    $ ffmpeg -i input-file.mov output-file.mp4
2 comments

For the video, you'd probably want to do a stream copy, which will retain the original quality and save you from having to potentially wait a long time for it to encode:

  $ ffmpeg -i input-file.mov -c copy output-file.mp4
This works if the output container format supports the codecs used by the input file, which should be the case for most mov->mp4 conversions.
I've seen you mention those tools a couple times. I'm familiar with ffmpeg. Does convert also cover the MS Office file formats, as this tool purports to?
The convert tool is part of imagemagick and only works on image formats as far as I know. I personally use pandoc to do similar conversions on documents and ssconvert for spreadsheets.
That's kind of what I thought. Although I'm aware of imagemagick itself, I didn't know that convert was provided by it. Thanks for the clarification.
No. For office formats there's unoconv

https://github.com/dagwieers/unoconv

I missed the MS formats -- sorry! I don't know off the top of my head, but doubt it. libreoffice should though.