This commit is contained in:
iperov 2022-06-22 14:07:44 +04:00
commit a0b682011c
43 changed files with 65 additions and 19 deletions

BIN
doc/windows/DroidCam_0.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

BIN
doc/windows/DroidCam_1.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 28 KiB

BIN
doc/windows/DroidCam_2.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.1 KiB

BIN
doc/windows/DroidCam_3.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 56 KiB

BIN
doc/windows/DroidCam_4.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 67 KiB

BIN
doc/windows/DroidCam_5.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 83 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 13 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 48 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 21 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 76 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 29 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 25 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 35 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 22 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 17 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 396 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 137 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 19 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

BIN
doc/windows/final_frame.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 40 KiB

View file

@ -0,0 +1,89 @@
<table align="center" border="0">
<tr><td colspan=2 align="center">
# Setup for streaming
DeepFaceLive only provides a video window of the replaced face. Since the face must be processed, this takes time, so the video window shows the stream with some delay.
So, what do we need for streaming?
Capture window (or receive mpegts udp stream) and sound with some delay, transmit to streaming service (e.g. twitch, youtube, ...)
Below, one of the solutions.
### Run **_OBS Studio_**
<img src="run_obs_studio.jpg"></img>
</td></tr>
<tr><td colspan=2 align="center">
### add **_Window capture_**
<img src="add_window_capture.jpg"></img>
</td></tr>
<tr><td colspan=2 align="center">
### choose **_DeepFaceLive output_** window
<img src="choose_dflive_output_window.jpg"></img>
</td></tr>
<tr><td colspan=2 align="center">
### add **_Audio Input Capture_**
<img src="add_audio_input_capture.jpg"></mg>
</td></tr>
<tr><td colspan=2 align="center">
### select your microphone device
<img src="select_microphone_device.jpg"></img>
</td></tr>
<tr><td colspan=2 align="center">
### open **_Advanced Audio Properties_** for **_Audio Input Capture_**
<img src="advanced_audio_properties.jpg"></img>
</td></tr>
<tr><td colspan=2 align="center">
### set **_Sync Offset_** the same as **_Target Delay_** in **_Stream Output_**
<img src="sync_offset.jpg"></img>
</td></tr>
<tr><td colspan=2 align="center">
### **DONE** !
### Now you can stream yourself to a stream service.
</td></tr>
<tr><td colspan=2 align="center">
### instead of **Window capture**
you can use **Media Source**
<img src="media_source.png"></img>
with configuration:
<img src="media_source_config.png"></img>
enable mpegts in **_Stream Output_**
<img src="media_source_stream_output.png"></img>
</td></tr>
</table>

View file

@ -0,0 +1,109 @@
<table align="center" border="0">
<tr><td colspan=2 align="center">
# Setup for video calls
DeepFaceLive only provides a video window of the replaced face. Since the face must be processed, this takes time, so the video window shows the stream with some delay.
So, what do we need for video calls?
1) capture the window and translate it into a virtual camera, which can be selected in video call programs.
2) capture the sound and transfer it to the virtual microphone with some delay, which you can also select in the video calling programs.
Below, one of the solutions.
</td></tr>
<tr><td colspan=2 align="center">
### Download <a href="https://github.com/iperov/DeepFaceLive/releases/download/VBCABLE/VBCABLE_Driver_Pack43.zip"> **_VBCable driver_** </a>
</td></tr>
<tr><td colspan=2 align="center">
### run setup for x64 and install
<img src="VBCable_setup_x64.jpg"></img>
<img src="VBCable_install_button.jpg"></img>
</td></tr>
<tr><td colspan=2 align="center">
### download and run <a href="https://github.com/iperov/DeepFaceLive/releases/download/AUDIOREPEATER/audiorepeater.exe"> audiorepeater.exe </a>
</td></tr>
<tr><td colspan=2 align="center">
Set **_wave in_** your microphone device.
Set **_wave out_** CABLE input (VB-Audio).
<img src="audiorepeater_select_devices.jpg"></img>
</td></tr>
<tr><td colspan=2 align="center">
### set **_Total buffer(ms)_** the same as **_Target Delay_** in **_Stream Output_**
<img src="audiorepeater_buffer_ms.jpg"></img>
</td></tr>
<tr><td colspan=2 align="center">
now start the repeater
<img src="audiorepeater_start.jpg"></img>
</td></tr>
<tr><td colspan=2 align="center">
### Run **_OBS Studio_**
<img src="run_obs_studio.jpg"></img>
</td></tr>
<tr><td colspan=2 align="center">
### add **_Window capture_**
<img src="add_window_capture.jpg"></img>
</td></tr>
<tr><td colspan=2 align="center">
### choose **_DeepFaceLive output_** window
<img src="choose_dflive_output_window.jpg"></img>
</td></tr>
<tr><td colspan=2 align="center">
### start Virtual Camera
<img src="OBS_start_virtual_camera.jpg"></img>
</td></tr>
<tr><td colspan=2 align="center">
in your video call software set **CABLE Output** as microphone, and **OBS Virtual Camera** as Camera.
example in **Discord**:
<img src="discord_voice_settings_input_device.jpg"></img>
<img src="discord_video_settings_virtual_camera.jpg"></img>
</td></tr>
<tr><td colspan=2 align="center">
### DONE !
### Now you can make video calls with a replaced face and synchronized sound in most programs.
</td></tr>
</table>

View file

@ -0,0 +1,108 @@
<table align="center" border="0">
<tr><td colspan=2 align="center">
## Windows 10 quick setup tutorial
</td></tr>
<tr><td colspan=2 align="center">
### Install latest Graphics Drivers for your videocard.
<img src="video_card_icon.png"></img>
</td></tr>
<tr><td colspan=2 align="center">
### Set total virtual memory to 32Gb or more.
<img src="virtual_memory.jpg"></img>
</td></tr>
<tr><td colspan=2 align="center">
### Download Windows build exe from one of the sources.
<img src="download_build.jpg"></img>
</td></tr>
<tr><td colspan=2 align="center">
### Run and unpack to root of any disk.
<img src="run_and_unpack.jpg"></img>
</td></tr>
<tr><td colspan=2 align="center">
### Run the program **_DeepFaceLive.bat_** file
<img src="run_dfl_bat.jpg"></img>
</td></tr>
<tr><td colspan=2 align="center">
### Select **_Video file_** from samples in **_File source_**
<img src="select_video_file.jpg"></img>
</td></tr>
<tr><td colspan=2 align="center">
### or select **_Device index_** and **_Driver_** in **_Camera source_**
<img src="select_camera_source.jpg"></img>
</td></tr>
<tr><td colspan=2 align="center">
### Choose **_Face detector_** and **_Device_**
<img src="choose_face_detector.jpg"></img>
</td></tr>
<tr><td colspan=2 align="center">
### Choose **_Face marker_** and **_Device_**
<img src="choose_face_marker.jpg"></img>
</td></tr>
<tr><td colspan=2 align="center">
### Choose **_Model_** and **_Device_** in **_Face swapper_**
<img src="choose_face_swapper.jpg"></img>
</td></tr>
<tr><td colspan=2 align="center">
### Now you see a swapped face in **_Final frame_** preview window
<img src="final_frame.jpg"></img>
</td></tr>
<tr><td colspan=2 align="center">
### in **_Stream output_** choose **_Mode_** : **_Merged frame_** and press **_window_**
<img src="stream_output.jpg"></img>
</td></tr>
<tr><td colspan=2 align="center">
### Now you see **_DeepFaceLive output_** window
<img src="dflive_output.jpg"></img>
</td></tr>
<tr><td colspan=2 align="center">
### You can play with various parameters of the modules to achieve the best performance and quality.
<img src="deepfacelive_window.jpg"></img>
</td></tr>
</table>

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 22 KiB

BIN
doc/windows/run_dfl_bat.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 17 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 120 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 30 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 19 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 38 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 22 KiB

BIN
doc/windows/sync_offset.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 36 KiB

View file

@ -0,0 +1,40 @@
<table align="center" border="0">
<tr><td colspan=2 align="center">
# Using Android phone camera
### Download and install <a href="http://www.dev47apps.com/"> **_DroidCam_** </a>
Phone and PC should be in the same network.
Connect Phone to network through WiFi
### Run Phone App.
<img src="DroidCam_0.jpg"></img>
now we can see phone's IP and port.
<img src="DroidCam_1.jpg"></img>
### Run PC app
<img src="DroidCam_2.jpg"></img>
Check whether the data coincide with the data on the phone, if the figures differ, then bring them to the values that are on the phone screen, then press "Start"
<img src="DroidCam_3.jpg"></img>
If you have done everything correctly, the video from the phone camera should appear in the DroidCam window
<img src="DroidCam_4.jpg"></img>
### in **_CameraSource_** section
### in **_Driver_** select **_DirectShow_**
### in **_Device index_** select **_DroidCamSource_**
<img src="DroidCam_5.jpg"></img>
</td></tr>
</table>

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 82 KiB