What is an optimal workflow on Mac for MPEG TS to M4V with trim/cut?

HandBrake for Mac support
Forum rules
An Activity Log is required for support requests. Please read How-to get an activity log? for details on how and why this should be provided.
Post Reply
gctwnl
Posts: 35
Joined: Sat Oct 23, 2010 4:36 pm

What is an optimal workflow on Mac for MPEG TS to M4V with trim/cut?

Post by gctwnl »

I have MPEG Transport Streams taken from a Human PVR that I can re-encode to M4V to play on my Apple TV. A typical HB log shows (when loading):

Code: Select all

[22:40:02] file is MPEG Transport Stream with 192 byte packets offset 4 bytes
[22:40:02] Found the following PIDS
[22:40:02]     Video PIDS : 
[22:40:02]       0x7d1 type H.264 (0x1b) (PCR)
[22:40:02]     Audio PIDS : 
[22:40:02]       0x7db type MPEG1 (0x3)
[22:40:02]       0x7dc type AC3 (0x81)
[22:40:02]     Subtitle PIDS : 
[22:40:02]     Other PIDS : 
[22:40:02]       0x835 type DVB Teletext (0x0)
[22:40:02]       0x836 type DVB Subtitling (0x0)
[22:40:02]       0x837 type DVB Subtitling (0x0)
[22:40:02] stream id 0x7db (type 0x3 substream 0x0) audio 0x7db
[22:40:02] stream id 0x7dc (type 0x81 substream 0x0) audio 0x7dc
[22:40:03] scan: decoding previews for title 1
[22:40:03] file is MPEG Transport Stream with 192 byte packets offset 4 bytes
[22:40:03] stream: error near frame 0: missing start code
[22:40:03] scan: audio 0x7db: mp2, rate=48000Hz, bitrate=200000 Nederlands (MPEG) (2.0 ch)
[22:40:03] scan: audio 0x7dc: ac3, rate=48000Hz, bitrate=384000 Nederlands (AC3) (5.1 ch)
[22:40:05] stream: 24 good frames, 0 errors (0%)
[22:40:05] scan: 10 previews, 1920x1080, 25.000 fps, autocrop = 0/0/0/0, aspect 16:9, PAR 1:1
[22:40:05] libhb: scan thread found 1 valid title(s)
[22:40:05] macgui: ScanCore scan done
This works fine. But I would like to remove parts from the video without re-encoding it.
- If I open the m4v in QuickTime 10, I can edit it, but it will save to .MOV and it will re-encode, with poor results
- I tried using DaVinci Resolve, but I was unable to get a workflow that worked, it's beyond my capabilities to understand
- It must be possible to tell HB at least to trim start/end, though I haven't found this in the GUI. Besides, I still need a way to (preferably exactly) select to.from where to trim.

Is there a workflow (using HB and other tools) that will let me do this in a good way?

I am running HB 1.0.7 on macOS Sierra 10.12.4

Is there any workflow that lets me do the trimming and snipping from the video between the MPEG TS start and the M4V result that doesn't give me a re-encode?
mduell
Veteran User
Posts: 8198
Joined: Sat Apr 21, 2007 8:54 pm

Re: What is an optimal workflow on Mac for MPEG TS to M4V with trim/cut?

Post by mduell »

Start/end trimming is in the GUI if you change the "Chapters" dropdown to seconds or time or whatever it's called these days.

Best choice for TS trimming/snipping and fixing TS problems is VideoReDo, but I think it's Windows only.
Post Reply