Open ariestav opened 8 years ago
I suspect you'd have to generate null audio for the second track. You may be able to do this using a complex filtergraph. Head to the ffmpeg docs to learn how to do that, and come back here when you have a working command line if you want help translating it into fluent-ffmpeg calls !
Thanks for your suggestion. I took a look at the docs for formulating an appropriate filtergraph but I simply cannot wrap my head around it. Is there a good book you can recommend on it? Or just a tutorial that really explains it in some kind of visual way. I searched for one, but had no luck.
Have a look at the second example for anullsrc here, seems close to what you want to achieve !
Thank you for that reference! I very much appreciate it. I will try it and post back the results.
I have the exactly the same problem. Have you found a solution? Regards
No not yet. Have not had the time. Although the resources that @njoyard pointed to seem relevant.
@ariestav @matiasbenedetto if you found any solution please share command of it. also facing same issue
@mansiJspaceo I've used save
instead mergeToFile
to avoid fluent-ffmpeg adding the -filter_complex
part and it worked. The command looked right too
I have same issue now . Is there best way to concat two videos without considering whether those videos has audio or not ?
add this: .complexFilter('anullsrc=channel_layout=5.1:sample_rate=48000')
Hi There,
I'm trying to concatenate two files with fluent-ffmpeg. The first file, referenced by
anchor
, has both audio and video, while the second file, reference bytablex5
, only has video. When I try to concatenate them, I get the following error:However, if I set it so that
tablex5
comes first, and thenanchor
comes second, I get a successful merge, but the files are not concatenated, I can hear the audio fromanchor
, but the video track is replaced completely byanchor
. Here is my code that generates the error above:Here is the resultant ffmpeg command from that code:
Here is the code that successfully gives me a new output, but as I mentioned the result is incorrect. That is there is no concatenation, just that
tablex5
video appears over theanchor
audio. I see no video from theanchor
file.Here is the resultant command from the above code
I suspect the error is due to the fact that one file has an audio track and another doesn't. How can I fix using fluent-ffmpeg code?
Thank you.