XeresRazor / subler

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

iTunes Movie Store like chapter markers with pictures #27

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Would it be possible to add support for iTunes Movie Store like chapter markers 
with pictures?
If you buy/rent a movie in the iTunes store each chapter marker has a picture 
from the movie. I 
guess it's just a link to the corresponding frame. At least these kind of 
chapter markers are 
displayed on the Apple TV.

Thanks for this great piece of software. If you need support for e.g. 
translation, please let me know.

Original issue reported on code.google.com by ripe...@gmx.de on 17 Jun 2009 at 10:48

GoogleCodeExporter commented 9 years ago
Can you open the file with this little app: 
http://www.mediafire.com/?rmyddnqwqhm and upload the result here?

Original comment by damiog on 27 Mar 2010 at 9:25

GoogleCodeExporter commented 9 years ago
Thank you for the quick reply.
Here is the result.
I've made a text file.

Original comment by erica.lo...@gmail.com on 27 Mar 2010 at 2:35

Attachments:

GoogleCodeExporter commented 9 years ago
Do you have another movie in iTunes with the same cnID?

Original comment by damiog on 27 Mar 2010 at 3:01

GoogleCodeExporter commented 9 years ago
I have the HD version of the same movie. Hence same cnID.
Other than that, no.

Original comment by erica.lo...@gmail.com on 27 Mar 2010 at 4:01

GoogleCodeExporter commented 9 years ago
did you add the chapter pictures to BOTH versions? the HD version would be the 
one that plays in iTunes the SD 
plays on iPhone

Original comment by gundam.r...@gmail.com on 27 Mar 2010 at 4:53

GoogleCodeExporter commented 9 years ago
Yes, I did add the chapter pictures to both versions.
Actually I'm now in the process of add it to my entire collection.

Original comment by erica.lo...@gmail.com on 27 Mar 2010 at 11:03

GoogleCodeExporter commented 9 years ago
Sorry for bumping this, but I also tried the chapter pictures and I can't make 
it
work on my iphone. iTunes works fine. Does anyone got it working on iphone?
Thanks in advance.

Original comment by lo...@mac.com on 30 Mar 2010 at 2:08

GoogleCodeExporter commented 9 years ago
It works on my iPod Touch, but it seems like iTunes does weird things if you 
have a combined sd/hd movie.

Original comment by damiog on 30 Mar 2010 at 7:03

GoogleCodeExporter commented 9 years ago
Thanks for replying damiog. I'll try removing the cnID when I get home, and let 
you
know what happened.

Original comment by lo...@mac.com on 30 Mar 2010 at 7:40

GoogleCodeExporter commented 9 years ago
I can confirm that it works flawlessly on the iPhone, although I haven't tried 
movies with the same cnID. 
Thanks again mate. Now waiting on the custom chapter frames/stills :)

Original comment by thomas.b...@gmail.com on 30 Mar 2010 at 11:36

GoogleCodeExporter commented 9 years ago
Removed the cnID and it didn't work too. Maybe something with my enconding... 
I'm
using handbrake's universal preset, though...
thomas.buyukkilic, could you please send me one of your files? One that you are 
sure
works on iphone, so I can test on mine? You can send to my e-mail or to my idisk
public folder (http://public.me.com/loula). I'm really running out of ideas.

Thank you for your kindness.

Original comment by lo...@mac.com on 31 Mar 2010 at 12:21

GoogleCodeExporter commented 9 years ago
See your iDisk :)

Original comment by thomas.b...@gmail.com on 31 Mar 2010 at 7:27

GoogleCodeExporter commented 9 years ago
Thank you very much thomas.buyukkilic, your file does really work.
After several tests in various files, I find out that mine works too.
The culprit wasn't subler at all actually, subler is doing his job beautifully 
as
always. Thank you so much guys.
It wasn't the presence of the cnID or HD and SD versions of the movie either. 
The
faulty one was iTunes (crap).
It turns out that if I add a new movie to my library, and it already have the 
chapter
pictures track, it will work just fine on iTunes, my AppleTV, and my iphone. 
But if I
add the picture track to a movie that already lives on my iTunes library, it 
won't be
transfered to my iphone, unless I delete it from my library (keeping the 
original
file) and add it again. It looks like iTunes stores the chapter information
somewhere, and sends to iphone from there, don't know really. AppleTV shows the
pictures either way just fine, the problem appears only on the iphone.
Another thing I noticed is that when you "save" a file, the picture track 
created
have the name "video track", but if I only "optimize" (without saving first), 
the
track will have the name "Title track". Not a big deal since it works either 
way,
just as I said "a thing I noticed".

Anyway, thank you so much damiog and thomas.buyukkilic, for your kind help.
Keep up the great job.

Original comment by lo...@mac.com on 1 Apr 2010 at 12:55

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Sorry to comment on such an ancient feed, but...

I thought I had this all worked out a few months ago.  But today, I added the 
picture track to my video file through Subler.  It showed up fine on iTunes, 
but when I synced it to my iPod Touch, no chapter markers show up.  I'm sure 
I'm syncing the right file.  My iOS version is the most recent, 4.2.  Could 
they have removed support for this feature in iOS?

Any suggestions?  Thanks.

Original comment by harry.sh...@gmail.com on 28 Nov 2010 at 7:29

GoogleCodeExporter commented 9 years ago
Movies created with compressor doesn't show the images either. So I guess it's 
a issue in 4.2. Could you try a file from the iTunes Store?

Original comment by damiog on 28 Nov 2010 at 9:40

GoogleCodeExporter commented 9 years ago
I just tried a *rented* movie from the iTunes Store and found the same result: 
no pictures on iOS 4.2.  Strange that they'd remove that functionality.

Original comment by harry.sh...@gmail.com on 28 Nov 2010 at 6:01

GoogleCodeExporter commented 9 years ago
could just be a bug in the firmware as well.  they got so much going on, likely 
they forget even what their software does.

Original comment by tracy.ro...@gmail.com on 29 Nov 2010 at 8:08

GoogleCodeExporter commented 9 years ago
i upgraded my phone to 4.2.1 and sure enough picture data is gone for chapters. 
 anyone know if its fixed in 4.3.1?  Worked at 4.1.  Still works on apple 
tv/everything else.

Original comment by tracy.ro...@gmail.com on 31 Mar 2011 at 2:05

GoogleCodeExporter commented 9 years ago
I don't think so:
I am on 4.3.1 and I'm 90% sure that the video I'm testing with had the chapter 
picture data working correctly on older firmware.  Can someone test 4.3.1 with 
a movie from the iTunes store?

Original comment by harry.sh...@gmail.com on 31 Mar 2011 at 4:46

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 needs 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 (and no it's not a podcast track), 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 correctly. 
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 chapters.

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 to 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 10:56