Skip to content

Add PCM passthru and encoding#7623

Open
Nomis101 wants to merge 2 commits intoHandBrake:masterfrom
Nomis101:pcm
Open

Add PCM passthru and encoding#7623
Nomis101 wants to merge 2 commits intoHandBrake:masterfrom
Nomis101:pcm

Conversation

@Nomis101
Copy link
Contributor

@Nomis101 Nomis101 commented Feb 4, 2026

Description of Change:
Add PCM passthru and PCM encoding for all 3 platforms. It misses a checkbox for PCM passthru in AudioDefaults.xib‎ because I didn't know where to put it. This will fix #950.
I have tested PCM passthru with a video file of my Sony camera (pcm_s24be audio stream) and encoding to 16-bit and 24-bit PCM with different samples.

Tested on:

  • Windows 10+ (via MinGW)
  • macOS 10.13+
  • Ubuntu Linux

@galad87
Copy link
Contributor

galad87 commented Feb 5, 2026

The bitrate control should be disable like for FLAC and ALAC.

It looks like something is wrong when muxing to MP4, QuickTime Player ignores the track:

user@Mac ~ % avmediainfo bbb_sunflower_1080p_30fps_normal.mp4 
Asset: bbb_sunflower_1080p_30fps_normal.mp4
Duration: 84.767 seconds (84767/1000)
Track count: 1
Track 1: Video 'vide'
	Enabled: Yes
	Format Description 1:
		Format: HEVC 'hvc1'
		Dimensions: 1920 x 1080
		Encoded Pixels: 1920 x 1080
		Presentation Dimensions: 1920 x 1080
	System support for decoding this track: Yes
	Data size: 20755062 bytes
	Media time scale: 90000
	Duration: 84.767 seconds
	Estimated data rate: 1958.795 kbit/s
	Nominal frame rate: 30.000 fps
	Minimum sample duration: 3000/90000 seconds
	Frame reordering required
	1 segment present
	Index   Media Start  Media Duration   Track Start  Track Duration 
	    1  00:00:00.067    00:01:24.767  00:00:00.000    00:01:24.767

Movie analyzed with 3 errors.
Error in Track ID 2 'soun' atom 'minf'. ASBD mBytesPerPacket 2 expected to match common sample size 2048 from the sample table. Atom: 'minf' Offset: 29058961
Error in Track ID 2 'soun' ASBD mBytesPerPacket does not match the common sample size.
Error in Track ID 2 'soun' Omitting a track that encountered an error during atom parsing.

Either libavformat is setting some wrong values, or Apple software can't read PCM stored this way.

@Nomis101
Copy link
Contributor Author

Nomis101 commented Feb 5, 2026

I will investigate.

@Nomis101
Copy link
Contributor Author

Nomis101 commented Feb 5, 2026

Quicktime should be working now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Development

Successfully merging this pull request may close these issues.

Feature request: PCM audio output (Inc Passthrough)

3 participants