aac appears to have better browser support

This commit is contained in:
Roland Osborne 2022-06-01 10:36:35 -07:00
parent e0e0d4c621
commit 526d7341e1
4 changed files with 4 additions and 7 deletions

View File

@ -68,8 +68,6 @@ func AddChannelTopicAsset(w http.ResponseWriter, r *http.Request) {
garbageSync.Lock()
defer garbageSync.Unlock()
PrintMsg("SAVE NEW ASSET");
// save new file
id := uuid.New().String()
path := getStrConfigValue(CONFIG_ASSETPATH, APP_DEFAULTPATH) + "/" + channelSlot.Account.Guid + "/" + id
@ -174,7 +172,7 @@ PrintMsg("SAVE NEW ASSET");
func isStorageFull(act *store.Account) (full bool, err error) {
storage := getNumConfigValue(CONFIG_STORAGE, 0);
storage := getNumConfigValue(CONFIG_STORAGE, 0) * 1048576;
if storage == 0 {
return
}

View File

@ -1,2 +1,2 @@
#!/bin/bash
ffmpeg -i $1 -y -f mp4 -map_metadata -1 -vf scale=720:-2 -c:v libx264 -crf 23 -preset veryfast -c:a mp3 $2
ffmpeg -i $1 -y -f mp4 -map_metadata -1 -vf scale=720:-2 -c:v libx264 -crf 23 -preset veryfast -c:a aac $2

View File

@ -1,3 +1,3 @@
#!/bin/bash
ffmpeg -i $1 -y -f mp4 -map_metadata -1 -vf scale=320:-2 -c:v libx264 -crf 32 -preset veryfast -c:a mp3 $2
ffmpeg -i $1 -y -f mp4 -map_metadata -1 -vf scale=320:-2 -c:v libx264 -crf 32 -preset veryfast -c:a aac $2

View File

@ -131,8 +131,7 @@ export function AddTopic() {
</Dropdown>
</div>
<div class="send">
<Button icon={<SendOutlined />} onClick={onSend} size="large" />
<BusySpin spinning={state.busy} />
<Button icon={<SendOutlined />} onClick={onSend} size="large" loading={state.busy} />
</div>
</div>
</div>