Tag Info

New answers tagged

0

you can do something like: parallel --jobs <int> "bamToBed -i {} > {.}.bed" ::: *.bam


1

I am not sure to understand that command. Why do you put -- before the %F? Try this: xfce4-terminal -e "parallel avconv -i '{}' -map 0:1 -c:a copy '{}.m4a' ::: %F" Explanation: As I understand the %F is what Thunar replaces by the files, and parallel uses ::: for the input. One example in the manpage is, precisely parallel gzip {} ::: file1 file2 ...


0

Just an addition since I had issues with the python script (and several other solutions): for me mutool worked great. It's a simple and small addition shipped with the elegant mupdf reader. So you can try: mutool poster -y 2 input.pdf output.pdf For horizontal splits, replace y with x. And you can, of course, combine the two for more complex solutions. ...


0

I suggest using FFmpeg to convert from FLAC to AAC. FFmpeg is easily installed on a Mac OS X machine with brew: brew install ffmpeg Then run the following command to convert all FLAC files in the current directory to AAC: for i in *flac;do of="${i/.flac/.m4a}"; ffmpeg -i "${i}" -vn -acodec libvo_aacenc -b:a 320k -f mp4 -y "${of}";done And to convert ...


0

You can also try GraphicsMagick, which is a well maintained fork of ImageMagick used at e.g. Flickr and Etsy: $ gm identify a.jpg a.jpg JPEG 480x309+0+0 DirectClass 8-bit 25.2K 0.000u 0:01 It is faster than ImageMagick's identify (in my tests about twice).


2

Following this answer on Stack Overflow, I tinkered around and found out that the correct parameter depends on the combination of input and output format/codec. These combinations work as intended: OGG → MP3: -map_metadata 0:s:0 FLAC → MP3: -map_metadata 0:g:0 FLAC → OGG: -map_metadata -0 Using -codec libvorbis.


0

Use identify to see the sizes : $ identify color.jpg > color.jpg JPEG 1980x650 1980x650+0+0 8-bit DirectClass 231KB 0.000u 0:00.000 Extract value via cut | sed, from field 3: identify ./color.jpg | cut -f 3 -d " " | sed s/x.*// #width identify ./color.jpg | cut -f 3 -d " " | sed s/.*x// #height Asign to variable: W=`identify ./color.jpg | cut -f 3 ...


1

It's quite easy to convert PSF (console) font to C include rather PCF (X11). I think it will do the trick for you if you're looking for monospace bitmap font for simple embedded applications. All you need is psf2inc from psftools package: $ psf2inc --psf1 font.psf font.inc Now font.inc holding all 256 ASCII characters: 0x36, 0x04, /* Magic */ 0x02, ...


1

You want a spectrogram program like spek. http://spek.cc/ If it is mp3 to flac you will see a cutoff around 16-18kHz where the spectrogram gets blocky.



Top 50 recent answers are included