# Peter Cordes

less info
reputation
16
bio website location Halifax, Canada age 35 member for 5 years seen yesterday profile views 15
GNU/Linux hacker and command line junkie.

# 54 Actions

 2d comment Why does avconv change the fps when deinterlacing? The default x264 options for some reason aren't using 8x8dct. Does avconv target the h.264 main profile (instead of the normal high profile) for .mp4 output? Use -preset slower -crf 18 (or whatever, but 18 is usually transparent). Use -profile high if it's still not using 8x8dct=1, unless you're targeting obsolete devices which don't support it. Use a lossless codec instead (huffyuv maybe?) if you're going to edit after deinterlacing, before encoding to a final file. 2d comment Reducing video size with avconv… why does the size increase? Your output video looked like crap, too, right? avg QP51 even for I frames... 2d revised Reducing video size with avconv… why does the size increase? 90k fps came from the timebase fractions 2d comment Reducing video size with avconv… why does the size increase? It 90k fps, not 90. It tries to find an output fps that will allow it to put an output frame with a timestamp matching each input frame, so the output fps is something like the lowest common multiple of every input-frame interval. I'd also suggest using -preset slower -crf 23 or something. If you're encoding once and watching potentially multiple times, the improvement in space-vs.-quality (rate-distortion) tradeoff is worth the extra CPU time, IMO. And yeah, I'd agree that using CRF is almost always the right choice, rather than using a target bitrate (esp. without 2-pass.) 2d answered Reducing video size with avconv… why does the size increase? Dec3 comment Unexpected Bash glob completion uses first match even if ambiguous basically, there's 2 modes you can be in: programmable completion with all those shell functions loaded, or without that. Choose by sourcing /etc/profile.d/bash_completion, or not, from your ~/.bashrc or /etc/bash.bashrc. (can also disable after already loaded, with shopt -u progcomp, or complete -r.) Dec3 comment Unexpected Bash glob completion uses first match even if ambiguous oh, hmm, I hadn't noticed that bash without programmable completion had pretty nice behaviour with glob expressions. If you prefer that glob behaviour over progcom, then disable progcomp. progcomp gives you stuff like being able to tab-complete man ab[TAB] => comp on commands, or git c[TAB] => comp on git commands. And esp. sudo ifc[TAB] => complete on commands. Also stuff like find -[TAB] => complete on options. Many commands have smart handlers to sometimes save you a look at the man page. Dec2 comment Unexpected Bash glob completion uses first match even if ambiguous shopt -u progcomp disables programmable completion... I was just saying that as a way to test if the behaviour was coming from programmable completion or not. Dec2 answered How is PNG lossless given that it has a compression parameter? Dec2 comment How is PNG lossless given that it has a compression parameter? Yeah, most progams would keep around the decompressed pixmap of current images, ready to be fed to whatever graphics API might tell them part of their window needs a redraw. An image viewer program might also pre-decode the next image, so there's no delay when you flip to it. I'm not sure what web browsers do with tabs you haven't even had visible for a long time. But they do always tend to expand to fill all available RAM... Nov29 revised Unexpected Bash glob completion uses first match even if ambiguous add Ubuntu bug link Nov28 awarded Editor Nov28 revised Unexpected Bash glob completion uses first match even if ambiguous found the bug in the bash_completion functions shipped by Ubuntu Nov28 answered Unexpected Bash glob completion uses first match even if ambiguous Sep24 awarded Autobiographer Mar2 awarded Yearling Dec12 comment Undo the Linux trash command I always have rm, mv, and cp aliased to add -i. It's most useful for mv and cp, because you usually don't mean to clobber anything with them. Never get in the habit of running rm * and then answering yes/no. As others have said, some day that safety net won't be there and you'll regret it. Dec12 comment Undo the Linux trash command It's pretty hilarious to call ext2 modern. The newer filesystems use more complicated on-disk formats than ext2/3, and had to give up easy-to-find locations where you might find files to un-delete. They're designed for people who make backups of things they care about. BTW, I always use mv and cp -i, since I don't normally want to clobber anything. I normally type \rm, because I have rm aliased to rm -i, too, but I don't want to answer its question. Dec10 comment rm -rf problem on ubuntu 9.04 use smartctl to get the disk to do self-tests on itself. If it's going bad, buy a new one and copy. Minimize the amount of writes; def. don't use fsck to repair in place on a failing disk! Dec10 comment Figure out what non-symlink path would be? huh, I'd always used /bin/pwd, since it can't know how it got where it is, unlike the pwd shell builtin. Obviously equivalent to pwd -P.