[19. April 2013] A-400 Advanced Network Setup now available | [11 Jan. 2013] Customize your A-400 Home Screen

Firmware: A-400 [13 May 2013] | C-300 [30 Nov. 2012] | A-300 [30 Nov. 2012] | C-200 [21 Jan. 2013] | A-200/A-210 [10 Aug. 2012]

Just got your NMT | WIKI has the answers | Search the forum | Forum Rules/Policy | Firmware & Official NMT News | Popcornhour manuals



User(s) browsing this thread: 1 Guest(s)
Thread Closed 
How-To: Convert Apple HD Trailers to PCH friendly
07-09-2009, 05:27 PM
Post: #1
Thumbsup How-To: Convert Apple HD Trailers to PCH friendly
Everyone,

This seems to work for me, so I am going to pass it along... I've been playing with ways to convert the HD trailers on Apple's website to a more compatible format for the PCH. Although the PCH can play the .mov natively, I find that the video codec often causes stuttering during high-action sequences, and of course AAC 5.1 audio gets soft-muxed down to stereo.

So, my solution is to use mplayer's mencoder to convert the AAC 5.1 audio to AC3 5.1 and convert the AVC video to h264 and then mux them together using mkvtool.

This has worked well for me so far... enjoy!

(this is a linux shell script that I use, however, it could easily be altered to a windows batch script if you have mencoder/mkvtools for win32 installed)

Code:
#!/bin/sh
mencoder -channels 6 -oac lavc -lavcopts acodec=ac3:abitrate=640 -ovc frameno -of rawaudio -o tmp.ac3 $1

mencoder    $1 \
         -o tmp.mp4 \
         -ovc x264 \
         -mc 0 \
         -nosound \
         -x264encopts bitrate=3500:frameref=5:analyse=all:me=umh:subme=7:trellis=2:bframes=1:subq=7:br​do:mixed_refs:weight_b:bime:no_fast_pskip:direct_pred=auto:mixed_refs:nr=200:thr​eads=auto

mkvmerge tmp.mp4 tmp.ac3 -o $2

/bin/rm -f tmp.mp4 tmp.ac3

This script takes two parameters... first one is the input and second is the output (which is in mkv format)

Hope someone else finds this useful too Smile

PCH A-110 + YAMJ + Unique Black Glas -> HDMI -> Sharp 46" 1080p 120hz LCD, Toslink -> Sony 5.1 Surround
PCH A-100 300gb + YAMJ + Unique Black Glas -> HDMI -> Viewsonic 32" 720p LCD
CentOS Linux server w/ 11tb NFS storage
Find all posts by this user
07-11-2009, 01:44 AM
Post: #2
RE: How-To: Convert Apple HD Trailers to PCH friendly
I use Any DvD Converter does a great job and is easy to use
Code:
http://www.any-dvd-converter.com/
Find all posts by this user
07-11-2009, 05:32 AM
Post: #3
RE: How-To: Convert Apple HD Trailers to PCH friendly
AVC is H.264. You're re-encoding for no good reason in my opinion.

All you have to do is convert the audio, and remux into a different container if wanted. I'd do something like this:

D:\DVTools\ffmpeg>ffmpeg -i startrek-clip_h1080p.mov -vcodec copy -acodec ac3 -ac 6 -ab 384k -ar 48000 -f matroska startrek.mkv

Took about two seconds for that 40 second clip.

Format your hard drive and install NMT apps in 10 minutes or less!

PCH-A100 + 500GB Maxtor PATA
ioBox 100HD + 1.5TB Seagate SATA
openSUSE 11.1 server with 14 hard drives
Find all posts by this user
Thread Closed 


Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  Playing music with Winamp from PC to PCH alvoryx 39 29,905 11-21-2012 10:27 PM
Last Post: joedalton101
  [HOW TO] Convert on MAC OS a DTS track to AC3 in a MKV file - variable bitrates criblevibes 3 8,496 06-01-2010 12:17 AM
Last Post: husak
  [GUIDE] Convert Hi-Res IDX/SUB to C200 Compatible MadHorse 5 7,978 03-20-2010 07:46 PM
Last Post: dbone1026
  Web browser access to the PCH from your PC cheaper_popcorn 67 115,445 01-23-2010 06:43 PM
Last Post: bluecat
  How-to: Install and Configure Dropbear on the PCH racanu 60 71,103 11-26-2009 10:05 PM
Last Post: sp0
Game Tutorial: How to use the Xbox360 to play files off the PCH? victorakkersdijk 0 4,017 08-01-2009 10:04 PM
Last Post: victorakkersdijk
  How to convert wmv video file to mkv with AC3 sound Little Simon 30 46,850 07-15-2009 08:38 PM
Last Post: jokster
  Optimising memory on your PCH Delphy 16 18,044 05-29-2009 11:46 AM
Last Post: Funksoldier
  What can the PCH do for me - Popcornhour FAQ Philos 38 105,529 05-25-2009 12:46 AM
Last Post: landoncube
  [DOC] UPnP PCH-A100 Media Server A/V controlled by Nokia N95 8GB Kasimodo 7 15,128 04-21-2009 10:39 PM
Last Post: javierPopCorn

Forum Jump: