Can we merge webm and wav in single file format?

Archived from the Transloadit support forum. Originally posted on August 21, 2013; details may be outdated, see our docs for current behavior. Original thread

Existing solutions like ffmpeg/avconv allows us merge audio and video files; for example, see the attached files; that allows us merge webm/wav files into mkv.

What I want is, to upload two separate files:

1. webm file (video-only i.e. no-audio)
2. wav file (audio-only)

I want to merge audio/video in single output i.e. either mkv, avi, webm or flv.

“transloadit” should return me the “merged” file.

See this experiment: https://www.webrtc-experiment.com/RecordRTC/ which records audio in wav; and video in webm.

Hey everyone,

this has shipped.

Please see the docs here: https://transloadit.com/docs/conversion-robots#merging-audio-and-video
And a demo here: https://transloadit.com/demos/video-merge/merge-an-audio-file-and-a-video

Please provide feedback!

Kind regards,
Tim

Co-Founder Transloadit
@tim_kos

Thank you guys for this one! Will get it a try this week for sure.

Hey guys,

has anybody tried this out yet?

Cheers,
Tim

Hi @Tim, just tested it and faced following exception:

“VIDEO_MERGE_INVALID_STACK: Video merging is not supported for ffmpeg_stack 1.0.0. Please use 2.0.0 or newer.”

FYI, I used same code: https://transloadit.com/demos/video-merge/merge-an-audio-file-and-a-video

I tried following in the same demo but still facing same issue:

steps: {
audio_encode: {
robot: "/audio/encode",
use: ":original",
ffmpeg_stack: "v2.0.0",
preset: "mp3",
ffmpeg: {
ss: "00:00:00.0",
t: "00:00:05",
acodec: "copy"
}
},
video_encode: {
robot: "/video/encode",
use: ":original",
ffmpeg_stack: "v2.0.0",
preset: "iphone-high",
ffmpeg: {
b: "600k"
}
}
}

Hey Muaz,

could you please link your assembly id here?

Kind regards,
Tim

Co-Founder Transloadit
@tim_kos

Hi Tim,

I’m having trouble with this to work in the same use case as Muaz - webm & wav to webm. Here’s a failed assembly: https://transloadit.com/assemblies/view/REDACTED

Hey Dan,

we have made a few changes to the /video/merge robot since we last chatted here. Could you please give it another attempt? If that fails, could you please open a new ticket?

I am going to resolve this one for now as it’s a very old ticket. Let’s start fresh in new tickets.

Kind regards,
Tim

Co-Founder Transloadit
@tim_kos

hello mauz

Thank for reply..

I need to optimize uploading of video to server..
please suggest some solution..

Hi Vijay Chand,
This one will solve longest-recording issues; even it will provide many other features. It will be useful to record single camera or multiple cameras.

https://github.com/streamproc/Record-Entire-Meeting

PS. It uses node.js + ffmpeg.
PS. This forum is NOT for such kind of questions. Please open issues in RecordRTC or MediaStreamRecorder.js github repositories or otherwise, send me direct mails: [email blocked]

Regards

thanks muaz..

Closing this ticket again.

Kind regards,
Tim

Co-Founder Transloadit
@tim_kos