home
products
contribute
download
documentation
forum
Home
Forums
New posts
Search forums
What's new
New posts
All posts
Latest activity
Members
Registered members
Current visitors
Donate
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Search titles only
By:
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
MediaPortal 1
Area 51 - Testing Area
MP1-4777 Additional info for video and audio
Contact us
RSS
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="CyberSimian" data-source="post: 1259033" data-attributes="member: 141969"><p>I don't know anything about how the data is stored in a TS file, so the following is just guesswork.</p><p></p><p>When TV Server is recording a channel, it simply writes to disk the data that it receives from the tuner. If the recording crosses the boundary between two programmes (as it does when pre-padding is used), TV Server does not know at the start of the recording what properties will change at the boundary between those programmes. So, the recording may start with audio=two-channel-sound, but later change to audio=five-channel-sound.</p><p></p><p>My guess is that every few seconds there is a header block in the data stream that defines the properties of the data that follows (until the next header block is encountered). So the audio will change at one of these header blocks.</p><p></p><p>So I think that the processing should probably be something like this:</p><p></p><p>(1) If the invoker of MediaInfo specifies offset=0, return the properties from the header block at the start of the file.</p><p></p><p>(2) If the invoker specifies (say) offset=5 minutes, find the first header block following the offset of 5 minutes from the start, and return the properties specified in that header block.</p><p></p><p>Perhaps [USER=83973]@Owlsroost[/USER] knows more about this?</p><p></p><p>-- from CyberSimian in the UK</p></blockquote><p></p>
[QUOTE="CyberSimian, post: 1259033, member: 141969"] I don't know anything about how the data is stored in a TS file, so the following is just guesswork. When TV Server is recording a channel, it simply writes to disk the data that it receives from the tuner. If the recording crosses the boundary between two programmes (as it does when pre-padding is used), TV Server does not know at the start of the recording what properties will change at the boundary between those programmes. So, the recording may start with audio=two-channel-sound, but later change to audio=five-channel-sound. My guess is that every few seconds there is a header block in the data stream that defines the properties of the data that follows (until the next header block is encountered). So the audio will change at one of these header blocks. So I think that the processing should probably be something like this: (1) If the invoker of MediaInfo specifies offset=0, return the properties from the header block at the start of the file. (2) If the invoker specifies (say) offset=5 minutes, find the first header block following the offset of 5 minutes from the start, and return the properties specified in that header block. Perhaps [USER=83973]@Owlsroost[/USER] knows more about this? -- from CyberSimian in the UK [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
Area 51 - Testing Area
MP1-4777 Additional info for video and audio
Contact us
RSS
Top
Bottom