Avidemux Forum

Avidemux => Main version 2.6 => Topic started by: jdavidemux on March 12, 2016, 03:19:19 AM

Title: Sound In Only One Speaker
Post by: jdavidemux on March 12, 2016, 03:19:19 AM
Hey all.

I have an mp4 video that has sound only in the left speaker and was wondering if there is a way to change the video so that there is sound from both speakers?

I have currently have 64bit Avidemux 2.6.7 (not sure how to update the program)

Appreciate any help.
Title: Re: Sound In Only One Speaker
Post by: Jan Gruuthuse on March 12, 2016, 06:05:44 AM
Quote from: jdavidemux on March 12, 2016, 03:19:19 AM
I have an mp4 video that has sound only in the left speaker and was wondering if there is a way to change the video so that there is sound from both speakers?
Try audio filter.
in audio Output
- select AAC (lav) instead of Copy
- Filters: Audio filters: Mixer
[v] Remix
Mixer: Stereo

If that fails: use external program like audacity (http://www.audacityteam.org) to create stereo track from mono track.


QuoteI have currently have 64bit Avidemux 2.6.7 (not sure how to update the program)

You did not state your OS? You can update Avidemux to 2.6.11 with an installer from here: http://www.avidemux.org/nightly/

Only OSx or Windows. Ubuntu 14.04.4 you would find for 64-bit only: avidemux Cli/Qt 2.6.12 64-bit deb download ubuntu 14.04.4 LTS (http://avidemux.org/smif/index.php/topic,16659.msg74093.html#msg74093)

Title: Re: Sound In Only One Speaker
Post by: jdavidemux on March 12, 2016, 07:47:21 PM
Quote from: Jan Gruuthuse on March 12, 2016, 06:05:44 AM
Quote from: jdavidemux on March 12, 2016, 03:19:19 AM
I have an mp4 video that has sound only in the left speaker and was wondering if there is a way to change the video so that there is sound from both speakers?
Try audio filter.
in audio Output
- select AAC (lav) instead of Copy
- Filters: Audio filters: Mixer
[v] Remix
Mixer: Stereo

If that fails: use external program like audacity (http://www.audacityteam.org) to create stereo track from mono track.


QuoteI have currently have 64bit Avidemux 2.6.7 (not sure how to update the program)

You did not state your OS? You can update Avidemux to 2.6.11 with an installer from here: http://www.avidemux.org/nightly/

Only OSx or Windows. Ubuntu 14.04.4 you would find for 64-bit only: avidemux Cli/Qt 2.6.12 64-bit deb download ubuntu 14.04.4 LTS (http://avidemux.org/smif/index.php/topic,16659.msg74093.html#msg74093)

Thanks for the info Jan.

I didn't have any luck with this method however I will try the Audacity program and see how that goes.

Also, if it helps, I have OS Windows Vista 64.
Title: Re: Sound In Only One Speaker
Post by: AQUAR on March 13, 2016, 06:55:14 AM
I can confirm that audio remixing from mono to stereo does not always happen.
Maybe the settings in The GUI aren't always acknowledged as when I cycled them the remix took place.

Title: Re: Sound In Only One Speaker
Post by: jdavidemux on March 13, 2016, 07:34:52 PM
Quote from: AQUAR on March 13, 2016, 06:55:14 AM
I can confirm that audio remixing from mono to stereo does not always happen.
Maybe the settings in The GUI aren't always acknowledged as when I cycled them the remix took place.

Thanks for the reply AQUAR.

Wondering, what does it mean "cycled them" in the above context?
Title: Re: Sound In Only One Speaker
Post by: Jan Gruuthuse on March 14, 2016, 05:58:59 AM
Try Menu -> Edit -> Preferences ->
[Audio]
Local playback downmixing: Stereo

or test other AudioDevice [xxxxxx]
Perhaps it is a playback issue? AC3 track going to different speaker as intended?
Title: Re: Sound In Only One Speaker
Post by: AQUAR on March 14, 2016, 06:32:39 AM
@ Jan
The original single audio channel is not remixed to two audio channels during the audio recode.

@ jdavidemux
By cycling I mean't tick  the remix option and select the stereo mixer.
If it doesn't work, go back into the filer and select another mixer option eg stereo+centre.
Try again and usually it takes note of the new setting.
Change the setting back to select the stereo mixer (if you don't want 3 channels!).
And usually it now performs as per the settings.
Do try the fiddle on a small section of the video (cut edit the first minute or so) in order to test quickly.
Once it works as required, delete the edits and go do your thing.

I don't know why these filter setting are sometimes not applied. 
Title: Re: Sound In Only One Speaker
Post by: jdavidemux on March 15, 2016, 07:08:17 PM
Quote from: Jan Gruuthuse on March 14, 2016, 05:58:59 AM
Try Menu -> Edit -> Preferences ->
[Audio]
Local playback downmixing: Stereo

or test other AudioDevice [xxxxxx]
Perhaps it is a playback issue? AC3 track going to different speaker as intended?

Quote from: AQUAR on March 14, 2016, 06:32:39 AM
@ Jan
The original single audio channel is not remixed to two audio channels during the audio recode.

@ jdavidemux
By cycling I mean't tick  the remix option and select the stereo mixer.
If it doesn't work, go back into the filer and select another mixer option eg stereo+centre.
Try again and usually it takes note of the new setting.
Change the setting back to select the stereo mixer (if you don't want 3 channels!).
And usually it now performs as per the settings.
Do try the fiddle on a small section of the video (cut edit the first minute or so) in order to test quickly.
Once it works as required, delete the edits and go do your thing.

I don't know why these filter setting are sometimes not applied.

Thanks again for the infos Jan and AQUAR.

Not having any luck converting this video from mono to stereo or mono to dual-mono.

It might just be the video as it only happens with this video and also during regular playback.
Title: Re: Sound In Only One Speaker
Post by: Jan Gruuthuse on March 16, 2016, 06:21:48 AM
As this relate to specific video, you could upload a 10 seconds duration / 50 to 100 MB in size of this kind of video possing this problem to a (free) webservice.
Time permitting developer(s)/user(s) could have a look at this issue.
ps:- Use a free dropbox account, mega or similar webservice (free public access, without registration to download your uploaded video) thank you.
Title: Re: Sound In Only One Speaker
Post by: xpmule on March 17, 2016, 06:06:24 PM
I ran into a problem file like this long ago..
I think i simply ended up Setting Remix to Mono with Avidemux.

Why you guys are saying set remix to stereo baffles me.
Chances are his video is screwed up and has either the left or right channel audio missing.
I have seen this happen before..
When i tested i found that one of the channels either the left or right was actually blank.
It was actually there listed in MediaInfo etc but when i extracted each channel desperately with Wave files
then analyzed them i could see the spectrum was dead on one channel and when i hex edited the file i could nothing but 0's

What i ended up doing is forcing mono.. because i had no choice the other channel was GONE !
How to handle that is up to you and what works etc.
I think you could even extract the working channel then copy it over to the right side manually then rebuild it back into Mono/Stereo.

I would be finding out what exactly is wrong with the file in the first place before doing anything though..

Once a channel is gone you will never have Stereo again.. Stereo means stereo LOL
Title: Re: Sound In Only One Speaker
Post by: AQUAR on March 18, 2016, 03:34:21 AM
By choosing "remix stereo" no-one has said that you get two distinct audio channels that will provide audio spatiality.
But you will get 2 channels of audio so that you get sound from 2 speakers.

That's what the OP was after.
Whether or not you get stereo depends on what is being fed to the filter.

You are confused with our intent to help the OP.






Title: Re: Sound In Only One Speaker
Post by: jdavidemux on March 19, 2016, 01:17:59 AM
Yep, AQUAR is correct. Just trying to get a video to play audio from both speakers.

I'm currently in the process of trying something with the player I'm using. Will return and post results.
Title: Re: Sound In Only One Speaker
Post by: jdavidemux on March 23, 2016, 10:17:29 PM
In the media player I'm currently using(PotPlayer formaly known as KMPlayer), I found a option called "Swap Stereo Channel" which when clicked(for this video) switches the sound from the left speaker to the right speaker.

What I'm wondering is, is it possible(with Avidemux) to record the audio from the left speaker, switch the sound to the other speaker(with PotPlayer), record the audio from that speaker, and then somehow combine the two tracks into one track and then add the final combined audio track to the video?
Title: Re: Sound In Only One Speaker
Post by: Jan Gruuthuse on March 24, 2016, 02:58:29 AM
You did not provide us with video sample with this audio issue?
I prepared a mono track video, can you test this and let us know how it went?
Mono audio speaker test YouTube (https://www.youtube.com/watch?v=nNHaIZtbWiM) @ top right hand corner click download.
Title: Re: Sound In Only One Speaker
Post by: AQUAR on March 24, 2016, 10:02:55 AM
@ Jan

That's what I did to check the filter function.
Will be interesting to see if the OP has more luck with monotest.mkv.

I still think the OP should select the 3 channel mixer option and see if it produced a result.
Also the OP needs to select an audio recode option (in case its left at copy!).

It does work if you try.
Title: Re: Sound In Only One Speaker
Post by: jdavidemux on March 26, 2016, 07:35:25 PM
Quote from: Jan Gruuthuse on March 24, 2016, 02:58:29 AM
You did not provide us with video sample with this audio issue?

Unable to upload due to copyright issues.

Quote from: Jan Gruuthuse on March 24, 2016, 02:58:29 AM
I prepared a mono track video, can you test this and let us know how it went?
monotest.mkv 5.3 Mb (https://www.dropbox.com/s/bnfh172mmuhsx2e/monotest.mkv?dl=0) @ top right hand corner click download.

Not sure if I'm doing this correctly, what is monotest.mkv testing for?

Quote from: AQUAR on March 24, 2016, 10:02:55 AM
I still think the OP should select the 3 channel mixer option and see if it produced a result.

Didn't see an option for the 3 channel mixer in audio filters/configure?(Avidemux 2.6.7)

Quote from: AQUAR on March 24, 2016, 10:02:55 AM
Also the OP needs to select an audio recode option (in case its left at copy!).

It does work if you try.

Yep tried both AAC(Faac) and AAC(lav) etc..., for the audio output.


If it's of any help, here is the file info:

(Play Information Tab in PotPlayer)

[Video Information]
Video Codec:AVC1 - FFmpeg Decoder(h264)
Input type:AVC1(24 bits)
Input size:1280 x 720(1.78:1)
Output type:NV12(12 bits)
Output Size:1280 x 720(1.78:1)
Frame Rate:29.97
BitRate: Unknown

[Audio Information]
Audio Codec:AAC(0xaac0) - FFmpeg Decoder(aac)
Sample rate:48000 ->48000 samples / sec
Bit rate:16 ->16 bits / sample
Channels:2 ->2 channels
Bitrate: 192 kbps

(File Information Tab in PotPlayer)

  General
    Format : MPEG-4
    Format profile : Base Media
    Codec ID : isom
    File size : 475 MiB
    Duration : 15mn 34s
    Overall bit rate mode : Variable
    Overall bit rate : 4 260 Kbps
    Writing application : Lavf54.63.104
  Video #1
    ID : 1
    Format : AVC
    Format/Info : Advanced Video Codec
    Format profile : Main@L3.2
    Format settings, CABAC : Yes
    Format settings, ReFrames : 3 frames
    Format settings, GOP : M=4, N=15
    Codec ID : avc1
    Codec ID/Info : Advanced Video Coding
    Duration : 15mn 34s
    Bit rate mode : Variable
    Bit rate : 4 059 Kbps
    Maximum bit rate : 6 000 Kbps
    Width : 1 280 pixels
    Height : 720 pixels
    Display aspect ratio : 16:9
    Frame rate mode : Variable
    Frame rate : 29.970 fps
    Minimum frame rate : 14.986 fps
    Maximum frame rate : 29.971 fps
    Standard : NTSC
    Color space : YUV
    Chroma subsampling : 4:2:0
    Bit depth : 8 bits
    Scan type : Progressive
    Bits/(Pixel*Frame) : 0.147
    Stream size : 452 MiB (95%)
  Audio #2
    ID : 2
    Format : AAC
    Format/Info : Advanced Audio Codec
    Format profile : LC
    Codec ID : 40
    Duration : 15mn 34s
    Bit rate mode : Constant
    Bit rate : 192 Kbps
    Channel count : 2 channels
    Channel positions : Front: L R
    Sampling rate : 48.0 KHz
    Compression mode : Lossy
    Stream size : 21.4 MiB (5%)
    Language : unk
Title: Re: Sound In Only One Speaker
Post by: Jan Gruuthuse on March 27, 2016, 07:09:01 AM
Quote from: jdavidemux on March 26, 2016, 07:35:25 PM
Unable to upload due to copyright issues.
Upload a similar video with the audio issue and without copyright issues .

Quote from: jdavidemux
Not sure if I'm doing this correctly, what is monotest.mkv testing for?
It's a small video with mono audio track, what speaker(s) do produce sound?

ps:- Use a free dropbox account, mega or similar webservice (free public access, without registration to download your uploaded video) thank you.[/quote]
Title: Re: Sound In Only One Speaker
Post by: AQUAR on March 27, 2016, 09:58:13 AM
3 channel = remix box is ticked and mixer set to stereo + centre.
Title: Re: Sound In Only One Speaker
Post by: jdavidemux on March 29, 2016, 03:24:59 AM
Quote from: Jan Gruuthuse on March 27, 2016, 07:09:01 AM
Upload a similar video with the audio issue and without copyright issues .

I only have one video file with an audio issue.

Quote from: Jan Gruuthuse on March 27, 2016, 07:09:01 AM
It's a small video with mono audio track, what speaker(s) do produce sound?

Both the left and right speakers produce sound for the monotest video.

Quote from: AQUAR on March 27, 2016, 09:58:13 AM
3 channel = remix box is ticked and mixer set to stereo + centre.

Yep, tried that option along with the other remix options with no luck.


Question about Avidemux:

In the media player I'm currently using(PotPlayer formaly known as KMPlayer), I found a option called "Swap Stereo Channels" which when clicked(for this video) switches the sound from the left speaker to the right speaker.

What I'm wondering is, is it possible(with Avidemux) to record the audio from the left speaker, switch the sound to the other speaker(with PotPlayer), record the audio from that speaker, and then somehow combine the two tracks into one track and then add the final combined audio track to the video?
Title: Re: Sound In Only One Speaker
Post by: Jan Gruuthuse on March 29, 2016, 10:18:03 AM
Seems like you have stereo track with audio on one channel only?

quick fix:
load video and save video with mono track, close video
load video with mono track and save video with stereo track

1) Load original video
Keep Output Format same as original video, with
Video Output:
[copy]

Audio Output
[AAC (lav)]
Filters -> Mixer:
[v] Remix
Mixer [Mono]

save video now as "mono" and close loaded video
--------------------------------------------------------

2)  Load saved video "mono"
Video Output:
[copy]

Audio Output
[AAC (lav)]
Filters -> Mixer:
[v] Remix
Mixer [Stereo]

save video now as "stereo" and close loaded video
--------------------------------------------------------

you should now have video "stereo" with stereo track and audio on 2 channels (still mono)
Title: Re: Sound In Only One Speaker
Post by: jdavidemux on March 30, 2016, 01:45:12 AM
Quote from: Jan Gruuthuse on March 29, 2016, 10:18:03 AM
Seems like you have stereo track with audio on one channel only?

quick fix:
load video and save video with mono track, close video
load video with mono track and save video with stereo track

1) Load original video
Keep Output Format same as original video, with
Video Output:
[copy]

Audio Output
[AAC (lav)]
Filters -> Mixer:
[v] Remix
Mixer [Mono]

save video now as "mono" and close loaded video
--------------------------------------------------------

2)  Load saved video "mono"
Video Output:
[copy]

Audio Output
[AAC (lav)]
Filters -> Mixer:
[v] Remix
Mixer [Stereo]

save video now as "stereo" and close loaded video
--------------------------------------------------------

you should now have video "stereo" with stereo track and audio on 2 channels (still mono)


That worked. Appreciate the organized instructions as well. The video is now producing sound from both speakers.
Thanks Jan. And thanks to AQUAR for the additional helpful info.
Title: Re: Sound In Only One Speaker
Post by: AQUAR on March 30, 2016, 09:02:16 AM
I think xpmule also contributed to the eventual solution.

Title: Re: Sound In Only One Speaker
Post by: jdavidemux on March 30, 2016, 07:58:26 PM
Quote from: AQUAR on March 30, 2016, 09:02:16 AM
I think xpmule also contributed to the eventual solution.

Yes, and thanks to xpmule.