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

Merge multiple ts videos into one mp4 file #421

Open
long-key opened this issue Sep 24, 2022 · 5 comments
Open

Merge multiple ts videos into one mp4 file #421

long-key opened this issue Sep 24, 2022 · 5 comments

Comments

@long-key
Copy link

Are any developers still paying attention to this library?
I'm working on a web app and I've converted multiple ts fragments into arraybuffer, I need to merge them into one mp4 file and download to hard drive.
Is it possible to merge multiple ts videos into one mp4 file?

@anonghuser
Copy link

isn't the basic usage example exactly that?

@long-key
Copy link
Author

isn't the basic usage example exactly that?

I have tested that the synthesized video can be played in the video tag. If it is downloaded to the hard disk and played using the local player, the sound is out of sync with the video.
It seems that this library is only for playing video in the browser. It cannot composite video for local playback.

@gkatsev
Copy link
Member

gkatsev commented Sep 27, 2022

It should be possible to download the resolution fmp4, and I'd expect it to play back the same as on the web.
also, this module provides a binary that can help transmux ts to mp4 https://github.com/videojs/mux.js/blob/main/bin/transmux.js https://github.com/videojs/mux.js/blob/main/package.json#L13

@anonghuser
Copy link

there may be some inconsistencies with the timing data of the video and audio of your source. you can try changing the keepOriginalTimestamps option. or your "local player" may just be bad, since you don't say what it is.
its a bit of a pity the library doesn't offer more control over or at least documentation/explanation about the timing data, but it works ok at least for the basic cases.

@GrapevineLin
Copy link

same issue😭

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants