Log in

View Full Version : QuEnc 0.59 [BETA]


Pages : [1] 2 3 4 5 6 7

Nic
3rd November 2004, 17:29
I normally don't like making more threads for the same toy but this is quite a radical code change, so I thought it deserved it.

http://nic.dnsalias.com/QuEnc.zip

EDIT:
Please check http://nic.dnsalias.com for all the latest updates

Changes:

Now has Audio Encoding support! It can encode to raw mp2/ac3 :)
Can mux and encode at the same time! Can now encode video and audio from an AVS into a SVCD or DVD compatible MPG file, or into a VCD compatible MPEG-1 System file.
Can automatically create an AVS for AVI or WAV files, so it can load them directly, "as is" for encoding.
Uses Quant 2 for 1st pass encoding, for a mild boost to 2 pass encoding quality
Can now do Constant Quantizer encoding, just use a bitrate of 31 or less and it will encode using that quantizer.
Bugfixes

Let me know of any problems. This is quite a lot of code change as you'll see from the source, so it's likely there are bugs somewhere(although I have tested it quite a bit).

Cheers,
-Nic

Koepi
3rd November 2004, 17:44
Yay, thanks Nic! I can't wait to get home from work and stress test the new version :) (Though I just bought a DVD+-RW burner and shouldn't need that anymore ;) But there's no thrill in 1-click-shrinks. I'll still do DVD-9-to-1CD-SVCD encodes with QuEnc!)

/me happy.

One question though - if I already encoded an ac3 to mp2 audio, is it possible for QuEnc to simply mux that into a final program stream? Or is that on the ToDo-list? :)

Cheers,

Koepi

Nic
3rd November 2004, 17:49
It's not particularly straightforward to use external files, codecs and libavformat together. But is do-able. I'd much rather use tooLame than libavcodec's MP2 Encoder, so that's probably on the list first. :)

Cheers,
-Nic

Guest
3rd November 2004, 18:25
Very cool!!!
Tin2tin

Teegedeck
3rd November 2004, 19:04
Hip-hip-hooray! Now things should get much easier for me, thanks to you!

SILICON
3rd November 2004, 19:10
Sorry,

The link download the version 0.55 Alfha. Am I wrong?

Teegedeck
3rd November 2004, 19:19
It's 0.56 alpha over here.

It works (with 2-channel audio)!! - how remarkably easy it all is now! :) QuEnc must be the most complete and user-friendly encoder on the market, now, I guess.

The way you use the same field for entering bitrate or constant quant is a bit of a startler... Like it. ;) How about writing "quantizer or bitrate" next to it for us numbskulls, though?

bergi
3rd November 2004, 19:58
Thanks Nic!

But another feature would be cool. I don't want to run the 2nd pass immediately. XviD like 2pass mode with stats-file would be cool :)

Nic
3rd November 2004, 21:37
@SILICON: Must just be a cacheing problem, try downloading again, if you still have problems, i'll make another copy of the file on my website for you to download that won't be cached.

@Bergi: I can see what your saying, and it does actually create a log file. But I think adding that into the options may just confuse things a little...I'll have a think about how I could integrate it. Suggestions are welcome :)

@Tee: I know ;) I bet most people don't even know you can pause the encoding by pressing the Pause button....Maybe i'll think of a way to make these things a bit more obvious. But I like keeping things uncluttered as much as possible :)

Let me know any more suggestions, I'm slowly running out of ideas.

Cheers,
-Nic

bergi
3rd November 2004, 22:37
If you want some suggestions how the gui could look:

You could add a combobox, that is activated only if 2pass box is checked. The combobox would have 3 differnt options, 1st "Run both passes", 2nd "Run 1st pass of 2 passes" and the 3rd "Run 2nd pass of 2 passes". If the combobox is set 1st or 2nd all options are active, if 2nd option is active there is also the fileselector for the stats file active. If the 3rd option is selected only the fileselector is active, other parts of the gui are inactive.

Amnon82
3rd November 2004, 22:45
@bergi:

Thats exactly I would do it ...

@Nic:

Suggestions:

You can build in a prediction-mode. As You know I've coded ESD (EasySVCD/DVD (http://www.brckomania.net/CYBERNETSOFTWARE/FILES/EasySVCDDVD62.exe)). It is a GUI for Encoding DVDs and AVIs easierly.
I used Incredible Slicer.avs for the Core.

Also I added a resizing-mode to my GUI, including preview in window and fullscreen. Maybe You want also add this feature to your encoder directly.

Also Subtitle-support will be cool. I added also this to my GUI.
If you want I can upload the Delphi-Source for You. PM me if You want it.

Bugs in 0.56:

The switch -cmatrix and -nocmatrix don't exists. It is still
-qlb and -noqlb. I hope You fix this in the next release ;)

Questions:

I don't get it yet how the audioencode works. MP2 will be Stereo. What is with AC3? Will it copy the source AC3? Can You post a Sample-AVS-Script? Can I only add one AC3-Stream? Will I get also a MPG-File in the DVD-Mode or a VOB-Structur? (THX for answering this.)

I hope this helps You.

Regards

Amnon82

Nic
3rd November 2004, 22:56
@bergi: Yeah, that does sound like a fair idea. Maybe.... ;)

@Amnon82: I don't want to bloat QuEnc too much (it's already getting rather large, I think resizing and the like are for other programs (like your GUI :) ) ). Same with subtitle support.

-cmatrix works here for me?

I just tried:
QuEnc -cmatrix c:\matrix.txt
and looking in the Advanced Options Dialog c:\matrix is selected. -nocmatrix worked for me as well? Could you (or anyone) describe the exact problem.
(ok -cmatrix qlb actually tries to load the file qlb, but because it doesn't exist it will use the builtin qlb matrix anyway, so the effect is the same)

What don't you understand about the audio?
Audio will be exactly the same number of channels as the input audio (same with samplerate). Yes you can only add one audio stream at present (does AviSynth support more? I don't know). The DVD mux profile, adds blank NAV packets, so hopefully it can then be used with dvdauthor for authoring (although libavcodec may need improvements to work 100% correctly, but essentially you will get one big vob).
(The audio is encoded from raw audio provided by the AVS, so of course it will not be an exact copy of the source AC3, but a re-encoded version).

Hope that clears things up a little,

-Nic

Peter1234
3rd November 2004, 23:31
Nic,
Thanks for great program. The audio seems to always get encoded at 44.1 KHz even when DVD mux profile is selected (I am using WavSource to input audio).

EDIT - Oh! From your last post I see it will always be same as source bit rate.

Amnon82
3rd November 2004, 23:38
I did a little test with the version 0.56.

The AVS-Script I used:

# Created with EasySVCD/DVD 0.63 RC1 - visit: www.cydvd.tk
LoadPlugin("C:\Cybernetsoftware\EasySVCD-DVD\D2V\DGDecode.dll")
LoadPlugin("C:\Cybernetsoftware\EasySVCD-DVD\D2V\ac3source.dll")
LoadPlugin("C:\Cybernetsoftware\EasySVCD-DVD\D2V\grip.dll")
LoadPlugin("C:\Cybernetsoftware\EasySVCD-DVD\VSRip\VSFilter.dll")
mpeg2source("D:\test\testac3.d2v")
AC3source("D:\test\testac3.ac3")
#SourceColour
GripCrop(480, 576, source_anamorphic=TRUE, dest_anamorphic=false)
GripSize(resizer="BicubicResize")
#NoSubtitle1
GripBorders()
Subtitle(" encoded with EasySVCD/DVD 0.63 RC1 - (C) 2004 CYDVD.Inc",5,60,0,250,"Arial",14,$999999)
Subtitle(" Final avg.Bit: 1850 GOP: 15",5,80,0,250,"Arial",14,$999999)
#NoSubPlace_here

The Result:

I tested DVD and SVCD. In both modes I only get the right front channel. This is a bug I already know of my program ACDrei which used the ffmpeg-codec for audio-encoding. If the source is AC3 5.1 Channel it encodes wrong. Maybe You should use another audioencoder.

The Samples:

SVCD-MPEG (6 MB) (http://www.brckomania.net/CYBERNETSOFTWARE/FILES/testac3svcd056.mpg)

Original AC3 Source (1.3 MB) (http://www.brckomania.net/CYBERNETSOFTWARE/FILES/testac3.ac3)

@Nic:

this is my Batch:

@ECHO off
ECHO Batchfile created with EasySVCD/DVD 0.63 RC1 - visit: www.cydvd.tk
ECHO Start encoding 3 percent of movie for prediction
C:\Cybernetsoftware\EasySVCD-DVD\Encoder\QuEnc.exe -i "D:\test\final62.avs" -o "D:\test\fin62.m2v" -b -4550 -maxbitrate 9550 -dc 10 -1 -mpeg2 -nohq -vbr -noscene -notrell -nocgop -nointerlaced -noextreme -gopsize 15 -maxbframes 2 -cmatrix -matrixfile "C:\Tools\cqme\CYMAT2.0EX.txt" -aspectratio 16:9 -bff -auto -close
exit

-cmatrix gives me 'Bad Parameter'.

If I change it to this:

@ECHO off
ECHO Batchfile created with EasySVCD/DVD 0.63 RC1 - visit: www.cydvd.tk
ECHO Start encoding 3 percent of movie for prediction
C:\Cybernetsoftware\EasySVCD-DVD\Encoder\QuEnc.exe -i "D:\test\final62.avs" -o "D:\test\fin62.m2v" -b -4550 -maxbitrate 9550 -dc 10 -1 -mpeg2 -nohq -vbr -noscene -notrell -nocgop -nointerlaced -noextreme -gopsize 15 -maxbframes 2 -qlb -matrixfile "C:\Tools\cqme\CYMAT2.0EX.txt" -aspectratio 16:9 -bff -auto -close
exit

... it works. I tried it many times!

Amnon82
4th November 2004, 00:06
It maybe a Bug:

I changed my last Script a littlebit to this version:

# Created with EasySVCD/DVD 0.63 RC1 - visit: www.cydvd.tk
LoadPlugin("C:\Cybernetsoftware\EasySVCD-DVD\D2V\DGDecode.dll")
LoadPlugin("C:\Cybernetsoftware\EasySVCD-DVD\D2V\ac3source.dll")
LoadPlugin("C:\Cybernetsoftware\EasySVCD-DVD\D2V\grip.dll")
LoadPlugin("C:\Cybernetsoftware\EasySVCD-DVD\VSRip\VSFilter.dll")
###CHANGE BEGINNING
a=mpeg2source("D:\test\testac3.d2v")
b=directshowsource("D:\test\testac3.ac3",fps=25)
audiodub(a,b)
###CHANGE END
#SourceColour
GripCrop(480, 576, source_anamorphic=TRUE, dest_anamorphic=false)
GripSize(resizer="BicubicResize")
#NoSubtitle1
GripBorders()
Subtitle(" encoded with EasySVCD/DVD 0.63 RC1 - (C) 2004 CYDVD.Inc",5,60,0,250,"Arial",14,$999999)
Subtitle(" Final avg.Bit: 1850 GOP: 15",5,80,0,250,"Arial",14,$999999)
#NoSubPlace_here

I checked 2Pass and started encoding. Before QuEnc begins to do the 2nd Pass it closes it self without a error message...
If I don't check 2Pass it closes it self if I click on 'Start'.

dragongodz
4th November 2004, 00:12
Let me know any more suggestions, I'm slowly running out of ideas.
i thought we had enough on the to-do list for 0.60 atleast. i planned to update it after 0.60 was released. :)

Also I added a resizing-mode to my GUI,
since Avisynth has a variety of resizing options there is no need for it to be in QuEnc aswell.

Also Subtitle-support will be cool.
since QuEnc is doing the muxxing thats not such a bad idea. the mplex source could be used for adding that of course. maybe something for after 0.60 ?

-cmatrix gives me 'Bad Parameter'
the implamentation of this is being changed to simplify things(less commands etc). try these instead

to use the internal QLB matrix -
C:\Cybernetsoftware\EasySVCD-DVD\Encoder\QuEnc.exe -i "D:\test\final62.avs" -o "D:\test\fin62.m2v" -b -4550 -maxbitrate 9550 -dc 10 -1 -mpeg2 -nohq -vbr -noscene -notrell -nocgop -nointerlaced -noextreme -gopsize 15 -maxbframes 2 -cmatrix qlb -aspectratio 16:9 -bff -auto -close

to load and use your own matrix -
C:\Cybernetsoftware\EasySVCD-DVD\Encoder\QuEnc.exe -i "D:\test\final62.avs" -o "D:\test\fin62.m2v" -b -4550 -maxbitrate 9550 -dc 10 -1 -mpeg2 -nohq -vbr -noscene -notrell -nocgop -nointerlaced -noextreme -gopsize 15 -maxbframes 2 -cmatrix "C:\Tools\cqme\CYMAT2.0EX.txt" -aspectratio 16:9 -bff -auto -close

as Nic also said, if the "C:\Tools\cqme\CYMAT2.0EX.txt" doesnt exist or cant be loaded then the QLB matrix will be used.

oh and i am guessing Nic changed -qlb option to be an alias for "-cmatrix qlb" since thats what he told me he would probably do when we were discussing how this should all work. :)

Amnon82
4th November 2004, 00:33
I did another test using this example-script:

ovText = "AviSynth Authors:"+chr(13)+
\ "----------------------------"+chr(13)+
\ "Ben Radiak Gould"+chr(13)+
\ "Klaus Post"+chr(13)+
\ "Richard Berg"+chr(13)+
\ "Dividee"+chr(13)+
\ "David Pierre"+chr(13)+chr(13)+
\ "Documentation:"+chr(13)+
\ "----------------------------"+chr(13)+
\ "Wilbert Dijkhof"+chr(13)+
\ "Jonathan Ernst"+chr(13)+
\ "Ernst Peche"+chr(13)+
\ "Arne Stäcker"+chr(13)+chr(13)+
\ "Contributions by:"+chr(13)+
\ "----------------------------"+chr(13)+
\ "Avery Lee, Milan, Naoki Shibata, "+chr(13)+
\ "Peter Pawlowski, Olli Parviainen,"+chr(13)+
\ "Nicolas Capens, DevIL team,"+chr(13)+
\ "Donald Graft, poptones, ARDA"+chr(13)+
\ "Kevin Atkinson, many more..."+chr(13)+chr(13)+
\ "Thanks to:"+chr(13)+
\ "----------------------------"+chr(13)+
\ "Everyone contributing to the project,"+chr(13)+
\ "Doom9 & team, kwag, stickboy"+chr(13)+
\ ""


Blankclip(length=128, width=32,height=32, fps=25)
converttoyuy2()
Coloryuv(showyuv=true)
bg = loop(last + reverse(), 10)

c = framecount(bg)
t_mask = messageclip(ovText, height=c).converttoyv12().coloryuv(levels="tv->pc").trim(0,1)
t_blank = blankclip(t_mask, color=$ffffff)

t_mask_bl = t_mask.blur(1.0).blur(1.0).blur(1.0)

overlay(bg, t_mask_bl, mode="subtract")
overlay(t_blank, mode="blend", mask=t_mask)

frameevaluate("ol_x_offset = 40")
frameevaluate("ol_y_offset = 256 - (current_frame)")

fadeio(15)
converttoyuy2()

video = last

##############################################################
######################### AUDIO ##############################
##############################################################

s_type= "square"
freq_mul = 1.25
len_16 = 0.13

dis_16 = tone(len_16, 311/freq_mul, 44100, 1, s_type) # D#
cis_16 = tone(len_16, 277/freq_mul, 44100, 1, s_type) # C#
sil_16 = dis_16.amplify(0.0) # Silence
e_16 = tone(len_16, 329.5/freq_mul, 44100, 1, s_type) # E
d_16 = tone(len_16, 293.7/freq_mul, 44100, 1, s_type) # D
c_16 = tone(len_16, 261.6/freq_mul, 44100, 1, s_type) # C

p1 = dis_16 ++ sil_16 ++ e_16 ++ dis_16 ++ dis_16 ++ e_16 ++ dis_16 ++ dis_16 ++ e_16 ++ dis_16 ++ dis_16 ++ dis_16 ++ d_16 ++ dis_16 ++ dis_16 ++ dis_16
p2= cis_16 ++ sil_16 ++ d_16 ++ cis_16 ++ cis_16 ++ d_16 ++ cis_16 ++ cis_16 ++ d_16 ++ cis_16 ++ cis_16 ++ cis_16 ++ c_16 ++ cis_16 ++ cis_16 ++ cis_16

p1 ++ p1 ++ p2 ++ p2
last ++ last ++ last
#convertaudioto16bit()
v_low = timestretch(pitch=50).amplifydb(-6)
v_high = timestretch(pitch=200).amplifydb(-12)
mergechannels(last, v_low, v_high)
converttomono()
amplifydb(-12)
audio = last

###################################################################

audiodub (video, audio)

This has audio and generated video. I tried to encode it with QuEnc. QuEnc encoded it but the result isn't acceptable. I encoded it also in TMPGEnc. There it worked out. Try it... ;)

@Dragondogz: For what is then the -matrixfile <custom matrix> switch?
is it the same like -cmatrix <custom matrix>?

-cmatrix <custom matrix> works by the way ;)

Nic
4th November 2004, 00:37
@dgz: qlb, and noqlb just ensure that QLB is used (and vice versa)

-matrixfile is no longer supported, it is now an alias for -cmatrix.

"result isn't acceptable"...doesn't give me much to go on, what isn't acceptable?

I'll try downloading your files tomorrow and replicate the problem.

-Nic

Amnon82
4th November 2004, 00:48
Try the script out. I can't encode it with QuEnc. You can find it also in the Avisynth 2.5 folder. It is called Authors.avs.

You don't need to download the files. The soundproblem with the right-channel is cos of ac3source. It downsamples wrong. So I changed my script form

Mpeg2Source ("MPEG.D2V")
AC3Source ("MPEG.AC3")

into

a=Mpeg2Source ("MPEG.D2V")
b=Directshowsource ("MPEG.AC3")
audiodub (a,b)

... then QuEnc crashed.

If You solve this problem it will be great.

... and I get now the -cmatrix, -matrixfile, -qlb stuff ;)

gn8 my friend.

P.S. If you want you can download my files. You've only to demux the MPG to get the Video ES.

CraigBjorn
4th November 2004, 01:27
I may have messed up something, but I encoded an avs of mine and the result was a ver greenish screen with dots all over the place. I can sort of see the video, but zoomed in and the picture is kind of wrapped around... I've used QuEnc before on my system with out any problems, and it may just be my script.. any ideas?

dragongodz
4th November 2004, 02:06
and I get now the -cmatrix, -matrixfile, -qlb stuff
ye sorry about that. the idea is to make it as simple as possible so the use of 1 command (-cmatrix) to handle loading a custom matrix or using QLB seemed the best idea. :)

This has audio and generated video. I tried to encode it with QuEnc. QuEnc encoded it but the result isn't acceptable
the result was a ver greenish screen with dots all over the place. I can sort of see the video, but zoomed in and the picture is kind of wrapped around
add ConvertToYV12() as your very last line. that fixes the problem of unacceptable picture quality with Amnon82's above script, which the results of before looked like CraigBjorn's description. :D

umm i will try and try the audiodub bit out soon. just have to find another 5-10 break to do so. :)

CraigBjorn
4th November 2004, 02:15
thanx, duh... now I feel like an idiot

dragongodz
4th November 2004, 04:20
thanx, duh... now I feel like an idiot
hahaha dont worry it happens to us all. :)
actually it shows that YV12 detection isnt working so thats useful.


ok tested out Amnon82's

a=Mpeg2Source ("MPEG.D2V")
b=Directshowsource ("MPEG.AC3")
audiodub (a,b)

no crash and encoded fine using intervideo ac3 decoding. so i downloaded ac3filter 0.70b(yes i know there are RC versions aswell, with their own bugs) and tested that. no problems again.
so Amnon82 can you disable ac3 decoding in MediaPlayerClassic, close it and then run it and load the avs in it ? then you will be able to see what filters are being used, assuming it plays ok in that.

Peter1234
4th November 2004, 09:12
Nic,
If you are looking for useful features to add to QuEnc, I suggest adding the ability to use a pulldown flag. I am not an expert, so I may just not know how to do this, but it seems that the pulldown flag needs to be added before the audio is muxed. Therefore, having the ability to mux audio within QuEnc does not help if a pulldown flag is to be added. It would seem like an easy addition to provide an option to add a pulldown flag before muxing audio. I assume you could call pulldown.exe.

Koepi
4th November 2004, 11:01
Ok, my first feedback:

"usual", simple m2v-encoding works flawless and produces very nice quality output (IMO better than QuEnc 0.55a 2pass output, const. quant first pass seems to proove once more to be superiour to CBR first pass).

Currently I'm testing matrix 1+2+3 -to - 1dvd ;) There I also use the built-in ac3-encoder at 192kbps. Matrix1 will be ready in ~3 hours but I can't really check the result until i get home.

(I know that it's nuts and even when resized to 688x304+borders in 4:3 AR it can't look good, but I want to find the "border line" to acceptable results. Now I only need to dig up the stuff on how to implement a simple menu for the dvd with freeware tools...but that doesn't belong here.)

I hope this helps

Regards
Koepi

dragongodz
4th November 2004, 11:32
Now I only need to dig up the stuff on how to implement a simple menu for the dvd with freeware tools...but that doesn't belong here
http://www.videohelp.com/~liquid217/dvdauthorgui.pl
http://www.dvdshrink.info/titlewriter/
:D

dragongodz
4th November 2004, 11:36
hmm i was thinking about the muxxing of subs. when a vob or svcd mpeg ,that has subs already muxxed in, is loaded in to an authoring program are they detected ? this needs to be really known for it to be worth considering because if the subs are not picked up(as i suspect they may not be) then it would be pointless adding sub muxxing to QuEnc. :)

Abond
4th November 2004, 15:15
@dragongodz
dvdauthor will make it with audio and subs muxed. In fact all the guis for dvdauthor mux the files with spumux before the "real" authoring with dvdauthor.

@Koepi
I would recomend GFD
http://www.boraxsoft.de/GUI_DVDauthor_eng_01.shtml

Koepi
4th November 2004, 15:53
@dragongodz, Abond:

thank you for the hints mates, I'll have a closer look at those GUIs (most amzingly: those GUIs already support QuEnc :cool: ) But let's get back on-topic, we don't want to ruin the feedback thread, right?

@Nic:

another suggestion about the audio stuff. Would it be possible to have a third textbox where you could select an audio-file to multiplex into the final file? (this could be used to i.e. start a list of audio files,...). It would be simpler than using AudioDub (and decode the ac3 to wav first - somehow the ac3-decoding-dshow-graph won't talk to avisynth on my system). Well, simpler for the user at least :D

And yet another one. If you set bitrate between 1 and 32, you use fixed quant. How about using "quality" for the range 33-100? (Like in fractional quantisers.) Oh, and another good one. If you set something above let's say 25000 as bitrate, treat it as kbytes for target size.

EDIT:
I never mentioned the bugs fixed for me in this version, here we go:
- crash during 2nd pas / star wars episode 6 is gone
- AR signaling works as expected now (former versions scaled correctly on DVD player soft- and hardware, but i.e. MPC and VLC didn't correct the AR)
- bitrate reaches desired size more gracefully since QuEnc 0.55a.
/EDIT

Thank you for that great GUI and added code Nic!

Cheers (well, in exactly 1 hour I'll have my first hefeweizen, but you can't start early enough training the cheers ;) )

Koepi

Teegedeck
4th November 2004, 16:25
Hefeweizen? Why, for Christ's sake, why?!? ;)

Koepi
4th November 2004, 16:57
LOL :eek:

Ok, I pretend to not have understood what you meant ;) :
Because "hefeweizen" is international. Kristallweizen is not that understandable I fear.

I could go with Beck's, but I just read some marketing news today that Beck's is Inbev's (formerly known as Interbrew) best selling high price trade mark. (Still I prefer it...).

This is SOOOO off-topic now.

Ok, gotta go and meet some friends in a pub :)

Cheers again

Koepi

Koepi
4th November 2004, 20:17
Unbelievable. The result looks better than any Nandub SBC rip i've ever seen of The Matrix. The sound is a little to silent (hm, wrong word, it's not loud enough for my taste).

Bitrate for video is 1278kbps - resized+bordered as already written before.

Anyhow, excellent work!

Regards,

Koepi

Amnon82
4th November 2004, 22:33
ConvertToYV12() ... yes this I didn't added to the script ...

It was the AC3Filter 1.01a RC1 who crashed QuEnc. RC5 gives me a wrong-speed for the audio, but works well in MPC.
Also 0.70b do this. If I select AC3 in QuEnc it encodes with the wrong speed for audio. As I swiched it to MP2 in QuEnc it crashed again. Also with 0.70b. Which source did You used for Your test dragongodz?

spase
4th November 2004, 23:40
I made several test files with quenc (muxed audio/video streams... .mpg files) and they dont seem to work with either dvdauthorgui or GFD.

here is the dvdauthor log as given by dvdauthorgui: http://wam.umd.edu/~ramseth/DVDAuthorLOG.txt

and in GFD it simply doesnt accept the .mpg

(in dvdauthorgui the mpg has to be renamed to vob.)

edit: i can provide dvdauthor.exe.stackdump if needed

edit2: the .mpg file is playable in media player classic and looks and sounds fine.

edit3: perhaps an option for not muxing the audio and video, but still encoding it would be a good temporary fix if you can't figure it out at first.

Peter1234
5th November 2004, 00:25
Nic,
QuEnc 0.56a mpeg2 files produce error in DoPulldown GUI. The error is not specified. It only says "Pulldown finished with errors". The following was script used;

Mpeg2Source("C:\Documents and Settings\user\Desktop\test.d2v",cpu=4,idct=5)
killaudio()
trim(44407,45848)

I am using 3GHz P4 with XP.


EDIT: no error when QuEnc 0.55a is used.

dragongodz
5th November 2004, 02:41
If I select AC3 in QuEnc it encodes with the wrong speed for audio. As I swiched it to MP2 in QuEnc it crashed again. Also with 0.70b. Which source did You used for Your test dragongodz?
well i can jump back and forwards from ac3 to mp2 etc with no crash. hmm may i suggest you run bigfix on your system to make sure this isnt being caused by a windows codec problem ?
http://forums.divx.com/viewtopic.php?topic=54711&forum=1

i used the files you provided the links for. i demuxxed the video and used the seperate ac3.

in dvdauthorgui the mpg has to be renamed to vob.
perhaps an option for not muxing the audio and video, but still encoding it would be a good temporary fix if you can't figure it out at first.
or simply have use the .vob extension when thats selected as mux type. though outputting seperate files may be worth doing aswell because not all authoring programs may accept/want an already muxxed vob. would be nice if some people would test some different programs out and report back. :)
oh i should mention there is some work being done on dvd output type in Ffmpeg at the moment so that may not be 100% yet anyway.

let's get back on-topic, we don't want to ruin the feedback thread, right?
remotly related information is still useful for feedback. so long as its related to the output(or use thereof) from QuEnc i am sure Nic wont mind. :)

Would it be possible to have a third textbox where you could select an audio-file to multiplex into the final file?
already suggestion to Nic. may be worth starting a new thread just for peoples ides/suggestions. :)

The sound is a little to silent (hm, wrong word, it's not loud enough for my taste).
some ac3 codecs have an option for boosting the output. if not then there is also the Amplify() and AmplifydB() commands in Avisynth.

PatchWorKs
5th November 2004, 03:06
QuEnc rulez now !

FairUse style would be cool also...

...and, why not, CDRDAO support too !

HaPpY CoDiNg !

burnman99
5th November 2004, 06:39
Have just tried it out and it works great, but is there a way that this can encode audio separately from video? I can demux it myself but it would be nice if this had an option to just encode audio.

Thanks! and great update!

Rog

Nic
5th November 2004, 09:51
@burnman: Yeah you can encode just audio? What makes you think you can't? You can load in a Wav File or an AVS with just audio and it will encode to .mp2 or .ac3...

CraigBjorn
5th November 2004, 13:19
I just encoded a 45min long avs, everything looks great, except the audio near the end is all of a sudden extremely loud, and filled with some white noise, and such. Any ideas?

Peter1234
5th November 2004, 13:44
CraigBjorn,
Are you sure that the source video audio was OK? What was the source video audio format? What audio format were you using for the output video (MP2 or AC3)?

Koepi
5th November 2004, 15:30
Further results:

the DVD mux isn't working correctly. No matter if i keep the output as mpg or vob, it gets reported as broken by every splitting-software. The file plays fine though in MPC, VLC and PowerDVD.
I managed to extract the m2v with vstrip and the ac3 with VobEdit (vstrip won't extract the ac3, and the m2v extracted by vobedit is unplayable). The ac3 gets reported as broken by GUIforDVDAuthor.

Currently I'm reencoding the audio with BeSweet and will start the next try to author my DVD ;)

Regards
Koepi

dragongodz
5th November 2004, 16:18
just ran a short encode through mpeg validator(the thread about it is in the general section somewhere if you want to find it).

dvd mux with ac3 audio -

Begin Program Streams Summary:
Missing Progam End Code...
File "G:\temp2\test.mpg.vob" is a DVD MPEG-2 Program Stream
MPEG file size 4.99 MB
MPEG Packs = 2553
Sectors delay = 0.0 ms
System headers = 64
Rate Bound = 10080000 bps -> 9843 Kbps
Video Bound = 1 active video streams
Audio Bound = 1 active audio streams
Variable Bitrate Operation (System MPEG-2 VBR)
MPEG Pack Size = 2048
Packets per Pack = 1
Program Mux Rate = 9843 Kbps
*PTS underflow (Mux Error)...!!
DTS underflow (Mux Error)...!!
*PTS//DTS Out of Sync (Mux Error)...!!
Total PES packets = 2555
PES Packet Lenght Max. = 2028
Number of Video Streams: 1
Number of Audio Streams: 1
Private Stream 1, ID: BD, packets = 354, Total = 697 KB
*Substream (DVD): AC3 Audio substream 80
PES packets = 354,
Total = 695 KB
Padding Stream, packets = 2, Total = 2 KB
Video stream, ID: E0
PES packets = 2199,
Total = 4.24 MB
End Program Streams Summary.


Begin Video Streams Summary:
*Sequence_end_code NOT FOUND, in Stream E0!!
Video Delay Stream E0 = 0.0 ms
Number of Frames = 637 -> 25.48 Sec
Number of Sequence Headers = 43
Sequence Headers Aligned = No
*Horizontal Size = 480
Vertical Size = 576
Aspect Ratio = 4:3
Frame Rate = 25 fps
P-STD Buffer Size Bound = 230 KB (From System Header)
VBV Buffer Size = 112 -> (224 KB)
Stream Type = MPEG-2 MP@ML VBR
Chroma Format = 4:2:0
Picture Structure = Frame
Intra DC Precision = 8
*Top Field First = No
*DCT Type = Frame
Quant. Scale = Linear
Scan Type = Alternate
Frame Type = Interlaced
Number of GOPs = 43
*First GOP Closed = No
Number of Closed GOP = 0
Max. frames per GOP (without first & last) = 15
Min. frames per GOP (without first & last) = 15
Avg. frames per GOP (Total) = 14.81
Max. Frame Size = 68418
Min. Frame Size = 1040
Average Frame Size = 6954
Frames I = 43 -> 6%
Avg. Frame I Size = 100 KB
Frames I Total Size = 1220143 bytes, size 27%
Frames P = 171 -> 26%
Avg. Frame P Size = 25 KB
Frames P Total Size = 1620175 bytes, size 36%
Frames B = 424 -> 66%
Avg. Frame B Size = 10 KB
Frames B Total Size = 1589483 bytes, size 35%
Nominal bitrate (Sequence Header) = 6800000 bps -> 6640 Kbps
Average Bitrate = 1358 Kbps
Peak Bitrate (1 sec) = 2033 Kbps
End Video Streams Summary.


Begin Audio Streams Summary:
End Audio Streams Summary.

Video Stream Duration: 25.48 sec -> 25:12 (secs:frames)

Duration Difference from Video to Audio = 25480 msec
Initial Delay Audio to Video (PTS based) = 0 msec

----------------------------------------
dvd mux with mp2 audio -

Begin Program Streams Summary:
Missing Progam End Code...
File "G:\temp2\test2.mpg" is a MPEG-2 Program Stream
MPEG file size 4.98 MB
MPEG Packs = 2552
Sectors delay = 0.0 ms
System headers = 64
Rate Bound = 10080000 bps -> 9843 Kbps
Video Bound = 1 active video streams
Audio Bound = 1 active audio streams
Variable Bitrate Operation (System MPEG-2 VBR)
MPEG Pack Size = 2048
Packets per Pack = 1
Program Mux Rate = 9843 Kbps
*PTS underflow (Mux Error)...!!
*DTS underflow (Mux Error)...!!
*PTS//DTS Out of Sync (Mux Error)...!!
Total PES packets = 2554
PES Packet Lenght Max. = 2028
Number of Video Streams: 1
Number of Audio Streams: 1
Padding Stream, packets = 2, Total = 1 KB
MPEG Audio stream, ID: C0
PES packets = 353,
Total = 0.69 MB
Video stream, ID: E0
PES packets = 2199,
Total = 4.24 MB
End Program Streams Summary.


Begin Video Streams Summary:
*Sequence_end_code NOT FOUND, in Stream E0!!
Video Delay Stream E0 = 0.0 ms
Number of Frames = 637 -> 25.48 Sec
Number of Sequence Headers = 43
Sequence Headers Aligned = No
*Horizontal Size = 480
Vertical Size = 576
Aspect Ratio = 4:3
Frame Rate = 25 fps
P-STD Buffer Size Bound = 230 KB (From System Header)
VBV Buffer Size = 112 -> (224 KB)
Stream Type = MPEG-2 MP@ML VBR
Chroma Format = 4:2:0
Picture Structure = Frame
Intra DC Precision = 8
*Top Field First = No
*DCT Type = Frame
Quant. Scale = Linear
Scan Type = Alternate
Frame Type = Interlaced
Number of GOPs = 43
*First GOP Closed = No
Number of Closed GOP = 0
Max. frames per GOP (without first & last) = 15
Min. frames per GOP (without first & last) = 15
Avg. frames per GOP (Total) = 14.81
Max. Frame Size = 68418
Min. Frame Size = 1040
Average Frame Size = 6954
Frames I = 43 -> 6%
Avg. Frame I Size = 100 KB
Frames I Total Size = 1220143 bytes, size 27%
Frames P = 171 -> 26%
Avg. Frame P Size = 25 KB
Frames P Total Size = 1620175 bytes, size 36%
Frames B = 424 -> 66%
Avg. Frame B Size = 10 KB
Frames B Total Size = 1589483 bytes, size 35%
Nominal bitrate (Sequence Header) = 6800000 bps -> 6640 Kbps
Average Bitrate = 1358 Kbps
Peak Bitrate (1 sec) = 2033 Kbps
End Video Streams Summary.


Begin Audio Streams Summary:
Elementary Stream C0 is a MPEG Audio Stream
Audio Delay Stream C0 = 0.0 ms
Audio decoded bytes = 4884480 -> 25.44 Sec
P-STD Buffer Size Bound = 4 KB (From System Header)
Found 0 sync words
Audio Sync Losses: 0
Layer = 2
bitrate = 224 Kbps
Frequency = 48000 Hz
Error protection = Disabled
Private flag = 0
Mode = stereo
Copyright flag = 0
Original flag = 0
Emphasis = none
Left Channel DC Level = -84.3 dBFS
Right Channel DC Level = -100.0 dBFS
Left Channel Peak Level = -0.5 dBFS
Right Channel Peak Level = -1.0 dBFS
Left Channel RMS Level = -17.5 dB
Right Channel RMS Level = -17.4 dB
Difference Left-Right RMS Level = 0.0 dB
End Audio Streams Summary.

Video Stream Duration: 25.48 sec -> 25:12 (secs:frames)

Duration Difference from Video to Audio = 40 msec
Initial Delay Audio to Video (PTS based) = 0 msec

dragongodz
5th November 2004, 16:33
note that frame type is reported as interlaced in validator but it bitrate viewer its reported as progresive. :)

also did a couple of quick interlaced encodes. basically the same results but frame type reported as interlaced in bitrate viewer as it should be.

note though that the Top Field First did not work according to both programs no matter if it was ticked in QuEnc or not. both reported not TFF.

is there a way that this can encode audio separately from video? I can demux it myself but it would be nice if this had an option to just encode audio.
Nic what he may mean is encode both video and audio at once but to their elementary streams so you dont need an avs to do first video and then another to do audio. so that would be an extra option in mux profile called "none" so they are not muxxed. :)

Nic
5th November 2004, 17:33
@dgz:
Damn, must have broken the tff feature...I'll look into that tomorrow.
It'd be a bit hacky to create two elemental streams at the same time, but I can see why it'd be useful with libavformat not working as it should...(I have seen that DVD patch, i'll try contacting it's author too)

ffmpeg is a weird project, you'd think they'd get the basics working and build upon it like other projects....still, I'm not complaining, but I do find it strange.

@Koepi: Thanks for the testing Koepi, and sorry it wasn't more successful :(

Cheers,
-Nic

dragongodz
5th November 2004, 17:49
It'd be a bit hacky to create two elemental streams at the same time, but I can see why it'd be useful with libavformat not working as it should
i agree. it would be better to do if avs has both video and audio and mux is none then encode video and then encode audio.

ffmpeg is a weird project, you'd think they'd get the basics working and build upon it like other projects....still, I'm not complaining, but I do find it strange.
yes reading the ffmpeg mailing list can be a real eye opener. :D

Koepi
5th November 2004, 17:51
No big deal at all, Nic! I'm testing for the _fun_ :)

I'm already burning the authored DVD, so I can (hopefully - maybe I messed up something, I needed 3 attempts to make the output of DVDAuthor show me no error messages ;) ) start watching Matrix1 and fall asleep doing that! :)

EDIT: yay, it works :) I finally authored my first DVD, and that only by using freeware. I like that! Thanks everyone for the hints and the tools!

Cheers,

Koepi

makoto916
5th November 2004, 19:42
One slight improvment you could use would be to change the behavior of the -close attribute so it can execute an external file such as a batch as it exits. This would allow for automated execution of muxing tools if you did implement a no-mux feature and just let MPLEX handle it. Sounds like it might be less code to maintain in that case since you wouldn't have to worry about MUXING at all. In fact, if you did implement something like that then technically you wouldn't even need to worry about AC3 or MP2 encoding by just outputting raw PCM and let something like BESweet handle that on the batch execution. Everyone would then be free to use their favorite encoder and tweak it to their hearts desire.

For example, -close could be changed to something like:

-closex "proc.bat %vfn %afn %vbr %abr %asp"

Where vfn = video filename
afn = audio filename
vbr = video bitrate
abr = audio bitrate
asp = aspect ratio

etc, etc. The idea of having these kinds of outputs is so any kind of post-process tool can be used with as much flexability as possible. If you use the naming scheme then a user can affect the executed command line as much as they need.

On the batch end obviously the user just needs %1 %2 %3 variables. If you wanted to get really fancy, you could include a variables section where someone could list the location to the audio encoder, multiplexer, DVD authoring tool, etc and QuEnc could ouput that as a variable on the close statement, or you could even generate the batch file to reduce the steps for the newbie users. If you do auto-execute a self-generated batch, please retain the ability to use just execute a command line for those of us who like to batch everything.

Lots of possibilities.

Either way... thanks for QuEnc. Can't say enough about much this thing rules.

burnman99
5th November 2004, 20:19
Originally posted by Nic
@burnman: Yeah you can encode just audio? What makes you think you can't? You can load in a Wav File or an AVS with just audio and it will encode to .mp2 or .ac3...

Well I'm trying to extract the audio from an AVI File. I know i can just extract as wav or whatever and then encode it but was trying to do it all at once. I tried saving my file as an .mp2 but the video is still there.

Thanks

Rog

CraigBjorn
6th November 2004, 02:07
Originally posted by Peter1234
Are you sure that the source video audio was OK? What was the source video audio format? What audio format were you using for the output video (MP2 or AC3)?

The source was a a type-2 avi extracted from a DV cam. The odder part was that I eventually took it into TMGEnc DVD Author, made the vob files and such, and when I burned it, not just the last bit of the audio, but most of the audio was garbled like that... any ideas?