Log in

View Full Version : MP4box "-splitx s:e" lose "hint track"


da5le
2nd April 2008, 16:58
hi,
i have using mp4box long time, and works well till today.
There r requirment to contain the old hint track when using "-splitx start:end" parameter, it seemed
"hint track" skipped(hints in the log window). Can there r any method to keep the "hint track" go through the talior process? Maybe someone can give a hand, thanks in advance!

BR
enc0d1n9@gmail.com

setarip_old
3rd April 2008, 01:12
Try doing it through YAMB UI...

da5le
3rd April 2008, 03:06
setarip_old:
thanx for reply firstly.

but YAMB hav't the funiton of decoding the video. so i should using "Cut Assistant [mp4box]" to get the start:end timepoint, then doing this in the YAMB .thanx too complex:

btw:
1. cut assistant is one good tool by using the mp4box:asfbin...
2. AVIDemux also can't do this..

setarip_old
3rd April 2008, 04:46
Perhaps I've misunderstood you.

Aren't you trying to SPLIT and .MP4 file?

If so, in YAMB, click on the "Editing" icon, then doubleclick on "Click to Split" - and choose from among the several different types of splitting...

da5le
3rd April 2008, 06:39
Yes. the process is. i recode some cilp of MP4,and must tailor the head and end to get one full program. For example, i recode the CNN news(7:00~7:30),and the recorded file is (6:50~7:40). so i want to specified begin and end time and cut the middle one.
YAMB is great but without video preview. so i didn't know the exact begin and end time.
"Cut Assistant" tool using mp4box as mp4 kernal have the ability of video preview and can set start:end timepoint but get the "hint track" off after split.
What i want is one tool can display the mp4(avc+aac), can set the split start:end time , can output the clip with hint track contained. thanx!

bond
5th April 2008, 14:03
the hint track might not be valid any more after cutting. why dont you simply rehint the file?

da5le
7th April 2008, 15:20
bond, thanx.
I'm doing like u said, rehint the file with "mp4box -h" but not with the original server(i can't get the server application). And now the question is the infor of the hint track created by mp4box didn't match the one from the "original" server.
:) i will pay more time with the repair work, thanx u all!

Schrade
8th April 2008, 09:48
What exactly is the use of hinting? Is there somewhere I can read about it?

Drachir
8th April 2008, 11:26
http://gpac.sourceforge.net/doc_mp4box.php#hinting
IsoMedia File Hinting consists in creating special tracks in the file that contain transport protocol specific information and optionally multiplexing information. These tracks are then used by the server to create the actual packets being sent over the network, in other words they provide the server 'hints' regarding packet building, hence their names: Hint Tracks.
MP4Box can generate these hint tracks for the RTP protocol (the most widely used protocol for multimedia streaming). The resulting file can then be streamed to clients with any streaming server understanding the IsoMedia file format and hint tracks, such as Apple's QTSS/DSS servers.


http://developer.apple.com/documentation/QuickTime/RM/Streaming/StreamingClient/C-Chapter/chapter_1000_section_5.html#//apple_ref/doc/uid/TP30001145-UsingQuickTimeStreaming-DontLinkElementID_20
Hint Tracks

You prepare a QuickTime movie for RTP streaming by adding hint tracks. Hint tracks allow an RTP server to stream QuickTime movies without requiring the RTP server to understand QuickTime media types, codecs, or packing. The RTP server needs to understand the QuickTime file format sufficiently to find tracks and media samples in a QuickTime movie, however.
Each track in a QuickTime movie is sent as a separate RTP stream, and the recipe for packetizing each stream is contained in a corresponding hint track. Each sample in a hint track tells the RTP server how to packetize a specific amount of media data. The hint track sample contains any data needed to build a packet header of the correct type, and also contains a pointer to the block of media data that belongs in the packet.
There is at least one hint track for each media track to be streamed. It is possible to create multiple hint tracks for a given track’s media, optimized for streaming the same media over networks with different packet sizes, for example. The hinter included in QuickTime creates one hint track for each track to be streamed.
Hint tracks are structured in the same way as other QuickTime movie tracks. Standard QuickTime data structures, such as track references, are used to point to data. In order to serve a QuickTime movie, your RTP server must locate the hint tracks contained in the movie and parse them to find the packet data they point to. You should review the QuickTime File Format documentation before you read the remainder of this hint track information. You will also find it helpful to refer to the QuickTime File Format periodically in the course of reading this document.


There are other rtsp/rtp stremingserver like feng ( http://live.polito.it/ )which support different file formats(mov,mkv ...), and don't need information from a hint track.
Feng need to know a rtp payload format, for the audio/video formats used in the individual files, to be able to create rtp packets.
QTSS/DSS will act according the information from the hint track.
Both ways have it advantages/disadvantages.

At this page http://gpac.sourceforge.net/doc_mp4box.php#hinting are some MP4Box hinting option documented.

Schrade
8th April 2008, 17:13
Thanks a lot for that info! I had done a search and only came up with a little bit from the MP4Box docs.

Thanks for the Feng link, too!