Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
dvdauthor fails on mpg file, why? [SOLVED]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Multimedia
View previous topic :: View next topic  
Author Message
rsa4046
l33t
l33t


Joined: 07 Feb 2005
Posts: 660
Location: The Big H, a bit SSW

PostPosted: Sun Jan 07, 2007 10:44 pm    Post subject: dvdauthor fails on mpg file, why? [SOLVED] Reply with quote

I extracted the title from a DVD (no longer have the original) using mplayer -dumpstream, giving me a single 5.4 GB .vob file which plays perfectly using mplayer, xine, etc. After wasting much time due to A/V sync problems tried to shrink this file using mplex, I instead used vamps to produce a smaller (4344981504 byte) .mpg file. The audio and video streams of this file are in sync, and the file again plays pefectly in xine, mplayer, etc. In order to burn this back to a single layer DVD, I tried dvdauthor, using the following .xml
Code:
<dvdauthor>
  <vmgm />
    <titleset>
      <titles>
        <pgc>
          <vob file="new.mpg"/>
        </pgc>
      </titles>
    </titleset>
</dvdauthor>
with the following unhappy result:
Code:
$ mkdir dvd
$ dvdauthor -o dvd -x dvd.xml
DVDAuthor::dvdauthor, version 0.6.11.
Build options: gnugetopt magick iconv freetype
Send bugs to <dvdauthor-users@lists.sourceforge.net>

INFO: Locale=en_US.utf8
INFO: Converting filenames to UTF-8
INFO: dvdauthor creating VTS
STAT: Picking VTS 01

STAT: Processing new.mpg...
WARN: Skipping sector, waiting for first VOBU...
WARN: Skipping sector, waiting for first VOBU...
WARN: Skipping sector, waiting for first VOBU...
WARN: Skipping sector, waiting for first VOBU...
WARN: Skipping sector, waiting for first VOBU...
WARN: Skipping sector, waiting for first VOBU...
WARN: Skipping sector, waiting for first VOBU...
WARN: Skipping sector, waiting for first VOBU...
WARN: Skipping sector, waiting for first VOBU...
WARN: Skipping sector, waiting for first VOBU...
WARN: Skipping sector, waiting for first VOBU...
ERR:  SCR moves backwards, remultiplex input.
I don't seem to be able to get around this error, does anyone know why, and can anyone suggest a solution?
_________________
I love gentoo, but I am certainly no guru, despite what it says above.


Last edited by rsa4046 on Mon Jan 08, 2007 6:14 am; edited 1 time in total
Back to top
View user's profile Send private message
rsa4046
l33t
l33t


Joined: 07 Feb 2005
Posts: 660
Location: The Big H, a bit SSW

PostPosted: Mon Jan 08, 2007 6:11 am    Post subject: Reply with quote

OK, figured it out. Ended up demuxing and remuxing as described many times elsewhere in these forms, but thought I would log what I did, as following the innumerable threads is confusing. In my case, all I wanted to do was burn a single DVD title from an extant VOB, ripped previously using mplayer -dumpstream (~/video/source.vob, size = 5632798720 b). Here's the log of what I did
Code:
# first recover the video and audio streams
$ mplayer  ~/video/source.vob -dumpvideo -dumpfile video.m2v
MPlayer 1.0rc1-4.1.1 (C) 2000-2006 MPlayer Team
CPU: Dual Core AMD Opteron(tm) Processor 265 (Family: 15, Model: 33, Stepping: 2)
MMX2 supported but disabled
3DNow supported but disabled
3DNowExt supported but disabled
CPUflags:  MMX: 1 MMX2: 0 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1
Compiled with runtime CPU detection.

Playing ~/video/source.vob.
MPEG-PS file format detected.
Core dumped ;)

Exiting... (End of file)

$ mplayer  ~/video/source.vob -dumpaudio -dumpfile audio.ac3
<snip>

The next part required some trial and error, as the initial trials at remux produced a significant loss of A/V synchronization, which, from reading numerous post, is not unexpected. To get a value for the time correction for resynchronizing the streams required repeating the following step a few times, making an initial guess as to the necessary correction (given in milliseconds) and finally converging on the correct value of 2 seconds (-O 2000):
Code:
$ mplex -f 8 -o sync-%d.mpg -O -2000 video.m2v audio.ac3
  INFO: [mplex] mplex version 1.8.0 (2.2.4 $Date: 2005/08/28 17:50:54 $)
   INFO: [mplex] File video.m2v looks like an MPEG Video stream.
   INFO: [mplex] File audio.ac3 looks like a dts Audio stream.
   INFO: [mplex] Video stream 0: profile 8 selected - ignoring non-standard options!
   INFO: [mplex] Found 1 audio streams and 1 video streams
   INFO: [mplex] Selecting dvdauthor DVD output profile
   INFO: [mplex] Multiplexing video program stream!
   INFO: [mplex] Scanning for header info: Video stream e0 (video.m2v)
   INFO: [mplex] VIDEO STREAM: e0
   INFO: [mplex] Frame width     : 720
   INFO: [mplex] Frame height    : 480
   INFO: [mplex] Aspect ratio    : 16:9 display
   INFO: [mplex] Picture rate    : 29.970 frames/sec
   INFO: [mplex] Bit rate        : 8000000 bits/sec
   INFO: [mplex] Vbv buffer size : 229376 bytes
   INFO: [mplex] CSPF            : 0
   INFO: [mplex] Scanning for header info: dts Audio stream 00 (audio.ac3)
   INFO: [mplex] dts frame size = 1006
   INFO: [mplex] dts AUDIO STREAM:
   INFO: [mplex] Bit rate       :    98304 bytes/sec (768 kbit/sec)
   INFO: [mplex] Frequency      :     48000 Hz
   INFO: [mplex] SYSTEMS/PROGRAM stream:
   INFO: [mplex] rough-guess multiplexed stream data rate    : 8967800
   INFO: [mplex] target data-rate specified               : 10080000
   INFO: [mplex] Setting specified specified data rate: 10080000
   INFO: [mplex] Run-in Sectors = 89 Video delay = 13019 Audio delay = 196022
   INFO: [mplex] New sequence commences...
   INFO: [mplex] Video e0: buf=      0 frame=000000 sector=00000000
   INFO: [mplex] Audio bd: buf=      0 frame=000000 sector=00000000
   INFO: [mplex] Scanned to end AU 16
 ....
<snip>
In my case I was lucky, as mplex produced 6 files (sync-1.mpg, sync-2.mpg, ..., sync-6.mpg) with a total size of 4596903936 bytes, i.e., just small enough to fit on a single-layer disk (otherwise I would have had to have done something like
Code:
$ tcrequant -i video.m2v -o video-requant.m2v -f $FACTOR
to reduce the size).

In order to get dvdauthor to work, rather than combine these mpegs files into one large one as described elsewhere, I just made the dvd.xml for dvdauthor to reflect this outcome, as one chapter from multiple source files:
Code:
$ cat dvd.xml
<dvdauthor>
  <vmgm />
    <titleset>
      <titles>
        <pgc>
          <vob file="sync-1.mpg" chapters="0"/>
          <vob file="sync-2.mpg" />
          <vob file="sync-3.mpg" />
          <vob file="sync-4.mpg" />
          <vob file="sync-5.mpg" />
          <vob file="sync-6.mpg" />
        </pgc>
      </titles>
    </titleset>
</dvdauthor>
With that done, I just made a folder to hold the results and ran dvdauthor:
Code:

$ mkdir DVD
$ dvdauthor -o DVD -x dvd.xml
DVDAuthor::dvdauthor, version 0.6.11.
Build options: gnugetopt magick iconv freetype
Send bugs to <dvdauthor-users@lists.sourceforge.net>

INFO: Locale=en_US.utf8
INFO: Converting filenames to UTF-8
INFO: dvdauthor creating VTS
STAT: Picking VTS 01

STAT: Processing sync-1.mpg...

INFO: Video pts = 0.178 .. 0.745

STAT: Processing sync-2.mpg...

INFO: Video pts = 0.178 .. 1.179
INFO: Audio[24] pts = 1.610 .. 1.760

STAT: Processing sync-3.mpg...

INFO: Video pts = 0.178 .. 0.745

STAT: Processing sync-4.mpg...
STAT: VOBU 6103 at 2180MB, 1 PGCS
INFO: Video pts = 0.178 .. 2928.436
INFO: Audio[24] pts = 0.213 .. 2928.426

STAT: Processing sync-5.mpg...
STAT: VOBU 12301 at 4381MB, 1 PGCS
INFO: Video pts = 0.194 .. 2954.179
INFO: Audio[24] pts = 0.195 .. 2953.965

STAT: Processing sync-6.mpg...

<snip>
After testing the resulting AUDIO_TS/VIDEO_TS structure using mplayer:
Code:

$ mplayer dvd://1 -dvd-device DVD
then I made the iso and burned the dvd
Code:
$ mkisofs -R -o dvd.iso DVD
$ growisofs -dvd-compat -Z /dev/dvd=dvd.iso
Done! :D Hope this helps somebody--
_________________
I love gentoo, but I am certainly no guru, despite what it says above.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Multimedia All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum