diego3g/gcloud-node-video-transcoding

infinite loop when transcoding

sudiraO21 opened this issue · 0 comments

hello, i'm new into this kind of GCP and GAE
i'm following your instruction and implemented on my localhost successfully,
but it get infinite loop when transcoding because destination bucket detected as origin bucket after the first transcoding was successful.

here my command log
yarn dev:main

yarn run v1.22.10
$ lerna exec --scope jupiter-main -- yarn dev
lerna notice cli v3.19.0
lerna notice filter including "jupiter-main"
lerna info filter [ 'jupiter-main' ]
lerna info Executing command in 1 package: "yarn dev"
$ sucrase-node ./src/index.ts
📦 [Storage] Listening to messages
✉️ [Storage] Message: yeet.mp4
✉️ [Storage] Message: yeet_360.mp4
✉️ [Storage] Message: yeet_360_360.mp4
....
Terminate batch job (Y/N)? Y

yarn dev:worker

yarn run v1.22.10
$ lerna exec --scope jupiter-worker -- yarn dev
lerna notice cli v3.19.0
lerna notice filter including "jupiter-worker"
lerna info filter [ 'jupiter-worker' ]
lerna info Executing command in 1 package: "yarn dev"
$ sucrase-node ./src/index.ts
⚡️ [Worker] Listening to messages
✉️ [Worker] Message: [1080] yeet.mp4
✉️ [Worker] Message: [720] yeet.mp4
✉️ [Worker] Message: [360] yeet.mp4
[720] Started FFMpeg ffmpeg -i pipe:0 -vcodec libx264 -filter:v scale=w=1280:h=720 -f mp4 -preset superfast -movflags frag_keyframe+empty_moov -max_muxing_queue_size 9999 pipe:1
[360] Started FFMpeg ffmpeg -i pipe:0 -vcodec libx264 -filter:v scale=w=620:h=360 -f mp4 -preset superfast -movflags frag_keyframe+empty_moov -max_muxing_queue_size 9999 pipe:1
[1080] Started FFMpeg ffmpeg -i pipe:0 -vcodec libx264 -filter:v scale=w=1920:h=1080 -f mp4 -preset superfast -movflags frag_keyframe+empty_moov -max_muxing_queue_size 9999 pipe:1
[360] Sucess!.
✉️ [Worker] Message: [1080] yeet_360.mp4
[1080] Started FFMpeg ffmpeg -i pipe:0 -vcodec libx264 -filter:v scale=w=1920:h=1080 -f mp4 -preset superfast -movflags frag_keyframe+empty_moov -max_muxing_queue_size 9999 pipe:1
✉️ [Worker] Message: [720] yeet_360.mp4
[720] Started FFMpeg ffmpeg -i pipe:0 -vcodec libx264 -filter:v scale=w=1280:h=720 -f mp4 -preset superfast -movflags frag_keyframe+empty_moov -max_muxing_queue_size 9999 pipe:1
✉️ [Worker] Message: [360] yeet_360.mp4
[360] Started FFMpeg ffmpeg -i pipe:0 -vcodec libx264 -filter:v scale=w=620:h=360 -f mp4 -preset superfast -movflags frag_keyframe+empty_moov -max_muxing_queue_size 9999 pipe:1
[360] Sucess!.
....
Terminate batch job (Y/N)? Y