XeresRazor / subler

Automatically exported from code.google.com/p/subler
Other
3 stars 0 forks source link

Custom chapter frame stills #96

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
In addition to the "iTunes Movie Store like chapter markers with pictures" 
feature request:

A way to add custom frames (from the movie itself or external) to a chapter 
marker. I attached an 
example of how I see it working.

Original issue reported on code.google.com by thomas.b...@gmail.com on 24 Mar 2010 at 10:07

Attachments:

GoogleCodeExporter commented 9 years ago
While this would be nice, I'd be happy if the frame stills were maybe a few 
seconds after the chapter marker. 
Similar to how it does for icons. Reason is most chapter markers occurring 
doing a scene change. So many of the 
images are all black.

Original comment by steve...@gmail.com on 27 Mar 2010 at 6:27

GoogleCodeExporter commented 9 years ago
How I envision it is this.

A table like how the current chapter list is but with an image icon next to 
each. when you click on the icon and a 
new window opens that show the "default generated" image and has a button to 
add a custom one.

but hey thats just me...

Original comment by gundam.r...@gmail.com on 27 Mar 2010 at 7:17

GoogleCodeExporter commented 9 years ago
Issue 131 has been merged into this issue.

Original comment by damiog on 8 Sep 2010 at 11:43

GoogleCodeExporter commented 9 years ago
THE DREAM OF MAKING YOUR MOVIES LIKE THE ONES FROM ITUNES MOVIES, FINALLY 
POSSIBLE! SOLUTION RIGHT HERE!

To everyone out there who wishes to create the perfect collection, I finally 
have the solution for every problem that we've encountered. I've finally 
learned the tricks and I ask of you to spread this tutorial to EVERYONE that 
wishes for this solution! Everything on this tutorial will be thoroughly 
explained and why that is.

So let's start from the beginning. This tutorial will be a bit long so pay 
attention.
One of the biggest requests we've wanted is custom chapter images for our 
movies. I'm happy to say that it's very possible and there's actually a very 
easy way to do this! But we'll get back to that shortly.

Whether your movie is MKV or M4V, Subler will make your iTunes/iPhone4/AppleTV 
compatible m4v file for you. For MKV files, the movie must of course be an 
H.264 encode (MPEG-4, AVC etc.). A little secret which people often seems to 
struggle with is the bitrate and how much bitrate each device can handle. Well 
for starters, the iPhone 4 bitrate is a lot higher then what it's told to be 
able to handle. I've discovered that the iPhone can handle up to over 7000kbps 
of video bitrate and whether it's 1080p or 720p has no importance. Feel free to 
experiment more from where i left off if you want. Most 720p MKV movies out 
there are about 3000kbps-6500kbps. A really good encode of a 1080p movie has a 
bitrate about 9000kbps-14,000kbps. This of course is a little hardcore for the 
iPhone and simply won't play. The AppleTV/TV2/Macbook/PC should be quite 
possible depending on whether your device is jailbreaked or not. But files even 
this big can become a true iTunes Movie like the ones from iTunes Store, so 
having a collection of 1080p is very possible with multiple audio tracks, 
subtitle tracks, chapter markers and custom chapter images aswell as all the 
metadata you wish to add for your movie. The greatest things about all this is 
that you rarely need to convert any of your movies with HandBrake so you you 
don't have to lose any quality at all if you like. Subler will make your MKV 
(if compatible) to an M4V file ready for iTunes without any convertion. Sounds 
to good to be true right? Well wake up and smell the possibilty!

Step 1: Making your M4V file
Drop your M4V/MKV file into Subler. You'll want a clean basic file so add the 
movie and 1 audio track only first. This track needs to be an AAC 2 ch track 
(also known as Dolby Pro Logic II) and can be easily created with HandBrake. 
When preparing you audio tracks with handbrake, just choose the AppleTV2 
setting. Put the video resolution to the lowest (640x320) and the video quality 
to the lowest while making you audio tracks with the highest quality. First 
track is the AAC Core - Dolby Pro Logic II - 256kbps (well choose the bitrate 
that fits your need, I prefer 256 for better quality, 320 is not really needed) 
and second track is AC3 6-channel discrete - 640kbps for true Dolby Digital 5.1 
audio for a fast convertion of your 1080p/720p source.

Once this is done, you'll have a video track and an audio track. You can name 
the video track if you want and the audio track. It won't affect anything. 
Input all the metadata too while you're at it. I usually name the audio tracks 
for what they are for better visual presentation on iTunes/iPhone4/AppleTV so i 
name the audio track Dolby Pro Logic II. Click the video track and make sure 
the "H.264 Video Profile/Level" is "Main @ 3.1". Most of the times it's on High 
@ 4.1 so change it to 3.1. Go to "File" and save. If your movie is bigger then 
4 GB then check "64 bits chunk offset". Your file format should be 
"Video-MPEG4" always! Whether you wanna optimize or save the file is up to you.

The reason why you only save these 2 tracks is because if you save everything 
you want at once, it'll sure to fail, audio tracks mashed together instead of 
being separate. It simply won't come out right. This is the only time that 
you'll need to wait a long time for the file to complete. It's not converting 
the movie, only changing/creating the atoms it needs.

Step 2: Multiple Audio Tracks
Had problems with multiple audio tracks? Different audio tracks playing at the 
same time and not having the option of choosing between the tracks on itunes 
etc.? What we're doing here is saving each tracks separately one at a time with 
subler for it so sync correctly. Now open your m4v file with subler. Do NOT 
make a new window. Right click your m4v file and "open with" subler. This way 
when we save the file anew, it doesn't create a new file/rewrite the video & 
audio track from before but only writes what you're adding. This is usually 
where people go wrong, not adding the contents one at a time.

Now you can add you second audio track (AAC 2ch/AC3 6 ch), let's say we added 
the surround track. I'll name this second audio track Dolby Digital 5.1. Save 
the file again but this time do not shut down the window. The thing here is 
that everytime you save you can see what kind of information that changes. Now 
you have 3 tracks. Click the first audio track. Make sure the "Alternate Group" 
is set to 1. One of these tracks will be set to none so make sure that this 
time both tracks are set to 1. And to correct some people on this topic, NO you 
DON'T NEED TO LEAVE ONE TRACK UNCHECKED. The only thing you'll get by doing 
that is an inactive track which you'll not be able to play at all. It will be 
greyed and unusable! Save again. Now you can close the window. Open the file in 
iTunes and you'll see the wonderful result of having two separate tracks named 
Dolby Pro Logic II and Dolby Digital 5.1 and being completely able to choose 
between them. Yes you can choose the surround track on iTunes but iTunes is not 
so AC3 friendly like Apple TV devices. If you want to hear the surround track 
correctly you'll need another device connected to your mac since the program 
itself doesn't handle the AC3 passthru. Without it you'll just hear the track 
in a very low volume and a beeping sound.

Step 3: Multiple Subtitle Tracks
Now that we've successfully managed to input multiple audio tracks with no 
problems whatsoever (I bet you're pretty happy now, it gets better!) Let's move 
on to subtitle tracks. You can have as many subtitle tracks as you want, great 
huh? You can alter how the subtitles are to be viewed. There are two ways of 
displaying subtitles on iTunes. This applies only to 2.35:1 aspect ratio 
(Basically a Widescreen 16:9 movie cropped with black bars on top & bottom) and 
not 16:9 since it covers up the whole screen (subtitles with transparent bar on 
screen is unavoidable). For 720p movies, click on the subtitles track. The 
"Scaled Size" is always at 1280x80 (this is the size of the subtitle and how 
big it shows on screen) and the "Offset" at 0x456 (the positioning of where the 
subtitle will be showed). This is the normal setting with a result of showing 
the subtitles right at the bottom on the screen of the movie. However, this is 
a little neat thing which I discovered. If you change the Offset to 0x464 the 
subtitles will be shown right under the bottom of the movie screen, resulting 
in a clear view of the movie, not having the subtitles cluttering over the 
picture. It's feature is a little different as the subtitles fade out 
stylistically by the end of every line compared to the normal setting. Doing 
this however affects the size of the font, meaning if i watch a 720p movie on a 
1080p screen, the subtitles will be shrunk since it's font size is locked at 
720p resolution. However, If written with the normal offset setting, the 
subtitle font size will adapt and remain the same no matter the resolution 
(with the price of having the subtitles on the actual picture). For 1080p, the 
"Scaled Size" is 1920x120, the normal Offset at 0x696 and custom Offset at 
0x704. Take note that the custom offset setting may not work for every movie! 
For some reason on certain movies (still don't know what causes this) the 
subtitles in display remains as the normal offset setting and instead cropping 
the image leaving a white bar at the bottom. This is a mystery but has happened 
twice.

For 1080p you have to manually set the "Scaled Size" value to 1920x120 or it 
will save it as 1920x80 and as a result the subtitles will be very small on 
screen. The same as the audio tracks if you're planning on having multiple 
subtitles, save each subtitle track one at a time to avoid any errors and of 
course make sure every subtitle tracks "Alternate Group" is set to 2!

Step 4: Chapter Markers & Custom Chapter Images
There is an app called iSubtitle which you can download from App Store. You 
don't need to buy it, just use the free version. I use this app only for 
creating chapter markers. It's also a good app for you to check your subtitle 
compatibility. If you can write your very own chapter markers without any app 
then it's a plus for you. It need to be in txt format. Adding chapter markers 
in subler is extremely easy.

Now here's the beauty part which MANY has struggled with or thought impossible. 
The chapter images. You want chapter images? Go to Subler "Preferences" and 
check "Create Chapter Preview". This creates a second video track in JPEG 
format. LET'S REWIND HERE NOW. This would of course give you chapter images as 
a feature implemented in subler but this is not custom chapter images. Don't 
worry, you won't get disapointments here. Instead I'll give you the trick of 
making your custom chapter images. Rather then trying to make a replica (like 
the iTunes Movie from iTunes Store) of a JPEG video track which most people 
tried to do, you make an actual video of your chapter images. I used iMovie for 
this. A simple app that comes installed on your mac. SUPERB!

Open iMovie, create a new project and drop the chapter pics right there. I use 
VLC for snapshots (This might not be for everyone but the snapshots i take with 
VLC changes the gamma making the snapshots a lot brighter then the actual 
image). You basically drop your images into iMovie and make a movie out of 
still images which you'll export in 640x320. Of course keep track of where the 
chapter markers begins and make sure each image begins before the chapter mark 
(You do not make chapter markers in iMovie!!!).
Each image can be edited. Depending on your preferences, the normal thing that 
would happen when you insert an image in iMovie is making it a 4s long clip. 
You can of course change this and make up to 10 min long if you'd like. You'll 
need to fix the time for each image for your chapter images to show. The video 
with the still images will almost be as long as the movie itself in 
HOURS:MINUTES:SEKUNDS. The encode will take about an hour.

Once edited and exported, you'll have a nice m4v video that contains your 
chapter images. This is what we'll use to create our custom chapter images. 
What we do here is using it as a video track for subler to create chapter 
previews, giving your custom images for your chapter.

Now comes the explanation of how chapter markers and the preview works.
Chapter Previews in Subler is created through time stamps from your chapter 
markers. It takes snapshots of its own within the saving process from the video 
track. How do we create custom images then? Well...
Take your newly created video containing the custom images and drop it in 
subler. Uncheck the original video track leaving the still image video checked. 
Now add the chapter markers. Save. It will now create Chapter Previews from the 
video created with iMovie. Since it's only still images, without altering the 
original chapter markers, you'll get your custom chapter images. It should now 
create a Video Track in Photo-JPEG format. Once done. Go to subler 
"Preferences" and uncheck "Create Chapter Previews" Remove the video track (not 
the JPEG video track) and check the original video track and Save. Voila! You 
know have custom chapter images!
If the time stamps on the JPEG track differs from the Chapter Markers time 
stamps it will not be visible and give you blank images.

And that's the Tutorial on how to make true iTunes Movies, but to be quite 
honest, these are extremely better!
Many months of research and experimenting, I've finally managed solve it, and 
more then gladly to share this with all of you who wanted this for so long! I 
tell you, it's now possible!

Original comment by c....@hotmail.com on 7 Jul 2011 at 11:15

GoogleCodeExporter commented 9 years ago
Issue 541 has been merged into this issue.

Original comment by damiog on 1 Jul 2013 at 5:49