Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Typescript Version For discussion / Reference #102

Open
wants to merge 69 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
69 commits
Select commit Hold shift + click to select a range
c8f8627
convert to TS
UrielCh Apr 15, 2022
3fd52f7
convert TS
UrielCh Apr 15, 2022
d775f49
update tsconfig
UrielCh Apr 15, 2022
5e66c00
fix typing
UrielCh Apr 18, 2022
54ff086
more types
UrielCh Apr 18, 2022
f503820
more types
UrielCh Apr 18, 2022
f3947e4
move files
UrielCh Apr 18, 2022
021133d
split TS file
UrielCh Apr 18, 2022
919141a
more types
UrielCh Apr 18, 2022
ddb6536
migrate example
UrielCh Apr 19, 2022
b0fa9fd
add package.json for example
UrielCh Apr 19, 2022
da6e5b5
convert Test to TS
UrielCh Apr 19, 2022
bdc29db
improve model
UrielCh Apr 19, 2022
10df56f
refacrtor
UrielCh Apr 19, 2022
6f401fa
types
UrielCh Apr 19, 2022
2168e0b
refactor
UrielCh Apr 19, 2022
a8d2145
fix last type error
UrielCh Apr 19, 2022
a6330fd
clean
UrielCh Apr 19, 2022
4283a96
build ok
UrielCh Apr 19, 2022
d3e5de7
fix imports
UrielCh Apr 19, 2022
d11042a
test
UrielCh Apr 20, 2022
875975a
add link
UrielCh Apr 20, 2022
b568caf
commit launcher
UrielCh Apr 20, 2022
b834620
Merge branch 'master' of github.com:UrielCh/beamcoder
UrielCh Apr 20, 2022
a0a195d
TS
UrielCh Apr 21, 2022
ae6547a
'TS'
UrielCh Apr 21, 2022
4f3ecda
TS
UrielCh Apr 21, 2022
ce490fa
add missing import
UrielCh Apr 25, 2022
c245c59
improve types
UrielCh Apr 25, 2022
f108cc9
add types
UrielCh Apr 25, 2022
8302c30
more types
UrielCh Apr 25, 2022
e3ea904
typings
UrielCh Apr 25, 2022
61d920d
more types
UrielCh Apr 25, 2022
752c468
drop debuggers
UrielCh Apr 25, 2022
1ce9c19
minbor cleanup
UrielCh Apr 30, 2022
cc3db5d
drop any types
UrielCh Apr 30, 2022
cb71dac
improve typings
UrielCh Apr 30, 2022
baa2bf9
droreplace reduce promise loop by simple loop
UrielCh Apr 30, 2022
a115ad9
fix type + drop reduce
UrielCh Apr 30, 2022
25d7f50
more types
UrielCh Apr 30, 2022
dbcad71
clean
UrielCh May 1, 2022
0558121
drop any types
UrielCh May 1, 2022
ad28e99
fix types
UrielCh May 1, 2022
0508165
drop promise storage
UrielCh May 1, 2022
b45abf1
big slpit
UrielCh May 1, 2022
d74db6c
refactor
UrielCh May 1, 2022
72f0515
patch teeBalancer
UrielCh May 1, 2022
9e27c5d
misc fiox
UrielCh May 1, 2022
1e90a60
merge v2
UrielCh May 2, 2022
f99336d
sync v2
UrielCh May 2, 2022
eaaa118
merge v2 to v1
UrielCh May 5, 2022
6524a2a
merge example from v2
UrielCh May 5, 2022
07b12fb
merge v2 => v2
UrielCh May 5, 2022
fdf7040
merge v2 to v1
UrielCh May 5, 2022
ea8dd49
merge v2 -> v1
UrielCh May 5, 2022
f97e47f
remove old file
UrielCh May 5, 2022
546fd05
commit lock
UrielCh May 7, 2022
26e35e5
sync gitignore
UrielCh May 7, 2022
6358227
sync
UrielCh May 7, 2022
a0e9cf9
sync
UrielCh May 7, 2022
f27e6ba
sync
UrielCh May 7, 2022
a496a82
sync
UrielCh May 7, 2022
7525f56
fix livecycle
UrielCh May 16, 2022
cc53985
merge v2 => v1 final
UrielCh May 16, 2022
71882a3
marge .vscode files
UrielCh May 16, 2022
5882022
limit download log volume.
UrielCh May 16, 2022
7f13d60
add missing binding.gyp in package.zip
UrielCh May 16, 2022
7dcdd86
improve install_ffmpeg
UrielCh May 16, 2022
1b9b661
improve stream test
UrielCh May 16, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,6 @@ module.exports = {
],
'no-console': 'off',
'prefer-arrow-callback': 'error'
}
},
'ignorePatterns': [ '**/*.js' ]
};
9 changes: 8 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -72,4 +72,11 @@ ffmpeg/

# Editors and IDE's
*.swp
.vscode/
ts/*.js
ts/*.d.ts
examples/pnpm-lock.yaml
examples/capture/
*.torrent
*.jpg
scratch/*.h264
scratch/*.wav
14 changes: 14 additions & 0 deletions .vscode/c_cpp_properties.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,20 @@
"cStandard": "c11",
"cppStandard": "c++17",
"intelliSenseMode": "msvc-x64"
},
{
"name": "Mac",
"includePath": [
"${workspaceFolder}/src",
"${HOME}/.nvm/versions/node/v16.14.2/include/node",
"/opt/homebrew/Cellar/ffmpeg/5.0/include"
],
"defines": [],
"macFrameworkPath": [],
"compilerPath": "/opt/homebrew/bin/gcc-11",
"cStandard": "gnu17",
"cppStandard": "gnu++17",
"intelliSenseMode": "macos-gcc-arm64"
}
],
"version": 4
Expand Down
279 changes: 279 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,279 @@
{
"version": "0.2.0",
"configurations": [



{
"name": "scratch streamTest.ts",
"type": "node",
"request": "launch",
"runtimeArgs": [ "--nolazy", "-r", "ts-node/register" ],
"args": [ "./examples/streamTest.ts" ],
"cwd": "${workspaceFolder}/",
"internalConsoleOptions": "openOnSessionStart",
// "skipFiles": ["<node_internals>/**", "node_modules/**"],
"skipFiles": [
"/s/<node_internals>/**"
],
"env": {
"TS_NODE_PROJECT": "${workspaceFolder}/tsconfig.json",
"DEBUG": "*"
}
},




{
"name": "scratch decode_aac",
"type": "node",
"request": "launch",
"runtimeArgs": [ "--nolazy", "-r", "ts-node/register" ],
"args": [ "./decode_aac.ts" ],
"cwd": "${workspaceFolder}/scratch/",
"internalConsoleOptions": "openOnSessionStart",
// "skipFiles": ["<node_internals>/**", "node_modules/**"],
"skipFiles": [
"/s/<node_internals>/**"
],
"env": {
"TS_NODE_PROJECT": "${workspaceFolder}/tsconfig.json",
"DEBUG": "*"
}
},


{
"name": "scratch decode_avci",
"type": "node",
"request": "launch",
"runtimeArgs": [ "--nolazy", "-r", "ts-node/register" ],
"args": [ "./decode_avci.ts" ],
"cwd": "${workspaceFolder}/scratch/",
"internalConsoleOptions": "openOnSessionStart",
// "skipFiles": ["<node_internals>/**", "node_modules/**"],
"skipFiles": [
"/s/<node_internals>/**"
],
"env": {
"TS_NODE_PROJECT": "${workspaceFolder}/tsconfig.json",
"DEBUG": "*"
}
},


{
"name": "scratch decode_hevc",
"type": "node",
"request": "launch",
"runtimeArgs": [ "--nolazy", "-r", "ts-node/register" ],
"args": [ "./decode_hevc.ts" ],
"cwd": "${workspaceFolder}/scratch/",
"internalConsoleOptions": "openOnSessionStart",
// "skipFiles": ["<node_internals>/**", "node_modules/**"],
"skipFiles": [
"/s/<node_internals>/**"
],
"env": {
"TS_NODE_PROJECT": "${workspaceFolder}/tsconfig.json",
"DEBUG": "*"
}
},



{
"name": "scratch decode_pcm",
"type": "node",
"request": "launch",
"runtimeArgs": [ "--nolazy", "-r", "ts-node/register" ],
"args": [ "./decode_pcm.ts" ],
"cwd": "${workspaceFolder}/scratch/",
"internalConsoleOptions": "openOnSessionStart",
// "skipFiles": ["<node_internals>/**", "node_modules/**"],
"skipFiles": [
"/s/<node_internals>/**"
],
"env": {
"TS_NODE_PROJECT": "${workspaceFolder}/tsconfig.json",
"DEBUG": "*"
}
},







{
"name": "scratch stream_avci",
"type": "node",
"request": "launch",
"runtimeArgs": [ "--nolazy", "-r", "ts-node/register" ],
"args": [ "./stream_avci.ts" ],
"cwd": "${workspaceFolder}/scratch/",
"internalConsoleOptions": "openOnSessionStart",
// "skipFiles": ["<node_internals>/**", "node_modules/**"],
"skipFiles": [
"/s/<node_internals>/**"
],
"env": {
"TS_NODE_PROJECT": "${workspaceFolder}/tsconfig.json",
"DEBUG": "*"
}
},


{
"name": "scratch stream_mux",
"type": "node",
"request": "launch",
"runtimeArgs": [ "--nolazy", "-r", "ts-node/register" ],
"args": [ "./stream_mux.ts" ],
"cwd": "${workspaceFolder}/scratch/",
"internalConsoleOptions": "openOnSessionStart",
// "skipFiles": ["<node_internals>/**", "node_modules/**"],
"skipFiles": [
"/s/<node_internals>/**"
],
"env": {
"TS_NODE_PROJECT": "${workspaceFolder}/tsconfig.json",
"DEBUG": "*"
}
},


{
"name": "scratch stream_mp4",
"type": "node",
"request": "launch",
"runtimeArgs": [ "--nolazy", "-r", "ts-node/register" ],
"args": [ "./stream_mp4.ts" ],
"cwd": "${workspaceFolder}/scratch/",
"internalConsoleOptions": "openOnSessionStart",
// "skipFiles": ["<node_internals>/**", "node_modules/**"],
"skipFiles": [
"<node_internals>/**"
],
"env": {
"TS_NODE_PROJECT": "${workspaceFolder}/tsconfig.json",
"DEBUG": "*"
}
},
{
"name": "Launch streamTest",
"type": "node",
"request": "launch",
"runtimeArgs": [
"--nolazy",
"-r",
"ts-node/register"
],
"args": [
"./examples/streamTest.ts"
],
"cwd": "${workspaceFolder}",
"internalConsoleOptions": "openOnSessionStart",
// "skipFiles": ["<node_internals>/**", "node_modules/**"],
"skipFiles": [
"<node_internals>/**"
],
"env": {
"TS_NODE_PROJECT": "${workspaceFolder}/tsconfig.json",
"DEBUG": "*"
}
},
{
"name": "Launch jpeg_filter_app",
"type": "node",
"request": "launch",
"runtimeArgs": [
"--nolazy",
"-r",
"ts-node/register"
],
"args": [
"./examples/jpeg_filter_app.ts"
],
"cwd": "${workspaceFolder}",
"internalConsoleOptions": "openOnSessionStart",
"skipFiles": [
"<node_internals>/**"
],
"env": {
"TS_NODE_PROJECT": "${workspaceFolder}/tsconfig.json",
"DEBUG": "*"
}
},
{
"name": "Launch make_mp4",
"type": "node",
"request": "launch",
"runtimeArgs": [
"--nolazy",
"-r",
"ts-node/register"
],
"args": [
"./examples/make_mp4.ts",
"test.mp4"
],
"cwd": "${workspaceFolder}",
"internalConsoleOptions": "openOnSessionStart",
"skipFiles": [
"<node_internals>/**"
],
"env": {
"TS_NODE_PROJECT": "${workspaceFolder}/tsconfig.json",
"DEBUG": "*"
}
},
{
"name": "Launch jpeg_app",
"type": "node",
"request": "launch",
"runtimeArgs": [
"--nolazy",
"-r",
"ts-node/register"
],
"args": [
"./examples/jpeg_app.ts"
],
"cwd": "${workspaceFolder}",
"internalConsoleOptions": "openOnSessionStart",
"skipFiles": [
"<node_internals>/**"
],
"env": {
"TS_NODE_PROJECT": "${workspaceFolder}/tsconfig.json",
"DEBUG": "*"
}
},
{
"name": "tape test",
"type": "node",
"request": "launch",
"runtimeArgs": [
"--nolazy",
"-r",
"ts-node/register"
],
"args": [
"node_modules/tape/bin/tape",
"test/*.ts"
],
"cwd": "${workspaceFolder}",
"internalConsoleOptions": "openOnSessionStart",
"skipFiles": [
"<node_internals>/**"
],
"env": {
"TS_NODE_PROJECT": "${workspaceFolder}/tsconfig.json",
"DEBUG": "*"
}
}
]
}
Loading