Duix Avatar

Team Compute Avatar Video

You can join a team to provide avatar video service or you can be a user, either way it is a lot of fun and rewarding.

Duix Avatar

Usage

The Duix Avatar client is extremely easy to use.

Step 1

Upload a Base Video to be used for all future avatar video. The base can be a video of yourself or some AI created person (like our example below).

Step 2

Type in the text of the words you want your avatar to say in the video or you can an audio file taht say those words.

Done

Crop Video

1. Crop by Area

Sometimes you need to crop the video to remove texts, logos etc. at the bottom of the original video BEFORE feeding it into Duix Avatar.

You can use the following command in Linux:

ffmpeg -i input.mp4 -vf "crop=720:1114:0:0" -c:v libx264 -crf 17 -preset slow -movflags +faststart -c:a copy output.mp4

This will create a 720x1114 video from a 720x1280 video, by cutting out the bottom 166 pixels, resulting in an output video file with the following parameters:

=== FILE: video.mp4 ===

=== FFPROBE (streams + format) ===
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'video.mp4':
  Metadata:
    major_brand     : isom
    minor_version   : 512
    compatible_brands: isomiso2avc1mp41
    encoder         : Lavf59.27.100
  Duration: 00:00:14.68, start: 0.000000, bitrate: 1362 kb/s
  Stream #0:0[0x1](und): Video: h264 (High) (avc1 / 0x31637661), yuv420p(progressive), 720x1114 [SAR 1:1 DAR 360:557], 1228 kb/s, 25 fps, 25 tbr, 12800 tbn (default)
    Metadata:
      handler_name    : VideoHandler
      vendor_id       : [0][0][0][0]
      encoder         : Lavc59.37.100 libx264
  Stream #0:1[0x2](und): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 127 kb/s (default)
    Metadata:
      handler_name    : SoundHandler
      vendor_id       : [0][0][0][0]
[STREAM]
index=0
codec_name=h264
codec_long_name=H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10
profile=High
codec_type=video
codec_tag_string=avc1
codec_tag=0x31637661
width=720
height=1114
coded_width=720
coded_height=1114
closed_captions=0
film_grain=0
has_b_frames=2
sample_aspect_ratio=1:1
display_aspect_ratio=360:557
pix_fmt=yuv420p
level=31
color_range=unknown
color_space=unknown
color_transfer=unknown
color_primaries=unknown
chroma_location=left
field_order=progressive
refs=1
is_avc=true
nal_length_size=4
id=0x1
r_frame_rate=25/1
avg_frame_rate=25/1
time_base=1/12800
start_pts=0
start_time=0.000000
duration_ts=187904
duration=14.680000
bit_rate=1228631
max_bit_rate=N/A
bits_per_raw_sample=8
nb_frames=367
nb_read_frames=N/A
nb_read_packets=N/A
extradata_size=48
DISPOSITION:default=1
DISPOSITION:dub=0
DISPOSITION:original=0
DISPOSITION:comment=0
DISPOSITION:lyrics=0
DISPOSITION:karaoke=0
DISPOSITION:forced=0
DISPOSITION:hearing_impaired=0
DISPOSITION:visual_impaired=0
DISPOSITION:clean_effects=0
DISPOSITION:attached_pic=0
DISPOSITION:timed_thumbnails=0
DISPOSITION:captions=0
DISPOSITION:descriptions=0
DISPOSITION:metadata=0
DISPOSITION:dependent=0
DISPOSITION:still_image=0
TAG:language=und
TAG:handler_name=VideoHandler
TAG:vendor_id=[0][0][0][0]
TAG:encoder=Lavc59.37.100 libx264
[/STREAM]
[STREAM]
index=1
codec_name=aac
codec_long_name=AAC (Advanced Audio Coding)
profile=LC
codec_type=audio
codec_tag_string=mp4a
codec_tag=0x6134706d
sample_fmt=fltp
sample_rate=48000
channels=2
channel_layout=stereo
bits_per_sample=0
id=0x2
r_frame_rate=0/0
avg_frame_rate=0/0
time_base=1/48000
start_pts=0
start_time=0.000000
duration_ts=704496
duration=14.677000
bit_rate=127187
max_bit_rate=N/A
bits_per_raw_sample=N/A
nb_frames=689
nb_read_frames=N/A
nb_read_packets=N/A
extradata_size=5
DISPOSITION:default=1
DISPOSITION:dub=0
DISPOSITION:original=0
DISPOSITION:comment=0
DISPOSITION:lyrics=0
DISPOSITION:karaoke=0
DISPOSITION:forced=0
DISPOSITION:hearing_impaired=0
DISPOSITION:visual_impaired=0
DISPOSITION:clean_effects=0
DISPOSITION:attached_pic=0
DISPOSITION:timed_thumbnails=0
DISPOSITION:captions=0
DISPOSITION:descriptions=0
DISPOSITION:metadata=0
DISPOSITION:dependent=0
DISPOSITION:still_image=0
TAG:language=und
TAG:handler_name=SoundHandler
TAG:vendor_id=[0][0][0][0]
[/STREAM]
[FORMAT]
filename=video.mp4
nb_streams=2
nb_programs=0
format_name=mov,mp4,m4a,3gp,3g2,mj2
format_long_name=QuickTime / MOV
start_time=0.000000
duration=14.680000
size=2500856
bit_rate=1362864
probe_score=100
TAG:major_brand=isom
TAG:minor_version=512
TAG:compatible_brands=isomiso2avc1mp41
TAG:encoder=Lavf59.27.100
[/FORMAT]

=== FASTSTART (moov atom before mdat) ===
moov_offset=36
mdat_offset=12634
FASTSTART: YES

Crop by Time

Crop with Stream Copy

ffmpeg -ss 00:01:30 -to 00:02:10 -i input.mp4 -c copy -movflags +faststart output.mp4

Crop with Re-encode

ffmpeg -ss 00:01:30 -to 00:02:10 -i input.mp4 -c:v libx264 -crf 17 -preset slow -c:a aac -b:a 192k -movflags +faststart output.mp4