View Full Version : DVB to 100% DVD compliant MPEG-2
ildocteur
20th May 2004, 23:44
Hi Guys,
I am recording a DVB stream to the harddrive on my Nokia 9902s PVR sat receiver. I then use the MediaMex program to copy the recorded program to the harddrive of my PC in .mpv and mp2 format.
I then use DVDPatcher 1.06 to patch the stream from 15 Mbit/sec to a more DVD compliant 8 Mbit/sec mux the audio and video using simple Multiplex in Tmpgenc.
After authoring the file to a DVD using Ulead DVD Workshop (or TpgENC DVD Author demo) The DVD plays just fine on me PC using PowerDVD and in my XBOX suing the DVD-X2 playback software.
But in my elderly Sony standalone the DVD plays extreamly blocky. I figure that is because it requires a 100% DVD compliean MPEG-2 file.
And at last to my question. Could someone tell me how to make my video in a 100% DVD compliant mpeg file ?
I have tried recompressing the video with the DVD PAL template in Tmpgenc, but that results in a completely useless file with only the first frame of the video.
ilDoc
Doom9
21st May 2004, 00:13
well.. create a dvd2avi project, frameserve via avisynth and encoding using a standard MPEG-2 encoder and DVD compatible settings. There's tons of guides on that subject on my site.
15 mbit/s? What kind of channels are you watching? I can only dream of such high bitrates.. I'm lucky if my streams get over 5 mbit/s at some point.
Unfortunately, DVB allows for higher bitrates and longer GOPs so unless you have a very forgiving player, you'll always have to consider the possibility that direct DVB -> DVD-R will result in player hiccups.
chaumurky
21st May 2004, 02:44
I know that in Australia our SD streams have 15Mbit headers even though the actual bitrate is around 6Mbit. I don't think ildocteur
actually has 15Mbit streams - but I could be wrong! :devil:
Edit: Spelling...
Doom9
21st May 2004, 02:53
your HD streams certainly go as high as 15 mbit, but SD streams? I highly doubt that.
ildocteur
21st May 2004, 06:59
Doom9 Thanks for the reply.
The actual bitrate is not 15 mbit/sec it only the headers that states that. Thats the reason that I have to patch it to get the the authoring program to accept it. The "real" bitrate is around 5-6 mbit/sec for high quality channels.
Would frameserving it through avisynth do a complete renencode or a quick transcode ?
Is there a way to transcode the stream ?
ilDoc
buzzqw
21st May 2004, 08:09
you can trascode mpv directly with rejig (www.rejig.org) . try a little Search :)
BHH
@Doom9:
It's quite common to have 15 MBit/s in the stream headers, although this value is usually wrong. If it were correct, then the header patching method (e.g. using DVDPatcher or ReStream) would not work at all.
@ildocteur:
Transcoding is indeed the safest way to get a 100% DVD compliant MPEG-2 stream. But in general this is not necessary. Simply use ProjectX, then Mpeg2Schnitt (or Cuttermaran), and your video should be "compliant enough" to author and to play on your standalone.
bb
ildocteur
23rd May 2004, 22:38
@bb I don't think I can use ProjectX because this is not a DVB stream dump off a Sattelite adapter but ripped of the Harddrive of my Nokia 9902s PVR.
I have tried transcoding the stream using Rejig, but it seems that the resulting file has the same problems on my standalone as the original. I Don't think that ReRJig changes the GOP structure of the file when transcoding to the same bitrate. I'm not interessted in reducing the bitrate.
I also tried to frameserve the file to CCE and that seemed to fix the stream. But I would think that the coomplete recompress would loose some quality. Or am I wrong when reencoding to the same or even a bit higher bitrate ?
My knowledge of the inner secrets of MPEG-2 streams is very limited, but I have checked the GOP structure of both the original file and the reencoded in BitRateviewer. The original file seems to have the structure IBBPBBPBBPBB and all GOPS are open. And the reencoded file is IPBPBBPBBPBB and the first GOP closed and the rest open. Could this be the reason for the standalone player messing up the playback of the file ?
Is ther a way the trenscode the file to a more DVD compliant format without going through the lengthy process of frameserving and reencoding the file ?
I hope my questions are not too stupid.
ilDoc
@ ildocteur,
It will be easer to discuss your problem if you can upload some 5MB sample of the ripped material.
From this thread I discovered rejig program and now together with ProjectX plus some additional programs I have no any problem to make record from tv-sat /1 video + 2 or more audios + 2 or subtitles/from teletext/ and in easy way to put all this on DVD disc as DVD compliant with subtitles in "soft" mode. Here it is only problem that all subtitles follows the same color settings.
PM me if you want to send sample as e-mail enclosure.
eb
@ildocteur:
Maybe the first GOP is your problem. Try to reencode the first GOP only, and add the rest of the stream unaltered (e.g. using TMPGEnc's MPEG Tools, Merge). Or for a quick test, simply cut off the first GOP and see, if it plays in your standalone.
By the way: a complete reencode will always reduce quality, even if you reencode at a higher bitrate.
bb
ildocteur
24th May 2004, 10:49
@bb
I tried cutting the first about 1,5 minute from the (30 minute) stream (cut on I-frame) uing Cuttermaran and the problem persists.
what does it actually mean that the GOP is open/closed ? And is there a format standard for the GOP tructure in a DVD stream ?
I don't have a public server available for uploading a sample, but if you could PM me you e-mail I could sent a sample.
Is it possible that the problem has to do with the patching of the bitrate. when patching the stream from 15 mbit/sec to 8 mbit/sec i use the Patch only first header in DVDPatcher. Is it possible that my standalone actually uses the bitrate information for something ?
I was wondering if it actually expects a higer bitrate stream and hence results in serious blocking.
ilDoc
@ il docteur,
Open ReJig program and process your m2v file by this program in File mode.
Then within the same program but DVD mode , put the processed m2v add your audio and make DVD.
May be audio also should be processed the same way by File mode.
I think that in file mode some detrimental elements are filtered aut of your video file.
BTW nice kindergarden
eb
edited:
You can also do filtering proces using bbtool1.9 from download section of DOOM9
use command bbdmux <videofile> 0xE0 1.m2v
1= new videofile name
ildocteur
25th May 2004, 08:57
@eb (sorry for confusing you with bb)
What mode should i use in ReJig to make the process as loosless as possible ?
Would the bbtool demux replace Rejig processing og should i do both ?
ilDoc
P.S
It's acually not a kindergarden, It's a commercial from the national danish TV station to get kids to send in drawings for the Royal wedding on May 14th.
ilDoc,
as described above, it is practicly looseless process.
All timestamps data should be included in audio file.
Time of record should be about 11 seconds, playing back only video is showing only 4 seconds
eb
ps bbdmux is doing exactly the same job as ReJig in file mode, ReJig is easier
ildocteur
25th May 2004, 09:10
@eb
In Rejig I can choose from either 1 pass with a quality percentage or two pas with a final file size. Witch one should I choose ?
unfortunately the .m2a file that is ripped of the Receiver harddrive does not include syncronization information (timecode) (That what the author of the ripping program (MediaMex) says - and I sort of belive him)
I don't understand what you mean by the difference in time of record and playback ?
I'm still not sure. about the process. (sorry)
is it.
Rejig video
Rejig audio
Rejig make DVD
bbmux ??
or is it.
just bbMux.
in ReJig in File mode only demux video file without rendering,only demux!.
Go to DVD author add processed video add audio and create.
You will receive as end product all files of DVD ie. bups,ifos,vob
eb
Try to send to me sample of video but also with audio connected with this video.
ildocteur
25th May 2004, 09:22
@eb
Sorry if i'm dumb.
when i rip the video+auto off the Receiver harddrive a seperate .m2v and .m2a file is created.
when i load the .m2v file in rejig I do not get the option of demuxing.
How would I do that ? What buttons will i have to press ?
ilDoc
when adding file to File mode on opened folder set ALL FILES, then you can add your video file .m2v
Then press demux
eb
ildocteur
25th May 2004, 09:33
@eb
Ok. I just thought that the demux button did not work when no streams are shown in the Streams panel.
I will try this when I get home tonight.
ilDoc
ildocteur
25th May 2004, 09:43
@eb
I will also send you a sample of the audio for the clip.
I only habe 1 GB+ size .m2v files. The one i send you was a cut out using the mpegtools from tmpgenc.
How do i make sure that i cut the audio and video at the same position. should I mux the files first and then demux ?
ilDoc
ilDoc,
maybe in my explanation was too much shortages, but I can see that it is clear now for you, so
Good luck,
eb
ilDoc,
if you cut video and audio from begining of this two files then I think all data especialy timestamps will be preserved.
and I hope that there will be not too difficult to synchronize video and audio tracks
eb
PS
I am also interested if your Nokia can also record subtitles and multiaudios ?
ildocteur
25th May 2004, 12:01
@eb
I think I will try an make a new 10 sec recording, så I can send you the RAW unmodified files.
I'm not home the next couple of days but I will try doing it in this weekend.
The Nokia will record subtitles on the channels I have access to Viasat scandinavia on Sirius (5 degrees EAST) and Canal Digital Scandinavia on Thor (1 degree WEST). I don't know if they are "burned" into the video or recorded seperate.
you might want to have a look at the Tool I use for ripping. http://mediamex.free.fr/ The tool is close to abandonware but the website is still up.
i don't think I have ever seen a multi audio program on one of those sattelites.
ilDoc
ildocteur
25th May 2004, 17:43
@eb
It's just as i thought. Rejig cannot run a demux on a Video only file. Nothing happens when I press the Demux button
Ildoc
ilDoc,
sorry once more,detaily I am writing and checking every step
open ReJig>press File Mode>Add>
select video .m2v> press Done> press DEmux
That's all look for your processed file it is shorter exactly has
7617057 against 7720964
eb
auenf
31st May 2004, 14:26
Originally posted by chaumurky
I know that in Australia our SD streams have 15Mbit headers even though the actual bitrate is around 6Mbit. I don't think ildocteur
actually has 15Mbit streams - but I could be wrong! :devil:
Edit: Spelling...
Originally posted by Doom9
your HD streams certainly go as high as 15 mbit, but SD streams? I highly doubt that.
HD is typically 12-13mbit, SD is typically 5-7mbit (the 'guide' channels are more like 1-2), but some SD channels (abc for one) have the header marked as 15mbit.
Enf...
vBulletin® v3.8.5, Copyright ©2000-2012, Jelsoft Enterprises Ltd.