Problem with audio stream

General questions or discussion about HandBrake, Video and/or audio transcoding, trends etc.
Post Reply
drb
Posts: 5
Joined: Sun Jul 21, 2019 6:53 pm

Problem with audio stream

Post by drb »

Description of problem or question:

I have a number of videos taken several years ago with a Canon PowerShot S100. These videos have significant sentimental value. I haven't looked at them for quite some time now, but have recently started to do so in order to select a few for our home website, using Handbrake to convert them to a convenient size and format. Much to my surprise, the audio stream in all of them is significantly screwed up. For each file, MediaInfo tells me the audio stream is: English, 1 536 kb/s, 48.0 kHz, 16 bits, 2 channels, PCM (Little / Signed).

This isn't really a Handbrake problem, I expect, but I'm hoping some kind person will take pity on my and give me some suggestions.

No matter what I play the files in, whether HandBrake, VLC, Windows Media Player, etc, the video stream is fine but the audio stream is, well, it's hard to describe. I cannot exactly say there's no audio, because every couple of seconds there's a very faint buzzing noise.

The files were created almost six years ago, and I have to presume they were fine at the time (I honestly cannot remember, but I can't imagine I would have kept them if they weren't). If it were just the one file, I might chalk it up to having had a finger over the microphone at the time of recording - but it's not.

I thought maybe it's a codec thing, but k-lite didn't make a difference at all. Using Handbrake to convert the audio doesn't seem to result in any error messages in the log, which seems to indicate that it thinks the audio is just fine.

Does this ring any bells for anyone? I'm all out of ideas.

Steps to reproduce the problem (If Applicable):




HandBrake version (e.g., 1.0.0):

1.2.2


Operating system and version (e.g., Ubuntu 16.04 LTS, macOS 10.13 High Sierra, Windows 10 Creators Update):

Win10


HandBrake Activity Log ***required*** (see How-to get an activity log)

Code: Select all

Please replace this text with the contents of your log file between the two code tags - OR -  provide a pastebin URL in place of these 3 lines.
mduell
Veteran User
Posts: 8187
Joined: Sat Apr 21, 2007 8:54 pm

Re: Problem with audio stream

Post by mduell »

So yea, that encoding log...
drb
Posts: 5
Joined: Sun Jul 21, 2019 6:53 pm

Re: Problem with audio stream

Post by drb »

Below - but I'm not sure how useful it will be. The problem manifests itself *before* encoding.

HandBrake 1.2.2 (2019022300)
OS: Microsoft Windows NT 10.0.17763.0
CPU: Intel(R) Core(TM) i7-4790 CPU @ 3.60GHz
Ram: 32652 MB,
GPU Information:
Intel(R) HD Graphics 4600 - 20.19.15.4531
AMD Radeon (TM) R7 370 Series - 22.19.677.257
Screen: 1920x1080
Temp Dir: C:\Users\xxx\AppData\Local\Temp\
Install Dir: C:\Program Files\HandBrake
Data Dir: C:\Users\xxx\AppData\Roaming\HandBrake

-------------------------------------------


# Starting Encode ...

[05:14:57] hb_init: starting libhb thread
[05:14:57] 1 job(s) to process
[05:14:57] json job:
{
"Audio": {
"AudioList": [
{
"Bitrate": 160,
"DRC": 0.0,
"Encoder": "av_aac",
"Gain": 0.0,
"Mixdown": 4,
"NormalizeMixLevel": false,
"Samplerate": 0,
"Track": 0,
"DitherMethod": 0
}
],
"CopyMask": [
"copy:aac",
"copy:ac3",
"copy:dtshd",
"copy:dts",
"copy:eac3",
"copy:flac",
"copy:mp3",
"copy:truehd"
],
"FallbackEncoder": "ac3"
},
"Destination": {
"ChapterList": [
{
"Name": "Chapter 1"
}
],
"ChapterMarkers": true,
"AlignAVStart": true,
"File": "D:\\temp\\Mvi 2177-1.m4v",
"Mp4Options": {
"IpodAtom": false,
"Mp4Optimize": false
},
"Mux": "mp4"
},
"Filters": {
"FilterList": [
{
"ID": 4,
"Settings": {
"mode": "7"
}
},
{
"ID": 3,
"Settings": {
"block-height": "16",
"block-thresh": "40",
"block-width": "16",
"filter-mode": "2",
"mode": "3",
"motion-thresh": "1",
"spatial-metric": "2",
"spatial-thresh": "1"
}
},
{
"ID": 11,
"Settings": {
"crop-bottom": "0",
"crop-left": "0",
"crop-right": "0",
"crop-top": "0",
"height": "1080",
"width": "1920"
}
},
{
"ID": 6,
"Settings": {
"mode": "2",
"rate": "27000000/900000"
}
}
]
},
"PAR": {
"Num": 1,
"Den": 1
},
"Metadata": {},
"SequenceID": 0,
"Source": {
"Angle": 1,
"Range": {
"Type": "chapter",
"Start": 1,
"End": 1
},
"Title": 1,
"Path": "D:\\xxx\\MVI_2177.MOV"
},
"Subtitle": {
"Search": {
"Burn": true,
"Default": false,
"Enable": true,
"Forced": true
},
"SubtitleList": []
},
"Video": {
"Encoder": "x264",
"Level": "4.0",
"TwoPass": false,
"Turbo": false,
"ColorMatrixCode": 0,
"Options": "",
"Preset": "fast",
"Profile": "main",
"Quality": 22.0,
"QSV": {
"Decode": false,
"AsyncDepth": 0
}
}
}
[05:14:57] CPU: Intel(R) Core(TM) i7-4790 CPU @ 3.60GHz
[05:14:57] - Intel microarchitecture Haswell
[05:14:57] - logical processor count: 8
[05:14:57] Intel Quick Sync Video support: yes
[05:14:57] - Intel Media SDK hardware: API 1.19 (minimum: 1.3)
[05:14:57] - H.264 encoder: yes
[05:14:57] - preferred implementation: hardware (any) via D3D11
[05:14:57] - capabilities (hardware): breftype icq+la+i+downs vsinfo opt1 opt2+mbbrc+extbrc+trellis+ib_adapt+nmpslice
[05:14:57] - H.265 encoder: no
[05:14:57] hb_scan: path=D:\MVI_2177.MOV, title_index=1
udfread ERROR: ECMA 167 Volume Recognition failed
src/libbluray/disc/disc.c:323: failed opening UDF image D:\MVI_2177.MOV
src/libbluray/disc/disc.c:424: error opening file BDMV\index.bdmv
src/libbluray/disc/disc.c:424: error opening file BDMV\BACKUP\index.bdmv
[05:14:57] bd: not a bd - trying as a stream/file instead
libdvdnav: Using dvdnav version 6.0.0
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
[05:14:57] dvd: not a dvd - trying as a stream/file instead
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'D:\MVI_2177.MOV':
Metadata:
major_brand : qt
minor_version : 537331968
compatible_brands: qt CAEP
com.apple.quicktime.make: Canon
com.apple.quicktime.model: Canon PowerShot S100
com.apple.quicktime.rating.user: 0.000000
creation_time : 2013-09-06T09:59:56.000000Z
Duration: 00:00:47.80, start: 0.000000, bitrate: 35327 kb/s
Stream #0:0(eng): Video: h264 (Constrained Baseline) (avc1 / 0x31637661), yuvj420p(pc, bt709), 1920x1080, 33774 kb/s, 23.98 fps, 23.98 tbr, 24k tbn, 48k tbc (default)
Metadata:
creation_time : 2013-09-06T09:59:56.000000Z
Stream #0:1(eng): Audio: pcm_s16le (sowt / 0x74776F73), 48000 Hz, stereo, s16, 1536 kb/s (default)
Metadata:
creation_time : 2013-09-06T09:59:56.000000Z
[05:14:57] scan: decoding previews for title 1
[05:14:57] scan: audio 0x1: pcm_s16le, rate=48000Hz, bitrate=1536000 English (pcm_s16le) (2.0 ch)
[05:14:57] scan: 10 previews, 1920x1080, 23.976 fps, autocrop = 0/0/0/0, aspect 16:9, PAR 1:1
[05:14:57] scan: supported video decoders: avcodec qsv
[05:14:57] libhb: scan thread found 1 valid title(s)
[05:14:57] Skipping subtitle scan. No suitable subtitle tracks.
[05:14:57] starting job
[05:14:57] decomb filter thread started for segment 0
[05:14:57] decomb filter thread started for segment 1
[05:14:57] decomb filter thread started for segment 6
[05:14:57] decomb check thread started for segment 0
[05:14:57] decomb check thread started for segment 2
[05:14:57] decomb filter thread started for segment 5
[05:14:57] decomb check thread started for segment 7
[05:14:57] decomb filter thread started for segment 7
[05:14:57] mask filter thread started for segment 3
[05:14:57] decomb check thread started for segment 1
[05:14:57] decomb filter thread started for segment 4
[05:14:57] mask erode thread started for segment 1
[05:14:57] decomb check thread started for segment 4
[05:14:57] decomb check thread started for segment 5
[05:14:57] decomb check thread started for segment 6
[05:14:57] decomb filter thread started for segment 2
[05:14:57] mask dilate thread started for segment 4
[05:14:57] mask filter thread started for segment 1
[05:14:57] mask filter thread started for segment 2
[05:14:57] decomb filter thread started for segment 3
[05:14:57] mask filter thread started for segment 4
[05:14:57] mask filter thread started for segment 5
[05:14:57] mask filter thread started for segment 6
[05:14:57] work: only 1 chapter, disabling chapter markers
[05:14:57] mask filter thread started for segment 7
[05:14:57] job configuration:
[05:14:57] * source
[05:14:57] + D:\MVI_2177.MOV
[05:14:57] + title 1, chapter(s) 1 to 1
[05:14:57] + container: mov,mp4,m4a,3gp,3g2,mj2
[05:14:57] mask erode thread started for segment 0
[05:14:57] + data rate: 35327 kbps
[05:14:57] * destination
[05:14:57] + D:\temp\Mvi 2177-1.m4v
[05:14:57] + container: MPEG-4 (libavformat)
[05:14:57] + align initial A/V stream timestamps
[05:14:57] * video track
[05:14:57] + decoder: h264
[05:14:57] + bitrate 33774 kbps
[05:14:57] + filters
[05:14:57] decomb check thread started for segment 3
[05:14:57] + Comb Detect (mode=3:spatial-metric=2:motion-thresh=1:spatial-thresh=1:filter-mode=2:block-thresh=40:block-width=16:block-height=16)
[05:14:57] mask erode thread started for segment 2
[05:14:57] + Decomb (mode=39)
[05:14:57] + Framerate Shaper (mode=2:rate=27000000/900000)
[05:14:57] mask erode thread started for segment 3
[05:14:57] + frame rate: 23.976 fps -> peak rate limited to 30.000 fps
[05:14:57] + Crop and Scale (width=1920:height=1080:crop-top=0:crop-bottom=0:crop-left=0:crop-right=0)
[05:14:57] + source: 1920 * 1080, crop (0/0/0/0): 1920 * 1080, scale: 1920 * 1080
[05:14:57] + Output geometry
[05:14:57] + storage dimensions: 1920 x 1080
[05:14:57] + pixel aspect ratio: 1 : 1
[05:14:57] + display dimensions: 1920 x 1080
[05:14:57] mask erode thread started for segment 4
[05:14:57] + encoder: H.264 (libx264)
[05:14:57] + preset: fast
[05:14:57] + profile: main
[05:14:57] + level: 4.0
[05:14:57] + quality: 22.00 (RF)
[05:14:57] + color profile: 1-1-1
[05:14:57] * audio track 1
[05:14:57] + decoder: English (pcm_s16le) (2.0 ch) (track 1, id 0x1)
[05:14:57] + bitrate: 1536 kbps, samplerate: 48000 Hz
[05:14:57] + mixdown: Stereo
[05:14:57] + dither: none
[05:14:57] + encoder: AAC (libavcodec)
[05:14:57] + bitrate: 160 kbps, samplerate: 48000 Hz
[05:14:57] mask erode thread started for segment 5
[05:14:57] mask erode thread started for segment 6
[05:14:57] mask erode thread started for segment 7
[05:14:57] mask dilate thread started for segment 0
[05:14:57] mask dilate thread started for segment 1
[05:14:57] mask dilate thread started for segment 2
[05:14:57] mask dilate thread started for segment 3
[05:14:57] mask filter thread started for segment 0
[05:14:57] mask dilate thread started for segment 5
[05:14:57] mask dilate thread started for segment 6
[05:14:57] mask dilate thread started for segment 7
[05:14:57] yadif thread started for segment 0
[05:14:57] yadif thread started for segment 1
[05:14:57] yadif thread started for segment 2
[05:14:57] yadif thread started for segment 3
[05:14:57] yadif thread started for segment 4
[05:14:57] yadif thread started for segment 5
[05:14:57] yadif thread started for segment 6
[05:14:57] yadif thread started for segment 7
[05:14:57] sync: expecting 1145 video frames
[05:14:57] encx264: min-keyint: 24, keyint: 240
[05:14:57] encx264: encoding at constant RF 22.000000
[05:14:57] encx264: unparsed options: level=4.0:ref=2:8x8dct=0:weightp=1:subme=6:vbv-bufsize=25000:vbv-maxrate=20000:rc-lookahead=30
x264 [info]: using SAR=1/1
x264 [info]: using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2
x264 [info]: profile Main, level 4.0, 4:2:0, 8-bit
[05:14:57] sync: first pts video is 0
[05:14:57] sync: "Chapter 1" (1) at frame 1 time 0
[05:14:57] sync: first pts audio 0x1 is 0
[05:15:42] reader: done. 1 scr changes
[05:15:47] work: average encoding speed for job is 24.267138 fps
[05:15:48] comb detect: heavy 63 | light 247 | uncombed 836 | total 1146
[05:15:48] decomb: deinterlaced 63 | blended 247 | unfiltered 836 | total 1146
[05:15:48] vfr: 1146 frames output, 0 dropped and 0 duped for CFR/PFR
[05:15:48] vfr: lost time: 0 (0 frames)
[05:15:48] vfr: gained time: 0 (0 frames) (0 not accounted for)
[05:15:48] pcm_s16le-decoder done: 2292 frames, 0 decoder errors
[05:15:48] h264-decoder done: 1146 frames, 0 decoder errors
[05:15:48] sync: got 1146 frames, 1145 expected
[05:15:48] sync: framerate min 23.981 fps, max 23.981 fps, avg 23.976 fps
x264 [info]: frame I:6 Avg QP:20.26 size:183478
x264 [info]: frame P:336 Avg QP:23.23 size:108120
x264 [info]: frame B:804 Avg QP:25.38 size: 50982
x264 [info]: consecutive B-frames: 4.5% 3.1% 7.9% 84.5%
x264 [info]: mb I I16..4: 32.8% 0.0% 67.2%
x264 [info]: mb P I16..4: 18.6% 0.0% 26.5% P16..4: 26.5% 17.6% 8.3% 0.0% 0.0% skip: 2.5%
x264 [info]: mb B I16..4: 8.5% 0.0% 9.4% B16..8: 35.9% 15.3% 2.3% direct:15.5% skip:13.1% L0:41.5% L1:37.7% BI:20.8%
x264 [info]: coded y,uvDC,uvAC intra: 53.6% 63.6% 24.0% inter: 33.1% 39.6% 0.6%
x264 [info]: i16 v,h,dc,p: 30% 41% 19% 10%
x264 [info]: i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 20% 25% 14% 5% 8% 6% 12% 4% 6%
x264 [info]: i8c dc,h,v,p: 51% 25% 19% 6%
x264 [info]: Weighted P-Frames: Y:12.2% UV:4.2%
x264 [info]: ref P L0: 74.9% 25.1%
x264 [info]: ref B L0: 88.3% 11.7%
x264 [info]: ref B L1: 96.0% 4.0%
x264 [info]: kb/s:13125.05
[05:15:48] mux: track 0, 1146 frames, 78418191 bytes, 13113.56 kbps, fifo 256
[05:15:48] mux: track 1, 2241 frames, 956198 bytes, 159.90 kbps, fifo 1024
[05:15:48] libhb: work result = 0

# Encode Completed ...
User avatar
JohnAStebbins
HandBrake Team
Posts: 5712
Joined: Sat Feb 09, 2008 7:21 pm

Re: Problem with audio stream

Post by JohnAStebbins »

The only specs I can find for that camera say the audio is "Linear PCM Stereo". They don't tell us the bit depth, endian-ness, or samplerate. HandBrake thinks it 16 bit, little endian, 48khz which is pretty standard, but could also be the result of software falling back to defaults when something critical isn't being specified.

Have you checked to see if Canon supplies any software for the camera that can play or "export" the files to other formats? It's possible the audio isn't fully specified correctly in the file, but their software knows the "right" defaults.
Deleted User 11865

Re: Problem with audio stream

Post by Deleted User 11865 »

Also, maybe a short sample of the camera's output could help us figure it out (no guarantees though).
drb
Posts: 5
Joined: Sun Jul 21, 2019 6:53 pm

Re: Problem with audio stream

Post by drb »

I don't think there are any Canon-specific video playback utilities, but I'll have a look on their website. They still show the S100 series up there, but the only "processing" software I can see is DPP - and I don't think that does video.

Given that they're *.MOV files, I tried QuickTime. Same result.

How might I get a sample to someone? Dropbox link, perhaps?
drb
Posts: 5
Joined: Sun Jul 21, 2019 6:53 pm

Re: Problem with audio stream

Post by drb »

Just putting this back up at the top in case anybody can help.
rollin_eng
Veteran User
Posts: 4840
Joined: Wed May 04, 2011 11:06 pm

Re: Problem with audio stream

Post by rollin_eng »

Try putting a sample on Dropbox.
drb
Posts: 5
Joined: Sun Jul 21, 2019 6:53 pm

Re: Problem with audio stream

Post by drb »

So, new data point for consideration. Just spent some time going through my image library, which includes pictures and videos going back years. Focusing on the timeframe when I had the s100, I now have a strong suspicion that I may know what is happening, even if it makes no sense.

Some of the *.MOV files have companion *.THM files; audio for these files seems to play just fine. *.MOV files that do not have companion *.THM files seem to exhibit the problem playing audio (video plays just fine). I have no idea why some of the files have no corresponding *.THM files; maybe I googled to find out what they were (as I just did) and figured they were simply thumbnail files that could be deleted - but it's VERY odd that the ones that weren't deleted seem to have some bearing on whether or not the audio plays.

Getting late, so I'll have to dig around a bit more on this tomorrow - but I'm curious if this situation might ring a bell for anyone.
Post Reply