Link to home
Start Free TrialLog in
Avatar of butterhook
butterhookFlag for United Kingdom of Great Britain and Northern Ireland

asked on

HandbrakeCli stereo output on movie file

Hi there

I have a requirement to output stereo in an H.264 file from a stereo audio source.

The original move has 2 channels of audio, and the output seems to be being made into mono by default, regardless of any switches I add to the parameters.

Here is my current command:

"C:\Program Files\Handbrake\handbrakecli.exe" -i "C:\Transcoding\Input\ORIGINAL INPUT FILE.mov" -o "C:\Transcoding\Output\ORIGINAL INPUT FILE.mp4" -e x264 -b 128 -B 128 --width 352 --height 288 -a 1,2 --mixdown stereo --drc 2.0

But it's still coming out in mono - does anyone have any ideas? Thanks in advance!

Charlie

Avatar of Merete
Merete
Flag of Australia image

H.264 file  may use AC3 butterhook, stereo  2 channel would not be appropiate  I have no experience with hand drake
but can this assist you
https://trac.handbrake.fr/wiki/CLIGuide

Hello butterhook,

If you want to get stereo sound try this successfull cod that I check and get stereo MP4 file:

"C:\Program Files\Handbrake\handbrakecli.exe" -i "C:\Program Files\Handbrake\sample_iTunes.mov" -o "C:\Program Files\Handbrake\sample_iTunes.mp4" -e x264 -b 360 -B 128 -w 640 -l 480 -a 1 -6 stereo --drc 2.0

The source MOV file you can freely download from Apple's site:

sample_iTunes.mov


The converted sample_iTunes.mp4 file has next characteristics:

In VLC:

User generated image
MediaInfo information:

General
Complete name                   : C:\Program Files\Handbrake\sample_iTunes.mp4
Format                                : MPEG-4
Format profile                     : Base Media / Version 2
Codec ID                            : mp42
File size                              : 5.08 MiB
Duration                              : 1mn 25s
Overall bit rate                    : 498 Kbps
Encoded date                     : UTC 2011-12-01 22:52:59
Tagged date                       : UTC 2011-12-01 22:53:15
Writing application              : HandBrake 0.9.5 2011010300

Video
ID                                               : 1
Format                                     : AVC
Format/Info                               : Advanced Video Codec
Format profile                           : High@L2.2
Format settings, CABAC           : Yes
Format settings, ReFrames        : 4 frames
Codec ID                             : avc1
Codec ID/Info                    : Advanced Video Coding
Duration                             : 1mn 25s
Bit rate mode                     : Variable
Bit rate                               : 404 Kbps
Nominal bit rate                  : 360 Kbps
Width                                  : 640 pixels
Height                                 : 480 pixels
Display aspect ratio           : 4:3
Frame rate mode                : Constant
Frame rate                         : 10.000 fps
Color space                       : YUV
Chroma subsampling         : 4:2:0
Bit depth                            : 8 bits
Scan type                         : Progressive
Bits/(Pixel*Frame)              : 0.132
Stream size                       : 4.12 MiB (81%)
Writing library                    : x264 core 112



Audio
ID                                      : 2
Format                              : AAC
Format/Info                       : Advanced Audio Codec
Format version                 : Version 4
Format profile                   : LC
Format settings, SBR       : No
Format settings, PS           : Yes
Codec ID                            : 40
Duration                             : 1mn 25s
Bit rate mode                    : Variable
Bit rate                              : 91.1 Kbps
Maximum bit rate               : 127 Kbps
Channel(s)                       : 2 channels
Channel positions              : Front: L R
Sampling rate                    : 32.0 KHz
Stream size                      : 952 KiB (18%)
Language                         : English
Encoded date                    : UTC 2011-12-01 22:52:59
Tagged date                      : UTC 2011-12-01 22:53:14




Hello butterhook,

My wish is that you come to visit this post and study these answers for your question, and then say does it work on your PC.

regards

Nrisimha
Avatar of butterhook

ASKER

Hi there
We found another way to do this not using Handbrake - using FFMpeg. Thank you for your input though!


Hi butterhook,

I didn't know that you started to use FFmpeg.

So, the question is the same - HandbrakeCli stereo output on movie file?

I put here the solution that work 100%.

So, I would like to know what is with a points that you have offered and did you forget about that fact?


best regards

Nrisimha
ASKER CERTIFIED SOLUTION
Avatar of butterhook
butterhook
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
We had to fix it not using Handbrake