Wednesday, September 21, 2016

ffmpeg transcode bash example

#!/bin/sh
# [-map 0:... -map 0:...]
FFMPEG="${HOME}/ffmpeg-3.0.2/ffmpeg"
INPUT_FN="$1"
OUTPUT_FN="$2"
shift 2
time "$FFMPEG" -strict -2 -i "$INPUT_FN" "$@" -c:v nvenc_h264 -preset slow -b:v 2000k -ac 2 -c:a libmp3lame -b:a 128k -c:s  copy "$OUTPUT_FN"

Thursday, September 8, 2016

transcoding using nvenc ffmpeg

./ffmpeg -i /mnt/file.avi -c:v nvenc_h264 -preset slow -b:v 2000k -c:a libmp3lame testnvenc.mp4
ffmpeg version 3.0.2 Copyright (c) 2000-2016 the FFmpeg developers
  built with gcc 5.3.1 (Ubuntu 5.3.1-14ubuntu2.1) 20160413
  configuration: --enable-opencl --enable-opengl --enable-nvenc --enable-nonfree --prefix=/home/y/ --extra-cflags='-I /home/y/nvidia_video_sdk_6.0.1/Samples/common/inc' --enable-libmp3lame

Sunday, April 3, 2016

A2DP under Linux

Install pulseaudio-bluetooth.
Pair device via GUI.
run hciconfig up
Connect device via GUI as Audio sink.
Use Pulse Audio Control GUI.

Saturday, January 23, 2016

Archlinux on HP 6510b

Install packages: rfkill, hdparm

rfkill to enable wifi

Custom systemd unit for hdparm via systemd After=sleep.target:

/etc/systemd/system/myhdparm.service
[Unit]
Description=set hdparm for sda
After=default.target sleep.target

[Service]
type=oneshot
ExecStart=/etc/systemd/system/sethdparm.sh

[Install]
WantedBy=default.target sleep.target


/etc/systemd/system/sethdparm.sh
#!/bin/bash
sleep 2
hdparm -B 253 /dev/sda