Describe your workflow...

Random chit-chat and anything that doesn't belong elsewhere
Post Reply
PluueeR
Posts: 39
Joined: Wed Sep 03, 2008 9:06 am

Describe your workflow...

Post by PluueeR »

I'm in the progress of converting my DVD collection to h.264 for use with my Apple TV and iPod Classic. In the past with Handbrake I sometimes had problems on some DVD's with audio frames and video frames being dropped. I'm the kind of person who thinks this is very annoying and so started to find a way to deal with this (even bought a Turbo.264). The workflow I now have is as follows:

- Demux the DVD with PgcDemux
- Mux the .ac3 and .m2v file to a .ts file using MpegStreamClip
- User Handbrake to convert to h.264
- Use MetaX to add meta data
- Add subs with either mp4box or subler

This way I almost never got errors in Handbrake's Activity Log about audio or video frames being dropped. However today I discovered that one of my James Bond movies, Moonraker, developed a small glitch in one of the scenes (even though it had a clear Activity Log in Handbrake). Done the job again and this time the glitch wasn't there (checked both outputs on Mac, Apple TV and iPod). So now I'm really stressed!

- How do I get rid of these annoying issues even though it probably has got something to do with the sources I have?
- What kind of workflow do you use?
- Am I silly person complaining about these sort of thing?
rhester
Veteran User
Posts: 2888
Joined: Tue Apr 18, 2006 10:24 pm

Re: Describe your workflow...

Post by rhester »

You're kind of all over the map with your post, and I'd like to see the "clear" activity log (and it would have been VERY helpful to see both "clear" ones, the one that produced the good result and the one that didn't)...approving simply because it's in Tiki and appears to be more about looking for workflow ideas than support for HandBrake.

Rodney
PluueeR
Posts: 39
Joined: Wed Sep 03, 2008 9:06 am

Re: Describe your workflow...

Post by PluueeR »

Well, I always keep my encode logs, so here the are. The first one is the oldest, i.e. the one with the glitch at about 2/3 of the movie. The second one is the one where no glitch appears on that specific moment:

Code: Select all

### CLI Query:  -i "C:\Beheer\DVD\Moonraker\Moonraker.ts" -t 1 -c 1 -o "C:\Beheer\Apple TV\Moonraker.m4v" -f m4v -X 720 -P  -e x264 -q 0.59 -a 1 -E faac -B 160 -R 48 -6 dpl2 -D 1 --markers="C:\Documents and Settings\adm_jorank\Local Settings\Temp\Moonraker.ts-1-chapters.csv" -x level=30:cabac=0:ref=3:mixed-refs=1:analyse=all:me=umh:no-fast-pskip=1 -v 

#########################################

[16:06:23] hb_init: checking cpu count
[16:06:23] hb_init: starting libhb thread
HandBrake 0.9.3 (2008112300) - http://handbrake.fr/
2 CPUs detected
Opening C:\Beheer\DVD\Moonraker\Moonraker.ts...
[16:06:23] hb_scan: path=C:\Beheer\DVD\Moonraker\Moonraker.ts, title_index=1
[16:06:23] scan: trying to open with libdvdread
[16:06:23] dvd: not a dvd - trying as a stream/file instead
[16:06:23] file is MPEG Transport Stream with 188 byte packets offset 0 bytes
[16:06:23] hb_ts_stream_find_pids - found the following PIDS
[16:06:23]     Video PIDS : 
[16:06:23]       0xe0 type MPEG2 (0x2)
[16:06:23]     Audio PIDS : 
[16:06:23]       0x80 type ISO 13818-1 PES private data (0x6)
[16:06:23] transport stream pid 0x80 (type 0x81) is AC-3 audio id 0x80bd
[16:06:23] scan: decoding previews for title 1
[16:06:23] scan: audio 0x80bd: AC-3, rate=48000Hz, bitrate=448000 Unknown (AC3) (5.1 ch)
[16:06:23] scan: 10 previews, 720x576, 25.000 fps, autocrop = 72/74/10/2, aspect 16:9, PAR 64:45
[16:06:23] scan: title (0) job->width:704, job->height:304
[16:06:23] stream: 4 good frames, 0 errors (0%)
Scanning title 1...
[16:06:23] libhb: scan thread found 1 valid title(s)
+ title 1:
  + vts 0, ttn 0, cells 0->0 (0 blocks)
  + duration: 02:02:25
  + size: 720x576, aspect: 1.78, 25.000 fps
  + autocrop: 72/74/10/2
  + chapters:
    + 1: cells 0->0, 0 blocks, duration 02:02:25
  + audio tracks:
    + 1, Unknown (AC3) (5.1 ch), 48000Hz, 448000bps
  + subtitle tracks:
Reading chapter markers from file C:\Documents and Settings\adm_jorank\Local Settings\Temp\Moonraker.ts-1-chapters.csv
[16:06:24] 1 job(s) to process
[16:06:24] starting job
[16:06:24] job configuration:
[16:06:24]  * source
[16:06:24]    + C:\Beheer\DVD\Moonraker\Moonraker.ts
[16:06:24]    + title 1, chapter(s) 1 to 1
[16:06:24]  * destination
[16:06:24]    + C:\Beheer\Apple TV\Moonraker.m4v
[16:06:24]    + container: MPEG-4 (.mp4 and .m4v)
[16:06:24]      + chapter markers
[16:06:24]  * video track
[16:06:24]    + decoder: mpeg2
[16:06:24]      + bitrate 9780 kbps
[16:06:24]    + frame rate: same as source (around 25.000 fps)
[16:06:24]    + loose anamorphic
[16:06:24]      + storage dimensions: 720 * 576 -> 704 * 432, crop 72/74/10/2
[16:06:24]      + pixel aspect ratio: 505 / 352
[16:06:24]      + display dimensions: 1010 * 432
[16:06:24]    + encoder: x264
[16:06:24]      + options: level=30:cabac=0:ref=3:mixed-refs=1:analyse=all:me=umh:no-fast-pskip=1
[16:06:24]      + quality: 0.59
[16:06:24]  * audio track 0
[16:06:24]    + decoder: Unknown (AC3) (5.1 ch) (track 1, id 80bd)
[16:06:24]      + bitrate: 448 kbps, samplerate: 48000 Hz
[16:06:24]    + mixdown: Dolby Pro Logic II
[16:06:24]    + encoder: faac
[16:06:24]      + bitrate: 160 kbps, samplerate: 48000 Hz
[16:06:24] dvd: not a dvd - trying as a stream/file instead
[16:06:24] reader: first SCR 0
[16:06:24] mpeg2: "Chapter 1" (1) at frame 0 time 3600
[16:06:24] encx264: encoding with stored aspect 505/352
[16:06:24] encx264: Encoding at constant RF 20.910001
x264 [info]: using SAR=505/352
x264 [info]: using cpu capabilities: MMX2 SSE2Fast SSSE3 Cache64
x264 [info]: profile Baseline, level 3.0
No accelerated IMDCT transform found
[16:06:24] sync: expecting 183653 video frames
[16:06:24] sync: first pts is 3600
[20:07:01] hb_ts_stream_decode - eof
[20:07:01] stream: 181462 good frames, 0 errors (0%)
[20:07:01] reader: done. 12965 scr changes
[20:07:03] sync: got 181459 frames, 183653 expected
[20:07:03] work: average encoding speed for job is 12.566581 fps
[20:07:09] mpeg2 done: 181460 frames
[20:07:09] render: lost time: 0 (0 frames)
[20:07:09] render: gained time: 0 (0 frames) (0 not accounted for)
x264 [info]: slice I:2255  Avg QP:17.57  size: 37676  PSNR Mean Y:45.47 U:49.83 V:50.65 Avg:46.52 Global:45.71
x264 [info]: slice P:179204 Avg QP:20.22  size:  8041  PSNR Mean Y:42.64 U:47.51 V:48.55 Avg:43.75 Global:42.71
x264 [info]: mb I  I16..4: 13.7%  0.0% 86.3%
x264 [info]: mb P  I16..4:  2.0%  0.0%  3.3%  P16..4: 56.7% 18.6%  8.7%  0.2%  0.3%    skip:10.2%
x264 [info]: ref P L0  76.4% 14.5%  9.1%
x264 [info]: SSIM Mean Y:0.9748777
x264 [info]: PSNR Mean Y:42.671 U:47.537 V:48.574 Avg:43.788 Global:42.737 kb/s:1681.86
[20:07:09] libhb: work result = 0

Rip done!
HandBrake has exited.

Code: Select all

### CLI Query:  -i "C:\Beheer\DVD\Moonraker\Moonraker.ts" -t 1 -c 1 -o "C:\Beheer\Apple TV\Moonraker.m4v" -f m4v -X 720 -P  -e x264 -q 0.59 -a 1 -E faac -B 160 -R 48 -6 dpl2 -D 1 --markers="C:\Documents and Settings\adm_jorank\Local Settings\Temp\Moonraker.ts-1-chapters.csv" -x level=30:cabac=0:ref=3:mixed-refs=1:analyse=all:me=umh:no-fast-pskip=1 -v 

#########################################

[10:57:49] hb_init: checking cpu count
[10:57:49] hb_init: starting libhb thread
HandBrake 0.9.3 (2008112300) - http://handbrake.fr/
2 CPUs detected
Opening C:\Beheer\DVD\Moonraker\Moonraker.ts...
[10:57:49] hb_scan: path=C:\Beheer\DVD\Moonraker\Moonraker.ts, title_index=1
[10:57:49] scan: trying to open with libdvdread
[10:57:49] dvd: not a dvd - trying as a stream/file instead
[10:57:49] file is MPEG Transport Stream with 188 byte packets offset 0 bytes
[10:57:49] hb_ts_stream_find_pids - found the following PIDS
[10:57:49]     Video PIDS : 
[10:57:49]       0xe0 type MPEG2 (0x2)
[10:57:49]     Audio PIDS : 
[10:57:49]       0x80 type ISO 13818-1 PES private data (0x6)
[10:57:49] transport stream pid 0x80 (type 0x81) is AC-3 audio id 0x80bd
[10:57:49] scan: decoding previews for title 1
[10:57:49] scan: audio 0x80bd: AC-3, rate=48000Hz, bitrate=448000 Unknown (AC3) (5.1 ch)
[10:57:49] scan: 10 previews, 720x576, 25.000 fps, autocrop = 72/74/10/2, aspect 16:9, PAR 64:45
[10:57:49] scan: title (0) job->width:704, job->height:304
[10:57:49] stream: 4 good frames, 0 errors (0%)
[10:57:49] libhb: scan thread found 1 valid title(s)
+ title 1:
  + vts 0, ttn 0, cells 0->0 (0 blocks)
  + duration: 02:02:25
  + size: 720x576, aspect: 1.78, 25.000 fps
  + autocrop: 72/74/10/2
  + chapters:
    + 1: cells 0->0, 0 blocks, duration 02:02:25
  + audio tracks:
    + 1, Unknown (AC3) (5.1 ch), 48000Hz, 448000bps
  + subtitle tracks:
Reading chapter markers from file C:\Documents and Settings\adm_jorank\Local Settings\Temp\Moonraker.ts-1-chapters.csv
[10:57:49] 1 job(s) to process
[10:57:49] starting job
[10:57:49] job configuration:
[10:57:49]  * source
[10:57:49]    + C:\Beheer\DVD\Moonraker\Moonraker.ts
[10:57:49]    + title 1, chapter(s) 1 to 1
[10:57:49]  * destination
[10:57:49]    + C:\Beheer\Apple TV\Moonraker.m4v
[10:57:49]    + container: MPEG-4 (.mp4 and .m4v)
[10:57:49]      + chapter markers
[10:57:49]  * video track
[10:57:49]    + decoder: mpeg2
[10:57:49]      + bitrate 9780 kbps
[10:57:49]    + frame rate: same as source (around 25.000 fps)
[10:57:49]    + loose anamorphic
[10:57:49]      + storage dimensions: 720 * 576 -> 704 * 432, crop 72/74/10/2
[10:57:49]      + pixel aspect ratio: 505 / 352
[10:57:49]      + display dimensions: 1010 * 432
[10:57:49]    + encoder: x264
[10:57:49]      + options: level=30:cabac=0:ref=3:mixed-refs=1:analyse=all:me=umh:no-fast-pskip=1
[10:57:49]      + quality: 0.59
[10:57:49]  * audio track 0
[10:57:49]    + decoder: Unknown (AC3) (5.1 ch) (track 1, id 80bd)
[10:57:49]      + bitrate: 448 kbps, samplerate: 48000 Hz
[10:57:49]    + mixdown: Dolby Pro Logic II
[10:57:49]    + encoder: faac
[10:57:49]      + bitrate: 160 kbps, samplerate: 48000 Hz
[10:57:49] dvd: not a dvd - trying as a stream/file instead
[10:57:49] reader: first SCR 0
[10:57:49] mpeg2: "Chapter 1" (1) at frame 0 time 3600
[10:57:49] encx264: encoding with stored aspect 505/352
[10:57:49] encx264: Encoding at constant RF 20.910001
x264 [info]: using SAR=505/352
x264 [info]: using cpu capabilities: MMX2 SSE2Fast SSSE3 Cache64
x264 [info]: profile Baseline, level 3.0
No accelerated IMDCT transform found
[10:57:49] sync: expecting 183653 video frames
[10:57:49] sync: first pts is 3600
[14:33:46] hb_ts_stream_decode - eof
[14:33:46] stream: 181462 good frames, 0 errors (0%)
[14:33:46] reader: done. 12965 scr changes
[14:33:48] sync: got 181459 frames, 183653 expected
[14:33:48] work: average encoding speed for job is 14.003016 fps
[14:33:54] mpeg2 done: 181460 frames
[14:33:54] render: lost time: 0 (0 frames)
[14:33:54] render: gained time: 0 (0 frames) (0 not accounted for)
x264 [info]: slice I:2255  Avg QP:17.57  size: 37676  PSNR Mean Y:45.47 U:49.83 V:50.65 Avg:46.52 Global:45.71
x264 [info]: slice P:179204 Avg QP:20.22  size:  8041  PSNR Mean Y:42.64 U:47.51 V:48.55 Avg:43.75 Global:42.71
x264 [info]: mb I  I16..4: 13.7%  0.0% 86.3%
x264 [info]: mb P  I16..4:  2.0%  0.0%  3.3%  P16..4: 56.7% 18.6%  8.7%  0.2%  0.3%    skip:10.2%
x264 [info]: ref P L0  76.4% 14.5%  9.1%
x264 [info]: SSIM Mean Y:0.9748777
x264 [info]: PSNR Mean Y:42.671 U:47.537 V:48.574 Avg:43.788 Global:42.737 kb/s:1681.86
[14:33:55] libhb: work result = 0

Rip done!
HandBrake has exited.
Northy
Enlightened
Posts: 134
Joined: Fri May 16, 2008 1:06 pm

Re: Describe your workflow...

Post by Northy »

The glitch was most likely in the ripped DVD you used, as you did it again it didn't glitch I am guessing when you ripped it the first time something happened.

You said to give your workflow so here is mine :) personally I think it is great although for the Blu-ray/HD DVD ripping I could do with an AIO on the OS X side, MakeMKV sucks IMO (no BD+/BD-live or HD DVD support).

DVD:
1. Rip with MacTheRipper ("Full Disc Extraction" as I want extras as well).
2. Load up folder into HandBrake (latest SVN I checked out myself).
3. Hit my personal preset I have made for each kind of film.
4. Check everything is correct for audio, video and x264 settings.
5. Name chapters (and keep a copy of chapters in case I need to redo in something like Metax if there was an issue).
6. Hit "Start" and wait until it finishes.
7. When finished, check for errors by watching it.
8. Tag with subler and add subtitles if film is in a foreign language I don't know (French for instance).
9. Add to iTunes and if intended for Apple TV/iPhone as well sync with Apple TV/iPhone :)

Blu-ray/HD DVD:
1. Rip with AnyDVD HD on Windows 7.
2. Remux the .m2ts file with just Video and AC3/DTS cores using TSMuxer also on Windows.
3. Load up folder into HandBrake (latest SVN I checked out myself).
4. Hit my personal preset I have made for each kind of film.
5. Check everything is correct for audio, video and x264 settings.
6. Hit "Start" and wait until it finishes.
7. When finished, check for errors by watching it.
8. Tag with subler and add subtitles if film is in a foreign language I don't know (French for instance) also add chapters that I made myself.
9. Add to iTunes and if intended for AppleTV/iPhone as well sync with Apple TV/iPhone :)
Post Reply