Bug 409739 - [Question] Importing video files with multiple audio streams causes Kdenlive to only use the first audio stream - is multi-stream audio import worked on?
Summary: [Question] Importing video files with multiple audio streams causes Kdenlive ...
Status: RESOLVED FIXED
Alias: None
Product: kdenlive
Classification: Applications
Component: Video Display & Export (show other bugs)
Version: unspecified
Platform: unspecified Unspecified
: NOR wishlist
Target Milestone: ---
Assignee: Jean-Baptiste Mardelle
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-07-12 09:37 UTC by Dirk
Modified: 2020-09-20 15:52 UTC (History)
4 users (show)

See Also:
Latest Commit:
Version Fixed In:
fritzibaby: Brainstorm+


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Dirk 2019-07-12 09:37:01 UTC
SUMMARY

Initially posted here: https://www.reddit.com/r/kdenlive/comments/cah9l4/importing_video_files_with_multiple_audio_streams/

Since invent.kde.org wants me to register to create an issue but there seems to be no register option I post this question/request here.

I record some screen casting with two audio streams. One stream is the desktop audio and one stream is the microphone. I do this so I can post-process the individual recorded audio data.

This works as expected and mpv for example is able to select the individual streams. So the file itself is correctly containered and the proper meta data and streams are set.

When I load the file into Kdenlive only the first audio stream is loaded with the video causing the microphone input not to be available within Kdenlive.

Right now I work around this by splitting the audio streams from the video using ffmeg and then manually import, align, and group both audio streams with the video and removing the automatically imported first audio stream from the video.

Do you know if there are any plans on supporting multi-stream audio on import? By short research I did not find any reliable statements or any recent issues for this.


STEPS TO REPRODUCE

1. Record a video with multi-stream audio
2. Load in into Kdenlive


OBSERVED RESULT

Only the first stream is loaded and autogrouped.


EXPECTED RESULT

All tracks are loaded and autogrouped as it is currently done with the first stream.


SOFTWARE/OS VERSIONS

Kdenlive 19.04


ADDITIONAL INFORMATION

This is just a question and not a real bug, but as initially written it seems like invent.kde.org does not allow registration and unregistered users can't create issues there.
Comment 1 Pivert 2020-04-21 17:48:39 UTC
Same problem here. I have a very long (2h) clip with 2 streams, and I have to take some dozen of slices of it, mixing the 2 audio streams (1 is the environment, the second stream is my microphone). The workaround seems not to work here. It works if there is only one slice, but not dozen of sequences. It does not cut the second audio track as the main track... How should we proceed then to have the 2 audio tracks when we take a slice of the video track ?
Comment 2 Dirk 2020-04-27 15:51:11 UTC
(In reply to Pivert from comment #1)
> It does not cut the second audio track as the main track... How should
> we proceed then to have the 2 audio tracks when we take a slice of the
> video track ?

You can group them. All clips in a group are cut at once (and you can move them, too).
Comment 3 emohr 2020-05-03 18:18:32 UTC
Multitrack audio is planned to implement. Let's see if this can be made into 20.08. 

Workaround: Put the same clip as many times into the project bin as you have audio streams. Goto clip properties -> audio stream -> choose the track per clip you want. Drag/drop 1 times the video/audio clip into the timeline. Click on 1 of the other clips in the project bin. Hover over the clip (or hover into the clip monitor) and grab the speaker icon and put just the audio in the timeline. So you can separate each audio track of the clip on a separate track in the timeline.
Comment 4 Roger 2020-05-14 05:34:08 UTC
I would really like this feature. I have a bad habit of forgetting to do a sound check before recording, and having to deal with atrocious audio balance issues when editing.
Comment 5 Eric Mesa 2020-06-30 12:30:55 UTC
(In reply to emohr from comment #3)
> Multitrack audio is planned to implement. Let's see if this can be made into
> 20.08. 
> 
> Workaround: Put the same clip as many times into the project bin as you have
> audio streams. Goto clip properties -> audio stream -> choose the track per
> clip you want. Drag/drop 1 times the video/audio clip into the timeline.
> Click on 1 of the other clips in the project bin. Hover over the clip (or
> hover into the clip monitor) and grab the speaker icon and put just the
> audio in the timeline. So you can separate each audio track of the clip on a
> separate track in the timeline.

Thanks for this workaround! I'd also like to vote to have it be a feature in 20.08! Thanks!!
Comment 6 Dirk 2020-09-20 04:51:48 UTC
Just updated to 20.08.1 recently and when importing the clips as described in the initial summary both of the audio tracks are imported and shown as separate and automatically properly grouped audio clips.

I think this issue could be seen as resolved now.

Thanks to everyone who made this possible!
Comment 7 emohr 2020-09-20 15:52:05 UTC
Thank you for the feedback. Glad to hear it works. Yes Multitrack was updated in 20.08 and 20.08.1.