Le blog de Jean David TECHER, un Réunionnais à Saint-Priest/Lyon

Aller au contenu | Aller au menu | Aller à la recherche


< 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 >

mercredi 24 mai 2017

Noise reduction using ffmpeg and sox (for Youtube after recording desktop with FFmpeg)

To record my desktop using FFmpeg 2.2.6, I used the following command
ffmpeg  -f alsa -i pulse -vn -c:a libfdk_aac -profile:a aac_he_v2 -movflags +faststart -b:a 256k -y test.m4a -f x11grab -show_region 1 -video_size 1920x1080 \
-framerate 29.97 -i :0.0 -threads 2 -q 1 -bt 9000000 -b:v 20500000 -an -vcodec libx264 -pix_fmt yuv420p -preset ultrafast  \
-vf "drawtext=fontfile=DejaVuSans-Bold.ttf:  fontsize=18:  fontcolor=white: box=1: boxcolor=black@0.1: x=860: y=1:  text='       \
Game\: DUNGEON AND MAID | Recorded on %{localtime\:%d-%b-%Y %T C.E.T%n}               \
Youtube\: https\://www.youtube.com/user/davidtecher%{localtime\:%n}  Wine-Staging 2.8 Gallium Nine | \
GPU = Radeon R9 290X | CPU = i5-4430 | RAM = 8GB%{localtime\:%n} Xorg = 18.4 | Mesa 17.1.0 | RadeonSI | \
Gallium Nine | LLVM 4.0 | Kernel 4.4.53': " -y test.mp4
To merge audio and video streams, I used
ffmpeg -i test.m4a  -i test.mp4  -c:v copy -c:a copy -movflags +faststart -y final.mp4

Unfortunately, due to a pretty bad audio device, there are a lot of noise in the audio file. Here we will see how to reduce noise on the audio file

For more details please refer to this nice tutorial http://www.zoharbabin.com/how-to-do-noise-reduction-using-ffmpeg-and-sox/

In my case my original file is an audio file test.m4a. Using recommendations from above URL I have to do

  • Convert the original audio file to WAV format
    ffmpeg -i test.m4a  -qscale 0 tmpaud.wav 
  • Generate a sample of noise from the audio of the file. Timestamp 00h08min22s, duration = 1second. Only noise no interesting audio
    ffmpeg -i test.m4a -vn -ss 00:08:22 -t 00:00:01 noiseaud.wav
  • Generate a noise profile in sox
    sox noiseaud.wav -n noiseprof noise.prof
  • Clean the noise samples from the audio stream
    sox tmpaud.wav tmpaud-clean.wav noisered noise.prof 0.21
  • Merge the audio and video streams back together
    ffmpeg -i tmpaud-clean.wav  -i test.mp4  -qscale 0 -c:v copy -movflags +faststart -y final.mp4
  • Here is the final result

dimanche 21 mai 2017

Dungeon and Maid | Wine-Staging 2.8 | Gallium-Nine | Mesa 17.1.0

This is a erotic game, 2D Plaftorm.

  • Pretty cool game to play.
  • I really like graphics in-game.
  • Music is pretty nice.

About this game

InformationComment
Game CategoriesHentai Game, 2D Platform, / R*pe / Tentacle / Buxom Fantasy Action
Official Sitehttp://www.dlsite.com/ecchi-eng/work/=/product_id/RE162431.html
Developerhttp://grimhelm.wordpress.com/, a blog about games developed by the main developer (seems to be a dead blog?)
Publisherhttp://grimhelm.wordpress.com/
Editor

Video (Youtube)

Installation

Download

Download this file. This is an installer that I did myself using nsiswrapper

Play the game

To play the game
  • in Direct3D9
  • in fullscreen
  • Resolution = 1920x1080
and since this is a Unity game then use the following command
wine Dungeon_And_Maid.exe -force-d3d9 -screen-fullscreen 1 -screen-width 1920 -screen-height 1080 -popupwindow
Parameter Comments
-force-d3d9force Direct3D 9 -- usefull for Gallium Nine
-screen-fullscreen ??1 = FullScreen, 0 = No FullScreen
-screen-width ??Screen Width
-screen-heightScreen Height
-popupwindowRuns the game borderless window -- useful in FullScreen mode --

Tips to know

Xbox controller and Antimicro

If you own a Xbox360 controller like me than I will recommand to do a new keymapping using antimicro.

Data are saved in???

This is a Unity game using PlayPrefs by default. Data are saved in registry [HKEY_CURRENT_USER\Software\Grimhelm\Dungeon&Maid_450p]

Data are saved in registry

mercredi 17 mai 2017

Honey Select on Linux | Wine 2.8 | Gallium Nine

Last weekend I tried this game for Linux.

Notes
  • Gallium Nine is optional for this game. If you own a NVIDIA card then keep your NVIDIA driver as it is. It should work too.
  • It is not worth asking me to use PlayOnLinux (POL) to install this game. I don't use POL (old school bro!). Only winetricks is used here.

1. Video (youtube)


Honey Select on Linux | Wine 2.8 | Gallium Nine

2. Prerequisites + Installation (Tips to know)

3.0 Download game and EMF patch

While doing a few searches to download this game, listed below are the links I found to download both this game and its EMF patches

2.1 Prerequisites: Set up a new WINEPREFIX (recommended)

As usual set up a new WINEPREFIX
export WINEPREFIX=/some/path/where/to/install/the/game
Then run winecfg to fill/initiate your new WINEPREFIX
winecfg
In my case WINEPREFIX is set to /opt/Builds/wine/data/Honey_Select

2.2 Prerequisites: Winetricks and dotnet45

A few *exe bundled with these games require .NET 4.5. or greater
  • Check that your winetricks version -- if based on git cloned repository -- is up-to-date. Recommended version is 20170517 or greater. You can check your own winetricks version using
    winetricks --version
    If it is required then try to update it using command below
    winetricks --self-update
  • Install the prerequisites
    winetricks -q allfonts dotnet45

2.3 Install the game (manually) to C:\illusion\HoneySelect (Workaround: copy content of the 2 ISO files)

Decompress the file

unrar x HDDGAMES-HNSL-SL.rar
Navigate to the new folder
cd \[160909\]\ \[ILLUSION\]\ ハニーセレクト\ -Honey♥Select-\ +\ Additional\ Data\ +\ Swimsuit\ Set\ +\ Naked\ Apron\ Set\ +\ Oiran\ Set//

This game is split in 2 parts = 2 iso files. There is a setup.exe provided on the first ISO file ILN103_DISK1.iso. Don't launch the setup.exe!!!!

Let me explain why setup.exe does not work on Linux. The main reason is that setup.exe will ask sometime to insert the 2nd CD. It doest not work. setup.exe is bot able to detect the 2nd CD properly even if it is mounted through Linux. But there is a simple workaround to install the game without using the setup.exe.

As root mount the 2 iso files

sudo mount -o loop ILN103_DISK1.iso /opt/Storage/montage0
sudo mount -o loop ILN103_DISK2.iso  /opt/Storage/montage1

Notice: For commands above, you can replace the target paths above by your own target paths

Now copy the content of the 2 WinRoot/ folders located on the 2 iso.
cp -avf /opt/Storage/montage0/WinRoot/* $WINEPREFIX/drive_c/
chmod 777 -R $WINEPREFIX/drive_c/illusion/
cp -avf /opt/Storage/montage1/WinRoot/* $WINEPREFIX/drive_c/

Notice: For commands above, chmod 777 -R ... is recommended to avoid any permission issue to copy files from the 2nd iso file.

Notice: At this point game is now installed at => Unix = $WINEPREFIX/drive_c/illusion/HoneySelect/ => Windows = C:\illusion\HoneySelect. You can check it using winepath.For example in my case it will be the case

david@amdgaming:~$ winepath -w /opt/Builds/wine/data/Honey_Select/drive_c/illusion/HoneySelect/
C:\illusion\HoneySelect\

3. Install EMF patches

Just run the launcher
chmod 777 -R $WINEPREFIX/drive_c/illusion/
wine "Honey Select EMF Patch 0.4.exe" 
Specify C:\illusion\HoneySelect\ as the target destination to install these pachtes as shown below

Specify 'C:\illusion\HoneySelect\'

3. Issue:Launcher does not work. Solution: Write a launcher for Linux

3.1 Launcher does not work and parameters for games

First of all I have to say than on Internet finding help to play this game on Linux/Wine is pretty limited. Secondly I discovered that since it is a Unity game can it worked with directX 9. I took decision to give it a try for Gallium Nine.

Another problem I have is that there is a launcher for this game. Unfortunately this launcher does not work. I got a crash with Wine. Digging a little bit more I discovered that this launcher aims at

  • choosing between two games to launch: classical HoneySelect_XX.exe or HoneyStudio_XX.exe where XX=32 or XX=64.
  • choosing a few graphical parameters for the game (resolution, fullscreen/window mode)...

Those graphical parameters are passed to the game in a command line. Those parameters are listed here. Since it is a Unity game then it just means that the game can be launched without using the launcher. You can lauch the game using the arguments from a command line. For example in order to play/launch HoneySelect with the following options

  • 32 Bits
  • No fullscreen
  • Resolution = 1400x900
you just need to run
wine HoneySelect_32.exe -force-d3d9 -screen-fullscreen 0 -screen-width 1400 -screen-height 900

3.2 A Linux Launcher!

Since it is a little annoying to rewritte the same line each time, it is pretty true that a launcher can be really helpful. So I took decision to writte my own launcher -- as shown in video above --.
The linux launcher is based on gtkdialog.

You have to

  1. install gtkdialog (refer to this link to install it)
  2. download the launcher

dimanche 14 mai 2017

Unity command lines arguments

Have a look at https://docs.unity3d.com/Manual/CommandLineArguments.html