Quantcast TMPGEnc does Not Accept the MP2 File? - digitalFAQ.com Forums [Archives]
Go Back    digitalFAQ.com Forums [Archives] > Video Production Forums > Video Encoding and Conversion

Reply
 
LinkBack Thread Tools
  #1  
03-01-2004, 05:07 AM
kev23m kev23m is offline
Free Member
 
Join Date: Feb 2004
Location: India
Posts: 185
Thanks: 0
Thanked 0 Times in 0 Posts
I have the encoded m1v and mp2 files.
Not muxing with bbmpeg reaches 99% and stays there.
With Tmpgenc it does not accept the Mp2 file says Illegal Mpeg Audio.
Used Dvd2Avi to get the wav file and the Besweet to encode to Mp2.
Besweet Command: "C:\Program Files\Eazy VCD\BeSweet\BeSweet.exe" -core( -input "d:\Encoded\Namak Halal\nh AC3 T01 2_0ch 224Kbps 48KHz.wav" -output "d:\Encoded\Namak Halal\nh AC3 T01 2_0ch 224Kbps 48KHz.mp2" -logfilea "C:\Program Files\Eazy VCD\BeSweet\BeSweet.log" ) -ota( -hybridgain ) -mp2enc( -m s -b 192 -e ) -profile( ~~~~~ Default Profile ~~~~~ )

Here is the newbie Template
SOURCE:

- Filetype Mpeg2/DVD
- interlaced(means combing on fast moving scenes) or not interlaced ? : no
- Framerate (29.97, 23.976, 25.000) ? : 29.97
- Resolution ? : 720*480
- Audiosamplerate (44.1 khz, 48 khz)? : 224 kbps 48khz
- Audio Type (AC3, mp3, mp2) ?: Ac3
- Is Audio VBR or CBR ? Vbr
(some answers you get if using Gspot on the source!)


DESTINATION:

- KVCD, K(S)VCD or KDVD ?: K(S)VCD
- Mode (mpeg1 or mpeg2) ?: Mpeg2
- Framerate (29.97, 23.976, 25.000) ? : 29.97
- Resolution ? 480x480
- Audiosamplerate (44.1 khz or 48 khz) ? : 48khz
- Audio Enc Type (mp2, AC3) ?: Mp2
- Encoding Appl. (CCE or TmpgEnc) ?: Tmpgenc
- muxing Appl. (TmpgEnc, BBmpeg, etc.) ?: Tried with both no success
- Authoring Appl. (Vcdeasy, VCDgear, Nero) ?: Nero
- Burning Appl. (Vcdeasy, Nero, etc.) ?: Nero

If Avisynth is used: YEs

- Which Version of Avisynth Do you use? 2.5
- Post your last state of your script here!:
## DLL Section ##
#
#
####
## Main section and static filters ###
#

Mpeg2Source("D:\Encoded\Namak Halal\nh.d2v")

#
undot()
Limiter()
asharp(1, 4)
BilinearResize(448, 446, 0, 1, 720, 47
AddBorders(16, 17, 16, 17)
MergeChroma(blur(1.5)
MergeLuma(blur(0.2))
#
#

## Linear Motion Adaptive Filtering ##
#
# ( Portions from AviSynth's manual )
# This will apply variable temporalsoften
# and variable blur.
# Both filters are active at all times, and work inversely proportional to the
# activity, measured from current frame to next frame.

ScriptClip(" nf = YDifferenceToNext()" +chr(13)+ "unfilter( -(fmin(round(nf)*2, 100)), -(fmin(round(nf)*2, 100)) ).TemporalSoften( fmin( round(2/nf), 6), round(1/nf) , round(3/nf) , 1, 1) ")

#
#
#


#LetterBox( Your_Values_Here ) # Depends on situation. Use MovieStacker!
Limiter()

#
#
## Functions ###

function fmin( int f1, int f2) {
return ( f1<f2 ) ? f1 : f2
}

#
####
Reply With Quote
Someday, 12:01 PM
admin's Avatar
Site Staff / Ad Manager
 
Join Date: Dec 2002
Posts: 42
Thanks: ∞
Thanked 42 Times in 42 Posts
  #2  
03-01-2004, 05:32 AM
incredible incredible is offline
Free Member
 
Join Date: May 2003
Location: Germany
Posts: 3,189
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to incredible
1. NEVER use DVD2AVI to generate WAVs from VOBs!
Just demultiplex the ac3s in DVD2AVI and use besweet to do a ac3 to mp2 conversion.

2. As you wnat to author a KVCD/KsVCD your audio HAS TO BE in 44.1 Khz! Sound within VOB sources is everytime 48 Khz as this is DVD legal.
Reply With Quote
  #3  
03-01-2004, 05:46 AM
kev23m kev23m is offline
Free Member
 
Join Date: Feb 2004
Location: India
Posts: 185
Thanks: 0
Thanked 0 Times in 0 Posts
Thanks Incredible
I aint that familar with besweet , how do i change it to 44 mhz. I was using the besweet gui and just input and wav to mp2.
For a 3 hour video the mp2 file comes to 164 mb , can i compress it further.

One more thing i would like to know.

I used Tok for this was just doing the prediction myselft using ksvcd template and settled for cq 82.

This m1v i made is at cq 53, done by tok.
Reply With Quote
  #4  
03-01-2004, 06:02 AM
Dialhot Dialhot is offline
Free Member
 
Join Date: May 2003
Posts: 10,463
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by kev23m
I aint that familar with besweet , how do i change it to 44 mhz.
GO in the SSRC tab and put 44100 as resample frequencies, then return back to besweet tab(hte main one) and check the box "SSRC".

Quote:
For a 3 hour video the mp2 file comes to 164 mb , can i compress it further.
You use 224 as bitrate for audio. You can go down to 112 with no real loss. Just do it and your audio file will be half 82 Mb.

Quote:
This m1v i made is at cq 53, done by tok.
Not so bad with 224 as audio. Il will be near 60 with 112. You can have a little more if you limit the MAX video bitrate.
Reply With Quote
  #5  
03-01-2004, 06:25 AM
kev23m kev23m is offline
Free Member
 
Join Date: Feb 2004
Location: India
Posts: 185
Thanks: 0
Thanked 0 Times in 0 Posts
This is the method i am using for prediction now rather than Tok.

I add this line to the script: Sampler(100,length=24)

No of frames/25/100 = x
File size of sample*.98*x=Predicted File size.

I am trying to fit this in one cd using mpeg-1 and limiting the max bitrate.
Reply With Quote
  #6  
03-01-2004, 07:26 AM
Dialhot Dialhot is offline
Free Member
 
Join Date: May 2003
Posts: 10,463
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by kev23m
I add this line to the script: Sampler(100,length=24)

No of frames/25/100 = x
File size of sample*.98*x=Predicted File size.
That is known as "manual prediction" and it's far more accurate than Tok. But if you want to use an automatic tool for that, better than tok, you can try CQMAtic (see the related section of the forum).

What are your current min/max video bitrates ?
Reply With Quote
  #7  
03-01-2004, 07:33 AM
kev23m kev23m is offline
Free Member
 
Join Date: Feb 2004
Location: India
Posts: 185
Thanks: 0
Thanked 0 Times in 0 Posts
Min Bit rate is 300 max now 1200 , using mpeg-1.

Sound i encoded like u said at 112 kbps , saved 20 mb.

Muxing worked too.
Reply With Quote
  #8  
03-01-2004, 07:46 AM
Dialhot Dialhot is offline
Free Member
 
Join Date: May 2003
Posts: 10,463
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by kev23m
Min Bit rate is 300 max now 1200 , using mpeg-1.
1200 starts to be low indeed. Try to lower your min to 64 and see if your standalone can support that (make a test on a 10 min sample taht's enought).

Quote:
sound i encoded like u said at 112 kbps , saved 20 mb.
???
From 224 to 112 ? Are you sure you weren't doing 128 ? 112 is exactly HALF of 224 so you must save HALF of the space.
Reply With Quote
  #9  
03-01-2004, 10:53 AM
kev23m kev23m is offline
Free Member
 
Join Date: Feb 2004
Location: India
Posts: 185
Thanks: 0
Thanked 0 Times in 0 Posts
If i got it correct you want to try Min Bitrate 64 and see if my player supports it right.

The earlier mp2 was 164mb at 192kbps.
Reply With Quote
  #10  
03-01-2004, 11:03 AM
Dialhot Dialhot is offline
Free Member
 
Join Date: May 2003
Posts: 10,463
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by kev23m
If i got it correct you want to try Min Bitrate 64 and see if my player supports it right.
Right.

Quote:
The earlier mp2 was 164mb at 192kbps.
164/192*112 = 95 Mb !

For 167 min audio file size is :

- 140 MB at 112 Kbps
- 160 MB at 128 Kbps
- 200 MB at 160 Kpbs
- 240 at 192.

So your audio were 128.
Reply With Quote
  #11  
03-01-2004, 11:23 AM
kev23m kev23m is offline
Free Member
 
Join Date: Feb 2004
Location: India
Posts: 185
Thanks: 0
Thanked 0 Times in 0 Posts
Right.

Just checked it .

Anything else i can do to get it to fit on one cd with the best quality.Right now using the kvcd - plus 352x288 pal template.Encoding the video at 352x240.Cq will be 56 with sound being 140mb.

Here is the script i am using.

## DLL Section ##
#
#
####
## Main section and static filters ###
#

Mpeg2Source("D:\Encoded\Humraz\humraaz.d2v")

#
undot()
Limiter()
asharp(1, 4)
DctFilter(1, 1, 1, 1, 1, 1, 0.5, 0)
FluxSmooth(7, 7)
Tweak(hue=0, sat=1.0, bright=0, cont=1.0)
GripCrop(352,480)
GripSize(resizer="BicubicResize")
MergeChroma(blur(1.5)
MergeLuma(blur(0.2))
BlockBuster(method="noise", detail_min=1, detail_max=10, variance=1.0, seed=0)
#
#

## Linear Motion Adaptive Filtering ##
#
# ( Portions from AviSynth's manual )
# This will apply variable temporalsoften
# and variable blur.
# Both filters are active at all times, and work inversely proportional to the
# activity, measured from current frame to next frame.

ScriptClip(" nf = YDifferenceToNext()" +chr(13)+ "unfilter( -(fmin(round(nf)*2, 100)), -(fmin(round(nf)*2, 100)) ).TemporalSoften( fmin( round(2/nf), 6), round(1/nf) , round(3/nf) , 1, 1) ")

#
#
#


#LetterBox( Your_Values_Here ) # Depends on situation. Use MovieStacker!
Limiter()

#
#
## Functions ###

function fmin( int f1, int f2) {
return ( f1<f2 ) ? f1 : f2
}

#

#
####
Reply With Quote
  #12  
03-02-2004, 07:12 AM
kev23m kev23m is offline
Free Member
 
Join Date: Feb 2004
Location: India
Posts: 185
Thanks: 0
Thanked 0 Times in 0 Posts
What did i do wrong in the prediction?

No of frames = 323068
Frame Rate = 29.97
So i got 323068/100/29.97=107.79

Sample Size 6.2
So 6.2*0.98*107.79=654.9mb

File size after encoding = 800mb.

Cq = 63.15
Min Bitrate= 270
Max Bitrate= 1500
Reply With Quote
  #13  
03-02-2004, 08:08 AM
jorel jorel is offline
Invalid Email / Banned / Spammer
 
Join Date: Aug 2002
Location: Brasil - MG - third stone from the sun
Posts: 5,570
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by incredible
1. NEVER use DVD2AVI to generate WAVs from VOBs!

why don't incredible?!?!

i did lots of times and never got problems.
dvd2avi have some bug that i don't know
Reply With Quote
  #14  
03-02-2004, 08:57 AM
Dialhot Dialhot is offline
Free Member
 
Join Date: May 2003
Posts: 10,463
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by kev23m
What did i do wrong in the prediction?
Nothing but the CQ result is very unpredictable.
Try CQMAtic, it will perhaps find a CQ more accurate for your work.

NOTE : WHY DO YOU USE 29.97 ? You should better do 23.976 MPEG2 with "3:2 pulldown during playback" set in tmpgenc.
Reply With Quote
  #15  
03-02-2004, 09:11 AM
Dialhot Dialhot is offline
Free Member
 
Join Date: May 2003
Posts: 10,463
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by jorel
why don't incredible?!?!

i did lots of times and never got problems.
dvd2avi have some bug that i don't know
Never is a big word. But "it is not a very good thing to process like this" is better.

DVD2AVI is very bad at downmixing (going from 5.1 to stero WAV). Headac3che or besweet do that a lot better. That is why you shouldn't use DVD2AVI to produce the wav.

Now, if you are dealing with 2 channel audio (and not 5.1), DVD2AVI produces a good WAV.
Reply With Quote
  #16  
03-02-2004, 09:23 AM
jorel jorel is offline
Invalid Email / Banned / Spammer
 
Join Date: Aug 2002
Location: Brasil - MG - third stone from the sun
Posts: 5,570
Thanks: 0
Thanked 0 Times in 0 Posts
yes,i see Phil!
of course,headac3he is better(my opinion too) and i use for kvcds.

<edited>
see the reason from dvd2avi faq:

Q20: Should I check Dolby Surround downmix?
A: Leaving it unchecked will only decode the two main front channels, left and right.
If it is checked, the center and surround channels will be encoded into the resulting wav file, but with 'pro logic' encoding.
-->This may distort the audio somewhat when played back on a non pro logic capable playback system.

Reply With Quote
  #17  
03-02-2004, 02:45 PM
kev23m kev23m is offline
Free Member
 
Join Date: Feb 2004
Location: India
Posts: 185
Thanks: 0
Thanked 0 Times in 0 Posts
If i encode the video at 23.76, i will have to encode the mp2 also right , select ntsc>29.97 to 23.76.
It increased the mp2 file to 200mb , bitrate 96kbps.

Here is besweet command.
"D:\My Downloads\BeSweetv1.4\BeSweet.exe" -core( -input "d:\Encoded\nh.ac3" -output "d:\Encoded\nh.mp2" ) -azid( -c normal -g 0.95 -L -3db ) -ota( -r 29970 23976 ) -ssrc( --rate 44100 ) -toolame( -m s -b 96 -e )
Reply With Quote
  #18  
03-02-2004, 05:24 PM
Dialhot Dialhot is offline
Free Member
 
Join Date: May 2003
Posts: 10,463
Thanks: 0
Thanked 0 Times in 0 Posts
No you don't have to do that has using 23.976 with 3:2 pulldown won't change the length (in minute) of your video, so the length of the audio shouldn't be modifeid either, and in other words, you don't have to change it's fps (changing the fps actually change the length, that is why your file size increase).

In fact what I find strange is that your source is 29.97. Are you sure about that ? What kind of source is that ? A blockbuster movie ? A TV show ? What exactly ?
Reply With Quote
  #19  
03-02-2004, 05:31 PM
kev23m kev23m is offline
Free Member
 
Join Date: Feb 2004
Location: India
Posts: 185
Thanks: 0
Thanked 0 Times in 0 Posts
It shows 29.97 in DVD2AVI and MovieStacker both.
Its a Dvd of an old Indian Film.

Ok i have rencoded the sound now with headache without changing the fps at 96kbps to accomdate better quality video.

Gonna encode it with Cqmatiq and give it a go. Hopefully this time the size will not exceed.

Thanks for the help.
Reply With Quote
  #20  
03-02-2004, 05:42 PM
Dialhot Dialhot is offline
Free Member
 
Join Date: May 2003
Posts: 10,463
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by kev23m
It shows 29.97 in DVD2AVI and MovieStacker both.
Its a Dvd of an old Indian Film.
Okay, so you have to stay in 29.97.
Reply With Quote
Reply




Similar Threads
Thread Thread Starter Forum Replies Last Post
TMPGEnc: Will not Accept Audio thepopcornkernel Video Encoding and Conversion 6 10-04-2004 09:48 AM
DVD player doesnt accept 25fps VCD? convert to ntsc framerates? esoitl Players, DVRs, Media Centers 11 09-06-2004 06:13 PM
blindpp and convolution3d only accept yu12 format? Stevis2002 Avisynth Scripting 1 01-21-2004 03:25 PM
vcdeasy won't accept the kvcdx3 format 528x480? katchupoy Video Encoding and Conversion 3 01-18-2003 12:42 PM
Ulead Movie Factory does not accept MPEG1 from KVCDx3 Lula1 Authoring VCD, DVD, Blu-ray 3 09-23-2002 02:56 PM




 
All times are GMT -5. The time now is 10:40 PM  —  vBulletin © Jelsoft Enterprises Ltd