Log in

View Full Version : oneclick mpeg2 > DVD


anders@dac.se
15th March 2004, 19:54
i use a Haupauge PVR250 and a program called GOT TV to record all my mpeg2's.

I dont want any fancy DVD menus i just want the movie to start when i put the DVD in the HTPC/standalone DVD player. Is there away?

I dont have any keyboard/mouse connected to the HTPC so it would be great if the program used keyboard shortcuts because they are easy to learn the remote control.

/Anders

gooki
16th March 2004, 09:08
ifoedit's dvd authoring options might fit the bill.

anders@dac.se
16th March 2004, 11:44
It looks like ifoedit only supportd m2v mpeg2 files. The capture card saves the sound and the picture in the same file. Is there a way to import files like this?

/Anders

anders@dac.se
16th March 2004, 12:00
I guess i can use bbtools to demux it from the command line. Im thinking of making a bat so this will be a oneklick thingy. Is it possible to set up ifoedit from the commandline?

/Anders

buzzqw
16th March 2004, 13:25
If mpeg2 are dvd compliant (mpeg2/pcm audio and correct size) try dvdlab .
Just drag n drop files, not demux and compile your dvd. You can also build dvd that start film directly.


BHH

anders@dac.se
16th March 2004, 19:06
both ifoedit and DVDlan requires a mouse or keyboard. I dont have that conneceted to the HTPC. Isnt it any program that is commandline driven?

/Anders

Nick
17th March 2004, 14:30
If I understand you correctly, you have a HTPC with a DVD burner but no keyboard! What you want to do is start with a DVD-compliant mpeg file. Then you want to press a button on your remote that will run a batch file that will author this stream to DVD vob/bup/ifo files and burn them to disc.

Tall order but not beyond the realms!
You will need three (free) programs.
DVD Decrypter (easy enough to find)
DVDAuthor.exe and MkIsoFS.exe (Not my work but I'm hosting them in a rar file here (http://nickspage.pwp.blueyonder.co.uk/WESTWORLD/DVDAuthor.rar) ). Copy the folder contained therein to the root of your C drive.

OK, you got the kit, let's roll.

The documentation for DVD Author is here (http://dvdauthor.sourceforge.net/doc/index.html)
but a brief outline of how to... is contained below:

Once you've saved the folder from the rar file I'm hosting,
Open the file DVDAuthor.xml in notepad. It should look like this...

<dvdauthor dest="**Full path of desired output folder eg C:\Movie\DVD-Files\ **">
<vmgm />
<titleset>
<titles>
<video format="**ntsc or pal**" />
<audio lang="--" />
<pgc>
<vob file="**full path eg C:\Movie\TVcapture.mpg **" chapters="00:00:00" />
<post> call vmgm menu; </post>
</pgc>
</titles>
</titleset>
</dvdauthor>

every time you see **, remove the asterisks and the text between and replace with the relevant info but leave the quotation marks. Once done, resave this file as C:\DVDAuthor\dvdauth.xml - I'm using a different name so you don't lose the original if you screw up!


Now copy and paste this into notepad:

@ECHO OFF
REM Capture Batch Control

"C:\DVDAuthor\dvdauthor.exe" -x "C:\DVDAuthor\dvdauth.xml"
"C:\DVDAuthor\mkisofs.exe" -o "**Output path eg C:\Movie\DVDImage.iso **" -publisher "MYHTPC" -volid "" -dvd-video "**full output path from dvdauthor xml file eg C:\movie\DVDFiles**"
"C:\Program Files\DVD Decrypter\DVDDecrypter.exe" /mode isowrite /start /src "**output file from mkisofs eg C:\MOVIE\DVDImage.iso**" /dest **DVDwriter drive letter eg E:** /close


Again insert relevant data in place of anything between **'s and delete the **'s, leaving the ""'s . Note lack of quotes round the drive letter in the last line.

Save this as your batch file. Now program your remote to run the batch file at the touch of a button.

Once you have captured a multiplexed stream (ie an mpg file with dvd compliant video and audio), simply put a blank DVDR/RW in the drive and hit the button. The rest should be automated.

I hope :D

EDIT - one thing I've just thought of - you will have to delete all the files created (ie the video_ts and audio_ts folders and the image file) after burning before running the batch file again. You could put an erase command at the end of the batch file to delete the contents if your output directories.
Cheers
Nick

anders@dac.se
17th March 2004, 18:41
thanks nick!

I allready use dvd author but it will not take my mpeg2 from the PVR250 card. so i need to demux it with a command line driven demuxer (havent found one), and then use a program called mplex to rejoin the mpeg2 to a mpeg2 that DVD author likes. I have used your DVD burning programs and they work. all i need now is a demuxer that works from the command line.

Thanks in advance, Anders

Nick
17th March 2004, 19:27
A couple of things.

1. I have edited my last answer as it didn't work! It now does.

2. Why doesn't dvdauthor like your mpeg files? As long as the audio is mp2 or ac3 they should be ok. If they are in a different format you may have to reencode the audio.

If it is mp2 (I'd imagine it should be), try bbdmux.
It is contained in the rar file I'm hosting (it is now anyway :) if you downloaded it earlier, download it again!)

You will have to run it twice from your batch file then remux, eg

"C:\DVDAuthor\bbdmux.exe" "c:\movie\capture.mpg" 0xE0 "c:\movie\video.mpv"
"C:\DVDAuthor\bbdmux.exe" "c:\movie\capture.mpg" 0xC0 "c:\movie\audio.mp2"
"C:\DVDAuthor\mplex.exe" -f 8 -o "C:\Movie\MPlex_Muxed_File.mpg" "c:\movie\video.mpv" "c:\movie\audio.mp2"

anders@dac.se
17th March 2004, 19:46
bbdmux does not work. The soundfile works, but if i play the viode file created its only black and a scratching sound is playing. Strange.

bbdmux test.mpg 0xE0 test.mpv

bbDMUX - version 1.9, by Brent Beyeler (beyeler@home.com)
speed increases by, Apachez and Christian Vogelgsang

Saving stream 0xE0 into file test.old...

File test.mpg is an MPEG-2 Program Stream


Summary:

MPEG Packs = 19803
System headers = 99
Padding Stream packets = 1475, total bytes = 1507906
MPEG Audio stream 0 packets = 707, total bytes = 1425312
Video stream 0 packets = 19096, total bytes = 37121268

Nick
17th March 2004, 20:07
just run

bbdmux test.mpg

no other arguments, it will give you the stream ID's,
0xE0 is usually the video stream but you may have some weird stream ID's.

obviously if the video stream has a different ID, edit your command line for the video file accordingly.

Failing that, try just running the mplex commandline using test.mpg as both audio and video source - see if the output works in DVDAuthor.

EDIT
Saving stream 0xE0 into file test.old...
From the commandline in your post, the log there should read

Saving stream 0xE0 into file test.MPV...

try giving the input and output files different names, not just extensions as something odd is happening there...

anders@dac.se
17th March 2004, 20:41
hehe.. tried it.. it reads 0xE0. doesnt work.. :/

bbDMUX - version 1.9, by Brent Beyeler (beyeler@home.com)
speed increases by, Apachez and Christian Vogelgsang

Scanning for stream id's, press control-c to quit ...

File test.mpg is an MPEG-2 Program Stream

Found stream id 0xE0 = Video Stream 0
Found stream id 0xBE = Padding Stream
Found stream id 0xC0 = MPEG Audio Stream 0

Summary:

MPEG Packs = 5129
System headers = 26
Padding Stream packets = 380, total bytes = 369356
MPEG Audio stream 0 packets = 184, total bytes = 370944
Video stream 0 packets = 4945, total bytes = 9633856

Nick
20th March 2004, 09:32
A friend gave me some footage captured on a Hauppage card to test with.

bbdmux didn't get along with this footage at all well. I notice you were able to extract audio but no video.

mpgtx (do a google) gave an error but would demux my footage if you use -X as the first commandline switch (which puts it in a "force the operation and hang the consequences" mode).

However, mplex rejected the audio output from mpgtx!
Try it for yourself. If you find you have the same problem you might try demuxing with mpgtx, redoing the audio with bbdmux then mplex. Sounds a bit cumbersome but if it works what the heck.

Good luck
Nick

anders@dac.se
21st March 2004, 15:23
I have actually found a solution and my oneklick frontend is realesed. thanks for all the help. Check out the frontend if you like,

http://myhtpc.net/forum/viewtopic.php?t=7030&postdays=0&postorder=asc&start=0

/Anders

Nick
21st March 2004, 17:04
Splendid work.
I am suitably impressed.
Glad to be of assistance :)

Nick