<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<id>tag:old.nabble.com,2006:forum-14459</id>
	<title>Nabble - DVD Authoring Tools</title>
	<updated>2009-12-13T07:10:08Z</updated>
	<link rel="self" type="application/atom+xml" href="http://old.nabble.com/DVD-Authoring-Tools-f14459.xml" />
	<link rel="alternate" type="text/html" href="http://old.nabble.com/DVD-Authoring-Tools-f14459.html" />
	<subtitle type="html">&lt;a href=&quot;http://dvdauthor.sourceforge.net/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;DVD Authoring Tools&lt;/a&gt;&amp;nbsp;is a set of tools to help you generate DVD files to be played back on a standalone DVD player.</subtitle>
	
<entry>
	<id>tag:old.nabble.com,2006:post-26766891</id>
	<title>New release DVDwizard 0.6.2 is out</title>
	<published>2009-12-13T07:10:08Z</published>
	<updated>2009-12-13T07:10:08Z</updated>
	<author>
		<name>Joo Martin-4</name>
	</author>
	<content type="html">Hello,
&lt;br&gt;&lt;br&gt;the new release of DVDwizard version 0.6.2 is out. 
&lt;br&gt;This are the changes:
&lt;br&gt;&lt;br&gt;0.6.2 &amp;nbsp; &amp;nbsp;(2009-12-11)
&lt;br&gt;-----
&lt;br&gt;&lt;br&gt;- Transcode 1.1.5 workaround for cpu accelerations
&lt;br&gt;- Add PAR variable for better support for NTSC
&lt;br&gt;- Use different pixel aspect ratio (PAR) for PAL and NTSC
&lt;br&gt;- While restart use existing chapter screenshots
&lt;br&gt;- Tested with ImageMagick 6.5.8-3
&lt;br&gt;&lt;br&gt;Ciao, Joo
&lt;br&gt;&lt;br&gt;&lt;br&gt;------------------------------------------------------------------------------
&lt;br&gt;Return on Information:
&lt;br&gt;Google Enterprise Search pays you back
&lt;br&gt;Get the facts.
&lt;br&gt;&lt;a href=&quot;http://p.sf.net/sfu/google-dev2dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/google-dev2dev&lt;/a&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Dvdauthor-users mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26766891&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Dvdauthor-users@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/dvdauthor-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/dvdauthor-users&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/dvdauthor-users-f14461.html&quot; embed=&quot;fixTarget[14461]&quot; target=&quot;_top&quot; &gt;dvdauthor-users&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/New-release-DVDwizard-0.6.2-is-out-tp26766891p26766891.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26598121</id>
	<title>Perplexed: spumux or image problem?</title>
	<published>2009-12-01T11:48:26Z</published>
	<updated>2009-12-01T11:48:26Z</updated>
	<author>
		<name>em-21</name>
	</author>
	<content type="html">Hi at all,
&lt;br&gt;&lt;br&gt;Following an old message of Samantha Lane (Re: Perplexing problem with 
&lt;br&gt;spumux Date: 2005-04-29 04:07:16 GMT 
&lt;br&gt;&amp;lt;&lt;a href=&quot;http://article.gmane.org/gmane.comp.multimedia.dvdauthor.user/3093/match=last+button+parameters&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://article.gmane.org/gmane.comp.multimedia.dvdauthor.user/3093/match=last+button+parameters&lt;/a&gt;&amp;gt;) 
&lt;br&gt;&lt;br&gt;I'm working for several days to a very very simple dvd-menu with these 
&lt;br&gt;free software tools ;)
&lt;br&gt;&lt;br&gt;So, here are three images of a button
&lt;br&gt;&lt;br&gt;gm convert -depth 8 -colors 2 +antialias -size 720x576 density 75x80 
&lt;br&gt;xc:transparent menux1_normal.png
&lt;br&gt;gm convert -size 720x576 -density 75x80 xc:transparent -colors 2 
&lt;br&gt;+antialias -fill none -stroke blue -strokewidth 1 \
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;-draw &amp;quot;rectangle 36,30 218,176&amp;quot; menux1_highlight.png
&lt;br&gt;gm convert -size 720x576 -density 75x80 xc:transparent -colors 2 
&lt;br&gt;+antialias -fill none -stroke red -strokewidth 1 \
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;-draw &amp;quot;rectangle 36,30 218,176&amp;quot; menux1_select.png
&lt;br&gt;&lt;br&gt;and then a spumux.xml:
&lt;br&gt;&lt;br&gt;&amp;lt;subpictures&amp;gt;
&lt;br&gt;&amp;lt;stream&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;lt;spu
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; force=&amp;quot;yes&amp;quot;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; start=&amp;quot;00:00:00.00&amp;quot;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; image=&amp;quot;menux1_normal.png&amp;quot;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; select=&amp;quot;menux1_select.png&amp;quot;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; highlight=&amp;quot;menux1_highlight.png&amp;quot;&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp;&amp;lt;button name=&amp;quot;1&amp;quot; x0=&amp;quot;36&amp;quot; y0=&amp;quot;30&amp;quot; x1=&amp;quot;218&amp;quot; y1=&amp;quot;176&amp;quot;/&amp;gt;
&lt;br&gt;&amp;lt;/spu&amp;gt;
&lt;br&gt;&amp;lt;/stream&amp;gt;
&lt;br&gt;&amp;lt;/subpictures&amp;gt;
&lt;br&gt;&lt;br&gt;When I run spumux it seems all OK:
&lt;br&gt;[...]
&lt;br&gt;INFO: Picture menux1_normal.png had 1 colors
&lt;br&gt;INFO: Picture menux1_highlight.png had 2 colors
&lt;br&gt;INFO: Picture menux1_select.png had 2 colors
&lt;br&gt;INFO: Pickbuttongroups, success with 1 groups, useimg=1
&lt;br&gt;INFO: Found EOF in .sub file.
&lt;br&gt;INFO: Max_sub_size=470
&lt;br&gt;INFO: 1 subtitles added, 0 subtitles skipped, stream: 32, offset: 0.12
&lt;br&gt;&lt;br&gt;Statistics:
&lt;br&gt;- Processed 0 subtitles.
&lt;br&gt;- The longest display line had -1 characters.
&lt;br&gt;- The maximum number of displayed lines was 0.
&lt;br&gt;- The normal display height of the font arial.ttf was 0.
&lt;br&gt;- The bottom display height of the font arial.ttf was 0.
&lt;br&gt;- The biggest subtitle box had 470 bytes.
&lt;br&gt;&lt;br&gt;&lt;br&gt;But when I run dvdauthor I receive:
&lt;br&gt;[...]
&lt;br&gt;INFO: Creating menu for TOC
&lt;br&gt;&lt;br&gt;STAT: Processing menux6_final.mpg...
&lt;br&gt;ERR: &amp;nbsp;Cannot find button '2' as referenced by the subtitle
&lt;br&gt;&lt;br&gt;Running spuunmux, it seems to me that the program sees two bottons where 
&lt;br&gt;there is only one!
&lt;br&gt;Here is sub.xml:
&lt;br&gt;&amp;lt;subpictures&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp;&amp;lt;stream&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;spu highlight=&amp;quot;sub00000h.png&amp;quot; select=&amp;quot;sub00000s.png&amp;quot; 
&lt;br&gt;start=&amp;quot;00:00:00.00&amp;quot; xoffset=&amp;quot;36&amp;quot; yoffset=&amp;quot;30&amp;quot; force=&amp;quot;yes&amp;quot;&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;button name=&amp;quot;1&amp;quot; x0=&amp;quot;36&amp;quot; y0=&amp;quot;30&amp;quot; x1=&amp;quot;218&amp;quot; y1=&amp;quot;176&amp;quot; up=&amp;quot;1&amp;quot; 
&lt;br&gt;down=&amp;quot;1&amp;quot; left=&amp;quot;1&amp;quot; right=&amp;quot;1&amp;quot; /&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;/spu&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;spu highlight=&amp;quot;sub00001h.png&amp;quot; select=&amp;quot;sub00001s.png&amp;quot; 
&lt;br&gt;start=&amp;quot;00:00:00.00&amp;quot; xoffset=&amp;quot;26&amp;quot; yoffset=&amp;quot;28&amp;quot; force=&amp;quot;yes&amp;quot;&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;button name=&amp;quot;1&amp;quot; x0=&amp;quot;36&amp;quot; y0=&amp;quot;30&amp;quot; x1=&amp;quot;218&amp;quot; y1=&amp;quot;176&amp;quot; up=&amp;quot;1&amp;quot; 
&lt;br&gt;down=&amp;quot;1&amp;quot; left=&amp;quot;1&amp;quot; right=&amp;quot;1&amp;quot; /&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;/spu&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp;&amp;lt;/stream&amp;gt;
&lt;br&gt;&amp;lt;/subpictures&amp;gt;
&lt;br&gt;&lt;br&gt;Is a problem of my XML file or - as I read in others various messages 
&lt;br&gt;the list - a problem with the RGBA channel in ImageMagick/GraphicsMagick?
&lt;br&gt;How I can fix it?
&lt;br&gt;I'm working with fedora 10 (kernel 2.6.27.38-170.2.113.fc10.x86_64), 
&lt;br&gt;ImageMagick 6.4.0 07/27/08 Q16 and GraphicsMagick 1.1.14 2008-06-05 Q8 
&lt;br&gt;on a AMD, on a machine with AMD Athlon(tm) 64 X2 Dual Core Processor 5200+
&lt;br&gt;&lt;br&gt;Thanks!
&lt;br&gt;&lt;br&gt;enrico
&lt;br&gt;&lt;br&gt;------------------------------------------------------------------------------
&lt;br&gt;Join us December 9, 2009 for the Red Hat Virtual Experience,
&lt;br&gt;a free event focused on virtualization and cloud computing. 
&lt;br&gt;Attend in-depth sessions from your desk. Your couch. Anywhere.
&lt;br&gt;&lt;a href=&quot;http://p.sf.net/sfu/redhat-sfdev2dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/redhat-sfdev2dev&lt;/a&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Dvdauthor-users mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26598121&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Dvdauthor-users@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/dvdauthor-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/dvdauthor-users&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/dvdauthor-users-f14461.html&quot; embed=&quot;fixTarget[14461]&quot; target=&quot;_top&quot; &gt;dvdauthor-users&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Perplexed%3A-spumux-or-image-problem--tp26598121p26598121.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26559173</id>
	<title>Safe Output Directory Deletion</title>
	<published>2009-11-28T19:49:35Z</published>
	<updated>2009-11-28T19:49:35Z</updated>
	<author>
		<name>Lawrence D'Oliveiro-2</name>
	</author>
	<content type="html">Reminder: if you want to delete an output directory created by 
&lt;br&gt;dvdauthor, use the dvddirdel script provided. This only deletes the 
&lt;br&gt;subdirectories and files that you would expect to find within a 
&lt;br&gt;DVD-Video directory structure, reporting errors if it finds anything 
&lt;br&gt;else. This helps to guard against accidentally deleting the wrong 
&lt;br&gt;directory, as is possible with “rm -rf”.
&lt;br&gt;&lt;br&gt;Having suffered more than one accident in this regard makes me 
&lt;br&gt;appreciate this sort of thing. :)
&lt;br&gt;&lt;br&gt;------------------------------------------------------------------------------
&lt;br&gt;Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
&lt;br&gt;trial. Simplify your report design, integration and deployment - and focus on 
&lt;br&gt;what you do best, core application coding. Discover what's new with
&lt;br&gt;Crystal Reports now. &amp;nbsp;&lt;a href=&quot;http://p.sf.net/sfu/bobj-july&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/bobj-july&lt;/a&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Dvdauthor-users mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26559173&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Dvdauthor-users@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/dvdauthor-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/dvdauthor-users&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/dvdauthor-users-f14461.html&quot; embed=&quot;fixTarget[14461]&quot; target=&quot;_top&quot; &gt;dvdauthor-users&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Safe-Output-Directory-Deletion-tp26559173p26559173.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26511328</id>
	<title>how to use existing mpeg2 files?</title>
	<published>2009-11-25T03:44:14Z</published>
	<updated>2009-11-25T03:44:14Z</updated>
	<author>
		<name>Tony Ross-2</name>
	</author>
	<content type="html">Using qdvdauthor 2.0.0, I am building DVDs that are composed of multiple
&lt;br&gt;mpeg2 files that were built by a Hauupauge PVR-500MCE capture card with
&lt;br&gt;hardware mpeg2 compression.
&lt;br&gt;&lt;br&gt;The execution consists of, in part, such blocks as:
&lt;br&gt;&lt;br&gt;cmd&amp;gt; /usr/bin/ffmpeg -i
&lt;br&gt;&amp;quot;/home/me/videos/emmett/geiger_30-way.mpg&amp;quot; -vn -acodec ac3 -ar 48000 -ab
&lt;br&gt;224000 -y &amp;quot;/tmp/gsppt/geiger_30-way/geiger_30-way.ac3&amp;quot;
&lt;br&gt;&lt;br&gt;cmd&amp;gt; /usr/bin/ffmpeg -i
&lt;br&gt;&amp;quot;/home/me/videos/emmett/geiger_30-way.mpg&amp;quot; -an -acodec copy -y
&lt;br&gt;&amp;quot;/tmp/gsppt/geiger_30-way/geiger_30-way.m2v&amp;quot;
&lt;br&gt;&lt;br&gt;cmd&amp;gt; /usr/bin/ffmpeg -i &amp;quot;/tmp/gsppt/geiger_30-way/geiger_30-way.ac3&amp;quot; -i
&lt;br&gt;&amp;quot;/tmp/gsppt/geiger_30-way/geiger_30-way.m2v&amp;quot; -aspect 4:3 -target
&lt;br&gt;ntsc-dvd -ar 48000 -ab 224000 -y
&lt;br&gt;&amp;quot;/tmp/gsppt/geiger_30-way/geiger_30-way.mpeg2&amp;quot;
&lt;br&gt;&lt;br&gt;Stripping the audio and video streams and then re-combining them causes a
&lt;br&gt;very pixelated finished product, something totally undesirable.
&lt;br&gt;&lt;br&gt;I thought I could use the existing mpeg2 files with less processing as
&lt;br&gt;follows:
&lt;br&gt;&lt;br&gt;cmd&amp;gt;
&lt;br&gt;cmd&amp;gt;
&lt;br&gt;cmd&amp;gt; /usr/bin/ffmpeg -i &amp;quot;/home/me/videos/emmett/geiger_30-way.mpg&amp;quot; -aspect
&lt;br&gt;4:3 -target ntsc-dvd -ar 48000 -ab 224000 -y
&lt;br&gt;&amp;quot;/tmp/gsppt/geiger_30-way/geiger_30-way.mpeg2&amp;quot;
&lt;br&gt;&lt;br&gt;Everything appears to continue processing normally, but I find that the
&lt;br&gt;VTS_01_0.IFO is of zero size, as is the dvd.iso file.
&lt;br&gt;&lt;br&gt;Am I missing some necessary options to the ffmpeg command?
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;------------------------------------------------------------------------------
&lt;br&gt;Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
&lt;br&gt;trial. Simplify your report design, integration and deployment - and focus on 
&lt;br&gt;what you do best, core application coding. Discover what's new with
&lt;br&gt;Crystal Reports now. &amp;nbsp;&lt;a href=&quot;http://p.sf.net/sfu/bobj-july&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/bobj-july&lt;/a&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;QDVDAuthor-users mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26511328&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;QDVDAuthor-users@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/qdvdauthor-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/qdvdauthor-users&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/qdvdauthor-users-f4053.html&quot; embed=&quot;fixTarget[4053]&quot; target=&quot;_top&quot; &gt;qdvdauthor-users&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/how-to-use-existing-mpeg2-files--tp26511328p26511328.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26474802</id>
	<title>Re: Video caption bug</title>
	<published>2009-11-23T01:22:04Z</published>
	<updated>2009-11-23T01:22:04Z</updated>
	<author>
		<name>Lawrence D'Oliveiro-2</name>
	</author>
	<content type="html">Back on 22nd Nov 2005, Alex Thuering wrote:
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; dvdauthor print allways a error if you specify caption for video.
&lt;br&gt;&amp;gt; I looked into the code (dvdauthor.c:268) and found that
&lt;br&gt;&amp;gt; it is missing a &amp;quot;return&amp;quot; there.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; if( ATTRMATCH(VIDEO_CAPTION) ) {
&lt;br&gt;&amp;gt; if( !strcasecmp(s,&amp;quot;field1&amp;quot;) )
&lt;br&gt;&amp;gt; va-&amp;gt;vd.vcaption|=1;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; return ?; &amp;lt;&amp;lt;
&lt;br&gt;&amp;gt; else if( !strcasecmp(s,&amp;quot;field2&amp;quot;) )
&lt;br&gt;&amp;gt; va-&amp;gt;vd.vcaption|=2;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; return ?; &amp;lt;&amp;lt;
&lt;br&gt;&amp;gt; }
&lt;/div&gt;&lt;br&gt;I did a variant of this patch that also returns a nonzero status if the 
&lt;br&gt;caption bits were previously set. This way you get an error if you try 
&lt;br&gt;to specify this more than once.
&lt;br&gt;&lt;br&gt;As usual, my version of the code is available here 
&lt;br&gt;&amp;lt;&lt;a href=&quot;http://github.com/ldo/dvdauthor&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://github.com/ldo/dvdauthor&lt;/a&gt;&amp;gt;.
&lt;br&gt;&lt;br&gt;------------------------------------------------------------------------------
&lt;br&gt;Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
&lt;br&gt;trial. Simplify your report design, integration and deployment - and focus on 
&lt;br&gt;what you do best, core application coding. Discover what's new with
&lt;br&gt;Crystal Reports now. &amp;nbsp;&lt;a href=&quot;http://p.sf.net/sfu/bobj-july&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/bobj-july&lt;/a&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Dvdauthor-developer mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26474802&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Dvdauthor-developer@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/dvdauthor-developer&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/dvdauthor-developer&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/dvdauthor-developer-f14460.html&quot; embed=&quot;fixTarget[14460]&quot; target=&quot;_top&quot; &gt;dvdauthor-developer&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Re%3A-Video-caption-bug-tp26474802p26474802.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26404260</id>
	<title>New release DVDwizard 0.6.1 is out</title>
	<published>2009-11-18T00:38:30Z</published>
	<updated>2009-11-18T00:38:30Z</updated>
	<author>
		<name>Joo Martin-4</name>
	</author>
	<content type="html">Hello,
&lt;br&gt;&lt;br&gt;the new release of DVDwizard version 0.6.1 is out. 
&lt;br&gt;This are the changes:
&lt;br&gt;&lt;br&gt;&lt;br&gt;0.6.1 &amp;nbsp; &amp;nbsp;(2009-11-17)
&lt;br&gt;-----
&lt;br&gt;- Minimal version of ImageMagick defined to 6.3.5-0
&lt;br&gt;- Second patch for ImageMagick 6.5.5.x
&lt;br&gt;- Check valid duration time of video streams
&lt;br&gt;- Solution for warning 'geometry does not contain image'
&lt;br&gt;- Check for NTSC videos; check existance of screenshots
&lt;br&gt;- Tested with transcode 1.1.5
&lt;br&gt;&lt;br&gt;&lt;br&gt;Especially the checks with NTSC were my work the last days. From my
&lt;br&gt;side all is o.k. for NTSC. But there are some bug messages. It would 
&lt;br&gt;be very nice that some other people could test the new DVDwizard with
&lt;br&gt;original NTSC videos.
&lt;br&gt;&lt;br&gt;Ciao, Joo
&lt;br&gt;&lt;br&gt;------------------------------------------------------------------------------
&lt;br&gt;Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
&lt;br&gt;trial. Simplify your report design, integration and deployment - and focus on 
&lt;br&gt;what you do best, core application coding. Discover what's new with
&lt;br&gt;Crystal Reports now. &amp;nbsp;&lt;a href=&quot;http://p.sf.net/sfu/bobj-july&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/bobj-july&lt;/a&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Dvdauthor-users mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26404260&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Dvdauthor-users@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/dvdauthor-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/dvdauthor-users&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/dvdauthor-users-f14461.html&quot; embed=&quot;fixTarget[14461]&quot; target=&quot;_top&quot; &gt;dvdauthor-users&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/New-release-DVDwizard-0.6.1-is-out-tp26404260p26404260.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26369320</id>
	<title>Re: possible typo in src/compat.h</title>
	<published>2009-11-16T01:55:57Z</published>
	<updated>2009-11-16T01:55:57Z</updated>
	<author>
		<name>Lawrence D'Oliveiro-2</name>
	</author>
	<content type="html">I wrote:
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Back on 15 Jul 2007, Klaus Heinz-22 wrote:
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt;&amp;gt; in dvdauthor 0.6.14 src/compat.h contains a macro ICONV_CONV which has
&lt;br&gt;&amp;gt;&amp;gt; no definition anywhere in the code. On the other hand, there is
&lt;br&gt;&amp;gt;&amp;gt; ICONV_CONST in config.h and incidentally ICONV_CONV protects a section
&lt;br&gt;&amp;gt;&amp;gt; about iconv(), so I think the appended little patch is what was 
&lt;br&gt;&amp;gt;&amp;gt; originally
&lt;br&gt;&amp;gt;&amp;gt; intended. 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; I have decided to apply this. Can anybody see a downside?
&lt;/div&gt;&lt;br&gt;Actually, both the original code and the patch are wrong. Casting an 
&lt;br&gt;actual argument to “const” is pointless. In fact, there is one 
&lt;br&gt;compilation warning because a const buffer is being passed to the second 
&lt;br&gt;argument of iconv(3), which is not declared as const (src/readxml.c, 
&lt;br&gt;line 268).
&lt;br&gt;&lt;br&gt;I have removed all this ICONV_CONST/ICONV_CAST business, and put in one 
&lt;br&gt;unconditional cast to fix the above warning.
&lt;br&gt;&lt;br&gt;------------------------------------------------------------------------------
&lt;br&gt;Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
&lt;br&gt;trial. Simplify your report design, integration and deployment - and focus on 
&lt;br&gt;what you do best, core application coding. Discover what's new with
&lt;br&gt;Crystal Reports now. &amp;nbsp;&lt;a href=&quot;http://p.sf.net/sfu/bobj-july&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/bobj-july&lt;/a&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Dvdauthor-developer mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26369320&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Dvdauthor-developer@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/dvdauthor-developer&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/dvdauthor-developer&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/dvdauthor-developer-f14460.html&quot; embed=&quot;fixTarget[14460]&quot; target=&quot;_top&quot; &gt;dvdauthor-developer&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Re%3A-possible-typo-in-src-compat.h-tp26251046p26369320.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26296163</id>
	<title>Re: Multimedia Course Notes</title>
	<published>2009-11-10T21:03:42Z</published>
	<updated>2009-11-10T21:03:42Z</updated>
	<author>
		<name>Ben Hutchings-3</name>
	</author>
	<content type="html">On Tue, 2009-11-10 at 20:27 +1300, Lawrence D'Oliveiro wrote:
&lt;div class='shrinkable-quote'&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Ben Hutchings wrote:
&lt;br&gt;&amp;gt; &amp;nbsp;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; On Tue, 2009-11-10 at 14:32 +1300, Lawrence D'Oliveiro wrote:
&lt;br&gt;&amp;gt; &amp;nbsp;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; Ben Hutchings wrote:
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;&amp;gt; - least number of chroma samples per line, c2
&lt;br&gt;&amp;gt; &amp;nbsp;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; But this is never zero. Unless you truncate it to an integer.
&lt;br&gt;&amp;gt; &amp;gt; 
&lt;br&gt;&amp;gt; &amp;gt; Per scan-line, not per line of chroma samples. &amp;nbsp;To a first
&lt;br&gt;&amp;gt; &amp;gt; approximation, the sample sites for 2x subsampling look like:
&lt;br&gt;&amp;gt; &amp;gt; 
&lt;br&gt;&amp;gt; &amp;gt; YCY YCY &amp;nbsp;4:2
&lt;br&gt;&amp;gt; &amp;gt; Y Y Y Y &amp;nbsp; :0
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; But those chroma samples are shared between the lines.
&lt;/div&gt;&lt;/div&gt;Kind of. &amp;nbsp;This gets complicated when you consider how it interacts with
&lt;br&gt;interlacing.
&lt;br&gt;&lt;br&gt;&amp;gt; So the value is 0.5, not 0. Unless you truncate it to an integer.
&lt;br&gt;&lt;br&gt;Yes, well, maybe it's not so useful to treat the third number as part of
&lt;br&gt;a ratio.
&lt;br&gt;&lt;br&gt;Ben.
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Ben Hutchings
&lt;br&gt;The generation of random numbers is too important to be left to chance.
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; - Robert Coveyou
&lt;br&gt;&lt;br /&gt; &lt;br /&gt;------------------------------------------------------------------------------
&lt;br&gt;Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
&lt;br&gt;trial. Simplify your report design, integration and deployment - and focus on 
&lt;br&gt;what you do best, core application coding. Discover what's new with
&lt;br&gt;Crystal Reports now. &amp;nbsp;&lt;a href=&quot;http://p.sf.net/sfu/bobj-july&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/bobj-july&lt;/a&gt;&lt;br /&gt;_______________________________________________
&lt;br&gt;Dvdauthor-users mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26296163&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Dvdauthor-users@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/dvdauthor-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/dvdauthor-users&lt;/a&gt;&lt;br&gt;&lt;div class=&quot;small&quot;&gt;&lt;br/&gt;&lt;img src=&quot;http://old.nabble.com/images/icon_attachment.gif&quot; &gt; &lt;strong&gt;signature.asc&lt;/strong&gt; (845 bytes) &lt;a href=&quot;http://old.nabble.com/attachment/26296163/0/signature.asc&quot; target=&quot;_top&quot;&gt;Download Attachment&lt;/a&gt;&lt;/div&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/dvdauthor-users-f14461.html&quot; embed=&quot;fixTarget[14461]&quot; target=&quot;_top&quot; &gt;dvdauthor-users&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Multimedia-Course-Notes-tp26263239p26296163.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26279373</id>
	<title>Re: Multimedia Course Notes</title>
	<published>2009-11-09T23:27:39Z</published>
	<updated>2009-11-09T23:27:39Z</updated>
	<author>
		<name>Lawrence D'Oliveiro-2</name>
	</author>
	<content type="html">Ben Hutchings wrote:
&lt;br&gt;&amp;nbsp;&amp;gt;
&lt;br&gt;&amp;gt; On Tue, 2009-11-10 at 14:32 +1300, Lawrence D'Oliveiro wrote:
&lt;br&gt;&amp;nbsp;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Ben Hutchings wrote:
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; - least number of chroma samples per line, c2
&lt;br&gt;&amp;nbsp;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; But this is never zero. Unless you truncate it to an integer.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Per scan-line, not per line of chroma samples. &amp;nbsp;To a first
&lt;br&gt;&amp;gt; approximation, the sample sites for 2x subsampling look like:
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; YCY YCY &amp;nbsp;4:2
&lt;br&gt;&amp;gt; Y Y Y Y &amp;nbsp; :0
&lt;br&gt;&lt;br&gt;But those chroma samples are shared between the lines. So the value is 
&lt;br&gt;0.5, not 0. Unless you truncate it to an integer.
&lt;br&gt;&lt;br&gt;------------------------------------------------------------------------------
&lt;br&gt;Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
&lt;br&gt;trial. Simplify your report design, integration and deployment - and focus on 
&lt;br&gt;what you do best, core application coding. Discover what's new with
&lt;br&gt;Crystal Reports now. &amp;nbsp;&lt;a href=&quot;http://p.sf.net/sfu/bobj-july&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/bobj-july&lt;/a&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Dvdauthor-users mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26279373&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Dvdauthor-users@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/dvdauthor-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/dvdauthor-users&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/dvdauthor-users-f14461.html&quot; embed=&quot;fixTarget[14461]&quot; target=&quot;_top&quot; &gt;dvdauthor-users&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Multimedia-Course-Notes-tp26263239p26279373.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26277373</id>
	<title>Re: Multimedia Course Notes</title>
	<published>2009-11-09T18:30:26Z</published>
	<updated>2009-11-09T18:30:26Z</updated>
	<author>
		<name>Ben Hutchings-3</name>
	</author>
	<content type="html">On Tue, 2009-11-10 at 14:32 +1300, Lawrence D'Oliveiro wrote:
&lt;br&gt;&amp;gt; Ben Hutchings wrote:
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;gt; - least number of chroma samples per line, c2
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; But this is never zero. Unless you truncate it to an integer.
&lt;br&gt;&lt;br&gt;Per scan-line, not per line of chroma samples. &amp;nbsp;To a first
&lt;br&gt;approximation, the sample sites for 2x subsampling look like:
&lt;br&gt;&lt;br&gt;YCY YCY &amp;nbsp;4:2
&lt;br&gt;Y Y Y Y &amp;nbsp; :0
&lt;br&gt;&lt;br&gt;Ben.
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Ben Hutchings
&lt;br&gt;The generation of random numbers is too important to be left to chance.
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; - Robert Coveyou
&lt;br&gt;&lt;br /&gt; &lt;br /&gt;------------------------------------------------------------------------------
&lt;br&gt;Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
&lt;br&gt;trial. Simplify your report design, integration and deployment - and focus on 
&lt;br&gt;what you do best, core application coding. Discover what's new with
&lt;br&gt;Crystal Reports now. &amp;nbsp;&lt;a href=&quot;http://p.sf.net/sfu/bobj-july&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/bobj-july&lt;/a&gt;&lt;br /&gt;_______________________________________________
&lt;br&gt;Dvdauthor-users mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26277373&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Dvdauthor-users@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/dvdauthor-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/dvdauthor-users&lt;/a&gt;&lt;br&gt;&lt;div class=&quot;small&quot;&gt;&lt;br/&gt;&lt;img src=&quot;http://old.nabble.com/images/icon_attachment.gif&quot; &gt; &lt;strong&gt;signature.asc&lt;/strong&gt; (845 bytes) &lt;a href=&quot;http://old.nabble.com/attachment/26277373/0/signature.asc&quot; target=&quot;_top&quot;&gt;Download Attachment&lt;/a&gt;&lt;/div&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/dvdauthor-users-f14461.html&quot; embed=&quot;fixTarget[14461]&quot; target=&quot;_top&quot; &gt;dvdauthor-users&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Multimedia-Course-Notes-tp26263239p26277373.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26277140</id>
	<title>Re: Multimedia Course Notes</title>
	<published>2009-11-09T17:32:03Z</published>
	<updated>2009-11-09T17:32:03Z</updated>
	<author>
		<name>Lawrence D'Oliveiro-2</name>
	</author>
	<content type="html">Ben Hutchings wrote:
&lt;br&gt;&lt;br&gt;&amp;gt; - least number of chroma samples per line, c2
&lt;br&gt;&lt;br&gt;But this is never zero. Unless you truncate it to an integer.
&lt;br&gt;&lt;br&gt;------------------------------------------------------------------------------
&lt;br&gt;Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
&lt;br&gt;trial. Simplify your report design, integration and deployment - and focus on 
&lt;br&gt;what you do best, core application coding. Discover what's new with
&lt;br&gt;Crystal Reports now. &amp;nbsp;&lt;a href=&quot;http://p.sf.net/sfu/bobj-july&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/bobj-july&lt;/a&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Dvdauthor-users mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26277140&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Dvdauthor-users@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/dvdauthor-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/dvdauthor-users&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/dvdauthor-users-f14461.html&quot; embed=&quot;fixTarget[14461]&quot; target=&quot;_top&quot; &gt;dvdauthor-users&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Multimedia-Course-Notes-tp26263239p26277140.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26276769</id>
	<title>Re: Multimedia Course Notes</title>
	<published>2009-11-09T17:21:15Z</published>
	<updated>2009-11-09T17:21:15Z</updated>
	<author>
		<name>Ben Hutchings-3</name>
	</author>
	<content type="html">On Mon, 2009-11-09 at 23:15 +1300, Lawrence D'Oliveiro wrote:
&lt;br&gt;&amp;gt; Where do those &amp;quot;4:2:2&amp;quot;, &amp;quot;4:1:1&amp;quot; and &amp;quot;4:2:0&amp;quot; numbers come from 
&lt;br&gt;&amp;gt; &amp;lt;&lt;a href=&quot;http://www.cs.cf.ac.uk/Dave/Multimedia/node196.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.cs.cf.ac.uk/Dave/Multimedia/node196.html&lt;/a&gt;&amp;gt;? I know they're 
&lt;br&gt;&amp;gt; commonly used, but they don't really seem to mean anything.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; If the second and third numbers refer to the downsampling factors in the 
&lt;br&gt;&amp;gt; vertical and horizontal directions respectively, then the numbers should 
&lt;br&gt;&amp;gt; be &amp;quot;4:2:1&amp;quot;, &amp;quot;4:2:0.5&amp;quot; and &amp;quot;4:1:1&amp;quot;.
&lt;br&gt;&lt;br&gt;It's a ratio between:
&lt;br&gt;- number of luma samples per line, l
&lt;br&gt;- greatest number of chroma samples per line, c1
&lt;br&gt;- least number of chroma samples per line, c2
&lt;br&gt;usually scaled so the largest number is 4.
&lt;br&gt;&lt;br&gt;In practice c2 can either be equal to c1 (no vertical subsampling) or
&lt;br&gt;zero (2x vertical subsampling).
&lt;br&gt;&lt;br&gt;Ben.
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Ben Hutchings
&lt;br&gt;The generation of random numbers is too important to be left to chance.
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; - Robert Coveyou
&lt;br&gt;&lt;br /&gt; &lt;br /&gt;------------------------------------------------------------------------------
&lt;br&gt;Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
&lt;br&gt;trial. Simplify your report design, integration and deployment - and focus on 
&lt;br&gt;what you do best, core application coding. Discover what's new with
&lt;br&gt;Crystal Reports now. &amp;nbsp;&lt;a href=&quot;http://p.sf.net/sfu/bobj-july&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/bobj-july&lt;/a&gt;&lt;br /&gt;_______________________________________________
&lt;br&gt;Dvdauthor-users mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26276769&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Dvdauthor-users@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/dvdauthor-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/dvdauthor-users&lt;/a&gt;&lt;br&gt;&lt;div class=&quot;small&quot;&gt;&lt;br/&gt;&lt;img src=&quot;http://old.nabble.com/images/icon_attachment.gif&quot; &gt; &lt;strong&gt;signature.asc&lt;/strong&gt; (845 bytes) &lt;a href=&quot;http://old.nabble.com/attachment/26276769/0/signature.asc&quot; target=&quot;_top&quot;&gt;Download Attachment&lt;/a&gt;&lt;/div&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/dvdauthor-users-f14461.html&quot; embed=&quot;fixTarget[14461]&quot; target=&quot;_top&quot; &gt;dvdauthor-users&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Multimedia-Course-Notes-tp26263239p26276769.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26265424</id>
	<title>Re: Multimedia Course Notes</title>
	<published>2009-11-09T03:51:46Z</published>
	<updated>2009-11-09T03:51:46Z</updated>
	<author>
		<name>Ilya Murav'jov</name>
	</author>
	<content type="html">Lawrence D'Oliveiro пишет:
&lt;br&gt;&amp;gt; Where do those &amp;quot;4:2:2&amp;quot;, &amp;quot;4:1:1&amp;quot; and &amp;quot;4:2:0&amp;quot; numbers come from 
&lt;br&gt;&amp;gt; &amp;lt;&lt;a href=&quot;http://www.cs.cf.ac.uk/Dave/Multimedia/node196.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.cs.cf.ac.uk/Dave/Multimedia/node196.html&lt;/a&gt;&amp;gt;? I know they're 
&lt;br&gt;&amp;gt; commonly used, but they don't really seem to mean anything.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; If the second and third numbers refer to the downsampling factors in the 
&lt;br&gt;&amp;gt; vertical and horizontal directions respectively, then the numbers should 
&lt;br&gt;&amp;gt; be &amp;quot;4:2:1&amp;quot;, &amp;quot;4:2:0.5&amp;quot; and &amp;quot;4:1:1&amp;quot;.
&lt;br&gt;&amp;gt; 
&lt;br&gt;As far as I understand the second number shows downsampling factor
&lt;br&gt;horizontally (it is equal for both chroma). Third number shows nothing
&lt;br&gt;real, just mapping to a particular schema (IMHO).
&lt;br&gt;&lt;br&gt;Ilya
&lt;br&gt;&lt;br&gt;&lt;br&gt;------------------------------------------------------------------------------
&lt;br&gt;Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
&lt;br&gt;trial. Simplify your report design, integration and deployment - and focus on 
&lt;br&gt;what you do best, core application coding. Discover what's new with
&lt;br&gt;Crystal Reports now. &amp;nbsp;&lt;a href=&quot;http://p.sf.net/sfu/bobj-july&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/bobj-july&lt;/a&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Dvdauthor-users mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26265424&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Dvdauthor-users@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/dvdauthor-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/dvdauthor-users&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/dvdauthor-users-f14461.html&quot; embed=&quot;fixTarget[14461]&quot; target=&quot;_top&quot; &gt;dvdauthor-users&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Multimedia-Course-Notes-tp26263239p26265424.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26263943</id>
	<title>Re: Multimedia Course Notes</title>
	<published>2009-11-09T02:15:23Z</published>
	<updated>2009-11-09T02:15:23Z</updated>
	<author>
		<name>Lawrence D'Oliveiro-2</name>
	</author>
	<content type="html">Where do those &amp;quot;4:2:2&amp;quot;, &amp;quot;4:1:1&amp;quot; and &amp;quot;4:2:0&amp;quot; numbers come from 
&lt;br&gt;&amp;lt;&lt;a href=&quot;http://www.cs.cf.ac.uk/Dave/Multimedia/node196.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.cs.cf.ac.uk/Dave/Multimedia/node196.html&lt;/a&gt;&amp;gt;? I know they're 
&lt;br&gt;commonly used, but they don't really seem to mean anything.
&lt;br&gt;&lt;br&gt;If the second and third numbers refer to the downsampling factors in the 
&lt;br&gt;vertical and horizontal directions respectively, then the numbers should 
&lt;br&gt;be &amp;quot;4:2:1&amp;quot;, &amp;quot;4:2:0.5&amp;quot; and &amp;quot;4:1:1&amp;quot;.
&lt;br&gt;&lt;br&gt;------------------------------------------------------------------------------
&lt;br&gt;Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
&lt;br&gt;trial. Simplify your report design, integration and deployment - and focus on 
&lt;br&gt;what you do best, core application coding. Discover what's new with
&lt;br&gt;Crystal Reports now. &amp;nbsp;&lt;a href=&quot;http://p.sf.net/sfu/bobj-july&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/bobj-july&lt;/a&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Dvdauthor-users mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26263943&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Dvdauthor-users@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/dvdauthor-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/dvdauthor-users&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/dvdauthor-users-f14461.html&quot; embed=&quot;fixTarget[14461]&quot; target=&quot;_top&quot; &gt;dvdauthor-users&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Multimedia-Course-Notes-tp26263239p26263943.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26263239</id>
	<title>Multimedia Course Notes</title>
	<published>2009-11-09T01:13:19Z</published>
	<updated>2009-11-09T01:13:19Z</updated>
	<author>
		<name>Lawrence D'Oliveiro-2</name>
	</author>
	<content type="html">Been reading these online notes 
&lt;br&gt;&amp;lt;&lt;a href=&quot;http://www.cs.cf.ac.uk/Dave/Multimedia/index_html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.cs.cf.ac.uk/Dave/Multimedia/index_html&lt;/a&gt;&amp;gt; for a course on 
&lt;br&gt;multimedia. Just noticed on this page 
&lt;br&gt;&amp;lt;&lt;a href=&quot;http://www.cs.cf.ac.uk/Dave/Multimedia/node136.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.cs.cf.ac.uk/Dave/Multimedia/node136.html&lt;/a&gt;&amp;gt;, it says:
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;Using the traditional (and rather subjective) television measurement
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;of lines of horizontal resolution DVD can have 540 lines on a
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;standard TV (720/(4/3)) and 405 on a widescreen TV (720/(16/9)).
&lt;br&gt;&lt;br&gt;Actually, that’s wrong. The 4:3 factor is the “Kell factor”, it has 
&lt;br&gt;nothing to do with the aspect ratio of the screen. Thus the same 540 
&lt;br&gt;value applies to both narrowscreen and widescreen formats.
&lt;br&gt;&lt;br&gt;------------------------------------------------------------------------------
&lt;br&gt;Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
&lt;br&gt;trial. Simplify your report design, integration and deployment - and focus on 
&lt;br&gt;what you do best, core application coding. Discover what's new with
&lt;br&gt;Crystal Reports now. &amp;nbsp;&lt;a href=&quot;http://p.sf.net/sfu/bobj-july&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/bobj-july&lt;/a&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Dvdauthor-users mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26263239&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Dvdauthor-users@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/dvdauthor-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/dvdauthor-users&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/dvdauthor-users-f14461.html&quot; embed=&quot;fixTarget[14461]&quot; target=&quot;_top&quot; &gt;dvdauthor-users&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Multimedia-Course-Notes-tp26263239p26263239.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26262151</id>
	<title>Re: ivtv patches gone?</title>
	<published>2009-11-08T23:18:34Z</published>
	<updated>2009-11-08T23:18:34Z</updated>
	<author>
		<name>Lawrence D'Oliveiro-2</name>
	</author>
	<content type="html">martin wrote:
&lt;br&gt;&lt;br&gt;&amp;gt; I think it is almost certainly the same as the one that Joo just posted
&lt;br&gt;&amp;nbsp;&amp;gt; ...
&lt;br&gt;&lt;br&gt;I have done a diff and verified that they are identical.
&lt;br&gt;&lt;br&gt;Thanks to both of you for resurrecting this. :)
&lt;br&gt;&lt;br&gt;Lawrence
&lt;br&gt;&lt;br&gt;------------------------------------------------------------------------------
&lt;br&gt;Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
&lt;br&gt;trial. Simplify your report design, integration and deployment - and focus on 
&lt;br&gt;what you do best, core application coding. Discover what's new with
&lt;br&gt;Crystal Reports now. &amp;nbsp;&lt;a href=&quot;http://p.sf.net/sfu/bobj-july&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/bobj-july&lt;/a&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Dvdauthor-developer mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26262151&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Dvdauthor-developer@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/dvdauthor-developer&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/dvdauthor-developer&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/dvdauthor-developer-f14460.html&quot; embed=&quot;fixTarget[14460]&quot; target=&quot;_top&quot; &gt;dvdauthor-developer&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/ivtv-patches-gone--tp26250967p26262151.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26261601</id>
	<title>Re: [Dvdauthor-developer] spumux/dvd-text TitleList and Menus not working on a Sony player</title>
	<published>2009-11-08T21:47:57Z</published>
	<updated>2009-11-08T21:47:57Z</updated>
	<author>
		<name>Lawrence D'Oliveiro-2</name>
	</author>
	<content type="html">jon33 wrote:
&lt;br&gt;&lt;br&gt;&amp;gt; On the computers, and in one DVD player in the house, the DVD starts at the
&lt;br&gt;&amp;gt; first menu, and the menus work fine. 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; In the Sony DVD player, there are two problems - (1) it does not fire up the
&lt;br&gt;&amp;gt; first menu automatically, and (2) the selection highlight on the menu does
&lt;br&gt;&amp;gt; not appear.
&lt;br&gt;&lt;br&gt;Not sure about the second problem, but as for the first one--do you have 
&lt;br&gt;a command in the FPC to jump to the first menu?
&lt;br&gt;&lt;br&gt;Players might do something automatically in the absence of this, but DVD 
&lt;br&gt;recorders probably won’t.
&lt;br&gt;&lt;br&gt;------------------------------------------------------------------------------
&lt;br&gt;Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
&lt;br&gt;trial. Simplify your report design, integration and deployment - and focus on 
&lt;br&gt;what you do best, core application coding. Discover what's new with
&lt;br&gt;Crystal Reports now. &amp;nbsp;&lt;a href=&quot;http://p.sf.net/sfu/bobj-july&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/bobj-july&lt;/a&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Dvdauthor-users mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26261601&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Dvdauthor-users@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/dvdauthor-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/dvdauthor-users&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/dvdauthor-users-f14461.html&quot; embed=&quot;fixTarget[14461]&quot; target=&quot;_top&quot; &gt;dvdauthor-users&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Re%3A--Dvdauthor-developer--spumux-dvd-text-TitleList-and-Menus-not-working-on-a-Sony-player-tp26261601p26261601.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26258278</id>
	<title>Re: ivtv patches gone?</title>
	<published>2009-11-08T13:40:20Z</published>
	<updated>2009-11-08T13:40:20Z</updated>
	<author>
		<name>Martin Crossley</name>
	</author>
	<content type="html">Hello all -
&lt;br&gt;&lt;br&gt;OK from the original development files, here is a copy of my final version
&lt;br&gt;of dvdauthor-0.6.14-ivtv-patch-0.2
&lt;br&gt;&lt;br&gt;I think it is almost certainly the same as the one that Joo just posted,
&lt;br&gt;but I did make a few tweaks in the final days. &amp;nbsp;The attached is the
&lt;br&gt;definitive final version.
&lt;br&gt;&lt;br&gt;thank heavens for backups...
&lt;br&gt;&lt;br&gt;Kind regards to all
&lt;br&gt;&lt;br&gt;MartinC
&lt;br&gt;&lt;br&gt;PS - Although the MPEG headers are a bit intimidating to start with (I
&lt;br&gt;find most of the specs almost impenetrable) it's well worth persevering,
&lt;br&gt;and the sources I referenced in the following make it much more accessible.
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;===========================
&lt;br&gt;--- src/dvdvob.c.dist	2008-06-06 13:16:57.000000000 +0100
&lt;br&gt;+++ src/dvdvob.c	2008-06-06 13:29:47.000000000 +0100
&lt;br&gt;@@ -16,8 +16,31 @@
&lt;br&gt;&amp;nbsp; * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA &amp;nbsp;02111-1307
&lt;br&gt;&amp;nbsp; * USA
&lt;br&gt;&amp;nbsp; */
&lt;br&gt;&amp;nbsp;
&lt;br&gt;+/* NOTE TO THOSE UNFAMILIAR WITH MPEG FORMAT
&lt;br&gt;+ * &amp;nbsp; &amp;nbsp; &amp;nbsp; This code contains many 'magic numbers' related to analysing and
&lt;br&gt;+ * &amp;nbsp; &amp;nbsp; &amp;nbsp; and parsing MPEG data. MPEG content consists of a series of
&lt;br&gt;+ * &amp;nbsp; &amp;nbsp; &amp;nbsp; 2048 byte 'packs'. Each pack begins with a pack header that is
&lt;br&gt;+ * &amp;nbsp; &amp;nbsp; &amp;nbsp; identified by the byte sequence 00 00 01 BA. The rest of the
&lt;br&gt;pack
&lt;br&gt;+ * &amp;nbsp; &amp;nbsp; &amp;nbsp; contains other headers (each identified by their own start
&lt;br&gt;code),
&lt;br&gt;+ * &amp;nbsp; &amp;nbsp; &amp;nbsp; plus payload data and optional stuffing bytes. The headers
&lt;br&gt;contain
&lt;br&gt;+ * &amp;nbsp; &amp;nbsp; &amp;nbsp; data fields describing different aspect of the payload, timing
&lt;br&gt;etc.
&lt;br&gt;+ * &amp;nbsp; &amp;nbsp; &amp;nbsp; Frequently encountered types of header include:
&lt;br&gt;+ *		00 00 01 BA : pack header;
&lt;br&gt;+ *		00 00 01 BB : system header;
&lt;br&gt;+ *		00 00 01 B3 : sequence header;
&lt;br&gt;+ *		00 00 01 B5 : extension header;
&lt;br&gt;+ *		00 00 01 B8 : group-of-pictures (GOP) header;
&lt;br&gt;+ *		00 00 01 E0 : programme-elementary-stream (PES) header for first
&lt;br&gt;video channel
&lt;br&gt;+ *		etc...
&lt;br&gt;+ * &amp;nbsp; &amp;nbsp; &amp;nbsp; A useful quick reference for identifying and decoding MPEG
&lt;br&gt;headers
&lt;br&gt;+ * &amp;nbsp; &amp;nbsp; &amp;nbsp; is available at &lt;a href=&quot;http://dvd.sourceforge.net/dvdinfo/mpeghdrs.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://dvd.sourceforge.net/dvdinfo/mpeghdrs.html&lt;/a&gt;&lt;br&gt;+ * &amp;nbsp; &amp;nbsp; &amp;nbsp; For detailed information try chapter 10 (p230) of 'digital video
&lt;br&gt;+ * &amp;nbsp; &amp;nbsp; &amp;nbsp; introduction to mpeg2' (Haskell, Puri and Netravali), which you
&lt;br&gt;can
&lt;br&gt;+ * &amp;nbsp; &amp;nbsp; &amp;nbsp; read online at &lt;a href=&quot;http://books.google.com&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://books.google.com&lt;/a&gt;&lt;br&gt;+ */
&lt;br&gt;+
&lt;br&gt;&amp;nbsp;#include &amp;quot;config.h&amp;quot;
&lt;br&gt;&amp;nbsp;
&lt;br&gt;&amp;nbsp;#include &amp;quot;compat.h&amp;quot;
&lt;br&gt;&amp;nbsp;
&lt;br&gt;@@ -233,8 +254,10 @@
&lt;br&gt;&amp;nbsp;}
&lt;br&gt;&amp;nbsp;
&lt;br&gt;&amp;nbsp;static void transpose_ts(unsigned char *buf,pts_t tsoffs)
&lt;br&gt;&amp;nbsp;{
&lt;br&gt;+ &amp;nbsp; &amp;nbsp;int shift;
&lt;br&gt;+
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;// pack scr
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;if( buf[0] == 0 &amp;&amp;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;buf[1] == 0 &amp;&amp;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;buf[2] == 1 &amp;&amp;
&lt;br&gt;@@ -243,23 +266,51 @@
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;writescr(buf+4,readscr(buf+4)+tsoffs);
&lt;br&gt;&amp;nbsp;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;// video/audio?
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;// pts?
&lt;br&gt;- &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;if( buf[14] == 0 &amp;&amp;
&lt;br&gt;- &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;buf[15] == 0 &amp;&amp;
&lt;br&gt;- &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;buf[16] == 1 &amp;&amp;
&lt;br&gt;- &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;(buf[17]==0xbd || (buf[17]&amp;gt;=0xc0 &amp;&amp; buf[17]&amp;lt;=0xef)) &amp;&amp;
&lt;br&gt;- &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;(buf[21] &amp; 128))
&lt;br&gt;+	// allow for optional system header before the PES header
&lt;br&gt;+	shift = (buf[17] == 0xbb) ? 24 : 0;
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;if( buf[14+shift] == 0 &amp;&amp;
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;buf[15+shift] == 0 &amp;&amp;
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;buf[16+shift] == 1 &amp;&amp;
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;(buf[17+shift]==0xbd || (buf[17+shift]&amp;gt;=0xc0 &amp;&amp;
&lt;br&gt;buf[17+shift]&amp;lt;=0xef)) &amp;&amp;
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;(buf[21+shift] &amp; 128))
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;{
&lt;br&gt;- &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;writepts(buf+23,readpts(buf+23)+tsoffs);
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;writepts(buf+23+shift,readpts(buf+23+shift)+tsoffs);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;// dts?
&lt;br&gt;- &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;if( buf[21] &amp; 64 ) {
&lt;br&gt;- &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;writepts(buf+28,readpts(buf+28)+tsoffs);
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;if( buf[21+shift] &amp; 64 ) {
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;writepts(buf+28+shift,readpts(buf+28+shift)+tsoffs);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;}
&lt;br&gt;&amp;nbsp;}
&lt;br&gt;&amp;nbsp;
&lt;br&gt;+int find_gop(unsigned char *buf)
&lt;br&gt;+{
&lt;br&gt;+ &amp;nbsp; &amp;nbsp;// if the pack has a system header and a video PES header, then check
&lt;br&gt;whether there is a GOP header
&lt;br&gt;+ &amp;nbsp; &amp;nbsp;if (buf[14] == 0 &amp;&amp;
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;buf[15] == 0 &amp;&amp;
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;buf[16] == 1 &amp;&amp;
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;buf[17] == 0xbb &amp;&amp;
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;buf[38] == 0 &amp;&amp;
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;buf[39] == 0 &amp;&amp;
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;buf[40] == 1 &amp;&amp;
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;buf[41] == 0xe0)
&lt;br&gt;+ &amp;nbsp; &amp;nbsp;{
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;int i = 42;
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;while (i &amp;lt; 1024)
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;{
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;if (buf[i] == 0 &amp;&amp;
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;buf[i+1] == 0 &amp;&amp;
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;buf[i+2] == 1 &amp;&amp;
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;buf[i+3] == 0xb8)
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;return 1;
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;i += 4;
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}
&lt;br&gt;+ &amp;nbsp; &amp;nbsp;}
&lt;br&gt;+ &amp;nbsp; &amp;nbsp;return 0;
&lt;br&gt;+}
&lt;br&gt;+
&lt;br&gt;&amp;nbsp;static int mpa_valid(unsigned char *b)
&lt;br&gt;&amp;nbsp;{
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;unsigned int v=(b[0]&amp;lt;&amp;lt;24)|(b[1]&amp;lt;&amp;lt;16)|(b[2]&amp;lt;&amp;lt;8)|b[3];
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;int t;
&lt;br&gt;@@ -823,10 +874,12 @@
&lt;br&gt;&amp;nbsp;
&lt;br&gt;&amp;nbsp;int FindVobus(char *fbase,struct vobgroup *va,int ismenu)
&lt;br&gt;&amp;nbsp;{
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;unsigned char *buf;
&lt;br&gt;+ &amp;nbsp; &amp;nbsp;unsigned char *buf_copy = (unsigned char*) malloc(2048);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;int cursect=0,fsect=-1,vnum,outnum=-ismenu+1;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;int vobid=0;
&lt;br&gt;+ &amp;nbsp; &amp;nbsp;int shift;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;struct mp2info {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;int hdrptr;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;unsigned char buf[6];
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;} mp2hdr[8];
&lt;br&gt;@@ -836,8 +889,9 @@
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;for( vnum=0; vnum&amp;lt;va-&amp;gt;numvobs; vnum++ ) {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;int i,j;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;int hadfirstvobu=0;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;pts_t backoffs=0, lastscr=0;
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;int generate_vobu=0,copy_packet=0,tsoffs=0;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;struct vob *s=va-&amp;gt;vobs[vnum];
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;int prevvidsect=-1;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;struct vscani vsi;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;struct vfile vf;
&lt;br&gt;@@ -868,10 +922,11 @@
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;fsect=-1;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;buf=writegrabbuf();
&lt;br&gt;&amp;nbsp;
&lt;br&gt;- &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;i=fread(buf,1,2048,vf.h);
&lt;br&gt;- &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;if( i!=2048 ) {
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;if (copy_packet == 1 ) {
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;memcpy( buf, buf_copy, 2048);
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;} else if( 2048 != (i=fread(buf,1,2048,vf.h)) ) {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;if( i==-1 ) {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;fprintf(stderr,&amp;quot;\nERR: &amp;nbsp;Error while reading:
&lt;br&gt;%s\n&amp;quot;,strerror(errno));
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;exit(1);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;} else if( i&amp;gt;0 )
&lt;br&gt;@@ -985,8 +1040,44 @@
&lt;br&gt;&amp;nbsp;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;writeundo();
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;continue;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}
&lt;br&gt;+
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;if( fsect == -1 ) {
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;char newname[200];
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;fsect=0;
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;if( fbase ) {
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;if( outnum&amp;gt;=0 )
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;sprintf(newname,&amp;quot;%s_%d.VOB&amp;quot;,fbase,outnum);
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;else
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;strcpy(newname,fbase);
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;writeopen(newname);
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}
&lt;br&gt;+
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;// we should get a VOBU before a video with GOP
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;if( (generate_vobu == 1 || hadfirstvobu == 0) &amp;&amp;
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;copy_packet == 0 &amp;&amp; find_gop(buf) )
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;{
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;// create VOBU
&lt;br&gt;+		//fprintf(stderr,&amp;quot;INFO: found video GOP without a preceding VOBU -
&lt;br&gt;creating VOBU\n&amp;quot;);
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;generate_vobu = 1;
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;copy_packet = 1;
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;memcpy( buf_copy, buf, 2048);
&lt;br&gt;+
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;buf[41] = 0xbf;
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;buf[42] = 0x03;
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;buf[43] = 0xd4;
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;buf[44] = 0x81;
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;memset( buf+45, 0, 2048-45);
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;buf[1026] = 1;
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;buf[1027] = 0xbf;
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;buf[1028] = 0x03;
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;buf[1029] = 0xfa;
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;buf[1030] = 0x81;
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;} else if (copy_packet == 1)
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;copy_packet = 0;
&lt;br&gt;+
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;if( buf[0]==0 &amp;&amp; buf[1]==0 &amp;&amp; buf[2]==1 &amp;&amp; buf[3]==0xba ) {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;pts_t newscr=readscr(buf+4);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;if( newscr &amp;lt; lastscr ) {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;fprintf(stderr,&amp;quot;ERR: &amp;nbsp;SCR moves backwards,
&lt;br&gt;remultiplex input.\n&amp;quot;);
&lt;br&gt;@@ -996,18 +1087,19 @@
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;if( !hadfirstvobu )
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;backoffs=newscr;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;transpose_ts(buf,-backoffs);
&lt;br&gt;- &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;if( fsect == -1 ) {
&lt;br&gt;- &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;char newname[200];
&lt;br&gt;- &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;fsect=0;
&lt;br&gt;- &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;if( fbase ) {
&lt;br&gt;- &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;if( outnum&amp;gt;=0 )
&lt;br&gt;- &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;sprintf(newname,&amp;quot;%s_%d.VOB&amp;quot;,fbase,outnum);
&lt;br&gt;- &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;else
&lt;br&gt;- &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;strcpy(newname,fbase);
&lt;br&gt;- &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;writeopen(newname);
&lt;br&gt;- &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}
&lt;br&gt;+
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;if( !hadfirstvobu &amp;&amp; buf[0]==0 &amp;&amp; buf[1]==0 &amp;&amp; buf[2]==1 &amp;&amp;
&lt;br&gt;buf[3]==0xba )
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;{
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;// allow for optional system header before the PES header
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;shift = (buf[17] == 0xbb) ? 24 : 0;
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;if( buf[14+shift] == 0 &amp;&amp;
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;buf[15+shift] == 0 &amp;&amp;
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;buf[16+shift] == 1 &amp;&amp;
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;(buf[17+shift]==0xbd || (buf[17+shift]&amp;gt;=0xc0 &amp;&amp;
&lt;br&gt;buf[17+shift]&amp;lt;=0xef)) &amp;&amp;
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;(buf[21+shift] &amp; 128))
&lt;br&gt;+	 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;tsoffs = readpts(buf+23+shift);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;if( buf[14] == 0 &amp;&amp;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;buf[15] == 0 &amp;&amp;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;buf[16] == 1 &amp;&amp;
&lt;br&gt;@@ -1050,9 +1142,9 @@
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;if( !(s-&amp;gt;numvobus&amp;15) )
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;printvobustatus(va,cursect);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;vsi.lastrefsect=0;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;vsi.firstgop=1;
&lt;br&gt;- &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;} else {
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;} else if (generate_vobu == 0 || copy_packet == 1) {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;fprintf(stderr,&amp;quot;WARN: System header found, but
&lt;br&gt;PCI/DSI information is not where expected\n\t(make sure your system header
&lt;br&gt;is 18 bytes!)\n&amp;quot;);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;if( !hadfirstvobu ) {
&lt;br&gt;@@ -1077,36 +1169,40 @@
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;break;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}
&lt;br&gt;&amp;nbsp;
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;// allow for optional system header before the PES header
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;shift = (buf[17] == 0xbb) ? 24 : 0;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;if( buf[0] == 0 &amp;&amp;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;buf[1] == 0 &amp;&amp;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;buf[2] == 1 &amp;&amp;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;buf[3] == 0xba &amp;&amp;
&lt;br&gt;- &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;buf[14] == 0 &amp;&amp;
&lt;br&gt;- &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;buf[15] == 0 &amp;&amp;
&lt;br&gt;- &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;buf[16] == 1 &amp;&amp;
&lt;br&gt;- &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;buf[17] == 0xe0 ) { // video
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;buf[14+shift] == 0 &amp;&amp;
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;buf[15+shift] == 0 &amp;&amp;
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;buf[16+shift] == 1 &amp;&amp;
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;buf[17+shift] == 0xe0 ) { // video
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;struct vobuinfo *vi=&amp;s-&amp;gt;vi[s-&amp;gt;numvobus-1];
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;vi-&amp;gt;hasvideo=1;
&lt;br&gt;- &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;scanvideoframe(va,buf,vi,cursect,prevvidsect,&amp;vsi);
&lt;br&gt;- &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;if( (buf[21] &amp; 128) &amp;&amp; vi-&amp;gt;firstvideopts==-1 ) { // check
&lt;br&gt;whether there's a pts
&lt;br&gt;- &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;vi-&amp;gt;firstvideopts=readpts(buf+23);
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;scanvideoframe(va,buf+shift,vi,cursect,prevvidsect,&amp;vsi);
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;if( (buf[21+shift] &amp; 128) &amp;&amp; vi-&amp;gt;firstvideopts==-1 ) { //
&lt;br&gt;check whether there's a pts
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;vi-&amp;gt;firstvideopts=readpts(buf+23+shift);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;prevvidsect=cursect;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}
&lt;br&gt;+ 
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;shift = (buf[17] == 0xbb) ? 24 : 0;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;if( buf[0] == 0 &amp;&amp;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;buf[1] == 0 &amp;&amp;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;buf[2] == 1 &amp;&amp;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;buf[3] == 0xba &amp;&amp;
&lt;br&gt;- &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;buf[14] == 0 &amp;&amp;
&lt;br&gt;- &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;buf[15] == 0 &amp;&amp;
&lt;br&gt;- &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;buf[16] == 1 &amp;&amp;
&lt;br&gt;- &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;((buf[17] &amp; 0xf8) == 0xc0 || buf[17]==0xbd)) {
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;buf[14+shift] == 0 &amp;&amp;
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;buf[15+shift] == 0 &amp;&amp;
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;buf[16+shift] == 1 &amp;&amp;
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;((buf[17+shift] &amp; 0xf8) == 0xc0 || buf[17+shift]==0xbd))
&lt;br&gt;{
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;pts_t pts0=0,pts1=0,backpts1=0;
&lt;br&gt;- &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;int dptr=buf[22]+23,endop=read2(buf+18)+20;
&lt;br&gt;- &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;int audch,haspts=(buf[21]&amp;128);
&lt;br&gt;- &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;if( buf[17]==0xbd ) {
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;int
&lt;br&gt;dptr=buf[22+shift]+23,endop=read2(buf+shift+18)+20;	// NB: indices based on
&lt;br&gt;dptr should be correct - do not adjust them
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;int audch,haspts=(buf[21+shift]&amp;128);
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;if( buf[17+shift]==0xbd ) {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;int sid=buf[dptr],offs=read2(buf+dptr+2);
&lt;br&gt;&amp;nbsp;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;switch(sid&amp;0xf8) {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;case 0x20: &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;// subpicture
&lt;br&gt;@@ -1130,9 +1226,9 @@
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;default: &amp;nbsp; audch=-1; break; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; // unknown
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;} else {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;int len=endop-dptr;
&lt;br&gt;- &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;int index=buf[17]&amp;7;
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;int index=buf[17+shift]&amp;7;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;audch=8|index; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;// mp2
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;memcpy(mp2hdr[index].buf+3,buf+dptr,3);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;while(mp2hdr[index].hdrptr+4&amp;lt;=len) {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;unsigned char *h;
&lt;br&gt;@@ -1156,9 +1252,9 @@
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;memcpy(mp2hdr[index].buf,buf+dptr+len-3,3);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;audiodesc_set_audio_attr(&amp;s-&amp;gt;audch[audch].ad,&amp;s-&amp;gt;audch[audch].adwarn,AUDIO_SAMPLERATE,&amp;quot;48khz&amp;quot;);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;if( haspts ) {
&lt;br&gt;- &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;pts0=readpts(buf+23);
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;pts0=readpts(buf+23+shift);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;pts1+=pts0;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;} else if( pts1&amp;gt;0 ) {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;fprintf(stderr,&amp;quot;WARN: Audio channel %d contains sync
&lt;br&gt;headers but has no PTS.\n&amp;quot;,audch);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}
&lt;br&gt;@@ -1214,17 +1310,18 @@
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;// the following code scans subtitle code in order to
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;// remap the colors and update the end pts
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;shift = (buf[17] == 0xbb) ? 24 : 0;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;if( buf[0] == 0 &amp;&amp;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;buf[1] == 0 &amp;&amp;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;buf[2] == 1 &amp;&amp;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;buf[3] == 0xba &amp;&amp;
&lt;br&gt;- &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;buf[14] == 0 &amp;&amp;
&lt;br&gt;- &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;buf[15] == 0 &amp;&amp;
&lt;br&gt;- &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;buf[16] == 1 &amp;&amp;
&lt;br&gt;- &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;buf[17] == 0xbd) {
&lt;br&gt;- &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;int dptr=buf[22]+23,ml=read2(buf+18)+20;
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;buf[14+shift] == 0 &amp;&amp;
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;buf[15+shift] == 0 &amp;&amp;
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;buf[16+shift] == 1 &amp;&amp;
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;buf[17+shift] == 0xbd) {
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;int dptr=buf[22+shift]+23,ml=read2(buf+18+shift)+20;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;int st=buf[dptr];
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;dptr++;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;if( (st&amp;0xf8)==0x20 ) { // subtitle
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;procremap(&amp;crs[st&amp;31],buf+dptr,ml-dptr,&amp;s-&amp;gt;audch[st].audpts[s-&amp;gt;audch[st].numaudpts-1].pts[1]);
&lt;br&gt;@@ -1368,8 +1465,9 @@
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;fprintf(stderr,&amp;quot;\n&amp;quot;);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;}
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;writeclose();
&lt;br&gt;+ &amp;nbsp; &amp;nbsp;free(buf_copy);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;printvobustatus(va,cursect);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;fprintf(stderr,&amp;quot;\n&amp;quot;);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;free(crs);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;return 1;
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br /&gt; &lt;br /&gt;------------------------------------------------------------------------------
&lt;br&gt;Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
&lt;br&gt;trial. Simplify your report design, integration and deployment - and focus on 
&lt;br&gt;what you do best, core application coding. Discover what's new with
&lt;br&gt;Crystal Reports now. &amp;nbsp;&lt;a href=&quot;http://p.sf.net/sfu/bobj-july&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/bobj-july&lt;/a&gt;&lt;br /&gt;_______________________________________________
&lt;br&gt;Dvdauthor-developer mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26258278&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Dvdauthor-developer@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/dvdauthor-developer&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/dvdauthor-developer&lt;/a&gt;&lt;br&gt;&lt;div class=&quot;small&quot;&gt;&lt;br/&gt;&lt;img src=&quot;http://old.nabble.com/images/icon_attachment.gif&quot; &gt; &lt;strong&gt;dvdauthor-0.6.14-ivtv-patch-0.2&lt;/strong&gt; (16K) &lt;a href=&quot;http://old.nabble.com/attachment/26258278/0/dvdauthor-0.6.14-ivtv-patch-0.2&quot; target=&quot;_top&quot;&gt;Download Attachment&lt;/a&gt;&lt;/div&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/dvdauthor-developer-f14460.html&quot; embed=&quot;fixTarget[14460]&quot; target=&quot;_top&quot; &gt;dvdauthor-developer&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/ivtv-patches-gone--tp26250967p26258278.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26257936</id>
	<title>Re: ivtv patches gone?</title>
	<published>2009-11-08T13:02:00Z</published>
	<updated>2009-11-08T13:02:00Z</updated>
	<author>
		<name>Martin Crossley</name>
	</author>
	<content type="html">Hi Joo -
&lt;br&gt;&lt;br&gt;That's my patch :-) &amp;nbsp;thanks very much for keeping a local copy; I don't know 
&lt;br&gt;what happened to the copies I posted to the IVTV site (I'll check back in 
&lt;br&gt;the archive on my development machine in a minute or two, but I need to 
&lt;br&gt;reboot out of Vista and back into OpenBSD and I have couple of things I need 
&lt;br&gt;to finish first).
&lt;br&gt;&lt;br&gt;The version you have here is great, because I actually included some 
&lt;br&gt;comments (unlike me ;-) - but do you happen to know whether what you have 
&lt;br&gt;there is against 0.6.14 or 0.6.11 ? &amp;nbsp;I had two different versions floating 
&lt;br&gt;around...
&lt;br&gt;&lt;br&gt;I'm so glad these patches helped a few people out.
&lt;br&gt;&lt;br&gt;Krgds, MartinC
&lt;br&gt;&lt;br&gt;&lt;br&gt;----- Original Message ----- 
&lt;br&gt;From: &amp;quot;Joo Martin&amp;quot; &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26257936&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;joomart2009@...&lt;/a&gt;&amp;gt;
&lt;br&gt;To: &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26257936&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dvdauthor-developer@...&lt;/a&gt;&amp;gt;
&lt;br&gt;Sent: Sunday, November 08, 2009 8:32 PM
&lt;br&gt;Subject: Re: [Dvdauthor-developer] ivtv patches gone?
&lt;br&gt;&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Hello,
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; ----
&lt;br&gt;&amp;gt; Am Sun, 08 Nov 2009 17:27:51 +1300 schrieb
&lt;br&gt;&amp;gt; &amp;quot;Lawrence D'Oliveiro&amp;quot; &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26257936&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;ldo@...&lt;/a&gt;&amp;gt;:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Once upon a time there were dvdauthor patches posted at the
&lt;br&gt;&amp;gt;&amp;gt; ivtvdriver.org wiki. I just searched for them
&lt;br&gt;&amp;gt;&amp;gt; &amp;lt;&lt;a href=&quot;http://ivtvdriver.org/index.php?title=Special%3ASearch&amp;search=dvdauthor&amp;fulltext=Search&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://ivtvdriver.org/index.php?title=Special%3ASearch&amp;search=dvdauthor&amp;fulltext=Search&lt;/a&gt;&amp;gt;,
&lt;br&gt;&amp;gt;&amp;gt; and found a couple of hits, but they led to nonexistent pages.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I have found in my archives a version of the dvdauthor patch from 
&lt;br&gt;&amp;gt; 06/06/2008.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Ciao, Joo
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; --- src/dvdvob.c.dist 2008-06-06 13:16:57.000000000 +0100
&lt;br&gt;&amp;gt; +++ src/dvdvob.c 2008-06-06 13:29:47.000000000 +0100
&lt;br&gt;&amp;gt; @@ -16,8 +16,31 @@
&lt;br&gt;&amp;gt; &amp;nbsp;* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA &amp;nbsp;02111-1307
&lt;br&gt;&amp;gt; &amp;nbsp;* USA
&lt;br&gt;&amp;gt; &amp;nbsp;*/
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; +/* NOTE TO THOSE UNFAMILIAR WITH MPEG FORMAT
&lt;br&gt;&amp;gt; + * &amp;nbsp; &amp;nbsp; &amp;nbsp; This code contains many 'magic numbers' related to analysing and
&lt;br&gt;&amp;gt; + * &amp;nbsp; &amp;nbsp; &amp;nbsp; and parsing MPEG data. MPEG content consists of a series of
&lt;br&gt;&amp;gt; + * &amp;nbsp; &amp;nbsp; &amp;nbsp; 2048 byte 'packs'. Each pack begins with a pack header that is
&lt;br&gt;&amp;gt; + * &amp;nbsp; &amp;nbsp; &amp;nbsp; identified by the byte sequence 00 00 01 BA. The rest of the 
&lt;br&gt;&amp;gt; pack
&lt;br&gt;&amp;gt; + * &amp;nbsp; &amp;nbsp; &amp;nbsp; contains other headers (each identified by their own start 
&lt;br&gt;&amp;gt; code),
&lt;br&gt;&amp;gt; + * &amp;nbsp; &amp;nbsp; &amp;nbsp; plus payload data and optional stuffing bytes. The headers 
&lt;br&gt;&amp;gt; contain
&lt;br&gt;&amp;gt; + * &amp;nbsp; &amp;nbsp; &amp;nbsp; data fields describing different aspect of the payload, timing 
&lt;br&gt;&amp;gt; etc.
&lt;br&gt;&amp;gt; + * &amp;nbsp; &amp;nbsp; &amp;nbsp; Frequently encountered types of header include:
&lt;br&gt;&amp;gt; + * 00 00 01 BA : pack header;
&lt;br&gt;&amp;gt; + * 00 00 01 BB : system header;
&lt;br&gt;&amp;gt; + * 00 00 01 B3 : sequence header;
&lt;br&gt;&amp;gt; + * 00 00 01 B5 : extension header;
&lt;br&gt;&amp;gt; + * 00 00 01 B8 : group-of-pictures (GOP) header;
&lt;br&gt;&amp;gt; + * 00 00 01 E0 : programme-elementary-stream (PES) header for first video 
&lt;br&gt;&amp;gt; channel
&lt;br&gt;&amp;gt; + * etc...
&lt;br&gt;&amp;gt; + * &amp;nbsp; &amp;nbsp; &amp;nbsp; A useful quick reference for identifying and decoding MPEG 
&lt;br&gt;&amp;gt; headers
&lt;br&gt;&amp;gt; + * &amp;nbsp; &amp;nbsp; &amp;nbsp; is available at &lt;a href=&quot;http://dvd.sourceforge.net/dvdinfo/mpeghdrs.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://dvd.sourceforge.net/dvdinfo/mpeghdrs.html&lt;/a&gt;&lt;br&gt;&amp;gt; + * &amp;nbsp; &amp;nbsp; &amp;nbsp; For detailed information try chapter 10 (p230) of 'digital video
&lt;br&gt;&amp;gt; + * &amp;nbsp; &amp;nbsp; &amp;nbsp; introduction to mpeg2' (Haskell, Puri and Netravali), which you 
&lt;br&gt;&amp;gt; can
&lt;br&gt;&amp;gt; + * &amp;nbsp; &amp;nbsp; &amp;nbsp; read online at &lt;a href=&quot;http://books.google.com&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://books.google.com&lt;/a&gt;&lt;br&gt;&amp;gt; + */
&lt;br&gt;&amp;gt; +
&lt;br&gt;&amp;gt; #include &amp;quot;config.h&amp;quot;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; #include &amp;quot;compat.h&amp;quot;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; @@ -233,8 +254,10 @@
&lt;br&gt;&amp;gt; }
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; static void transpose_ts(unsigned char *buf,pts_t tsoffs)
&lt;br&gt;&amp;gt; {
&lt;br&gt;&amp;gt; + &amp;nbsp; &amp;nbsp;int shift;
&lt;br&gt;&amp;gt; +
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; // pack scr
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; if( buf[0] == 0 &amp;&amp;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; buf[1] == 0 &amp;&amp;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; buf[2] == 1 &amp;&amp;
&lt;br&gt;&amp;gt; @@ -243,23 +266,51 @@
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; writescr(buf+4,readscr(buf+4)+tsoffs);
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; // video/audio?
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; // pts?
&lt;br&gt;&amp;gt; - &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;if( buf[14] == 0 &amp;&amp;
&lt;br&gt;&amp;gt; - &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;buf[15] == 0 &amp;&amp;
&lt;br&gt;&amp;gt; - &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;buf[16] == 1 &amp;&amp;
&lt;br&gt;&amp;gt; - &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;(buf[17]==0xbd || (buf[17]&amp;gt;=0xc0 &amp;&amp; buf[17]&amp;lt;=0xef)) &amp;&amp;
&lt;br&gt;&amp;gt; - &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;(buf[21] &amp; 128))
&lt;br&gt;&amp;gt; + // allow for optional system header before the PES header
&lt;br&gt;&amp;gt; + shift = (buf[17] == 0xbb) ? 24 : 0;
&lt;br&gt;&amp;gt; + &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;if( buf[14+shift] == 0 &amp;&amp;
&lt;br&gt;&amp;gt; + &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;buf[15+shift] == 0 &amp;&amp;
&lt;br&gt;&amp;gt; + &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;buf[16+shift] == 1 &amp;&amp;
&lt;br&gt;&amp;gt; + &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;(buf[17+shift]==0xbd || (buf[17+shift]&amp;gt;=0xc0 &amp;&amp; 
&lt;br&gt;&amp;gt; buf[17+shift]&amp;lt;=0xef)) &amp;&amp;
&lt;br&gt;&amp;gt; + &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;(buf[21+shift] &amp; 128))
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {
&lt;br&gt;&amp;gt; - &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;writepts(buf+23,readpts(buf+23)+tsoffs);
&lt;br&gt;&amp;gt; + &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;writepts(buf+23+shift,readpts(buf+23+shift)+tsoffs);
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; // dts?
&lt;br&gt;&amp;gt; - &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;if( buf[21] &amp; 64 ) {
&lt;br&gt;&amp;gt; - &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;writepts(buf+28,readpts(buf+28)+tsoffs);
&lt;br&gt;&amp;gt; + &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;if( buf[21+shift] &amp; 64 ) {
&lt;br&gt;&amp;gt; + &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;writepts(buf+28+shift,readpts(buf+28+shift)+tsoffs);
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; }
&lt;br&gt;&amp;gt; }
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; +int find_gop(unsigned char *buf)
&lt;br&gt;&amp;gt; +{
&lt;br&gt;&amp;gt; + &amp;nbsp; &amp;nbsp;// if the pack has a system header and a video PES header, then check 
&lt;br&gt;&amp;gt; whether there is a GOP header
&lt;br&gt;&amp;gt; + &amp;nbsp; &amp;nbsp;if (buf[14] == 0 &amp;&amp;
&lt;br&gt;&amp;gt; + &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;buf[15] == 0 &amp;&amp;
&lt;br&gt;&amp;gt; + &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;buf[16] == 1 &amp;&amp;
&lt;br&gt;&amp;gt; + &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;buf[17] == 0xbb &amp;&amp;
&lt;br&gt;&amp;gt; + &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;buf[38] == 0 &amp;&amp;
&lt;br&gt;&amp;gt; + &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;buf[39] == 0 &amp;&amp;
&lt;br&gt;&amp;gt; + &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;buf[40] == 1 &amp;&amp;
&lt;br&gt;&amp;gt; + &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;buf[41] == 0xe0)
&lt;br&gt;&amp;gt; + &amp;nbsp; &amp;nbsp;{
&lt;br&gt;&amp;gt; + &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;int i = 42;
&lt;br&gt;&amp;gt; + &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;while (i &amp;lt; 1024)
&lt;br&gt;&amp;gt; + &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;{
&lt;br&gt;&amp;gt; + &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;if (buf[i] == 0 &amp;&amp;
&lt;br&gt;&amp;gt; + &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;buf[i+1] == 0 &amp;&amp;
&lt;br&gt;&amp;gt; + &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;buf[i+2] == 1 &amp;&amp;
&lt;br&gt;&amp;gt; + &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;buf[i+3] == 0xb8)
&lt;br&gt;&amp;gt; + &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;return 1;
&lt;br&gt;&amp;gt; + &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;i += 4;
&lt;br&gt;&amp;gt; + &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}
&lt;br&gt;&amp;gt; + &amp;nbsp; &amp;nbsp;}
&lt;br&gt;&amp;gt; + &amp;nbsp; &amp;nbsp;return 0;
&lt;br&gt;&amp;gt; +}
&lt;br&gt;&amp;gt; +
&lt;br&gt;&amp;gt; static int mpa_valid(unsigned char *b)
&lt;br&gt;&amp;gt; {
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; unsigned int v=(b[0]&amp;lt;&amp;lt;24)|(b[1]&amp;lt;&amp;lt;16)|(b[2]&amp;lt;&amp;lt;8)|b[3];
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; int t;
&lt;br&gt;&amp;gt; @@ -823,10 +874,12 @@
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; int FindVobus(char *fbase,struct vobgroup *va,int ismenu)
&lt;br&gt;&amp;gt; {
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; unsigned char *buf;
&lt;br&gt;&amp;gt; + &amp;nbsp; &amp;nbsp;unsigned char *buf_copy = (unsigned char*) malloc(2048);
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; int cursect=0,fsect=-1,vnum,outnum=-ismenu+1;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; int vobid=0;
&lt;br&gt;&amp;gt; + &amp;nbsp; &amp;nbsp;int shift;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; struct mp2info {
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; int hdrptr;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; unsigned char buf[6];
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; } mp2hdr[8];
&lt;br&gt;&amp;gt; @@ -836,8 +889,9 @@
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; for( vnum=0; vnum&amp;lt;va-&amp;gt;numvobs; vnum++ ) {
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; int i,j;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; int hadfirstvobu=0;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; pts_t backoffs=0, lastscr=0;
&lt;br&gt;&amp;gt; + &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;int generate_vobu=0,copy_packet=0,tsoffs=0;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; struct vob *s=va-&amp;gt;vobs[vnum];
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; int prevvidsect=-1;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; struct vscani vsi;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; struct vfile vf;
&lt;br&gt;&amp;gt; @@ -868,10 +922,11 @@
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; fsect=-1;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; buf=writegrabbuf();
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; - &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;i=fread(buf,1,2048,vf.h);
&lt;br&gt;&amp;gt; - &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;if( i!=2048 ) {
&lt;br&gt;&amp;gt; + &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;if (copy_packet == 1 ) {
&lt;br&gt;&amp;gt; + &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;memcpy( buf, buf_copy, 2048);
&lt;br&gt;&amp;gt; + &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;} else if( 2048 != (i=fread(buf,1,2048,vf.h)) ) {
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if( i==-1 ) {
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; fprintf(stderr,&amp;quot;\nERR: &amp;nbsp;Error while reading: 
&lt;br&gt;&amp;gt; %s\n&amp;quot;,strerror(errno));
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; exit(1);
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; } else if( i&amp;gt;0 )
&lt;br&gt;&amp;gt; @@ -985,8 +1040,44 @@
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; writeundo();
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; continue;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }
&lt;br&gt;&amp;gt; +
&lt;br&gt;&amp;gt; + &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;if( fsect == -1 ) {
&lt;br&gt;&amp;gt; + &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;char newname[200];
&lt;br&gt;&amp;gt; + &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;fsect=0;
&lt;br&gt;&amp;gt; + &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;if( fbase ) {
&lt;br&gt;&amp;gt; + &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;if( outnum&amp;gt;=0 )
&lt;br&gt;&amp;gt; + &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;sprintf(newname,&amp;quot;%s_%d.VOB&amp;quot;,fbase,outnum);
&lt;br&gt;&amp;gt; + &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;else
&lt;br&gt;&amp;gt; + &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;strcpy(newname,fbase);
&lt;br&gt;&amp;gt; + &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;writeopen(newname);
&lt;br&gt;&amp;gt; + &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}
&lt;br&gt;&amp;gt; + &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}
&lt;br&gt;&amp;gt; +
&lt;br&gt;&amp;gt; + &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;// we should get a VOBU before a video with GOP
&lt;br&gt;&amp;gt; + &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;if( (generate_vobu == 1 || hadfirstvobu == 0) &amp;&amp;
&lt;br&gt;&amp;gt; + &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;copy_packet == 0 &amp;&amp; find_gop(buf) )
&lt;br&gt;&amp;gt; + &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;{
&lt;br&gt;&amp;gt; + &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;// create VOBU
&lt;br&gt;&amp;gt; + //fprintf(stderr,&amp;quot;INFO: found video GOP without a preceding VOBU - 
&lt;br&gt;&amp;gt; creating VOBU\n&amp;quot;);
&lt;br&gt;&amp;gt; + &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;generate_vobu = 1;
&lt;br&gt;&amp;gt; + &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;copy_packet = 1;
&lt;br&gt;&amp;gt; + &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;memcpy( buf_copy, buf, 2048);
&lt;br&gt;&amp;gt; +
&lt;br&gt;&amp;gt; + &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;buf[41] = 0xbf;
&lt;br&gt;&amp;gt; + &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;buf[42] = 0x03;
&lt;br&gt;&amp;gt; + &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;buf[43] = 0xd4;
&lt;br&gt;&amp;gt; + &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;buf[44] = 0x81;
&lt;br&gt;&amp;gt; + &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;memset( buf+45, 0, 2048-45);
&lt;br&gt;&amp;gt; + &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;buf[1026] = 1;
&lt;br&gt;&amp;gt; + &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;buf[1027] = 0xbf;
&lt;br&gt;&amp;gt; + &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;buf[1028] = 0x03;
&lt;br&gt;&amp;gt; + &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;buf[1029] = 0xfa;
&lt;br&gt;&amp;gt; + &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;buf[1030] = 0x81;
&lt;br&gt;&amp;gt; + &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;} else if (copy_packet == 1)
&lt;br&gt;&amp;gt; + &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;copy_packet = 0;
&lt;br&gt;&amp;gt; +
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if( buf[0]==0 &amp;&amp; buf[1]==0 &amp;&amp; buf[2]==1 &amp;&amp; buf[3]==0xba ) {
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; pts_t newscr=readscr(buf+4);
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if( newscr &amp;lt; lastscr ) {
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; fprintf(stderr,&amp;quot;ERR: &amp;nbsp;SCR moves backwards, remultiplex 
&lt;br&gt;&amp;gt; input.\n&amp;quot;);
&lt;br&gt;&amp;gt; @@ -996,18 +1087,19 @@
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if( !hadfirstvobu )
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; backoffs=newscr;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; transpose_ts(buf,-backoffs);
&lt;br&gt;&amp;gt; - &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;if( fsect == -1 ) {
&lt;br&gt;&amp;gt; - &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;char newname[200];
&lt;br&gt;&amp;gt; - &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;fsect=0;
&lt;br&gt;&amp;gt; - &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;if( fbase ) {
&lt;br&gt;&amp;gt; - &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;if( outnum&amp;gt;=0 )
&lt;br&gt;&amp;gt; - &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;sprintf(newname,&amp;quot;%s_%d.VOB&amp;quot;,fbase,outnum);
&lt;br&gt;&amp;gt; - &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;else
&lt;br&gt;&amp;gt; - &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;strcpy(newname,fbase);
&lt;br&gt;&amp;gt; - &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;writeopen(newname);
&lt;br&gt;&amp;gt; - &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}
&lt;br&gt;&amp;gt; +
&lt;br&gt;&amp;gt; + &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;if( !hadfirstvobu &amp;&amp; buf[0]==0 &amp;&amp; buf[1]==0 &amp;&amp; buf[2]==1 &amp;&amp; 
&lt;br&gt;&amp;gt; buf[3]==0xba )
&lt;br&gt;&amp;gt; + &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;{
&lt;br&gt;&amp;gt; + &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;// allow for optional system header before the PES header
&lt;br&gt;&amp;gt; + &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;shift = (buf[17] == 0xbb) ? 24 : 0;
&lt;br&gt;&amp;gt; + &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;if( buf[14+shift] == 0 &amp;&amp;
&lt;br&gt;&amp;gt; + &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;buf[15+shift] == 0 &amp;&amp;
&lt;br&gt;&amp;gt; + &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;buf[16+shift] == 1 &amp;&amp;
&lt;br&gt;&amp;gt; + &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;(buf[17+shift]==0xbd || (buf[17+shift]&amp;gt;=0xc0 &amp;&amp; 
&lt;br&gt;&amp;gt; buf[17+shift]&amp;lt;=0xef)) &amp;&amp;
&lt;br&gt;&amp;gt; + &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;(buf[21+shift] &amp; 128))
&lt;br&gt;&amp;gt; + &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; tsoffs = readpts(buf+23+shift);
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if( buf[14] == 0 &amp;&amp;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; buf[15] == 0 &amp;&amp;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; buf[16] == 1 &amp;&amp;
&lt;br&gt;&amp;gt; @@ -1050,9 +1142,9 @@
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if( !(s-&amp;gt;numvobus&amp;15) )
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; printvobustatus(va,cursect);
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; vsi.lastrefsect=0;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; vsi.firstgop=1;
&lt;br&gt;&amp;gt; - &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;} else {
&lt;br&gt;&amp;gt; + &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;} else if (generate_vobu == 0 || copy_packet == 1) {
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; fprintf(stderr,&amp;quot;WARN: System header found, but PCI/DSI 
&lt;br&gt;&amp;gt; information is not where expected\n\t(make sure your system header is 18 
&lt;br&gt;&amp;gt; bytes!)\n&amp;quot;);
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if( !hadfirstvobu ) {
&lt;br&gt;&amp;gt; @@ -1077,36 +1169,40 @@
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; break;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; + &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;// allow for optional system header before the PES header
&lt;br&gt;&amp;gt; + &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;shift = (buf[17] == 0xbb) ? 24 : 0;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if( buf[0] == 0 &amp;&amp;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; buf[1] == 0 &amp;&amp;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; buf[2] == 1 &amp;&amp;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; buf[3] == 0xba &amp;&amp;
&lt;br&gt;&amp;gt; - &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;buf[14] == 0 &amp;&amp;
&lt;br&gt;&amp;gt; - &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;buf[15] == 0 &amp;&amp;
&lt;br&gt;&amp;gt; - &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;buf[16] == 1 &amp;&amp;
&lt;br&gt;&amp;gt; - &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;buf[17] == 0xe0 ) { // video
&lt;br&gt;&amp;gt; + &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;buf[14+shift] == 0 &amp;&amp;
&lt;br&gt;&amp;gt; + &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;buf[15+shift] == 0 &amp;&amp;
&lt;br&gt;&amp;gt; + &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;buf[16+shift] == 1 &amp;&amp;
&lt;br&gt;&amp;gt; + &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;buf[17+shift] == 0xe0 ) { // video
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; struct vobuinfo *vi=&amp;s-&amp;gt;vi[s-&amp;gt;numvobus-1];
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; vi-&amp;gt;hasvideo=1;
&lt;br&gt;&amp;gt; - &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;scanvideoframe(va,buf,vi,cursect,prevvidsect,&amp;vsi);
&lt;br&gt;&amp;gt; - &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;if( (buf[21] &amp; 128) &amp;&amp; vi-&amp;gt;firstvideopts==-1 ) { // check 
&lt;br&gt;&amp;gt; whether there's a pts
&lt;br&gt;&amp;gt; - &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;vi-&amp;gt;firstvideopts=readpts(buf+23);
&lt;br&gt;&amp;gt; + &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;scanvideoframe(va,buf+shift,vi,cursect,prevvidsect,&amp;vsi);
&lt;br&gt;&amp;gt; + &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;if( (buf[21+shift] &amp; 128) &amp;&amp; vi-&amp;gt;firstvideopts==-1 ) { // 
&lt;br&gt;&amp;gt; check whether there's a pts
&lt;br&gt;&amp;gt; + &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;vi-&amp;gt;firstvideopts=readpts(buf+23+shift);
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; prevvidsect=cursect;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }
&lt;br&gt;&amp;gt; +
&lt;br&gt;&amp;gt; + &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;shift = (buf[17] == 0xbb) ? 24 : 0;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if( buf[0] == 0 &amp;&amp;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; buf[1] == 0 &amp;&amp;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; buf[2] == 1 &amp;&amp;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; buf[3] == 0xba &amp;&amp;
&lt;br&gt;&amp;gt; - &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;buf[14] == 0 &amp;&amp;
&lt;br&gt;&amp;gt; - &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;buf[15] == 0 &amp;&amp;
&lt;br&gt;&amp;gt; - &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;buf[16] == 1 &amp;&amp;
&lt;br&gt;&amp;gt; - &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;((buf[17] &amp; 0xf8) == 0xc0 || buf[17]==0xbd)) {
&lt;br&gt;&amp;gt; + &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;buf[14+shift] == 0 &amp;&amp;
&lt;br&gt;&amp;gt; + &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;buf[15+shift] == 0 &amp;&amp;
&lt;br&gt;&amp;gt; + &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;buf[16+shift] == 1 &amp;&amp;
&lt;br&gt;&amp;gt; + &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;((buf[17+shift] &amp; 0xf8) == 0xc0 || buf[17+shift]==0xbd)) 
&lt;br&gt;&amp;gt; {
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; pts_t pts0=0,pts1=0,backpts1=0;
&lt;br&gt;&amp;gt; - &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;int dptr=buf[22]+23,endop=read2(buf+18)+20;
&lt;br&gt;&amp;gt; - &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;int audch,haspts=(buf[21]&amp;128);
&lt;br&gt;&amp;gt; - &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;if( buf[17]==0xbd ) {
&lt;br&gt;&amp;gt; + &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;int dptr=buf[22+shift]+23,endop=read2(buf+shift+18)+20; 
&lt;br&gt;&amp;gt; // NB: indices based on dptr should be correct - do not adjust them
&lt;br&gt;&amp;gt; + &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;int audch,haspts=(buf[21+shift]&amp;128);
&lt;br&gt;&amp;gt; + &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;if( buf[17+shift]==0xbd ) {
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; int sid=buf[dptr],offs=read2(buf+dptr+2);
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; switch(sid&amp;0xf8) {
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; case 0x20: &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;// subpicture
&lt;br&gt;&amp;gt; @@ -1130,9 +1226,9 @@
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; default: &amp;nbsp; audch=-1; break; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; // unknown
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; } else {
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; int len=endop-dptr;
&lt;br&gt;&amp;gt; - &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;int index=buf[17]&amp;7;
&lt;br&gt;&amp;gt; + &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;int index=buf[17+shift]&amp;7;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; audch=8|index; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;// mp2
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; memcpy(mp2hdr[index].buf+3,buf+dptr,3);
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; while(mp2hdr[index].hdrptr+4&amp;lt;=len) {
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; unsigned char *h;
&lt;br&gt;&amp;gt; @@ -1156,9 +1252,9 @@
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; memcpy(mp2hdr[index].buf,buf+dptr+len-3,3);
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; audiodesc_set_audio_attr(&amp;s-&amp;gt;audch[audch].ad,&amp;s-&amp;gt;audch[audch].adwarn,AUDIO_SAMPLERATE,&amp;quot;48khz&amp;quot;);
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if( haspts ) {
&lt;br&gt;&amp;gt; - &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;pts0=readpts(buf+23);
&lt;br&gt;&amp;gt; + &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;pts0=readpts(buf+23+shift);
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; pts1+=pts0;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; } else if( pts1&amp;gt;0 ) {
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; fprintf(stderr,&amp;quot;WARN: Audio channel %d contains sync 
&lt;br&gt;&amp;gt; headers but has no PTS.\n&amp;quot;,audch);
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }
&lt;br&gt;&amp;gt; @@ -1214,17 +1310,18 @@
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; // the following code scans subtitle code in order to
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; // remap the colors and update the end pts
&lt;br&gt;&amp;gt; + &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;shift = (buf[17] == 0xbb) ? 24 : 0;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if( buf[0] == 0 &amp;&amp;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; buf[1] == 0 &amp;&amp;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; buf[2] == 1 &amp;&amp;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; buf[3] == 0xba &amp;&amp;
&lt;br&gt;&amp;gt; - &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;buf[14] == 0 &amp;&amp;
&lt;br&gt;&amp;gt; - &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;buf[15] == 0 &amp;&amp;
&lt;br&gt;&amp;gt; - &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;buf[16] == 1 &amp;&amp;
&lt;br&gt;&amp;gt; - &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;buf[17] == 0xbd) {
&lt;br&gt;&amp;gt; - &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;int dptr=buf[22]+23,ml=read2(buf+18)+20;
&lt;br&gt;&amp;gt; + &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;buf[14+shift] == 0 &amp;&amp;
&lt;br&gt;&amp;gt; + &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;buf[15+shift] == 0 &amp;&amp;
&lt;br&gt;&amp;gt; + &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;buf[16+shift] == 1 &amp;&amp;
&lt;br&gt;&amp;gt; + &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;buf[17+shift] == 0xbd) {
&lt;br&gt;&amp;gt; + &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;int dptr=buf[22+shift]+23,ml=read2(buf+18+shift)+20;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; int st=buf[dptr];
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; dptr++;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if( (st&amp;0xf8)==0x20 ) { // subtitle
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; procremap(&amp;crs[st&amp;31],buf+dptr,ml-dptr,&amp;s-&amp;gt;audch[st].audpts[s-&amp;gt;audch[st].numaudpts-1].pts[1]);
&lt;br&gt;&amp;gt; @@ -1368,8 +1465,9 @@
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; fprintf(stderr,&amp;quot;\n&amp;quot;);
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; }
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; writeclose();
&lt;br&gt;&amp;gt; + &amp;nbsp; &amp;nbsp;free(buf_copy);
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; printvobustatus(va,cursect);
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; fprintf(stderr,&amp;quot;\n&amp;quot;);
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; free(crs);
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; return 1;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; ------------------------------------------------------------------------------
&lt;br&gt;&amp;gt; Let Crystal Reports handle the reporting - Free Crystal Reports 2008 
&lt;br&gt;&amp;gt; 30-Day
&lt;br&gt;&amp;gt; trial. Simplify your report design, integration and deployment - and focus 
&lt;br&gt;&amp;gt; on
&lt;br&gt;&amp;gt; what you do best, core application coding. Discover what's new with
&lt;br&gt;&amp;gt; Crystal Reports now. &amp;nbsp;&lt;a href=&quot;http://p.sf.net/sfu/bobj-july&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/bobj-july&lt;/a&gt;&lt;br&gt;&amp;gt; _______________________________________________
&lt;br&gt;&amp;gt; Dvdauthor-developer mailing list
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26257936&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Dvdauthor-developer@...&lt;/a&gt;
&lt;br&gt;&amp;gt; &lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/dvdauthor-developer&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/dvdauthor-developer&lt;/a&gt;&lt;br&gt;&amp;gt; 
&lt;/div&gt;&lt;br&gt;&lt;br&gt;------------------------------------------------------------------------------
&lt;br&gt;Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
&lt;br&gt;trial. Simplify your report design, integration and deployment - and focus on 
&lt;br&gt;what you do best, core application coding. Discover what's new with
&lt;br&gt;Crystal Reports now. &amp;nbsp;&lt;a href=&quot;http://p.sf.net/sfu/bobj-july&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/bobj-july&lt;/a&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Dvdauthor-developer mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26257936&amp;i=4&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Dvdauthor-developer@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/dvdauthor-developer&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/dvdauthor-developer&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/dvdauthor-developer-f14460.html&quot; embed=&quot;fixTarget[14460]&quot; target=&quot;_top&quot; &gt;dvdauthor-developer&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/ivtv-patches-gone--tp26250967p26257936.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26257664</id>
	<title>Re: ivtv patches gone?</title>
	<published>2009-11-08T12:32:15Z</published>
	<updated>2009-11-08T12:32:15Z</updated>
	<author>
		<name>Joo Martin-4</name>
	</author>
	<content type="html">Hello,
&lt;br&gt;&lt;br&gt;----
&lt;br&gt;Am Sun, 08 Nov 2009 17:27:51 +1300 schrieb
&lt;br&gt;&amp;quot;Lawrence D'Oliveiro&amp;quot; &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26257664&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;ldo@...&lt;/a&gt;&amp;gt;:
&lt;br&gt;&lt;br&gt;&amp;gt; Once upon a time there were dvdauthor patches posted at the 
&lt;br&gt;&amp;gt; ivtvdriver.org wiki. I just searched for them 
&lt;br&gt;&amp;gt; &amp;lt;&lt;a href=&quot;http://ivtvdriver.org/index.php?title=Special%3ASearch&amp;search=dvdauthor&amp;fulltext=Search&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://ivtvdriver.org/index.php?title=Special%3ASearch&amp;search=dvdauthor&amp;fulltext=Search&lt;/a&gt;&amp;gt;, 
&lt;br&gt;&amp;gt; and found a couple of hits, but they led to nonexistent pages.
&lt;br&gt;&lt;br&gt;I have found in my archives a version of the dvdauthor patch from 06/06/2008.
&lt;br&gt;&lt;br&gt;Ciao, Joo
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;--- src/dvdvob.c.dist	2008-06-06 13:16:57.000000000 +0100
&lt;br&gt;+++ src/dvdvob.c	2008-06-06 13:29:47.000000000 +0100
&lt;br&gt;@@ -16,8 +16,31 @@
&lt;br&gt;&amp;nbsp; * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA &amp;nbsp;02111-1307
&lt;br&gt;&amp;nbsp; * USA
&lt;br&gt;&amp;nbsp; */
&lt;br&gt;&amp;nbsp;
&lt;br&gt;+/* NOTE TO THOSE UNFAMILIAR WITH MPEG FORMAT
&lt;br&gt;+ * &amp;nbsp; &amp;nbsp; &amp;nbsp; This code contains many 'magic numbers' related to analysing and
&lt;br&gt;+ * &amp;nbsp; &amp;nbsp; &amp;nbsp; and parsing MPEG data. MPEG content consists of a series of
&lt;br&gt;+ * &amp;nbsp; &amp;nbsp; &amp;nbsp; 2048 byte 'packs'. Each pack begins with a pack header that is
&lt;br&gt;+ * &amp;nbsp; &amp;nbsp; &amp;nbsp; identified by the byte sequence 00 00 01 BA. The rest of the pack
&lt;br&gt;+ * &amp;nbsp; &amp;nbsp; &amp;nbsp; contains other headers (each identified by their own start code),
&lt;br&gt;+ * &amp;nbsp; &amp;nbsp; &amp;nbsp; plus payload data and optional stuffing bytes. The headers contain
&lt;br&gt;+ * &amp;nbsp; &amp;nbsp; &amp;nbsp; data fields describing different aspect of the payload, timing etc.
&lt;br&gt;+ * &amp;nbsp; &amp;nbsp; &amp;nbsp; Frequently encountered types of header include:
&lt;br&gt;+ *		00 00 01 BA : pack header;
&lt;br&gt;+ *		00 00 01 BB : system header;
&lt;br&gt;+ *		00 00 01 B3 : sequence header;
&lt;br&gt;+ *		00 00 01 B5 : extension header;
&lt;br&gt;+ *		00 00 01 B8 : group-of-pictures (GOP) header;
&lt;br&gt;+ *		00 00 01 E0 : programme-elementary-stream (PES) header for first video channel
&lt;br&gt;+ *		etc...
&lt;br&gt;+ * &amp;nbsp; &amp;nbsp; &amp;nbsp; A useful quick reference for identifying and decoding MPEG headers
&lt;br&gt;+ * &amp;nbsp; &amp;nbsp; &amp;nbsp; is available at &lt;a href=&quot;http://dvd.sourceforge.net/dvdinfo/mpeghdrs.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://dvd.sourceforge.net/dvdinfo/mpeghdrs.html&lt;/a&gt;&lt;br&gt;+ * &amp;nbsp; &amp;nbsp; &amp;nbsp; For detailed information try chapter 10 (p230) of 'digital video
&lt;br&gt;+ * &amp;nbsp; &amp;nbsp; &amp;nbsp; introduction to mpeg2' (Haskell, Puri and Netravali), which you can
&lt;br&gt;+ * &amp;nbsp; &amp;nbsp; &amp;nbsp; read online at &lt;a href=&quot;http://books.google.com&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://books.google.com&lt;/a&gt;&lt;br&gt;+ */
&lt;br&gt;+
&lt;br&gt;&amp;nbsp;#include &amp;quot;config.h&amp;quot;
&lt;br&gt;&amp;nbsp;
&lt;br&gt;&amp;nbsp;#include &amp;quot;compat.h&amp;quot;
&lt;br&gt;&amp;nbsp;
&lt;br&gt;@@ -233,8 +254,10 @@
&lt;br&gt;&amp;nbsp;}
&lt;br&gt;&amp;nbsp;
&lt;br&gt;&amp;nbsp;static void transpose_ts(unsigned char *buf,pts_t tsoffs)
&lt;br&gt;&amp;nbsp;{
&lt;br&gt;+ &amp;nbsp; &amp;nbsp;int shift;
&lt;br&gt;+
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;// pack scr
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;if( buf[0] == 0 &amp;&amp;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;buf[1] == 0 &amp;&amp;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;buf[2] == 1 &amp;&amp;
&lt;br&gt;@@ -243,23 +266,51 @@
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;writescr(buf+4,readscr(buf+4)+tsoffs);
&lt;br&gt;&amp;nbsp;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;// video/audio?
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;// pts?
&lt;br&gt;- &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;if( buf[14] == 0 &amp;&amp;
&lt;br&gt;- &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;buf[15] == 0 &amp;&amp;
&lt;br&gt;- &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;buf[16] == 1 &amp;&amp;
&lt;br&gt;- &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;(buf[17]==0xbd || (buf[17]&amp;gt;=0xc0 &amp;&amp; buf[17]&amp;lt;=0xef)) &amp;&amp;
&lt;br&gt;- &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;(buf[21] &amp; 128))
&lt;br&gt;+	// allow for optional system header before the PES header
&lt;br&gt;+	shift = (buf[17] == 0xbb) ? 24 : 0;
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;if( buf[14+shift] == 0 &amp;&amp;
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;buf[15+shift] == 0 &amp;&amp;
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;buf[16+shift] == 1 &amp;&amp;
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;(buf[17+shift]==0xbd || (buf[17+shift]&amp;gt;=0xc0 &amp;&amp; buf[17+shift]&amp;lt;=0xef)) &amp;&amp;
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;(buf[21+shift] &amp; 128))
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;{
&lt;br&gt;- &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;writepts(buf+23,readpts(buf+23)+tsoffs);
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;writepts(buf+23+shift,readpts(buf+23+shift)+tsoffs);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;// dts?
&lt;br&gt;- &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;if( buf[21] &amp; 64 ) {
&lt;br&gt;- &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;writepts(buf+28,readpts(buf+28)+tsoffs);
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;if( buf[21+shift] &amp; 64 ) {
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;writepts(buf+28+shift,readpts(buf+28+shift)+tsoffs);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;}
&lt;br&gt;&amp;nbsp;}
&lt;br&gt;&amp;nbsp;
&lt;br&gt;+int find_gop(unsigned char *buf)
&lt;br&gt;+{
&lt;br&gt;+ &amp;nbsp; &amp;nbsp;// if the pack has a system header and a video PES header, then check whether there is a GOP header
&lt;br&gt;+ &amp;nbsp; &amp;nbsp;if (buf[14] == 0 &amp;&amp;
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;buf[15] == 0 &amp;&amp;
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;buf[16] == 1 &amp;&amp;
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;buf[17] == 0xbb &amp;&amp;
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;buf[38] == 0 &amp;&amp;
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;buf[39] == 0 &amp;&amp;
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;buf[40] == 1 &amp;&amp;
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;buf[41] == 0xe0)
&lt;br&gt;+ &amp;nbsp; &amp;nbsp;{
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;int i = 42;
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;while (i &amp;lt; 1024)
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;{
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;if (buf[i] == 0 &amp;&amp;
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;buf[i+1] == 0 &amp;&amp;
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;buf[i+2] == 1 &amp;&amp;
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;buf[i+3] == 0xb8)
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;return 1;
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;i += 4;
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}
&lt;br&gt;+ &amp;nbsp; &amp;nbsp;}
&lt;br&gt;+ &amp;nbsp; &amp;nbsp;return 0;
&lt;br&gt;+}
&lt;br&gt;+
&lt;br&gt;&amp;nbsp;static int mpa_valid(unsigned char *b)
&lt;br&gt;&amp;nbsp;{
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;unsigned int v=(b[0]&amp;lt;&amp;lt;24)|(b[1]&amp;lt;&amp;lt;16)|(b[2]&amp;lt;&amp;lt;8)|b[3];
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;int t;
&lt;br&gt;@@ -823,10 +874,12 @@
&lt;br&gt;&amp;nbsp;
&lt;br&gt;&amp;nbsp;int FindVobus(char *fbase,struct vobgroup *va,int ismenu)
&lt;br&gt;&amp;nbsp;{
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;unsigned char *buf;
&lt;br&gt;+ &amp;nbsp; &amp;nbsp;unsigned char *buf_copy = (unsigned char*) malloc(2048);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;int cursect=0,fsect=-1,vnum,outnum=-ismenu+1;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;int vobid=0;
&lt;br&gt;+ &amp;nbsp; &amp;nbsp;int shift;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;struct mp2info {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;int hdrptr;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;unsigned char buf[6];
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;} mp2hdr[8];
&lt;br&gt;@@ -836,8 +889,9 @@
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;for( vnum=0; vnum&amp;lt;va-&amp;gt;numvobs; vnum++ ) {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;int i,j;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;int hadfirstvobu=0;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;pts_t backoffs=0, lastscr=0;
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;int generate_vobu=0,copy_packet=0,tsoffs=0;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;struct vob *s=va-&amp;gt;vobs[vnum];
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;int prevvidsect=-1;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;struct vscani vsi;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;struct vfile vf;
&lt;br&gt;@@ -868,10 +922,11 @@
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;fsect=-1;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;buf=writegrabbuf();
&lt;br&gt;&amp;nbsp;
&lt;br&gt;- &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;i=fread(buf,1,2048,vf.h);
&lt;br&gt;- &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;if( i!=2048 ) {
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;if (copy_packet == 1 ) {
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;memcpy( buf, buf_copy, 2048);
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;} else if( 2048 != (i=fread(buf,1,2048,vf.h)) ) {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;if( i==-1 ) {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;fprintf(stderr,&amp;quot;\nERR: &amp;nbsp;Error while reading: %s\n&amp;quot;,strerror(errno));
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;exit(1);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;} else if( i&amp;gt;0 )
&lt;br&gt;@@ -985,8 +1040,44 @@
&lt;br&gt;&amp;nbsp;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;writeundo();
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;continue;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}
&lt;br&gt;+
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;if( fsect == -1 ) {
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;char newname[200];
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;fsect=0;
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;if( fbase ) {
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;if( outnum&amp;gt;=0 )
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;sprintf(newname,&amp;quot;%s_%d.VOB&amp;quot;,fbase,outnum);
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;else
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;strcpy(newname,fbase);
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;writeopen(newname);
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}
&lt;br&gt;+
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;// we should get a VOBU before a video with GOP
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;if( (generate_vobu == 1 || hadfirstvobu == 0) &amp;&amp;
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;copy_packet == 0 &amp;&amp; find_gop(buf) )
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;{
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;// create VOBU
&lt;br&gt;+		//fprintf(stderr,&amp;quot;INFO: found video GOP without a preceding VOBU - creating VOBU\n&amp;quot;);
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;generate_vobu = 1;
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;copy_packet = 1;
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;memcpy( buf_copy, buf, 2048);
&lt;br&gt;+
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;buf[41] = 0xbf;
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;buf[42] = 0x03;
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;buf[43] = 0xd4;
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;buf[44] = 0x81;
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;memset( buf+45, 0, 2048-45);
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;buf[1026] = 1;
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;buf[1027] = 0xbf;
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;buf[1028] = 0x03;
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;buf[1029] = 0xfa;
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;buf[1030] = 0x81;
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;} else if (copy_packet == 1)
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;copy_packet = 0;
&lt;br&gt;+
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;if( buf[0]==0 &amp;&amp; buf[1]==0 &amp;&amp; buf[2]==1 &amp;&amp; buf[3]==0xba ) {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;pts_t newscr=readscr(buf+4);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;if( newscr &amp;lt; lastscr ) {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;fprintf(stderr,&amp;quot;ERR: &amp;nbsp;SCR moves backwards, remultiplex input.\n&amp;quot;);
&lt;br&gt;@@ -996,18 +1087,19 @@
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;if( !hadfirstvobu )
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;backoffs=newscr;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;transpose_ts(buf,-backoffs);
&lt;br&gt;- &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;if( fsect == -1 ) {
&lt;br&gt;- &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;char newname[200];
&lt;br&gt;- &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;fsect=0;
&lt;br&gt;- &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;if( fbase ) {
&lt;br&gt;- &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;if( outnum&amp;gt;=0 )
&lt;br&gt;- &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;sprintf(newname,&amp;quot;%s_%d.VOB&amp;quot;,fbase,outnum);
&lt;br&gt;- &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;else
&lt;br&gt;- &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;strcpy(newname,fbase);
&lt;br&gt;- &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;writeopen(newname);
&lt;br&gt;- &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}
&lt;br&gt;+
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;if( !hadfirstvobu &amp;&amp; buf[0]==0 &amp;&amp; buf[1]==0 &amp;&amp; buf[2]==1 &amp;&amp; buf[3]==0xba )
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;{
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;// allow for optional system header before the PES header
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;shift = (buf[17] == 0xbb) ? 24 : 0;
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;if( buf[14+shift] == 0 &amp;&amp;
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;buf[15+shift] == 0 &amp;&amp;
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;buf[16+shift] == 1 &amp;&amp;
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;(buf[17+shift]==0xbd || (buf[17+shift]&amp;gt;=0xc0 &amp;&amp; buf[17+shift]&amp;lt;=0xef)) &amp;&amp;
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;(buf[21+shift] &amp; 128))
&lt;br&gt;+	 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;tsoffs = readpts(buf+23+shift);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;if( buf[14] == 0 &amp;&amp;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;buf[15] == 0 &amp;&amp;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;buf[16] == 1 &amp;&amp;
&lt;br&gt;@@ -1050,9 +1142,9 @@
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;if( !(s-&amp;gt;numvobus&amp;15) )
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;printvobustatus(va,cursect);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;vsi.lastrefsect=0;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;vsi.firstgop=1;
&lt;br&gt;- &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;} else {
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;} else if (generate_vobu == 0 || copy_packet == 1) {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;fprintf(stderr,&amp;quot;WARN: System header found, but PCI/DSI information is not where expected\n\t(make sure your system header is 18 bytes!)\n&amp;quot;);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;if( !hadfirstvobu ) {
&lt;br&gt;@@ -1077,36 +1169,40 @@
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;break;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}
&lt;br&gt;&amp;nbsp;
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;// allow for optional system header before the PES header
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;shift = (buf[17] == 0xbb) ? 24 : 0;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;if( buf[0] == 0 &amp;&amp;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;buf[1] == 0 &amp;&amp;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;buf[2] == 1 &amp;&amp;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;buf[3] == 0xba &amp;&amp;
&lt;br&gt;- &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;buf[14] == 0 &amp;&amp;
&lt;br&gt;- &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;buf[15] == 0 &amp;&amp;
&lt;br&gt;- &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;buf[16] == 1 &amp;&amp;
&lt;br&gt;- &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;buf[17] == 0xe0 ) { // video
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;buf[14+shift] == 0 &amp;&amp;
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;buf[15+shift] == 0 &amp;&amp;
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;buf[16+shift] == 1 &amp;&amp;
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;buf[17+shift] == 0xe0 ) { // video
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;struct vobuinfo *vi=&amp;s-&amp;gt;vi[s-&amp;gt;numvobus-1];
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;vi-&amp;gt;hasvideo=1;
&lt;br&gt;- &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;scanvideoframe(va,buf,vi,cursect,prevvidsect,&amp;vsi);
&lt;br&gt;- &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;if( (buf[21] &amp; 128) &amp;&amp; vi-&amp;gt;firstvideopts==-1 ) { // check whether there's a pts
&lt;br&gt;- &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;vi-&amp;gt;firstvideopts=readpts(buf+23);
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;scanvideoframe(va,buf+shift,vi,cursect,prevvidsect,&amp;vsi);
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;if( (buf[21+shift] &amp; 128) &amp;&amp; vi-&amp;gt;firstvideopts==-1 ) { // check whether there's a pts
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;vi-&amp;gt;firstvideopts=readpts(buf+23+shift);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;prevvidsect=cursect;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}
&lt;br&gt;+ 
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;shift = (buf[17] == 0xbb) ? 24 : 0;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;if( buf[0] == 0 &amp;&amp;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;buf[1] == 0 &amp;&amp;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;buf[2] == 1 &amp;&amp;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;buf[3] == 0xba &amp;&amp;
&lt;br&gt;- &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;buf[14] == 0 &amp;&amp;
&lt;br&gt;- &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;buf[15] == 0 &amp;&amp;
&lt;br&gt;- &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;buf[16] == 1 &amp;&amp;
&lt;br&gt;- &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;((buf[17] &amp; 0xf8) == 0xc0 || buf[17]==0xbd)) {
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;buf[14+shift] == 0 &amp;&amp;
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;buf[15+shift] == 0 &amp;&amp;
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;buf[16+shift] == 1 &amp;&amp;
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;((buf[17+shift] &amp; 0xf8) == 0xc0 || buf[17+shift]==0xbd)) {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;pts_t pts0=0,pts1=0,backpts1=0;
&lt;br&gt;- &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;int dptr=buf[22]+23,endop=read2(buf+18)+20;
&lt;br&gt;- &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;int audch,haspts=(buf[21]&amp;128);
&lt;br&gt;- &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;if( buf[17]==0xbd ) {
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;int dptr=buf[22+shift]+23,endop=read2(buf+shift+18)+20;	// NB: indices based on dptr should be correct - do not adjust them
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;int audch,haspts=(buf[21+shift]&amp;128);
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;if( buf[17+shift]==0xbd ) {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;int sid=buf[dptr],offs=read2(buf+dptr+2);
&lt;br&gt;&amp;nbsp;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;switch(sid&amp;0xf8) {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;case 0x20: &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;// subpicture
&lt;br&gt;@@ -1130,9 +1226,9 @@
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;default: &amp;nbsp; audch=-1; break; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; // unknown
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;} else {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;int len=endop-dptr;
&lt;br&gt;- &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;int index=buf[17]&amp;7;
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;int index=buf[17+shift]&amp;7;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;audch=8|index; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;// mp2
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;memcpy(mp2hdr[index].buf+3,buf+dptr,3);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;while(mp2hdr[index].hdrptr+4&amp;lt;=len) {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;unsigned char *h;
&lt;br&gt;@@ -1156,9 +1252,9 @@
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;memcpy(mp2hdr[index].buf,buf+dptr+len-3,3);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;audiodesc_set_audio_attr(&amp;s-&amp;gt;audch[audch].ad,&amp;s-&amp;gt;audch[audch].adwarn,AUDIO_SAMPLERATE,&amp;quot;48khz&amp;quot;);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;if( haspts ) {
&lt;br&gt;- &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;pts0=readpts(buf+23);
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;pts0=readpts(buf+23+shift);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;pts1+=pts0;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;} else if( pts1&amp;gt;0 ) {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;fprintf(stderr,&amp;quot;WARN: Audio channel %d contains sync headers but has no PTS.\n&amp;quot;,audch);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}
&lt;br&gt;@@ -1214,17 +1310,18 @@
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;// the following code scans subtitle code in order to
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;// remap the colors and update the end pts
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;shift = (buf[17] == 0xbb) ? 24 : 0;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;if( buf[0] == 0 &amp;&amp;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;buf[1] == 0 &amp;&amp;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;buf[2] == 1 &amp;&amp;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;buf[3] == 0xba &amp;&amp;
&lt;br&gt;- &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;buf[14] == 0 &amp;&amp;
&lt;br&gt;- &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;buf[15] == 0 &amp;&amp;
&lt;br&gt;- &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;buf[16] == 1 &amp;&amp;
&lt;br&gt;- &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;buf[17] == 0xbd) {
&lt;br&gt;- &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;int dptr=buf[22]+23,ml=read2(buf+18)+20;
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;buf[14+shift] == 0 &amp;&amp;
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;buf[15+shift] == 0 &amp;&amp;
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;buf[16+shift] == 1 &amp;&amp;
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;buf[17+shift] == 0xbd) {
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;int dptr=buf[22+shift]+23,ml=read2(buf+18+shift)+20;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;int st=buf[dptr];
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;dptr++;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;if( (st&amp;0xf8)==0x20 ) { // subtitle
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;procremap(&amp;crs[st&amp;31],buf+dptr,ml-dptr,&amp;s-&amp;gt;audch[st].audpts[s-&amp;gt;audch[st].numaudpts-1].pts[1]);
&lt;br&gt;@@ -1368,8 +1465,9 @@
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;fprintf(stderr,&amp;quot;\n&amp;quot;);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;}
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;writeclose();
&lt;br&gt;+ &amp;nbsp; &amp;nbsp;free(buf_copy);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;printvobustatus(va,cursect);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;fprintf(stderr,&amp;quot;\n&amp;quot;);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;free(crs);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;return 1;
&lt;br&gt;&lt;br&gt;------------------------------------------------------------------------------
&lt;br&gt;Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
&lt;br&gt;trial. Simplify your report design, integration and deployment - and focus on 
&lt;br&gt;what you do best, core application coding. Discover what's new with
&lt;br&gt;Crystal Reports now. &amp;nbsp;&lt;a href=&quot;http://p.sf.net/sfu/bobj-july&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/bobj-july&lt;/a&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Dvdauthor-developer mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26257664&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Dvdauthor-developer@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/dvdauthor-developer&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/dvdauthor-developer&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/dvdauthor-developer-f14460.html&quot; embed=&quot;fixTarget[14460]&quot; target=&quot;_top&quot; &gt;dvdauthor-developer&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/ivtv-patches-gone--tp26250967p26257664.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26257203</id>
	<title>Re: ivtv patches gone?</title>
	<published>2009-11-08T11:45:39Z</published>
	<updated>2009-11-08T11:45:39Z</updated>
	<author>
		<name>Martin Crossley</name>
	</author>
	<content type="html">Hi L and all
&lt;br&gt;&lt;br&gt;Thanks for pointing out that they have gone!
&lt;br&gt;&lt;br&gt;Next time I write some patches, I will know to post them in more than one 
&lt;br&gt;place :-)
&lt;br&gt;&lt;br&gt;I have just posted a copy of my patch to 0.6.14 (dvdvob.c) taken from an 
&lt;br&gt;archive site, but I'll go back to my development machine and make sure that 
&lt;br&gt;is the final version.
&lt;br&gt;&lt;br&gt;For reference, here also is a link to a copy of the earlier (and less 
&lt;br&gt;well-developed) version of the patch against 0.6.11 (it's in the first 
&lt;br&gt;attachment, at the bottom of the page).
&lt;br&gt;&lt;br&gt;Cheers MartinC
&lt;br&gt;&lt;br&gt;&lt;br&gt;----- Original Message ----- 
&lt;br&gt;From: &amp;quot;Lawrence D'Oliveiro&amp;quot; &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26257203&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;ldo@...&lt;/a&gt;&amp;gt;
&lt;br&gt;To: &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26257203&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dvdauthor-developer@...&lt;/a&gt;&amp;gt;
&lt;br&gt;Sent: Sunday, November 08, 2009 4:27 AM
&lt;br&gt;Subject: [Dvdauthor-developer] ivtv patches gone?
&lt;br&gt;&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Hi folks.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Once upon a time there were dvdauthor patches posted at the
&lt;br&gt;&amp;gt; ivtvdriver.org wiki. I just searched for them
&lt;br&gt;&amp;gt; &amp;lt;&lt;a href=&quot;http://ivtvdriver.org/index.php?title=Special%3ASearch&amp;search=dvdauthor&amp;fulltext=Search&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://ivtvdriver.org/index.php?title=Special%3ASearch&amp;search=dvdauthor&amp;fulltext=Search&lt;/a&gt;&amp;gt;,
&lt;br&gt;&amp;gt; and found a couple of hits, but they led to nonexistent pages.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Wonder what’s happened to these?
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; ------------------------------------------------------------------------------
&lt;br&gt;&amp;gt; Let Crystal Reports handle the reporting - Free Crystal Reports 2008 
&lt;br&gt;&amp;gt; 30-Day
&lt;br&gt;&amp;gt; trial. Simplify your report design, integration and deployment - and focus 
&lt;br&gt;&amp;gt; on
&lt;br&gt;&amp;gt; what you do best, core application coding. Discover what's new with
&lt;br&gt;&amp;gt; Crystal Reports now. &amp;nbsp;&lt;a href=&quot;http://p.sf.net/sfu/bobj-july&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/bobj-july&lt;/a&gt;&lt;br&gt;&amp;gt; _______________________________________________
&lt;br&gt;&amp;gt; Dvdauthor-developer mailing list
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26257203&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Dvdauthor-developer@...&lt;/a&gt;
&lt;br&gt;&amp;gt; &lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/dvdauthor-developer&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/dvdauthor-developer&lt;/a&gt;&lt;br&gt;&amp;gt; 
&lt;/div&gt;&lt;br&gt;&lt;br&gt;------------------------------------------------------------------------------
&lt;br&gt;Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
&lt;br&gt;trial. Simplify your report design, integration and deployment - and focus on 
&lt;br&gt;what you do best, core application coding. Discover what's new with
&lt;br&gt;Crystal Reports now. &amp;nbsp;&lt;a href=&quot;http://p.sf.net/sfu/bobj-july&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/bobj-july&lt;/a&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Dvdauthor-developer mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26257203&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Dvdauthor-developer@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/dvdauthor-developer&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/dvdauthor-developer&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/dvdauthor-developer-f14460.html&quot; embed=&quot;fixTarget[14460]&quot; target=&quot;_top&quot; &gt;dvdauthor-developer&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/ivtv-patches-gone--tp26250967p26257203.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26257118</id>
	<title>Re: Attempt to solve &quot;ERR: SCR movesbackwards, remultiplex input.&quot;</title>
	<published>2009-11-08T11:35:48Z</published>
	<updated>2009-11-08T11:35:48Z</updated>
	<author>
		<name>Martin Crossley</name>
	</author>
	<content type="html">Here is a copy of my patch against version 0.6.14 (taken from 
&lt;br&gt;&lt;a href=&quot;http://www.mail-archive.com/ivtv-users@ivtvdriver.org/msg08199.html):&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.mail-archive.com/ivtv-users@.../msg08199.html):&lt;/a&gt;&lt;br&gt;&lt;br&gt;The only file that needs to be patched is dvdvob.c
&lt;br&gt;&lt;br&gt;&lt;br&gt;MartinC
&lt;br&gt;&lt;br&gt;=============================================================
&lt;br&gt;&lt;br&gt;--- src/dvdvob_dist.c	2008-05-30 22:07:22.000000000 +0100
&lt;br&gt;+++ src/dvdvob.c	2008-05-30 22:09:43.000000000 +0100
&lt;br&gt;@@ -240,25 +240,51 @@
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;buf[2] == 1 &amp;&amp;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;buf[3] == 0xba )
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;{
&lt;br&gt;+	int offs = (buf[17] == 0xbb) ? 24 : 0;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;writescr(buf+4,readscr(buf+4)+tsoffs);
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;// video/audio?
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;// pts?
&lt;br&gt;- &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;if( buf[14] == 0 &amp;&amp;
&lt;br&gt;- &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;buf[15] == 0 &amp;&amp;
&lt;br&gt;- &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;buf[16] == 1 &amp;&amp;
&lt;br&gt;- &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;(buf[17]==0xbd || (buf[17]&amp;gt;=0xc0 &amp;&amp; buf[17]&amp;lt;=0xef)) &amp;&amp;
&lt;br&gt;- &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;(buf[21] &amp; 128))
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;if( buf[offs+14] == 0 &amp;&amp;
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;buf[offs+15] == 0 &amp;&amp;
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;buf[offs+16] == 1 &amp;&amp;
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;(buf[offs+17]==0xbd || (buf[offs+17]&amp;gt;=0xc0 &amp;&amp; 
&lt;br&gt;buf[offs+17]&amp;lt;=0xef)) &amp;&amp;
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;(buf[offs+21] &amp; 128))
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;{
&lt;br&gt;- &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;writepts(buf+23,readpts(buf+23)+tsoffs);
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;writepts(buf+offs+23,readpts(buf+offs+23)+tsoffs);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;// dts?
&lt;br&gt;- &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;if( buf[21] &amp; 64 ) {
&lt;br&gt;- &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;writepts(buf+28,readpts(buf+28)+tsoffs);
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;if( buf[offs+21] &amp; 64 ) {
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;writepts(buf+offs+28,readpts(buf+offs+28)+tsoffs);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;}
&lt;br&gt;&amp;nbsp;}
&lt;br&gt;&lt;br&gt;+int find_gop(unsigned char *buf)
&lt;br&gt;+{
&lt;br&gt;+ &amp;nbsp; &amp;nbsp;if (buf[14] == 0 &amp;&amp;
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;buf[15] == 0 &amp;&amp;
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;buf[16] == 1 &amp;&amp;
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;buf[17] == 0xbb &amp;&amp;
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;buf[38] == 0 &amp;&amp;
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;buf[39] == 0 &amp;&amp;
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;buf[40] == 1 &amp;&amp;
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;buf[41] == 0xe0)
&lt;br&gt;+ &amp;nbsp; &amp;nbsp;{
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;int i = 42;
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;while (i &amp;lt; 1024)
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;{
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;if (buf[i] == 0 &amp;&amp;
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;buf[i+1] == 0 &amp;&amp;
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;buf[i+2] == 1 &amp;&amp;
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;buf[i+3] == 0xb8)
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;return 1;
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;i += 4;
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}
&lt;br&gt;+ &amp;nbsp; &amp;nbsp;}
&lt;br&gt;+ &amp;nbsp; &amp;nbsp;return 0;
&lt;br&gt;+}
&lt;br&gt;+
&lt;br&gt;&amp;nbsp;static int mpa_valid(unsigned char *b)
&lt;br&gt;&amp;nbsp;{
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;unsigned int v=(b[0]&amp;lt;&amp;lt;24)|(b[1]&amp;lt;&amp;lt;16)|(b[2]&amp;lt;&amp;lt;8)|b[3];
&lt;br&gt;@@ -548,7 +574,7 @@
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;scanvideoptr(va,buf+i,thisvi,cursect,vsi);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;}
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;if( !va-&amp;gt;vd.vmpeg )
&lt;br&gt;- &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;vobgroup_set_video_attr(va,VIDEO_MPEG,&amp;quot;mpeg1&amp;quot;);
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;vobgroup_set_video_attr(va,VIDEO_MPEG,&amp;quot;mpeg2&amp;quot;);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;// if the mpeg version changed, then rerun scanvideoframe, because
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;// scanvideoptr updates the aspect ratio in the sequence header
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;if( mpf != va-&amp;gt;vd.vmpeg ) {
&lt;br&gt;@@ -824,6 +850,7 @@
&lt;br&gt;&amp;nbsp;int FindVobus(char *fbase,struct vobgroup *va,int ismenu)
&lt;br&gt;&amp;nbsp;{
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;unsigned char *buf;
&lt;br&gt;+ &amp;nbsp; &amp;nbsp;unsigned char *buf_copy = (unsigned char*) malloc(2048);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;int cursect=0,fsect=-1,vnum,outnum=-ismenu+1;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;int vobid=0;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;struct mp2info {
&lt;br&gt;@@ -837,6 +864,7 @@
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;int i,j;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;int hadfirstvobu=0;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;pts_t backoffs=0, lastscr=0;
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;int generate_vobu=0,copy_packet=0,tsoffs=0;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;struct vob *s=va-&amp;gt;vobs[vnum];
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;int prevvidsect=-1;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;struct vscani vsi;
&lt;br&gt;@@ -869,8 +897,9 @@
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;buf=writegrabbuf();
&lt;br&gt;&lt;br&gt;- &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;i=fread(buf,1,2048,vf.h);
&lt;br&gt;- &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;if( i!=2048 ) {
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;if (copy_packet == 1 ) {
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;memcpy( buf, buf_copy, 2048);
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;} else if( 2048 != (i=fread(buf,1,2048,vf.h)) ) {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;if( i==-1 ) {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;fprintf(stderr,&amp;quot;\nERR: &amp;nbsp;Error while reading: 
&lt;br&gt;%s\n&amp;quot;,strerror(errno));
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;exit(1);
&lt;br&gt;@@ -986,6 +1015,38 @@
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;writeundo();
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;continue;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}
&lt;br&gt;+
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;if( fsect == -1 ) {
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;char newname[200];
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;fsect=0;
&lt;br&gt;+	 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;if( outnum &amp;gt;= 0)
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;	sprintf(newname, &amp;quot;%s_%d.VOB&amp;quot;, fbase,outnum);
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;else
&lt;br&gt;+	 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 	strcpy(newname,fbase);
&lt;br&gt;+		writeopen(newname);
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}
&lt;br&gt;+
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;// we should get a VOBU before a video with GOP
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;if( (generate_vobu == 1 || hadfirstvobu == 0) &amp;&amp;
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;copy_packet == 0 &amp;&amp; find_gop(buf) )
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;{
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;// create VOBU
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;generate_vobu = 1;
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;copy_packet = 1;
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;memcpy( buf_copy, buf, 2048);
&lt;br&gt;+
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;buf[41] = 0xbf;
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;buf[42] = 0x03;
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;buf[43] = 0xd4;
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;buf[44] = 0x81;
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;memset( buf+45, 0, 2048-45);
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;buf[1026] = 1;
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;buf[1027] = 0xbf;
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;buf[1028] = 0x03;
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;buf[1029] = 0xfa;
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;buf[1030] = 0x81;
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;} else if (copy_packet == 1)
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;copy_packet = 0;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;if( buf[0]==0 &amp;&amp; buf[1]==0 &amp;&amp; buf[2]==1 &amp;&amp; buf[3]==0xba ) {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;pts_t newscr=readscr(buf+4);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;if( newscr &amp;lt; lastscr ) {
&lt;br&gt;@@ -997,16 +1058,15 @@
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;backoffs=newscr;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;transpose_ts(buf,-backoffs);
&lt;br&gt;- &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;if( fsect == -1 ) {
&lt;br&gt;- &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;char newname[200];
&lt;br&gt;- &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;fsect=0;
&lt;br&gt;- &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;if( fbase ) {
&lt;br&gt;- &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;if( outnum&amp;gt;=0 )
&lt;br&gt;- &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;sprintf(newname,&amp;quot;%s_%d.VOB&amp;quot;,fbase,outnum);
&lt;br&gt;- &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;else
&lt;br&gt;- &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;strcpy(newname,fbase);
&lt;br&gt;- &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;writeopen(newname);
&lt;br&gt;- &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;if( !hadfirstvobu &amp;&amp; buf[0]==0 &amp;&amp; buf[1]==0 &amp;&amp; buf[2]==1 &amp;&amp; 
&lt;br&gt;buf[3]==0xba )
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;{
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;int offs = (buf[17] == 0xbb) ? 24 : 0;
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;if( buf[offs+14] == 0 &amp;&amp;
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;buf[offs+15] == 0 &amp;&amp;
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;buf[offs+16] == 1 &amp;&amp;
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;(buf[offs+17]==0xbd || (buf[offs+17]&amp;gt;=0xc0 &amp;&amp; 
&lt;br&gt;buf[offs+17]&amp;lt;=0xef)) &amp;&amp;
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;(buf[offs+21] &amp; 128))
&lt;br&gt;+	 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;tsoffs = readpts(buf+offs+23);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;if( buf[14] == 0 &amp;&amp;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;buf[15] == 0 &amp;&amp;
&lt;br&gt;@@ -1051,7 +1111,7 @@
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;printvobustatus(va,cursect);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;vsi.lastrefsect=0;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;vsi.firstgop=1;
&lt;br&gt;- &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;} else {
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;} else if (generate_vobu == 0 || copy_packet == 1) {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;fprintf(stderr,&amp;quot;WARN: System header found, but PCI/DSI 
&lt;br&gt;information is not where expected\n\t(make sure your system header is 18 
&lt;br&gt;bytes!)\n&amp;quot;);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}
&lt;br&gt;@@ -1369,6 +1429,7 @@
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;}
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;writeclose();
&lt;br&gt;+ &amp;nbsp; &amp;nbsp;free(buf_copy);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;printvobustatus(va,cursect);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;fprintf(stderr,&amp;quot;\n&amp;quot;);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;free(crs);
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;----- Original Message ----- 
&lt;br&gt;From: &amp;quot;Martin Crossley&amp;quot; &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26257118&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;martin@...&lt;/a&gt;&amp;gt;
&lt;br&gt;To: &amp;quot;Lawrence D'Oliveiro&amp;quot; &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26257118&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;ldo@...&lt;/a&gt;&amp;gt;; 
&lt;br&gt;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26257118&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dvdauthor-developer@...&lt;/a&gt;&amp;gt;
&lt;br&gt;Sent: Sunday, November 08, 2009 7:22 PM
&lt;br&gt;Subject: Re: [Dvdauthor-developer] Attempt to solve &amp;quot;ERR: SCR 
&lt;br&gt;movesbackwards,remultiplex input.&amp;quot;
&lt;br&gt;&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Hi Lawrence -
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I did quite a bit of work on this issue back in Jun 2008: see
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://www.mail-archive.com/ivtv-users@ivtvdriver.org/msg08234.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.mail-archive.com/ivtv-users@.../msg08234.html&lt;/a&gt;.
&lt;br&gt;&amp;gt; Unfortunately for some reason the source code of the patches themselves
&lt;br&gt;&amp;gt; seems to have vanished from that site, so I'll dig it out from archive and
&lt;br&gt;&amp;gt; sent it to you.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I was taking a lot of input from a hardware MPEG encoder card, that
&lt;br&gt;&amp;gt; triggered this problem *a lot*.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I wrote a bit about the causes of the issue here (see in particular &amp;quot;Part 
&lt;br&gt;&amp;gt; 2:
&lt;br&gt;&amp;gt; how to patch dvdauthor&amp;quot;).
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; My post here:
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://old.nabble.com/Submission-of-proposed-patch-to-dvdauthor-0.6.14-(affects-dvdvob.c)-p17695878.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://old.nabble.com/Submission-of-proposed-patch-to-dvdauthor-0.6.14-(affects-dvdvob.c)-p17695878.html&lt;/a&gt;&lt;br&gt;&amp;gt; explains a bit more what the patches are doing
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; The patches that I developed are probably a bit long in the tooth these 
&lt;br&gt;&amp;gt; days
&lt;br&gt;&amp;gt; (they are against version 0.6.14) but I think that they might be helpful 
&lt;br&gt;&amp;gt; for
&lt;br&gt;&amp;gt; you to have a look at.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; One warning though: while I found that the DVDs produced via this patch 
&lt;br&gt;&amp;gt; work
&lt;br&gt;&amp;gt; absolutely fine with my players here (Sony, Denon), I have had reports 
&lt;br&gt;&amp;gt; from
&lt;br&gt;&amp;gt; some friends that they don't work in certain older kit.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Cheers - and good luck
&lt;br&gt;&amp;gt; MartinC
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; PS: for the benefit of the list, here is another document I wrote a while
&lt;br&gt;&amp;gt; ago, on the subject of how to use the Gimp to do anti-aliased menu text 
&lt;br&gt;&amp;gt; with
&lt;br&gt;&amp;gt; dvdauthor. &amp;nbsp;It's well worth the effort!
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://ivtvdriver.org/index.php/Howto:anti-aliased_menus_and_buttons_with_dvdauthor&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://ivtvdriver.org/index.php/Howto:anti-aliased_menus_and_buttons_with_dvdauthor&lt;/a&gt;&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; ----- Original Message ----- 
&lt;br&gt;&amp;gt; From: &amp;quot;Lawrence D'Oliveiro&amp;quot; &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26257118&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;ldo@...&lt;/a&gt;&amp;gt;
&lt;br&gt;&amp;gt; To: &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26257118&amp;i=4&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dvdauthor-developer@...&lt;/a&gt;&amp;gt;
&lt;br&gt;&amp;gt; Sent: Sunday, November 08, 2009 4:52 AM
&lt;br&gt;&amp;gt; Subject: Re: [Dvdauthor-developer] Attempt to solve &amp;quot;ERR: SCR
&lt;br&gt;&amp;gt; movesbackwards, remultiplex input.&amp;quot;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Back on 2nd April 2004, philou &amp;lt;philippe.sarazin@fr...&amp;gt; wrote:
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Like some of you, I had to face some trouble with a recurrent error
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; message in dvdauthor (v 0.6.10), &amp;quot;ERR: SCR moves backwards&amp;quot;.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; This message occurs when the SCR (System Clock Reference) goes backward
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; in the data stream that I'm trying to author. After a lot of search on
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; the net, I think that there's a case where this is not an error as
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; dvdauthor reports it : the SCR can sometimes be reset to zero in the
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; middle of a VOB.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; I have decided to incorporate this patch. Well, I figure trying to
&lt;br&gt;&amp;gt;&amp;gt; recover and continue can’t be worse than dying with an error. :)
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; ------------------------------------------------------------------------------
&lt;br&gt;&amp;gt;&amp;gt; Let Crystal Reports handle the reporting - Free Crystal Reports 2008
&lt;br&gt;&amp;gt;&amp;gt; 30-Day
&lt;br&gt;&amp;gt;&amp;gt; trial. Simplify your report design, integration and deployment - and 
&lt;br&gt;&amp;gt;&amp;gt; focus
&lt;br&gt;&amp;gt;&amp;gt; on
&lt;br&gt;&amp;gt;&amp;gt; what you do best, core application coding. Discover what's new with
&lt;br&gt;&amp;gt;&amp;gt; Crystal Reports now. &amp;nbsp;&lt;a href=&quot;http://p.sf.net/sfu/bobj-july&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/bobj-july&lt;/a&gt;&lt;br&gt;&amp;gt;&amp;gt; _______________________________________________
&lt;br&gt;&amp;gt;&amp;gt; Dvdauthor-developer mailing list
&lt;br&gt;&amp;gt;&amp;gt; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26257118&amp;i=5&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Dvdauthor-developer@...&lt;/a&gt;
&lt;br&gt;&amp;gt;&amp;gt; &lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/dvdauthor-developer&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/dvdauthor-developer&lt;/a&gt;&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; ------------------------------------------------------------------------------
&lt;br&gt;&amp;gt; Let Crystal Reports handle the reporting - Free Crystal Reports 2008 
&lt;br&gt;&amp;gt; 30-Day
&lt;br&gt;&amp;gt; trial. Simplify your report design, integration and deployment - and focus 
&lt;br&gt;&amp;gt; on
&lt;br&gt;&amp;gt; what you do best, core application coding. Discover what's new with
&lt;br&gt;&amp;gt; Crystal Reports now. &amp;nbsp;&lt;a href=&quot;http://p.sf.net/sfu/bobj-july&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/bobj-july&lt;/a&gt;&lt;br&gt;&amp;gt; _______________________________________________
&lt;br&gt;&amp;gt; Dvdauthor-developer mailing list
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26257118&amp;i=6&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Dvdauthor-developer@...&lt;/a&gt;
&lt;br&gt;&amp;gt; &lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/dvdauthor-developer&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/dvdauthor-developer&lt;/a&gt;&lt;br&gt;&amp;gt; 
&lt;/div&gt;&lt;br&gt;&lt;br&gt;------------------------------------------------------------------------------
&lt;br&gt;Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
&lt;br&gt;trial. Simplify your report design, integration and deployment - and focus on 
&lt;br&gt;what you do best, core application coding. Discover what's new with
&lt;br&gt;Crystal Reports now. &amp;nbsp;&lt;a href=&quot;http://p.sf.net/sfu/bobj-july&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/bobj-july&lt;/a&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Dvdauthor-developer mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26257118&amp;i=7&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Dvdauthor-developer@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/dvdauthor-developer&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/dvdauthor-developer&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/dvdauthor-developer-f14460.html&quot; embed=&quot;fixTarget[14460]&quot; target=&quot;_top&quot; &gt;dvdauthor-developer&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Re%3A-Attempt-to-solve-%22ERR%3A-SCR-moves-backwards%2C-remultiplex-input.%22-tp26251040p26257118.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26256972</id>
	<title>Re: Attempt to solve &quot;ERR: SCR movesbackwards, remultiplex input.&quot;</title>
	<published>2009-11-08T11:22:17Z</published>
	<updated>2009-11-08T11:22:17Z</updated>
	<author>
		<name>Martin Crossley</name>
	</author>
	<content type="html">Hi Lawrence -
&lt;br&gt;&lt;br&gt;I did quite a bit of work on this issue back in Jun 2008: see 
&lt;br&gt;&lt;a href=&quot;http://www.mail-archive.com/ivtv-users@ivtvdriver.org/msg08234.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.mail-archive.com/ivtv-users@.../msg08234.html&lt;/a&gt;. 
&lt;br&gt;Unfortunately for some reason the source code of the patches themselves 
&lt;br&gt;seems to have vanished from that site, so I'll dig it out from archive and 
&lt;br&gt;sent it to you.
&lt;br&gt;&lt;br&gt;I was taking a lot of input from a hardware MPEG encoder card, that 
&lt;br&gt;triggered this problem *a lot*.
&lt;br&gt;&lt;br&gt;I wrote a bit about the causes of the issue here (see in particular &amp;quot;Part 2: 
&lt;br&gt;how to patch dvdauthor&amp;quot;).
&lt;br&gt;&lt;br&gt;My post here: 
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/Submission-of-proposed-patch-to-dvdauthor-0.6.14-(affects-dvdvob.c)-p17695878.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://old.nabble.com/Submission-of-proposed-patch-to-dvdauthor-0.6.14-(affects-dvdvob.c)-p17695878.html&lt;/a&gt;&amp;nbsp;
&lt;br&gt;explains a bit more what the patches are doing
&lt;br&gt;&lt;br&gt;The patches that I developed are probably a bit long in the tooth these days 
&lt;br&gt;(they are against version 0.6.14) but I think that they might be helpful for 
&lt;br&gt;you to have a look at.
&lt;br&gt;&lt;br&gt;One warning though: while I found that the DVDs produced via this patch work 
&lt;br&gt;absolutely fine with my players here (Sony, Denon), I have had reports from 
&lt;br&gt;some friends that they don't work in certain older kit.
&lt;br&gt;&lt;br&gt;&lt;br&gt;Cheers - and good luck
&lt;br&gt;MartinC
&lt;br&gt;&lt;br&gt;PS: for the benefit of the list, here is another document I wrote a while 
&lt;br&gt;ago, on the subject of how to use the Gimp to do anti-aliased menu text with 
&lt;br&gt;dvdauthor. &amp;nbsp;It's well worth the effort!
&lt;br&gt;&lt;br&gt;&lt;a href=&quot;http://ivtvdriver.org/index.php/Howto:anti-aliased_menus_and_buttons_with_dvdauthor&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://ivtvdriver.org/index.php/Howto:anti-aliased_menus_and_buttons_with_dvdauthor&lt;/a&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;----- Original Message ----- 
&lt;br&gt;From: &amp;quot;Lawrence D'Oliveiro&amp;quot; &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26256972&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;ldo@...&lt;/a&gt;&amp;gt;
&lt;br&gt;To: &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26256972&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dvdauthor-developer@...&lt;/a&gt;&amp;gt;
&lt;br&gt;Sent: Sunday, November 08, 2009 4:52 AM
&lt;br&gt;Subject: Re: [Dvdauthor-developer] Attempt to solve &amp;quot;ERR: SCR 
&lt;br&gt;movesbackwards, remultiplex input.&amp;quot;
&lt;br&gt;&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Back on 2nd April 2004, philou &amp;lt;philippe.sarazin@fr...&amp;gt; wrote:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Like some of you, I had to face some trouble with a recurrent error
&lt;br&gt;&amp;gt;&amp;gt; message in dvdauthor (v 0.6.10), &amp;quot;ERR: SCR moves backwards&amp;quot;.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; This message occurs when the SCR (System Clock Reference) goes backward
&lt;br&gt;&amp;gt;&amp;gt; in the data stream that I'm trying to author. After a lot of search on
&lt;br&gt;&amp;gt;&amp;gt; the net, I think that there's a case where this is not an error as
&lt;br&gt;&amp;gt;&amp;gt; dvdauthor reports it : the SCR can sometimes be reset to zero in the
&lt;br&gt;&amp;gt;&amp;gt; middle of a VOB.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I have decided to incorporate this patch. Well, I figure trying to
&lt;br&gt;&amp;gt; recover and continue can’t be worse than dying with an error. :)
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; ------------------------------------------------------------------------------
&lt;br&gt;&amp;gt; Let Crystal Reports handle the reporting - Free Crystal Reports 2008 
&lt;br&gt;&amp;gt; 30-Day
&lt;br&gt;&amp;gt; trial. Simplify your report design, integration and deployment - and focus 
&lt;br&gt;&amp;gt; on
&lt;br&gt;&amp;gt; what you do best, core application coding. Discover what's new with
&lt;br&gt;&amp;gt; Crystal Reports now. &amp;nbsp;&lt;a href=&quot;http://p.sf.net/sfu/bobj-july&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/bobj-july&lt;/a&gt;&lt;br&gt;&amp;gt; _______________________________________________
&lt;br&gt;&amp;gt; Dvdauthor-developer mailing list
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26256972&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Dvdauthor-developer@...&lt;/a&gt;
&lt;br&gt;&amp;gt; &lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/dvdauthor-developer&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/dvdauthor-developer&lt;/a&gt;&lt;br&gt;&amp;gt; 
&lt;/div&gt;&lt;br&gt;&lt;br&gt;------------------------------------------------------------------------------
&lt;br&gt;Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
&lt;br&gt;trial. Simplify your report design, integration and deployment - and focus on 
&lt;br&gt;what you do best, core application coding. Discover what's new with
&lt;br&gt;Crystal Reports now. &amp;nbsp;&lt;a href=&quot;http://p.sf.net/sfu/bobj-july&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/bobj-july&lt;/a&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Dvdauthor-developer mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26256972&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Dvdauthor-developer@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/dvdauthor-developer&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/dvdauthor-developer&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/dvdauthor-developer-f14460.html&quot; embed=&quot;fixTarget[14460]&quot; target=&quot;_top&quot; &gt;dvdauthor-developer&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Re%3A-Attempt-to-solve-%22ERR%3A-SCR-moves-backwards%2C-remultiplex-input.%22-tp26251040p26256972.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26251298</id>
	<title>Re: [Dvdauthor-users] Printing Chapter-Timecodes</title>
	<published>2009-11-07T22:23:31Z</published>
	<updated>2009-11-07T22:23:31Z</updated>
	<author>
		<name>Lawrence D'Oliveiro-2</name>
	</author>
	<content type="html">Back on 15th March 2007, Wolfgang Wershofen &amp;lt;wolfgang@we...&amp;gt; wrote:
&lt;br&gt;&lt;br&gt;&amp;gt; Ok, found a solution myself with the help of an old patch, Scott
&lt;br&gt;&amp;gt; supplied on this list back in 2003.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; I modified dvdvob.c to print out the chapter timecodes in the summary.
&lt;br&gt;&lt;br&gt;I though this was useful enough to add, too.
&lt;br&gt;&lt;br&gt;------------------------------------------------------------------------------
&lt;br&gt;Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
&lt;br&gt;trial. Simplify your report design, integration and deployment - and focus on 
&lt;br&gt;what you do best, core application coding. Discover what's new with
&lt;br&gt;Crystal Reports now. &amp;nbsp;&lt;a href=&quot;http://p.sf.net/sfu/bobj-july&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/bobj-july&lt;/a&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Dvdauthor-developer mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26251298&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Dvdauthor-developer@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/dvdauthor-developer&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/dvdauthor-developer&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/dvdauthor-developer-f14460.html&quot; embed=&quot;fixTarget[14460]&quot; target=&quot;_top&quot; &gt;dvdauthor-developer&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Re%3A--Dvdauthor-users--Printing-Chapter-Timecodes-tp26251298p26251298.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26251040</id>
	<title>Re: Attempt to solve &quot;ERR: SCR moves backwards, remultiplex input.&quot;</title>
	<published>2009-11-07T20:52:01Z</published>
	<updated>2009-11-07T20:52:01Z</updated>
	<author>
		<name>Lawrence D'Oliveiro-2</name>
	</author>
	<content type="html">Back on 2nd April 2004, philou &amp;lt;philippe.sarazin@fr...&amp;gt; wrote:
&lt;br&gt;&lt;br&gt;&amp;gt; Like some of you, I had to face some trouble with a recurrent error
&lt;br&gt;&amp;gt; message in dvdauthor (v 0.6.10), &amp;quot;ERR: SCR moves backwards&amp;quot;.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; This message occurs when the SCR (System Clock Reference) goes backward
&lt;br&gt;&amp;gt; in the data stream that I'm trying to author. After a lot of search on
&lt;br&gt;&amp;gt; the net, I think that there's a case where this is not an error as
&lt;br&gt;&amp;gt; dvdauthor reports it : the SCR can sometimes be reset to zero in the
&lt;br&gt;&amp;gt; middle of a VOB.
&lt;br&gt;&lt;br&gt;I have decided to incorporate this patch. Well, I figure trying to 
&lt;br&gt;recover and continue can’t be worse than dying with an error. :)
&lt;br&gt;&lt;br&gt;------------------------------------------------------------------------------
&lt;br&gt;Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
&lt;br&gt;trial. Simplify your report design, integration and deployment - and focus on 
&lt;br&gt;what you do best, core application coding. Discover what's new with
&lt;br&gt;Crystal Reports now. &amp;nbsp;&lt;a href=&quot;http://p.sf.net/sfu/bobj-july&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/bobj-july&lt;/a&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Dvdauthor-developer mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26251040&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Dvdauthor-developer@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/dvdauthor-developer&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/dvdauthor-developer&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/dvdauthor-developer-f14460.html&quot; embed=&quot;fixTarget[14460]&quot; target=&quot;_top&quot; &gt;dvdauthor-developer&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Re%3A-Attempt-to-solve-%22ERR%3A-SCR-moves-backwards%2C-remultiplex-input.%22-tp26251040p26251040.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26250967</id>
	<title>ivtv patches gone?</title>
	<published>2009-11-07T20:27:51Z</published>
	<updated>2009-11-07T20:27:51Z</updated>
	<author>
		<name>Lawrence D'Oliveiro-2</name>
	</author>
	<content type="html">Hi folks.
&lt;br&gt;&lt;br&gt;Once upon a time there were dvdauthor patches posted at the 
&lt;br&gt;ivtvdriver.org wiki. I just searched for them 
&lt;br&gt;&amp;lt;&lt;a href=&quot;http://ivtvdriver.org/index.php?title=Special%3ASearch&amp;search=dvdauthor&amp;fulltext=Search&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://ivtvdriver.org/index.php?title=Special%3ASearch&amp;search=dvdauthor&amp;fulltext=Search&lt;/a&gt;&amp;gt;, 
&lt;br&gt;and found a couple of hits, but they led to nonexistent pages.
&lt;br&gt;&lt;br&gt;Wonder what’s happened to these?
&lt;br&gt;&lt;br&gt;------------------------------------------------------------------------------
&lt;br&gt;Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
&lt;br&gt;trial. Simplify your report design, integration and deployment - and focus on 
&lt;br&gt;what you do best, core application coding. Discover what's new with
&lt;br&gt;Crystal Reports now. &amp;nbsp;&lt;a href=&quot;http://p.sf.net/sfu/bobj-july&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/bobj-july&lt;/a&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Dvdauthor-developer mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26250967&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Dvdauthor-developer@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/dvdauthor-developer&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/dvdauthor-developer&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/dvdauthor-developer-f14460.html&quot; embed=&quot;fixTarget[14460]&quot; target=&quot;_top&quot; &gt;dvdauthor-developer&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/ivtv-patches-gone--tp26250967p26250967.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26251046</id>
	<title>Re: possible typo in src/compat.h</title>
	<published>2009-11-07T20:18:50Z</published>
	<updated>2009-11-07T20:18:50Z</updated>
	<author>
		<name>Lawrence D'Oliveiro-2</name>
	</author>
	<content type="html">Back on 15 Jul 2007, Klaus Heinz-22 wrote:
&lt;br&gt;&lt;br&gt;&amp;gt; in dvdauthor 0.6.14 src/compat.h contains a macro ICONV_CONV which has
&lt;br&gt;&amp;gt; no definition anywhere in the code. On the other hand, there is
&lt;br&gt;&amp;gt; ICONV_CONST in config.h and incidentally ICONV_CONV protects a section
&lt;br&gt;&amp;gt; about iconv(), so I think the appended little patch is what was originally
&lt;br&gt;&amp;gt; intended. 
&lt;br&gt;&lt;br&gt;I have decided to apply this. Can anybody see a downside?
&lt;br&gt;&lt;br&gt;Lawrence
&lt;br&gt;&lt;br&gt;------------------------------------------------------------------------------
&lt;br&gt;Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
&lt;br&gt;trial. Simplify your report design, integration and deployment - and focus on 
&lt;br&gt;what you do best, core application coding. Discover what's new with
&lt;br&gt;Crystal Reports now. &amp;nbsp;&lt;a href=&quot;http://p.sf.net/sfu/bobj-july&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/bobj-july&lt;/a&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Dvdauthor-developer mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26251046&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Dvdauthor-developer@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/dvdauthor-developer&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/dvdauthor-developer&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/dvdauthor-developer-f14460.html&quot; embed=&quot;fixTarget[14460]&quot; target=&quot;_top&quot; &gt;dvdauthor-developer&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Re%3A-possible-typo-in-src-compat.h-tp26251046p26251046.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26102766</id>
	<title>Re: QDvdAuthor and Qt4</title>
	<published>2009-10-28T14:48:38Z</published>
	<updated>2009-10-28T14:48:38Z</updated>
	<author>
		<name>QDVDAuthor</name>
	</author>
	<content type="html">Not at the moment.
&lt;br&gt;&lt;br&gt;I believe there was a port at some point to OS/2 but since I coul not
&lt;br&gt;install OS/2 on VirtualBox or VMWare I could not help out.
&lt;br&gt;&lt;br&gt;So you should be able to compile the application with the Qt 3.x devel
&lt;br&gt;version and then QRender with Qt4.x
&lt;br&gt;&lt;br&gt;If I remember correctly the issue was on the backend side. That is you
&lt;br&gt;need to have MPlayer in the path and accesible through the/a command
&lt;br&gt;line interface. Can you use bash ?
&lt;br&gt;&lt;br&gt;If you want to invest the time and effort I am willing to help you out
&lt;br&gt;getting it to a certain point. From there on it is mostly an
&lt;br&gt;administrative project.
&lt;br&gt;&lt;br&gt;Question, do you have ffmpeg, or xine libs, or VLC or MPlayer available ?
&lt;br&gt;&lt;br&gt;Varol :)
&lt;br&gt;Silvan Scherrer wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Hi all,
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; a general question about QDvdAuthor. Are there any plans to migrate to 
&lt;br&gt;&amp;gt; Qt4 complete?
&lt;br&gt;&amp;gt; I wanted to port QDvdAuthor to OS/2 with Qt4. But i got a lot of 
&lt;br&gt;&amp;gt; problems because of old UI files.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; thanks for a answer and regards
&lt;br&gt;&amp;gt; Silvan
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; 
&lt;/div&gt;&lt;br&gt;&lt;br&gt;------------------------------------------------------------------------------
&lt;br&gt;Come build with us! The BlackBerry(R) Developer Conference in SF, CA
&lt;br&gt;is the only developer event you need to attend this year. Jumpstart your
&lt;br&gt;developing skills, take BlackBerry mobile applications to market and stay 
&lt;br&gt;ahead of the curve. Join us from November 9 - 12, 2009. Register now!
&lt;br&gt;&lt;a href=&quot;http://p.sf.net/sfu/devconference&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/devconference&lt;/a&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;QDVDAuthor-devel mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26102766&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;QDVDAuthor-devel@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/qdvdauthor-devel&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/qdvdauthor-devel&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/qdvdauthor-devel-f4052.html&quot; embed=&quot;fixTarget[4052]&quot; target=&quot;_top&quot; &gt;qdvdauthor-devel&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/QDvdAuthor-and-Qt4-tp26095118p26102766.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26095118</id>
	<title>QDvdAuthor and Qt4</title>
	<published>2009-10-28T06:43:28Z</published>
	<updated>2009-10-28T06:43:28Z</updated>
	<author>
		<name>Silvan Scherrer</name>
	</author>
	<content type="html">Hi all,
&lt;br&gt;&lt;br&gt;a general question about QDvdAuthor. Are there any plans to migrate to 
&lt;br&gt;Qt4 complete?
&lt;br&gt;I wanted to port QDvdAuthor to OS/2 with Qt4. But i got a lot of 
&lt;br&gt;problems because of old UI files.
&lt;br&gt;&lt;br&gt;thanks for a answer and regards
&lt;br&gt;Silvan
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;/Silvan Scherrer
&lt;br&gt;AROA Informatik AG
&lt;br&gt;Tel. +41 71 243 55 77
&lt;br&gt;Fax +41 71 243 55 70
&lt;br&gt;www.aroa.ch &amp;lt;&lt;a href=&quot;http://www.aroa.ch&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.aroa.ch&lt;/a&gt;&amp;gt; /
&lt;br&gt;&lt;br&gt;------------------------------------------------------------------------------
&lt;br&gt;Come build with us! The BlackBerry(R) Developer Conference in SF, CA
&lt;br&gt;is the only developer event you need to attend this year. Jumpstart your
&lt;br&gt;developing skills, take BlackBerry mobile applications to market and stay 
&lt;br&gt;ahead of the curve. Join us from November 9 - 12, 2009. Register now!
&lt;br&gt;&lt;a href=&quot;http://p.sf.net/sfu/devconference&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/devconference&lt;/a&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;QDVDAuthor-devel mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26095118&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;QDVDAuthor-devel@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/qdvdauthor-devel&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/qdvdauthor-devel&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/qdvdauthor-devel-f4052.html&quot; embed=&quot;fixTarget[4052]&quot; target=&quot;_top&quot; &gt;qdvdauthor-devel&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/QDvdAuthor-and-Qt4-tp26095118p26095118.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-25729055</id>
	<title>How to input mpgs or audio/videostrams into Q-DVDauthor?</title>
	<published>2009-10-03T07:02:22Z</published>
	<updated>2009-10-03T07:02:22Z</updated>
	<author>
		<name>geier</name>
	</author>
	<content type="html">Hi all,
&lt;br&gt;I use Q-Dvdauthor 1.10 on a Suse 11.1 machine to make dvds with menus and chapters. My source files are recordings of an VDR (I use linvdr), which are processed by vdrsync.pl, either on the VDR itself or on my suse-desktop. vdrsync extracts audio (*.mpa and/or *.ac3) and video streams (*.mpv). Then comes multiplexing with mplex, and there is a mpg-video with suitable quality. The VDR makes this all in one when I click on &amp;quot;export as mpeg2&amp;quot;, which leads to the same mpg-video. With two dvdauthor commands I create an ISO, which I can burn. So far so good.
&lt;br&gt;&lt;br&gt;But these DVDs have no chapters. And here comes the task of Q-DVDauthor.
&lt;br&gt;I make some menu and define some chapters. 
&lt;br&gt;When I click on the &amp;quot;Create DVD&amp;quot;-button, I come to the command window. So I thought, because the multiplexing for DVDs is already done (mplex with option -f = 8 or 9), I skip the conversion process. But I get (in the dvdauthor display&amp;quot;) &amp;quot;Wailting for the first VOBU&amp;quot;.
&lt;br&gt;&lt;br&gt;What can I do to give ready multiplexed files to Q-DVDauthor? Or is there another way to process VDR recordings with Q-DVDauthor?
&lt;br&gt;&lt;br&gt;Thanks for helping,
&lt;br&gt;Richard&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/qdvdauthor-users-f4053.html&quot; embed=&quot;fixTarget[4053]&quot; target=&quot;_top&quot; &gt;qdvdauthor-users&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/How-to-input-mpgs-or-audio-videostrams-into-Q-DVDauthor--tp25729055p25729055.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-25701495</id>
	<title>Re: QDVDAuthor: Slideshow rendering issue</title>
	<published>2009-10-01T09:03:28Z</published>
	<updated>2009-10-01T09:03:28Z</updated>
	<author>
		<name>Varol Okan-2</name>
	</author>
	<content type="html">-----BEGIN PGP SIGNED MESSAGE-----
&lt;br&gt;Hash: SHA1
&lt;br&gt;&lt;br&gt;Okay, I played around with the slideshows a bit and hope I fixed your issue.
&lt;br&gt;&lt;br&gt;You can use the latest CVS source to give it a try.
&lt;br&gt;&lt;br&gt;Varol :)
&lt;br&gt;&lt;br&gt;Varol Okan wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Steven P. Ulrick wrote:
&lt;br&gt;&amp;gt;&amp;gt; Hello
&lt;br&gt;&amp;gt;&amp;gt; I have made progress since the response I got to my ffmpeg issue.
&lt;br&gt;&amp;gt;&amp;gt; But, while attempting to create a slide-show using QDVDAuthor (instead of 
&lt;br&gt;&amp;gt;&amp;gt; QSlideshow like I was trying before,) sometimes the individual chapters will 
&lt;br&gt;&amp;gt;&amp;gt; just stop rendering. &amp;nbsp;I can't remember for sure how many chapters were set to 
&lt;br&gt;&amp;gt;&amp;gt; render at once, but I changed the setting to &amp;quot;1&amp;quot; and tried again. &amp;nbsp;I started the 
&lt;br&gt;&amp;gt;&amp;gt; slide-show over again, and started the rendering process, and then went to bed. &amp;nbsp;
&lt;br&gt;&amp;gt;&amp;gt; About eight hours later, only three out of twelve chapters had completed, and 
&lt;br&gt;&amp;gt;&amp;gt; one was stalled at about 41%.
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; 
&lt;br&gt;&amp;gt; Even if it only shows 41% take &amp;nbsp;a look to see if it might have rendered
&lt;br&gt;&amp;gt; the whole slideshow.
&lt;br&gt;&amp;gt;&amp;gt; Here is a screen-shot that will give you some idea about how many pictures are 
&lt;br&gt;&amp;gt;&amp;gt; in each chapter:
&lt;br&gt;&amp;gt;&amp;gt; &lt;a href=&quot;http://www.afolkey2.net/~steve/QDVDAuthor-Screenshots-0008.jpg&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.afolkey2.net/~steve/QDVDAuthor-Screenshots-0008.jpg&lt;/a&gt;&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; 
&lt;br&gt;&amp;gt; Did you add background audio as well ? If so what audio format, mp3,
&lt;br&gt;&amp;gt; ac3, ogg ?
&lt;br&gt;&amp;gt; Did your slidhow have short vids included ? Can you put one ( the
&lt;br&gt;&amp;gt; shortest ) on a server so I can take a peek at it ?
&lt;br&gt;&amp;gt;&amp;gt; During the time that I thought QDVDAuthor was rendering my slide-show chapters, 
&lt;br&gt;&amp;gt;&amp;gt; nothing else was being done on this computer.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Right now, rendering only one chapter (the only reason it is rendering now is 
&lt;br&gt;&amp;gt;&amp;gt; because I right clicked on it and chose &amp;quot;Re-Render&amp;quot;) this is what the resources 
&lt;br&gt;&amp;gt;&amp;gt; on our system look like:
&lt;br&gt;&amp;gt;&amp;gt; &lt;a href=&quot;http://www.afolkey2.net/~steve/QDVDAuthor-Screenshots-0009.jpg&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.afolkey2.net/~steve/QDVDAuthor-Screenshots-0009.jpg&lt;/a&gt;&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; 
&lt;br&gt;&amp;gt; For now this seems to be the workaround, to start each slideshow
&lt;br&gt;&amp;gt; manually until I debug this issue and fix it. &amp;nbsp;Sorry.
&lt;br&gt;&amp;gt;&amp;gt; As you can see, only one processor (this is a quad-core processor) is maxing out 
&lt;br&gt;&amp;gt;&amp;gt; at 100%. &amp;nbsp;Also, only about 1.2GiB of memory (out of the 8 that are on this 
&lt;br&gt;&amp;gt;&amp;gt; system) is being used. &amp;nbsp;So at least on the surface anyway, it's not like our 
&lt;br&gt;&amp;gt;&amp;gt; system is being over taxed :)
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; I am at a loss as to what might be the issue here. &amp;nbsp;It was implied elsewhere in 
&lt;br&gt;&amp;gt;&amp;gt; this message, but for the sake of clarity, I will restate some relevant 
&lt;br&gt;&amp;gt;&amp;gt; statistics about our system:
&lt;br&gt;&amp;gt;&amp;gt; 1. Processor: Intel Xeon 2Ghz Quad-core
&lt;br&gt;&amp;gt;&amp;gt; 2. Memory: 4x2Gib, for a total of 8Gib.
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; 
&lt;br&gt;&amp;gt; What a slow box, only ONE Xeon Quad core ... ;)
&lt;br&gt;&amp;gt; My development box has 1/4th of your spec.
&lt;br&gt;&amp;gt;&amp;gt; I know that all four processors are used to their full capacity when I compile a 
&lt;br&gt;&amp;gt;&amp;gt; lot of different projects from source code all at the same time. &amp;nbsp;This is with no 
&lt;br&gt;&amp;gt;&amp;gt; noticeable reduction in the usability of the system.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Thank you,
&lt;br&gt;&amp;gt;&amp;gt; Steven P. Ulrick
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; P.S.: I really apologize for my last two question to this list. &amp;nbsp;Some of the 
&lt;br&gt;&amp;gt;&amp;gt; information that you gave me I did need to know. &amp;nbsp;But a lot of it you needed to 
&lt;br&gt;&amp;gt;&amp;gt; tell me because I was too lazy to look into it just a LITTLE bit further. &amp;nbsp;So, I 
&lt;br&gt;&amp;gt;&amp;gt; apologize, and hope that I do not become a nuisance.
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; 
&lt;br&gt;&amp;gt; No problem, actually I believe if you have this questions, other people
&lt;br&gt;&amp;gt; will too, so I will try to put up some more vids on Youtube to show how
&lt;br&gt;&amp;gt; to use the dialogs or how to create a slideshow etc. It all helps, now
&lt;br&gt;&amp;gt; if I only would have enough time to do all of this :)
&lt;br&gt;&amp;gt;&amp;gt; ------------------------------------------------------------------------------
&lt;br&gt;&amp;gt;&amp;gt; Come build with us! The BlackBerry&amp;reg; Developer Conference in SF, CA
&lt;br&gt;&amp;gt;&amp;gt; is the only developer event you need to attend this year. Jumpstart your
&lt;br&gt;&amp;gt;&amp;gt; developing skills, take BlackBerry mobile applications to market and stay 
&lt;br&gt;&amp;gt;&amp;gt; ahead of the curve. Join us from November 9&amp;#45;12, 2009. Register now&amp;#33;
&lt;br&gt;&amp;gt;&amp;gt; &lt;a href=&quot;http://p.sf.net/sfu/devconf&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/devconf&lt;/a&gt;&lt;br&gt;&amp;gt;&amp;gt; _______________________________________________
&lt;br&gt;&amp;gt;&amp;gt; QDVDAuthor-users mailing list
&lt;br&gt;&amp;gt;&amp;gt; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25701495&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;QDVDAuthor-users@...&lt;/a&gt;
&lt;br&gt;&amp;gt;&amp;gt; &lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/qdvdauthor-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/qdvdauthor-users&lt;/a&gt;&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; ------------------------------------------------------------------------------
&lt;br&gt;&amp;gt; Come build with us! The BlackBerry&amp;reg; Developer Conference in SF, CA
&lt;br&gt;&amp;gt; is the only developer event you need to attend this year. Jumpstart your
&lt;br&gt;&amp;gt; developing skills, take BlackBerry mobile applications to market and stay 
&lt;br&gt;&amp;gt; ahead of the curve. Join us from November 9&amp;#45;12, 2009. Register now&amp;#33;
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://p.sf.net/sfu/devconf&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/devconf&lt;/a&gt;&lt;br&gt;&amp;gt; _______________________________________________
&lt;br&gt;&amp;gt; QDVDAuthor-users mailing list
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25701495&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;QDVDAuthor-users@...&lt;/a&gt;
&lt;br&gt;&amp;gt; &lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/qdvdauthor-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/qdvdauthor-users&lt;/a&gt;&lt;/div&gt;&lt;br&gt;-----BEGIN PGP SIGNATURE-----
&lt;br&gt;Version: GnuPG v2.0.4-svn0 (GNU/Linux)
&lt;br&gt;Comment: Using GnuPG with SUSE - &lt;a href=&quot;http://enigmail.mozdev.org&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://enigmail.mozdev.org&lt;/a&gt;&lt;br&gt;&lt;br&gt;iD8DBQFKxNLQ3BvWCq6ZcYoRAgkpAJ9LatnWUuSUvAvtIh2LTYqesKQIiACgvTx3
&lt;br&gt;sR5zYWP9pHh/VrYasPIK9JA=
&lt;br&gt;=06qj
&lt;br&gt;-----END PGP SIGNATURE-----
&lt;br&gt;&lt;br&gt;------------------------------------------------------------------------------
&lt;br&gt;Come build with us! The BlackBerry&amp;reg; Developer Conference in SF, CA
&lt;br&gt;is the only developer event you need to attend this year. Jumpstart your
&lt;br&gt;developing skills, take BlackBerry mobile applications to market and stay 
&lt;br&gt;ahead of the curve. Join us from November 9&amp;#45;12, 2009. Register now&amp;#33;
&lt;br&gt;&lt;a href=&quot;http://p.sf.net/sfu/devconf&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/devconf&lt;/a&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;QDVDAuthor-users mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25701495&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;QDVDAuthor-users@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/qdvdauthor-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/qdvdauthor-users&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/qdvdauthor-users-f4053.html&quot; embed=&quot;fixTarget[4053]&quot; target=&quot;_top&quot; &gt;qdvdauthor-users&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/QDVDAuthor%3A-Slideshow-rendering-issue-tp25659932p25701495.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-25660870</id>
	<title>Re: QDVDAuthor: Slideshow rendering issue</title>
	<published>2009-09-29T03:56:55Z</published>
	<updated>2009-09-29T03:56:55Z</updated>
	<author>
		<name>Varol Okan-2</name>
	</author>
	<content type="html">Steven P. Ulrick wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Hello
&lt;br&gt;&amp;gt; I have made progress since the response I got to my ffmpeg issue.
&lt;br&gt;&amp;gt; But, while attempting to create a slide-show using QDVDAuthor (instead of 
&lt;br&gt;&amp;gt; QSlideshow like I was trying before,) sometimes the individual chapters will 
&lt;br&gt;&amp;gt; just stop rendering. &amp;nbsp;I can't remember for sure how many chapters were set to 
&lt;br&gt;&amp;gt; render at once, but I changed the setting to &amp;quot;1&amp;quot; and tried again. &amp;nbsp;I started the 
&lt;br&gt;&amp;gt; slide-show over again, and started the rendering process, and then went to bed. &amp;nbsp;
&lt;br&gt;&amp;gt; About eight hours later, only three out of twelve chapters had completed, and 
&lt;br&gt;&amp;gt; one was stalled at about 41%.
&lt;br&gt;&amp;gt; &amp;nbsp; 
&lt;/div&gt;Even if it only shows 41% take &amp;nbsp;a look to see if it might have rendered
&lt;br&gt;the whole slideshow.
&lt;br&gt;&amp;gt; Here is a screen-shot that will give you some idea about how many pictures are 
&lt;br&gt;&amp;gt; in each chapter:
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://www.afolkey2.net/~steve/QDVDAuthor-Screenshots-0008.jpg&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.afolkey2.net/~steve/QDVDAuthor-Screenshots-0008.jpg&lt;/a&gt;&lt;br&gt;&amp;gt; &amp;nbsp; 
&lt;br&gt;Did you add background audio as well ? If so what audio format, mp3,
&lt;br&gt;ac3, ogg ?
&lt;br&gt;Did your slidhow have short vids included ? Can you put one ( the
&lt;br&gt;shortest ) on a server so I can take a peek at it ?
&lt;br&gt;&amp;gt; During the time that I thought QDVDAuthor was rendering my slide-show chapters, 
&lt;br&gt;&amp;gt; nothing else was being done on this computer.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Right now, rendering only one chapter (the only reason it is rendering now is 
&lt;br&gt;&amp;gt; because I right clicked on it and chose &amp;quot;Re-Render&amp;quot;) this is what the resources 
&lt;br&gt;&amp;gt; on our system look like:
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://www.afolkey2.net/~steve/QDVDAuthor-Screenshots-0009.jpg&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.afolkey2.net/~steve/QDVDAuthor-Screenshots-0009.jpg&lt;/a&gt;&lt;br&gt;&amp;gt; &amp;nbsp; 
&lt;br&gt;For now this seems to be the workaround, to start each slideshow
&lt;br&gt;manually until I debug this issue and fix it. &amp;nbsp;Sorry.
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; As you can see, only one processor (this is a quad-core processor) is maxing out 
&lt;br&gt;&amp;gt; at 100%. &amp;nbsp;Also, only about 1.2GiB of memory (out of the 8 that are on this 
&lt;br&gt;&amp;gt; system) is being used. &amp;nbsp;So at least on the surface anyway, it's not like our 
&lt;br&gt;&amp;gt; system is being over taxed :)
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I am at a loss as to what might be the issue here. &amp;nbsp;It was implied elsewhere in 
&lt;br&gt;&amp;gt; this message, but for the sake of clarity, I will restate some relevant 
&lt;br&gt;&amp;gt; statistics about our system:
&lt;br&gt;&amp;gt; 1. Processor: Intel Xeon 2Ghz Quad-core
&lt;br&gt;&amp;gt; 2. Memory: 4x2Gib, for a total of 8Gib.
&lt;br&gt;&amp;gt; &amp;nbsp; 
&lt;/div&gt;What a slow box, only ONE Xeon Quad core ... ;)
&lt;br&gt;My development box has 1/4th of your spec.
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; I know that all four processors are used to their full capacity when I compile a 
&lt;br&gt;&amp;gt; lot of different projects from source code all at the same time. &amp;nbsp;This is with no 
&lt;br&gt;&amp;gt; noticeable reduction in the usability of the system.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Thank you,
&lt;br&gt;&amp;gt; Steven P. Ulrick
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; P.S.: I really apologize for my last two question to this list. &amp;nbsp;Some of the 
&lt;br&gt;&amp;gt; information that you gave me I did need to know. &amp;nbsp;But a lot of it you needed to 
&lt;br&gt;&amp;gt; tell me because I was too lazy to look into it just a LITTLE bit further. &amp;nbsp;So, I 
&lt;br&gt;&amp;gt; apologize, and hope that I do not become a nuisance.
&lt;br&gt;&amp;gt; &amp;nbsp; 
&lt;/div&gt;No problem, actually I believe if you have this questions, other people
&lt;br&gt;will too, so I will try to put up some more vids on Youtube to show how
&lt;br&gt;to use the dialogs or how to create a slideshow etc. It all helps, now
&lt;br&gt;if I only would have enough time to do all of this :)
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; ------------------------------------------------------------------------------
&lt;br&gt;&amp;gt; Come build with us! The BlackBerry&amp;reg; Developer Conference in SF, CA
&lt;br&gt;&amp;gt; is the only developer event you need to attend this year. Jumpstart your
&lt;br&gt;&amp;gt; developing skills, take BlackBerry mobile applications to market and stay 
&lt;br&gt;&amp;gt; ahead of the curve. Join us from November 9&amp;#45;12, 2009. Register now&amp;#33;
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://p.sf.net/sfu/devconf&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/devconf&lt;/a&gt;&lt;br&gt;&amp;gt; _______________________________________________
&lt;br&gt;&amp;gt; QDVDAuthor-users mailing list
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25660870&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;QDVDAuthor-users@...&lt;/a&gt;
&lt;br&gt;&amp;gt; &lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/qdvdauthor-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/qdvdauthor-users&lt;/a&gt;&lt;br&gt;&amp;gt; &amp;nbsp; 
&lt;/div&gt;&lt;br&gt;&lt;br&gt;------------------------------------------------------------------------------
&lt;br&gt;Come build with us! The BlackBerry&amp;reg; Developer Conference in SF, CA
&lt;br&gt;is the only developer event you need to attend this year. Jumpstart your
&lt;br&gt;developing skills, take BlackBerry mobile applications to market and stay 
&lt;br&gt;ahead of the curve. Join us from November 9&amp;#45;12, 2009. Register now&amp;#33;
&lt;br&gt;&lt;a href=&quot;http://p.sf.net/sfu/devconf&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/devconf&lt;/a&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;QDVDAuthor-users mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25660870&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;QDVDAuthor-users@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/qdvdauthor-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/qdvdauthor-users&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/qdvdauthor-users-f4053.html&quot; embed=&quot;fixTarget[4053]&quot; target=&quot;_top&quot; &gt;qdvdauthor-users&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/QDVDAuthor%3A-Slideshow-rendering-issue-tp25659932p25660870.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-25659932</id>
	<title>QDVDAuthor: Slideshow rendering issue</title>
	<published>2009-09-29T02:44:27Z</published>
	<updated>2009-09-29T02:44:27Z</updated>
	<author>
		<name>Steven P. Ulrick</name>
	</author>
	<content type="html">Hello
&lt;br&gt;I have made progress since the response I got to my ffmpeg issue.
&lt;br&gt;But, while attempting to create a slide-show using QDVDAuthor (instead of 
&lt;br&gt;QSlideshow like I was trying before,) sometimes the individual chapters will 
&lt;br&gt;just stop rendering. &amp;nbsp;I can't remember for sure how many chapters were set to 
&lt;br&gt;render at once, but I changed the setting to &amp;quot;1&amp;quot; and tried again. &amp;nbsp;I started the 
&lt;br&gt;slide-show over again, and started the rendering process, and then went to bed. &amp;nbsp;
&lt;br&gt;About eight hours later, only three out of twelve chapters had completed, and 
&lt;br&gt;one was stalled at about 41%.
&lt;br&gt;&lt;br&gt;Here is a screen-shot that will give you some idea about how many pictures are 
&lt;br&gt;in each chapter:
&lt;br&gt;&lt;a href=&quot;http://www.afolkey2.net/~steve/QDVDAuthor-Screenshots-0008.jpg&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.afolkey2.net/~steve/QDVDAuthor-Screenshots-0008.jpg&lt;/a&gt;&lt;br&gt;&lt;br&gt;During the time that I thought QDVDAuthor was rendering my slide-show chapters, 
&lt;br&gt;nothing else was being done on this computer.
&lt;br&gt;&lt;br&gt;Right now, rendering only one chapter (the only reason it is rendering now is 
&lt;br&gt;because I right clicked on it and chose &amp;quot;Re-Render&amp;quot;) this is what the resources 
&lt;br&gt;on our system look like:
&lt;br&gt;&lt;a href=&quot;http://www.afolkey2.net/~steve/QDVDAuthor-Screenshots-0009.jpg&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.afolkey2.net/~steve/QDVDAuthor-Screenshots-0009.jpg&lt;/a&gt;&lt;br&gt;&lt;br&gt;As you can see, only one processor (this is a quad-core processor) is maxing out 
&lt;br&gt;at 100%. &amp;nbsp;Also, only about 1.2GiB of memory (out of the 8 that are on this 
&lt;br&gt;system) is being used. &amp;nbsp;So at least on the surface anyway, it's not like our 
&lt;br&gt;system is being over taxed :)
&lt;br&gt;&lt;br&gt;I am at a loss as to what might be the issue here. &amp;nbsp;It was implied elsewhere in 
&lt;br&gt;this message, but for the sake of clarity, I will restate some relevant 
&lt;br&gt;statistics about our system:
&lt;br&gt;1. Processor: Intel Xeon 2Ghz Quad-core
&lt;br&gt;2. Memory: 4x2Gib, for a total of 8Gib.
&lt;br&gt;&lt;br&gt;I know that all four processors are used to their full capacity when I compile a 
&lt;br&gt;lot of different projects from source code all at the same time. &amp;nbsp;This is with no 
&lt;br&gt;noticeable reduction in the usability of the system.
&lt;br&gt;&lt;br&gt;Thank you,
&lt;br&gt;Steven P. Ulrick
&lt;br&gt;&lt;br&gt;P.S.: I really apologize for my last two question to this list. &amp;nbsp;Some of the 
&lt;br&gt;information that you gave me I did need to know. &amp;nbsp;But a lot of it you needed to 
&lt;br&gt;tell me because I was too lazy to look into it just a LITTLE bit further. &amp;nbsp;So, I 
&lt;br&gt;apologize, and hope that I do not become a nuisance.
&lt;br&gt;&lt;br&gt;------------------------------------------------------------------------------
&lt;br&gt;Come build with us! The BlackBerry&amp;reg; Developer Conference in SF, CA
&lt;br&gt;is the only developer event you need to attend this year. Jumpstart your
&lt;br&gt;developing skills, take BlackBerry mobile applications to market and stay 
&lt;br&gt;ahead of the curve. Join us from November 9&amp;#45;12, 2009. Register now&amp;#33;
&lt;br&gt;&lt;a href=&quot;http://p.sf.net/sfu/devconf&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/devconf&lt;/a&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;QDVDAuthor-users mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25659932&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;QDVDAuthor-users@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/qdvdauthor-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/qdvdauthor-users&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/qdvdauthor-users-f4053.html&quot; embed=&quot;fixTarget[4053]&quot; target=&quot;_top&quot; &gt;qdvdauthor-users&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/QDVDAuthor%3A-Slideshow-rendering-issue-tp25659932p25659932.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-25642903</id>
	<title>Re: QSlideshow: &quot;ERROR during ffmpeg execution!&quot;</title>
	<published>2009-09-28T02:36:00Z</published>
	<updated>2009-09-28T02:36:00Z</updated>
	<author>
		<name>Varol Okan-2</name>
	</author>
	<content type="html">Steven,
&lt;br&gt;&lt;br&gt;now that you know how to use the dialog to add videos to your project
&lt;br&gt;you should use the same dialog to add your slideshows to the project.
&lt;br&gt;&lt;br&gt;The QSlideshow dialog is the 'old' way of creating a slideshow. I
&lt;br&gt;believe the dvd-slideshow script has an issue with one ffmpeg parameter.
&lt;br&gt;It will also NOT allow you to add audio, and vids to your slideshow. So
&lt;br&gt;hop on over to the new dialog.
&lt;br&gt;&lt;br&gt;Click on [Add / Organize Images ]. Basically for every slideshow you
&lt;br&gt;want to create you add a Group and then drag the images and vids into
&lt;br&gt;that group. Once you play a bit with the dialog you'll see that it is
&lt;br&gt;very easy to create multiple slideshows with a lot of images / vids
&lt;br&gt;embedded.
&lt;br&gt;&lt;br&gt;When you leave this dialog, your slideshows should start to render ( 2
&lt;br&gt;at a time ) and you should see the thumbnail increase from 0% to 100%.
&lt;br&gt;&lt;br&gt;Under the hood it uses qrender ( which is part of QDVDAuthor ) to render
&lt;br&gt;the slideshows. So you have to make sure qrender is in your path.
&lt;br&gt;&lt;br&gt;Hope that helps.
&lt;br&gt;&lt;br&gt;Varol :)
&lt;br&gt;&lt;br&gt;Steven P. Ulrick wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Hello Everyone
&lt;br&gt;&amp;gt; While attempting to create a slideshow to burn to a DVD, QSlideshow exited with 
&lt;br&gt;&amp;gt; the following error:
&lt;br&gt;&amp;gt; [dvd-slideshow] Creating ac3 audio...
&lt;br&gt;&amp;gt; [dvd-slideshow] ERROR during ffmpeg execution!
&lt;br&gt;&amp;gt; [dvd-slideshow] see /tmp/dvd-slideshow.log for details
&lt;br&gt;&amp;gt; [dvd-slideshow] cleanup...
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Here is the entire output from the &amp;quot;Create Dialog&amp;quot;:
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://www.afolkey2.net/~steve/QSlideshow-CreateDialogOutput-001.txt&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.afolkey2.net/~steve/QSlideshow-CreateDialogOutput-001.txt&lt;/a&gt;&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; And here is the entire output of &amp;quot;/tmp/dvd-slideshow.log&amp;quot;:
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://www.afolkey2.net/~steve/dvd-slideshow-0001.log&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.afolkey2.net/~steve/dvd-slideshow-0001.log&lt;/a&gt;&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; The only thing I noticed was that the ffmpeg that was used is one that I compiled 
&lt;br&gt;&amp;gt; from source. &amp;nbsp;So, just for fun I commented that ffmpeg out of my path and tried 
&lt;br&gt;&amp;gt; again. &amp;nbsp;We will find out how that went in just a moment... &amp;nbsp;The result was the 
&lt;br&gt;&amp;gt; same.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I may have missed something stupid like I did in the last (resolved) issue that 
&lt;br&gt;&amp;gt; I brought to your attention. &amp;nbsp;But my unlearned eyes did not see anything helpful 
&lt;br&gt;&amp;gt; in &lt;a href=&quot;http://www.afolkey2.net/~steve/dvd-slideshow-0001.log&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.afolkey2.net/~steve/dvd-slideshow-0001.log&lt;/a&gt;&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Your help is greatly appreciated.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Steven P. Ulrick
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; ------------------------------------------------------------------------------
&lt;br&gt;&amp;gt; Come build with us! The BlackBerry&amp;reg; Developer Conference in SF, CA
&lt;br&gt;&amp;gt; is the only developer event you need to attend this year. Jumpstart your
&lt;br&gt;&amp;gt; developing skills, take BlackBerry mobile applications to market and stay 
&lt;br&gt;&amp;gt; ahead of the curve. Join us from November 9&amp;#45;12, 2009. Register now&amp;#33;
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://p.sf.net/sfu/devconf&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/devconf&lt;/a&gt;&lt;br&gt;&amp;gt; _______________________________________________
&lt;br&gt;&amp;gt; QDVDAuthor-users mailing list
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25642903&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;QDVDAuthor-users@...&lt;/a&gt;
&lt;br&gt;&amp;gt; &lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/qdvdauthor-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/qdvdauthor-users&lt;/a&gt;&lt;br&gt;&amp;gt; &amp;nbsp; 
&lt;/div&gt;&lt;br&gt;&lt;br&gt;------------------------------------------------------------------------------
&lt;br&gt;Come build with us! The BlackBerry&amp;reg; Developer Conference in SF, CA
&lt;br&gt;is the only developer event you need to attend this year. Jumpstart your
&lt;br&gt;developing skills, take BlackBerry mobile applications to market and stay 
&lt;br&gt;ahead of the curve. Join us from November 9&amp;#45;12, 2009. Register now&amp;#33;
&lt;br&gt;&lt;a href=&quot;http://p.sf.net/sfu/devconf&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/devconf&lt;/a&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;QDVDAuthor-users mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25642903&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;QDVDAuthor-users@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/qdvdauthor-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/qdvdauthor-users&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/qdvdauthor-users-f4053.html&quot; embed=&quot;fixTarget[4053]&quot; target=&quot;_top&quot; &gt;qdvdauthor-users&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/QSlideshow%3A-%22ERROR-during-ffmpeg-execution%21%22-tp25642446p25642903.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-25642446</id>
	<title>QSlideshow: &quot;ERROR during ffmpeg execution!&quot;</title>
	<published>2009-09-28T01:49:09Z</published>
	<updated>2009-09-28T01:49:09Z</updated>
	<author>
		<name>Steven P. Ulrick</name>
	</author>
	<content type="html">Hello Everyone
&lt;br&gt;While attempting to create a slideshow to burn to a DVD, QSlideshow exited with 
&lt;br&gt;the following error:
&lt;br&gt;[dvd-slideshow] Creating ac3 audio...
&lt;br&gt;[dvd-slideshow] ERROR during ffmpeg execution!
&lt;br&gt;[dvd-slideshow] see /tmp/dvd-slideshow.log for details
&lt;br&gt;[dvd-slideshow] cleanup...
&lt;br&gt;&lt;br&gt;Here is the entire output from the &amp;quot;Create Dialog&amp;quot;:
&lt;br&gt;&lt;a href=&quot;http://www.afolkey2.net/~steve/QSlideshow-CreateDialogOutput-001.txt&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.afolkey2.net/~steve/QSlideshow-CreateDialogOutput-001.txt&lt;/a&gt;&lt;br&gt;&lt;br&gt;And here is the entire output of &amp;quot;/tmp/dvd-slideshow.log&amp;quot;:
&lt;br&gt;&lt;a href=&quot;http://www.afolkey2.net/~steve/dvd-slideshow-0001.log&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.afolkey2.net/~steve/dvd-slideshow-0001.log&lt;/a&gt;&lt;br&gt;&lt;br&gt;The only thing I noticed was that the ffmpeg that was used is one that I compiled 
&lt;br&gt;from source. &amp;nbsp;So, just for fun I commented that ffmpeg out of my path and tried 
&lt;br&gt;again. &amp;nbsp;We will find out how that went in just a moment... &amp;nbsp;The result was the 
&lt;br&gt;same.
&lt;br&gt;&lt;br&gt;I may have missed something stupid like I did in the last (resolved) issue that 
&lt;br&gt;I brought to your attention. &amp;nbsp;But my unlearned eyes did not see anything helpful 
&lt;br&gt;in &lt;a href=&quot;http://www.afolkey2.net/~steve/dvd-slideshow-0001.log&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.afolkey2.net/~steve/dvd-slideshow-0001.log&lt;/a&gt;&lt;br&gt;&lt;br&gt;Your help is greatly appreciated.
&lt;br&gt;&lt;br&gt;Steven P. Ulrick
&lt;br&gt;&lt;br&gt;&lt;br&gt;------------------------------------------------------------------------------
&lt;br&gt;Come build with us! The BlackBerry&amp;reg; Developer Conference in SF, CA
&lt;br&gt;is the only developer event you need to attend this year. Jumpstart your
&lt;br&gt;developing skills, take BlackBerry mobile applications to market and stay 
&lt;br&gt;ahead of the curve. Join us from November 9&amp;#45;12, 2009. Register now&amp;#33;
&lt;br&gt;&lt;a href=&quot;http://p.sf.net/sfu/devconf&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/devconf&lt;/a&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;QDVDAuthor-users mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25642446&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;QDVDAuthor-users@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/qdvdauthor-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/qdvdauthor-users&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/qdvdauthor-users-f4053.html&quot; embed=&quot;fixTarget[4053]&quot; target=&quot;_top&quot; &gt;qdvdauthor-users&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/QSlideshow%3A-%22ERROR-during-ffmpeg-execution%21%22-tp25642446p25642446.html" />
</entry>

</feed>
