rm ffmpeg2*log*
date
echo starting blender
blender -b edr.blend -F FRAMESERVER -s 1 -e 300 --render-anim &
sleep 2
date
echo starting ffmpeg pass1
source "frameserver_pass1.sh"
sync
date
echo starting blender2
blender -b edr.blend -F FRAMESERVER -s 1 -e 300 --render-anim &
sleep 2
date
echo starting ffmpeg pass2
source "frameserver_pass2.sh"
sync
date
echo finished, going to sleep...
# systemctl suspend
-=-=-=-=-
BLENDER=http://localhost:8080
OUTPUT='-f null /dev/null'
CODEC_OPTS="-pix_fmt yuv420p -profile:v high -level 4.0 -vcodec libx264 -preset slow -b:v 12500k "
# -preset slow -profile:v high -level 4.0"
eval `wget ${BLENDER}/info.txt -O - 2>/dev/null |
while read key val ; do
echo R_$key=$val
done`
i=$R_start
{
while [ $i -le $R_end ] ; do
wget ${BLENDER}/images/ppm/$i.ppm -O - 2>/dev/null
i=$(($i+1))
done
} | ffmpeg -vcodec ppm -f image2pipe -r $R_rate -i pipe:0 $CODEC_OPTS -pass 1 -threads 6 $OUTPUT
wget ${BLENDER}/close.txt -O - 2>/dev/null >/dev/null
Saturday, December 12, 2015
Wednesday, September 9, 2015
Sunday, September 6, 2015
Overclocking FX-6300
M5A97 EVO R2.0 MB + Kingston 1.65v 1600mhz 2x4G + AMD FX-6300
Overclocked to 4500MHz
Ai Tweaker Settings:
Ai Overclock Tuner D.O.C.P.
DRAM O.C. Profile Profile #0
CPU ratio 22.5
Turbo core DISABLED
CPU Bus Freq. 200 (default)
PCIE Freq. 100 (default)
Memory Freq DDR3-1600 (default)
CPU/NB Freq: 2600MHz
HT Link Speed: 2400MHz
CPU Spread Spectrum: auto
PCIe Spread Spectrum: auto
EPU: Disabled
CPU Offset Voltage: 1.320V +0.075000
DRAM Voltage: 1.65
-=-=-=-=-=
After running stability tests to keep it in 60C reduced overclocking to:
CPU Ratio = 19.5
CPU Offset Voltage: 1.248V +0.012500
And finally 4200MHz, 21.0 ratio, CPU/NB Auto (2000), HT Auto (2000), +0.012500V (1.248V)
Overclocked to 4500MHz
Ai Tweaker Settings:
Ai Overclock Tuner D.O.C.P.
DRAM O.C. Profile Profile #0
CPU ratio 22.5
Turbo core DISABLED
CPU Bus Freq. 200 (default)
PCIE Freq. 100 (default)
Memory Freq DDR3-1600 (default)
CPU/NB Freq: 2600MHz
HT Link Speed: 2400MHz
CPU Spread Spectrum: auto
PCIe Spread Spectrum: auto
EPU: Disabled
CPU Offset Voltage: 1.320V +0.075000
DRAM Voltage: 1.65
-=-=-=-=-=
After running stability tests to keep it in 60C reduced overclocking to:
CPU Ratio = 19.5
CPU Offset Voltage: 1.248V +0.012500
And finally 4200MHz, 21.0 ratio, CPU/NB Auto (2000), HT Auto (2000), +0.012500V (1.248V)
Wednesday, July 15, 2015
Friday, June 12, 2015
hdparm fix for ubuntu 15.04
https://www.linux.org.ru/forum/general/8726915
> cat /etc/systemd/system/fix-hdparm@.service
[Unit]
Description=Fix some hdparm settings after suspend/restore
After=dev-%i.device suspend.target hibernate.target sysinit.target hybrid-sleep.target
Requires=dev-%i.device
[Service]
Type=oneshot
ExecStart=/sbin/hdparm -B 254 /dev/%i
[Install]
WantedBy=suspend.target
WantedBy=hibernate.target
WantedBy=hybrid-sleep.target
WantedBy=sysinit.target
# systemctl enable fix-hdparm@sda
ln -s '/etc/systemd/system/fix-hdparm@.service' '/etc/systemd/system/suspend.target.wants/fix-hdparm@sda.service'
ln -s '/etc/systemd/system/fix-hdparm@.service' '/etc/systemd/system/hibernate.target.wants/fix-hdparm@sda.service'
ln -s '/etc/systemd/system/fix-hdparm@.service' '/etc/systemd/system/hybrid-sleep.target.wants/fix-hdparm@sda.service'
ln -s '/etc/systemd/system/fix-hdparm@.service' '/etc/systemd/system/sysinit.target.wants/fix-hdparm@sda.service'
vasily_pupkin ★★★★★ ()
Sunday, March 8, 2015
avconv to extract audio stream
avconv -i somevide.mkv -vn -codec:a: copy
https://www.libav.org/avconv.html#Stream-copy
avconv -i INPUT -c:a copy -map 0:m:language:eng OUTPUT
https://www.libav.org/avconv.html#Stream-copy
Linux on GA-E2100N (AMD E1-2100 APU)
Linux experience on GA-E2100N
(rev. 1.0) with AMD E1-2100 SoC.
Xubuntu 14.10.
Hardware:
Gigabyte GA-E2100N (rev. 1.0) board
CHIEFTEC IX-01B-90W mini-ITX case with 90W power supply.
GeIL PC10600 4GB CL9-9-9 D3-1333 (GN34GB1333C9S)
Kingston V300 120GB
HDMI cable
HD-ready TV (1360x768)
Logitech K400r wireless keyboard with touchpad
TP-Link TL-WN722N USB wifi adapter
BIOS options to note:
Fast Boot: Disabled (when left Fast and Ultra fast the board does not respond on reboot and required BIOS CMOS clear jumper to be set to restore normal operation)
Secure boot: disabled
Enabled EFI only in all options (disabled all legacy stuff).
On-board COM, LPT, LAN, Audio codec: disabled.
OS, minimal settings:
Xubuntu 14.10, installation USB stick in EFI mode.
Launched live, started
GParted and created EFI boot partition (200MiB), system (25GiB), swap (512MiB) and storage partitions, left ~8GiB unallocated for SSD overprovisioning.
Launched installation, selected all partitions as created by GParted ("something else" menu option).
After reboot disabled Light-locker, Compositor, installed Synaptic, made sure mesa-vdpau drivers installed, installed mpv for video playback, modified /etc/fstab to contain "discard,relatime" options for root and storage partitions to optimize for SSD.
"~/.mpv/config" contains:
hwdec=vdpau
This line makes mpv use 5-10% CPU for 720p x264 videos, 60-100% otherwise.
Edited line in the "/etc/pulse/default.pa" to contain:
load-module module-udev-detect tsched=0
(added "tsched=0" argument to fix sound over HDMI issue (crackles, stutter).
Kodi (XBMC)
Enabled VDPAU acceleration only. Still uses too much CPU (~30-50% per core), without VDPAU uses 100%.
Problems
Heavy CPU usage in Kodi/XBMC.
Proprietary Catalyst drivers give poor performance for video playback, better stay with default Gallium3D.
No hardware acceleration for youtube, HTML5 videos, flash, although firefox is quite responsive.
Success
Low CPU usage with VDPAU in "mpv", very fast seeking times in any video file, no problems in playback.
Sauerbraten/cube is fast to start and very responsive, playable at 30 FPS with all effects at 1360x768 fullscreen.
Summary:
Max 71 C Core temparature at constant CPU load, 65 C at idle (neither fans in the case, nor CPU fan used, absolutely silent passive-cooled system), BIOS shows 55C CPU and 40C motherboard temperature values, touched the heatsink, and can confirm -- it is just warm, not burning.
Quite responsive system with good multithreading (2 cores), although takes a lot of time to compile C/C++ code.
All the hardware automatically detected and worked out of the box, small tweaks required. Perfect hardware for a Linux installation.
Sunday, February 1, 2015
Saturday, January 31, 2015
Fix font color in GTK themes
Copy /usr/share/themes/Greybird (or some other theme) into ~/.themes/MyGreybird
Edit MyGreybird/gtk-2.0/gtkrc
make sure fg_color:#000000 and like if you want text to be black rather than grey.
Edit MyGreybird/gtk-2.0/gtkrc
make sure fg_color:#000000 and like if you want text to be black rather than grey.
Saturday, January 17, 2015
Lenovo A806 GApps installation
http://forum.xda-developers.com/showthread.php?t=2397942
Mini modular package. "pa_gapps-modular-mini-4.4.4-20150117-signed.zip"
Mini modular package. "pa_gapps-modular-mini-4.4.4-20150117-signed.zip"
Lenovo A806 New rom install (via TWRP)
Copy "VIBEUI_V2.0_1501_7.80.1_DEV_A806_NK_W_07B8.zip" file to Internal storage.
Reboot to recovery, wipe cache, dalvik, system, data.
Reboot again into recovery.
Unmount /cache.
Install ZIP.
Mount /system.
Rename /system/reovery-from-boot.p into something else does not work, had to reflash recovery. Finally deleted this file.
Reboot System, Install SuperSU? -> YES.
Reboot to recovery, wipe cache, dalvik, system, data.
Reboot again into recovery.
Unmount /cache.
Install ZIP.
Mount /system.
Rename /system/reovery-from-boot.p into something else does not work, had to reflash recovery. Finally deleted this file.
Reboot System, Install SuperSU? -> YES.
Lenovo A806 Recovery install
With SP Flash Tool: switch ON the option "DA DL All with Checksum".
Mark "recovery", select recovery.img from TWRP_Recovery.
The phone must be powered off, no battery. Click "Download", insert the phone cable.
All sound buttons + power to switch on the phone (cable ejected).
Mark "recovery", select recovery.img from TWRP_Recovery.
The phone must be powered off, no battery. Click "Download", insert the phone cable.
All sound buttons + power to switch on the phone (cable ejected).
Lenovo A806 ROM flash readback
The phone arrived from China with a buggy altered firmware:
Hardware : MT6592
Model : Lenovo A806
Build number : VIBEUI_V2.0_9432_ST_A806
Build date UTC : 20140807-112632
Android v : 4.4.2
Baseband v: A806.V30, 2014/07/31 14:53
Kernel v : 3.4.67 (buildslave@xmws58) (gcc version 4.7 (GCC) ) #1 SMP Thu Aug 7 19:24:27 CST 2014
To backup the original firmware you need:
1) Preloader driver for MTK
2) MTK droid tools
3) SP flash tool
Backup process:
1) Get scatter file with MTK droid tool and phone switched on, debugging enabled
2) Eject the cable, power off the phone, eject the battery
3) Open SP flash tool, select the scatter file, go to the "Readback" tab, add new, put the number from the "Cache" partition start into the "Size" field.
4) Press "start readback", insert the battery, attach the cable.
I got a 1.4GB ROM file in 32 minutes.
http://www.theandroidhow.com/2014/05/how-to-backup-rom-dump-mtk-android.html
http://forum.xda-developers.com/showpost.php?p=44509214&postcount=407
Hardware : MT6592
Model : Lenovo A806
Build number : VIBEUI_V2.0_9432_ST_A806
Build date UTC : 20140807-112632
Android v : 4.4.2
Baseband v: A806.V30, 2014/07/31 14:53
Kernel v : 3.4.67 (buildslave@xmws58) (gcc version 4.7 (GCC) ) #1 SMP Thu Aug 7 19:24:27 CST 2014
To backup the original firmware you need:
1) Preloader driver for MTK
2) MTK droid tools
3) SP flash tool
Backup process:
1) Get scatter file with MTK droid tool and phone switched on, debugging enabled
2) Eject the cable, power off the phone, eject the battery
3) Open SP flash tool, select the scatter file, go to the "Readback" tab, add new, put the number from the "Cache" partition start into the "Size" field.
4) Press "start readback", insert the battery, attach the cable.
I got a 1.4GB ROM file in 32 minutes.
http://www.theandroidhow.com/2014/05/how-to-backup-rom-dump-mtk-android.html
http://forum.xda-developers.com/showpost.php?p=44509214&postcount=407
Subscribe to:
Posts (Atom)