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

Progress bar bug when uploading a file called "output.mp4" #9

Closed
rithvikmahin opened this issue Jun 12, 2020 · 4 comments
Closed

Progress bar bug when uploading a file called "output.mp4" #9

rithvikmahin opened this issue Jun 12, 2020 · 4 comments
Assignees
Labels
bug Something isn't working

Comments

@rithvikmahin
Copy link
Contributor

Error message: File 'output.mp4' already exists. Exiting.
When a file called output.mp4 is uploaded and the settings H.264 and MP4 are chosen, that bug appears and the visual display says finished but the progress bar will be stuck at 1%.

image

@CryogenicPlanet CryogenicPlanet added the bug Something isn't working label Jun 12, 2020
@CryogenicPlanet
Copy link
Member

Can you add the console log here, so we can have a record of the console here

@rithvikmahin
Copy link
Contributor Author

bundle.js:1 [info] FS.writeFile output.mp4
bundle.js:1 Configuration
bundle.js:1 Final Settings are FileType MP4 and H.264
bundle.js:1 [info] ffmpeg command: ./ffmpeg -nostdin -hide_banner -i output.mp4 -threads 8 -strict -2 output.mp4
bundle.js:1 [ffmpeg-stderr] Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'output.mp4':
bundle.js:1 [ffmpeg-stderr]   Metadata:
bundle.js:1 [ffmpeg-stderr]     major_brand     : isom
bundle.js:1 [ffmpeg-stderr]     minor_version   : 512
bundle.js:1 [ffmpeg-stderr]     compatible_brands: isomiso2avc1mp41
bundle.js:1 [ffmpeg-stderr]     encoder         : Lavf58.20.100
bundle.js:1 [ffmpeg-stderr]   Duration: 00:00:04.17, start: 0.000000, bitrate: 445 kb/s
bundle.js:1 [ffmpeg-stderr]     Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 1920x1080 [SAR 1:1 DAR 16:9], 428 kb/s, 60 fps, 60 tbr, 15360 tbn, 120 tbc (default)
bundle.js:1 [ffmpeg-stderr]     Metadata:
bundle.js:1 [ffmpeg-stderr]       handler_name    : VideoHandler
bundle.js:1 [ffmpeg-stderr]     Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 2 kb/s (default)
bundle.js:1 [ffmpeg-stderr]     Metadata:
bundle.js:1 [ffmpeg-stderr]       handler_name    : SoundHandler
bundle.js:1 [ffmpeg-stderr] File 'output.mp4' already exists. Exiting.
bundle.js:1 [ffmpeg-stdout] FFMPEG_END
bundle.js:1 [info] FS.readFile output.mp4
bundle.js:1 blob:https://videotranscode.space/27674d93-93bb-4876-b390-5039d46f62b6
bundle.js:1 The processing is complete! Enjoy your video. It took 0.431 seconds```

@CryogenicPlanet
Copy link
Member

@rithvikmahin Okay this is an easy fix, we should randomize the output file name based on the input file, that is inputFileName-{random}.{extension}

@rithvikmahin
Copy link
Contributor Author

Resolved with {inputFileName}-output.extension.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants