Skip to content

Audio Bitrate Ignored when Audio Copy Mask is Used #462

@V1de0Lovr

Description

@V1de0Lovr

Please describe the problem or feature request in detail:

Using --audio-copy-mask causes AAC audio bitrate to be ignored and forced to 512

What are the steps to reproduce this problem:

In Handbrake CLI use options -a 1 --aencoder copy --audio-copy-mask aac,mp3 --audio-fallback av_aac --ab 192
Workaround using --aencoder copy:aac (but no MP3 pass thru)

What version of HandBrake you are running:

Nightly

What operating system and version and you running (e.g. OSX 10.11, Windows 7, Ubuntu 14):

Windows 7 64-bit

Was there any error message or error dialog, if so please detail or provide screenshots:

  • encoder: AAC (libavcodec)
  • bitrate: 512 kbps, samplerate: 48000 Hz

Please provide the full activity log for the encode or scan attempt. You may attach the log as a file,

[15:12:27] thread 28a88b0 started ("libhb")
HandBrake 20161228143413-ae9a194-master (2016122901) - MinGW x86_64 - https://handbrake.fr
4 CPUs detected
Opening Test.ts...
[15:12:27] CPU: Intel(R) Core(TM) i5-4310M CPU @ 2.70GHz
[15:12:27]  - Intel microarchitecture Haswell
[15:12:27]  - logical processor count: 4
[15:12:27] OpenCL device #1: Intel(R) Corporation Intel(R) HD Graphics 4600
[15:12:27]  - OpenCL version: 1.2
[15:12:27]  - driver version: 10.18.14.4432
[15:12:27]  - device type:    GPU
[15:12:27]  - supported:      YES
[15:12:27] Intel Quick Sync Video support: yes
[15:12:27]  - Intel Media SDK hardware: API 1.17 (minimum: 1.3)
[15:12:27]  - H.264 encoder: yes
[15:12:27]     - preferred implementation: hardware (any)
[15:12:27]     - capabilities (hardware):  breftype icq+la+i+downs vsinfo opt1 opt2+mbbrc+extbrc+trellis+ib_adapt+nmpsl
ce
[15:12:27]  - H.265 encoder: no
[15:12:27] hb_scan: path=Test.ts, title_index=1
udfread ERROR: ECMA 167 Volume Recognition failed
src/libbluray/disc/disc.c:274: failed opening UDF image Test.ts
src/libbluray/disc/disc.c:352: error opening file BDMV\index.bdmv
src/libbluray/disc/disc.c:352: error opening file BDMV\BACKUP\index.bdmv
[15:12:27] bd: not a bd - trying as a stream/file instead
libdvdnav: Using dvdnav version 5.0.1
libdvdread: Encrypted DVD support unavailable.
libdvdread:DVDOpenFileUDF:UDFFindFile /VIDEO_TS/VIDEO_TS.IFO failed
libdvdread:DVDOpenFileUDF:UDFFindFile /VIDEO_TS/VIDEO_TS.BUP failed
libdvdread: Can't open file VIDEO_TS.IFO.
libdvdnav: vm: failed to read VIDEO_TS.IFO
[15:12:27] dvd: not a dvd - trying as a stream/file instead
[15:12:27] file is MPEG Transport Stream with 188 byte packets offset 0 bytes
[15:12:27] Found the following PIDS
[15:12:27]     Video PIDS :
[15:12:27]       0x1011 type MPEG2 (0x2)
[15:12:27]     Audio PIDS :
[15:12:27]       0x1100 type AC3 (0x81)
[15:12:27]     Subtitle PIDS :
[15:12:27]     Other PIDS :
[15:12:27]       0x1001 type Unknown (0xff) (PCR)
[15:12:27] stream id 0x1100 (type 0x81 substream 0x0) audio 0x1100
Scanning title 1 of 1, 0.00 %[15:12:28] scan: decoding previews for title 1
[15:12:28] file is MPEG Transport Stream with 188 byte packets offset 0 bytes
[15:12:28] scan: audio 0x1100: ac3, rate=48000Hz, bitrate=384000 Unknown (AC3) (2.0 ch)
Scanning title 1 of 1, preview 8, 80.00 %[15:12:29] stream: 13 good frames, 0 errors (0%)
[15:12:29] scan: 10 previews, 1920x1080, 29.970 fps, autocrop = 6/0/272/100, aspect 16:9, PAR 1:1
[15:12:29] libhb: scan thread found 1 valid title(s)
+ Using preset: CLI Default
+ title 1:
  + stream: Test.ts
  + duration: 00:02:17
  + size: 1920x1080, pixel aspect: 1/1, display aspect: 1.78, 29.970 fps
  + autocrop: 6/0/272/100
  + support opencl: yes
  + chapters:
    + 1: cells 0->0, 0 blocks, duration 00:02:17
  + audio tracks:
    + 1, Unknown (AC3) (2.0 ch) (iso639-2: und), 48000Hz, 384000bps
  + subtitle tracks:
    + 1, Closed Captions (iso639-2: und) (Text)(CC)
[15:12:29] 1 job(s) to process
[15:12:29] json job:
{
    "Audio": {
        "AudioList": [
            {
                "Bitrate": 192,
                "Encoder": 1125984256,
                "Track": 0
            }
        ],
        "CopyMask": [
            "copy:aac",
            "copy:mp3"
        ],
        "FallbackEncoder": "av_aac"
    },
    "Destination": {
        "ChapterList": [
            {
                "Name": "Chapter 1"
            }
        ],
        "ChapterMarkers": false,
        "File": "Test.mp4",
        "Mp4Options": {
            "IpodAtom": false,
            "Mp4Optimize": false
        },
        "Mux": "m4v"
    },
    "Filters": {
        "FilterList": [
            {
                "ID": 4,
                "Settings": {
                    "mode": "7"
                }
            },
            {
                "ID": 6,
                "Settings": {
                    "mode": 1
                }
            },
            {
                "ID": 11,
                "Settings": {
                    "crop-bottom": 0,
                    "crop-left": 0,
                    "crop-right": 0,
                    "crop-top": 0,
                    "height": 1080,
                    "width": 1920
                }
            }
        ]
    },
    "Metadata": {},
    "PAR": {
        "Den": 1,
        "Num": 1
    },
    "SequenceID": 0,
    "Source": {
        "Angle": 0,
        "Path": "Test.ts",
        "Range": {
            "End": 1,
            "Start": 1,
            "Type": "chapter"
        },
        "Title": 1
    },
    "Subtitle": {
        "Search": {
            "Burn": true,
            "Default": false,
            "Enable": false,
            "Forced": false
        },
        "SubtitleList": []
    },
    "Video": {
        "ColorMatrixCode": 0,
        "Encoder": "x264",
        "Level": "4.0",
        "OpenCL": false,
        "Options": "",
        "Preset": "veryfast",
        "Profile": "main",
        "QSV": {
            "AsyncDepth": 4,
            "Decode": false
        },
        "Quality": 23.0,
        "Tune": "",
        "Turbo": false,
        "TwoPass": false
    }
}
[15:12:29] starting job
[15:12:29] yadif thread started for segment 2
[15:12:29] Auto Passthru: allowed codecs are AAC, MP3
[15:12:29] yadif thread started for segment 1
[15:12:29] yadif thread started for segment 3
[15:12:29] yadif thread started for segment 0
[15:12:29] Auto Passthru: fallback is AAC (avcodec)
[15:12:29] Auto Passthru: passthru not possible for track 1, using fallback
[15:12:29] job configuration:
[15:12:29]  * source
[15:12:29]    + Test.ts
[15:12:29]    + title 1, chapter(s) 1 to 1
[15:12:29]  * destination
[15:12:29]    + Test.mp4
[15:12:29]    + container: MPEG-4 (libavformat)
[15:12:29]  * video track
[15:12:29]    + decoder: mpeg2video
[15:12:29]      + bitrate 64000 kbps
[15:12:29]    + filters
[15:12:29]      + Decomb (mode=7)
[15:12:29]      + Framerate Shaper (mode=1)
[15:12:29]        + frame rate: 29.970 fps -> constant 29.970 fps
[15:12:29]      + Crop and Scale (width=1920:height=1080:crop-top=0:crop-bottom=0:crop-left=0:crop-right=0)
[15:12:29]        + source: 1920 * 1080, crop (0/0/0/0): 1920 * 1080, scale: 1920 * 1080
[15:12:29]    + Output geometry
[15:12:29]      + storage dimensions: 1920 x 1080
[15:12:29]      + pixel aspect ratio: 1 : 1
[15:12:29]      + display dimensions: 1920 x 1080
[15:12:29]    + encoder: H.264 (libx264)
[15:12:29]      + preset:  veryfast
[15:12:29]      + profile: main
[15:12:29]      + level:   4.0
[15:12:29]      + quality: 23.00 (RF)
[15:12:29]  * audio track 1
[15:12:29]    + decoder: Unknown (AC3) (2.0 ch) (track 1, id 0x1100)
[15:12:29]      + bitrate: 384 kbps, samplerate: 48000 Hz
[15:12:29]    + mixdown: Stereo
[15:12:29]    + encoder: AAC (libavcodec)
[15:12:29]      + bitrate: 512 kbps, samplerate: 48000 Hz
[15:12:29] file is MPEG Transport Stream with 188 byte packets offset 0 bytes
[15:12:29] sync: expecting 4116 video frames
[15:12:29] encx264: min-keyint: 30, keyint: 300
[15:12:29] encx264: encoding at constant RF 23.000000
[15:12:29] encx264: unparsed options: mixed-refs=0:trellis=0:level=4.0:8x8dct=0:ref=1:vbv-maxrate=20000:weightp=1:vbv-b
fsize=25000:subme=2:rc-lookahead=10
x264 [info]: using SAR=1/1
x264 [info]: using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 AVX2 LZCNT BMI2
x264 [info]: profile Main, level 4.0
[15:12:29] sync: first pts video is 0
[15:12:29] sync: first pts audio 0x1100 is 0
Encoding: task 1 of 1, 98.62 % (18.31 fps, avg 18.78 fps, ETA 00h00m04s)[15:16:05] hb_ts_stream_decode - eof
[15:16:05] reader: done. 1 scr changes
Encoding: task 1 of 1, 99.34 % (21.66 fps, avg 18.82 fps, ETA 00h00m01s)[15:16:11] work: average encoding speed for job
is 18.822380 fps
Encoding: task 1 of 1, 99.34 % (21.66 fps, avg 18.82 fps, ETA 00h00m01s)[15:16:11] decomb: deinterlaced 4130 | blended
 | unfiltered 0 | total 4130
[15:16:11] vfr: 4130 frames output, 0 dropped and 0 duped for CFR/PFR
[15:16:11] vfr: lost time: 0 (0 frames)
[15:16:11] vfr: gained time: 0 (0 frames) (0 not accounted for)
[15:16:11] stream: 4131 good frames, 0 errors (0%)
[15:16:11] ac3-decoder done: 4278 frames, 0 decoder errors
[15:16:11] mpeg2video-decoder done: 4130 frames, 0 decoder errors
[15:16:11] sync: got 4130 frames, 4116 expected
[15:16:11] sync: framerate min 29.970 fps, max 29.970 fps, avg 29.970 fps
x264 [info]: frame I:17    Avg QP:17.45  size: 52648
x264 [info]: frame P:1124  Avg QP:23.63  size: 25224
x264 [info]: frame B:2989  Avg QP:25.12  size:  9438
x264 [info]: consecutive B-frames:  1.1%  3.8% 10.6% 84.6%
x264 [info]: mb I  I16..4: 70.4%  0.0% 29.6%
x264 [info]: mb P  I16..4: 23.5%  0.0%  2.3%  P16..4: 25.3% 11.3%  3.5%  0.0%  0.0%    skip:34.0%
x264 [info]: mb B  I16..4:  3.9%  0.0%  0.1%  B16..8: 17.2%  4.2%  0.2%  direct:12.2%  skip:62.2%  L0:43.1% L1:49.9% BI
 6.9%
x264 [info]: coded y,uvDC,uvAC intra: 14.4% 73.3% 6.0% inter: 4.5% 25.8% 0.1%
x264 [info]: i16 v,h,dc,p: 37% 31% 21% 11%
x264 [info]: i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 32% 21% 30%  3%  3%  3%  3%  3%  2%
x264 [info]: i8c dc,h,v,p: 45% 24% 22%  9%
x264 [info]: Weighted P-Frames: Y:0.2% UV:0.1%
x264 [info]: kb/s:3335.53
Encoding: task 1 of 1, 99.34 % (21.66 fps, avg 18.82 fps, ETA 00h00m01s)[15:16:11] mux: track 0, 4130 frames, 57455574
ytes, 3334.68 kbps, fifo 1024
[15:16:11] mux: track 1, 6417 frames, 8767555 bytes, 508.86 kbps, fifo 2048
[15:16:11] libhb: work result = 0

Encode done!

HandBrake has exited. ```

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions