PDA

View Full Version : TRP to AVI video encoding help


PzSniper
17th September 2009, 02:11
It's almost a month i'm trying to properly encode some videos and i'm close to win but still have big issue.

I'm quite new to video encoding so be patient hehe.

1- I've recorded a SKY TV (Current.tv) program. PVR gave me a .trp file from Clarke-tech HD5000 decoder.

Current @1214f50b.idx
Current @1214f50b.ifo
Current @1214f50b.trp

MPEG Video
544x576@25.00fps
2820 Kbps

MPEG Audio
48000Hz 2ch
128 Kbps

Scan: Interlaced TFF
Container: MPEG-TS

General
Complete name : J:\Archivio REC\Current @1214f50b\Current @1214f50b.trp
Format : MPEG-TS
Format profile : No PAT/PMT
File size : 970 MiB
Duration : 42mn 48s
Overall bit rate : 3 168 Kbps

Video
ID : 2599 (0xA27)
Format : MPEG Video
Format version : Version 2
Format profile : Main@Main
Format settings, Matrix : Default
Duration : 42mn 48s
Bit rate mode : Variable
Bit rate : 2 820 Kbps
Nominal bit rate : 15.0 Mbps
Width : 544 pixels
Height : 576 pixels
Display aspect ratio : 4:3
Frame rate : 25.000 fps
Colorimetry : 4:2:0
Scan type : Interlaced
Scan order : Top Field First
Bits/(Pixel*Frame) : 0.360
Stream size : 864 MiB (89%)

Audio
ID : 2600 (0xA28)
Format : MPEG Audio
Format version : Version 1
Format profile : Layer 2
Duration : 42mn 48s
Bit rate mode : Constant
Bit rate : 128 Kbps
Channel(s) : 2 channels
Sampling rate : 48.0 KHz
Resolution : 16 bits
Video delay : -419ms
Stream size : 39.2 MiB (4%)


2- Used TsRemux and got Current @1214f50b.ts

General
ID : 1
Complete name : Y:\TS Tmp\Current @1214f50b.ts
Format : MPEG-TS
File size : 958 MiB
Duration : 42mn 48s
Overall bit rate : 3 129 Kbps
Maximum Overall bit rate : 35.5 Mbps

Video
ID : 4113 (0x1011)
Menu ID : 1 (0x1)
Format : MPEG Video
Format version : Version 2
Format profile : Main@Main
Format settings, Matrix : Default
Duration : 42mn 48s
Bit rate mode : Variable
Bit rate : 2 784 Kbps
Nominal bit rate : 15.0 Mbps
Width : 544 pixels
Height : 576 pixels
Display aspect ratio : 4:3
Frame rate : 25.000 fps
Colorimetry : 4:2:0
Scan type : Interlaced
Scan order : Top Field First
Bits/(Pixel*Frame) : 0.355
Stream size : 852 MiB (89%)

Audio
ID : 4352 (0x1100)
Menu ID : 1 (0x1)
Format : MPEG Audio
Format version : Version 1
Format profile : Layer 2
Duration : 42mn 48s
Bit rate mode : Constant
Bit rate : 128 Kbps
Channel(s) : 2 channels
Sampling rate : 48.0 KHz
Resolution : 16 bits
Video delay : -419ms
Stream size : 39.2 MiB (4%)



2- Used Xilisoft HD Video Converter and got Current @1214f50b.avi abd get it deinterlaced.

General
Complete name : F:\Tmp AVI\Current @1214f50b.avi
Format : AVI
Format/Info : Audio Video Interleave
Format profile : OpenDML
File size : 1.40 GiB
Duration : 1h 54mn
Overall bit rate : 1 754 Kbps
Writing application : Lavf51.12.1

Video
ID : 0
Format : MPEG-4 Visual
Format profile : Simple@L1
Format settings, BVOP : No
Format settings, QPel : No
Format settings, GMC : No warppoints
Format settings, Matrix : Default (H.263)
Codec ID : DX50
Codec ID/Hint : DivX 5
Duration : 1h 54mn
Bit rate : 1 628 Kbps
Width : 720 pixels
Height : 576 pixels
Display aspect ratio : 4:3
Frame rate : 25.000 fps
Standard : PAL
Resolution : 24 bits
Colorimetry : 4:2:0
Scan type : Progressive
Bits/(Pixel*Frame) : 0.157
Stream size : 1.30 GiB (93%)
Writing library : Lavc51.40.4

Audio
ID : 1
Format : MPEG Audio
Format version : Version 1
Format profile : Layer 3
Codec ID : 55
Codec ID/Hint : MP3
Duration : 42mn 48s
Bit rate mode : Constant
Bit rate : 320 Kbps
Channel(s) : 2 channels
Sampling rate : 48.0 KHz
Resolution : 16 bits
Stream size : 98.0 MiB (7%)
Alignment : Aligned on interleaves
Interleave, duration : 24 ms (0.60 video frame)
Interleave, preload duration : 24 ms

3- Removed commercials with AVS Video Editor 4 and got this Test.avi with Divx 6.8.5 codec (download a sample: http://rapidshare.com/files/281108008/Test.rar)

General
Complete name : F:\RAR Tmp\Test.avi
Format : AVI
Format/Info : Audio Video Interleave
File size : 13.1 MiB
Duration : 1mn 59s
Overall bit rate : 920 Kbps

Video
ID : 0
Format : MPEG-4 Visual
Format settings, BVOP : Yes
Format settings, QPel : No
Format settings, GMC : No warppoints
Format settings, Matrix : Default (H.263)
Muxing mode : Packed bitstream
Codec ID : DX50
Codec ID/Hint : DivX 5
Duration : 1mn 59s
Bit rate : 781 Kbps
Width : 720 pixels
Height : 576 pixels
Display aspect ratio : 5:4
Frame rate : 25.000 fps
Standard : PAL
Resolution : 24 bits
Colorimetry : 4:2:0
Scan type : Progressive
Bits/(Pixel*Frame) : 0.075
Stream size : 11.2 MiB (85%)
Writing library : DivX 6.8.4

Audio
ID : 1
Format : MPEG Audio
Format version : Version 1
Format profile : Layer 3
Codec ID : 55
Codec ID/Hint : MP3
Duration : 1mn 59s
Bit rate mode : Constant
Bit rate : 128 Kbps
Channel(s) : 2 channels
Sampling rate : 44.1 KHz
Resolution : 16 bits
Stream size : 1.83 MiB (14%)
Alignment : Aligned on interleaves
Interleave, duration : 40 ms (1.01 video frame)
Writing library : LAMELAME


PROBLEM:

This play on Dvd/BluRay player on my Full HD 37" TV but... i can't get it to play full screen just keep black bars on left and right side! Even if i try to set manually 16;9, 4:3,1:1 on TV it's the same song...

This could be stupid to read but really i dunno what to do...

Inspector.Gadget
17th September 2009, 02:19
Whoa, WAY too complicated. Index the original stream with DGIndex. Deinterlace, crop and resize as necessary, denoise and color correct as necessary in Avisynth. Pass the AVS script to the XviD command-line encoder and make sure the FourCC is set to DX50. Encode audio as you'd like. Mux to AVI. Done. To get all this wrapped up in a convenient front-end, try MeGUI or one of the other MPEG-4 Encoder GUIs described in the forum of the same name.

You're watching 4:3 content on a 16:9 or 16:10 TV: of course you'll get pillarboxing! That's preferable to seeing only a 16:9 cut-out of the original picture or a warped image, in my opinion.

PzSniper
17th September 2009, 02:37
Mhhh, thanx for you kind answer but, honestly YOUR steps seems more complicated to me,don't forget i'm a newbie hehe... a deeper step by step guide needed here and surely you don't have time for that right?

And this steps hel me working HD streams too. Seems that .trp files H.264 aren't supported widely atm by programs and tools.


I tried to play on same tv set an old .avi and it doesn't show with pillar box but full screen...why?

MOVIE INFOS:
General
Complete name : E:\Films\The Doors (Il film).avi
Format : AVI
Format/Info : Audio Video Interleave
File size : 703 MiB
Duration : 2h 14mn
Overall bit rate : 728 Kbps
Writing library : VirtualDub build 11759/release

Video
ID : 0
Format : MPEG-4 Visual
Codec ID : DIV3
Codec ID/Hint : DivX 3 Low
Duration : 2h 14mn
Bit rate : 623 Kbps
Width : 416 pixels
Height : 192 pixels
Display aspect ratio : 2.2:1
Frame rate : 25.000 fps
Resolution : 24 bits
Bits/(Pixel*Frame) : 0.312
Stream size : 601 MiB (85%)

Audio
ID : 1
Format : MPEG Audio
Format version : Version 1
Format profile : Layer 3
Codec ID : 55
Codec ID/Hint : MP3
Duration : 2h 14mn
Bit rate mode : Constant
Bit rate : 96.0 Kbps
Channel(s) : 2 channels
Sampling rate : 44.1 KHz
Resolution : 16 bits
Stream size : 92.4 MiB (13%)
Alignment : Split accross interleaves
Interleave, duration : 40 ms (1.00 video frame)
Interleave, preload duration : 450 ms

Inspector.Gadget
17th September 2009, 02:40
You're re-encoding at least twice with substandard software. And to handle H.264, use DGAVCIndex instead of DGIndex. The Avisynth-based method is objectively better in terms of perceptual quality as well as time spent and maximum flexibility of editing. There is no best on these forums, but there are some routines that are junk. You're doing one of them. Read the guides here and at videohelp.com. I promise you that using any of the modern MPEG-4 encoders is not noticeably more difficult than using AutoGK.

PzSniper
17th September 2009, 02:58
i'm trying DGIndex right now to get the .TS i see you are very good encoding but i'm a newcomer and many topics you take for granted they aren't for me. I don't argue your methods are better but i need, at least, a link to those guides... can you please help on this?

I surfed many boards these past weeks, including this one (keyword: .trp) with NO help at all, or i found very complicated and confusing steps. After a whole months i'm near to get what i need but this pillar boxes are killing me, can you tell me why older video with smller size and framerate play full scrren on same tv? (check post above). Weird

Inspector.Gadget take me by hand and help like a children.. hehe.. the REAL Inspector Gadget helped people a lot on tv toons :P

PzSniper
17th September 2009, 03:06
DGIndex gave me

1demuxed.m2v
1 PID a28 L2 2ch 48 128 DELAY -339ms.mp2
1.d2v

this (SURPRISE) open fine in AVS Video Editor 4.....but (SADLY) i don't hear any audio and (VERY BAD) they play 2x fast. So i can't cut and remove commercials directly, but this is not great news because seems more broken now, but using TsRemux generated .ts files i was able to hear audio too!

Sizes
.m2v 877mb
.ts 981mb

UPDATE:
I forgot to add mp2 audio, LOL now play fine and you saved me a LOT of time, now i should be able to enconde in DIVX a 2min sample, will report back soon afte a test on 37" TV.

Inspector.Gadget
17th September 2009, 03:27
Forget AVS Video Editor. It's junk. Uninstall it.

What you need to do is install one of the MPEG-4 Encoder GUIs from these forums. I like MeGUI, but others have their own preferences.

MeGUI, when you open it, has a "Tools" menu. Use it to open the "AVS Script Creator". Use the AVS Script Creator to open your d2v file. You will see a video preview window open. Move it out of the way and click on the "Filters" tab - under "Deinterlacing", click Analyse and wait for that to finish. MeGUI will tell you what sort of deinterlacer you need and automatically add it to what you'll do with Avisynth. Next, click back to the "Options" tab and if your picture has black borders click "Auto Crop" on a bright scene (sun, daytime sky, etc.) and see if the cropping is right. Next, check the "Resize" box and the "Suggest resolution (mod16)" box. Use the up and down arrows to scale your video to 1:1 pixels (so your hardware player can handle the video). Click "Preview" to see the script and then "Save" to load it. Go back to the main MeGUI window. Set "encoder settings" to "Xvid: 2 Pass HQ (Hometheatre)". Kick the bitrate up a bit from 1000: start with 2500 and see how it goes, if you've decided to keep the full resolution of the original video (e.g., no downscaling with the resizer). Click "Enqueue".

Next, drop your mp2 file into "Audio Input" in the main window and set it to "LAME MP3: 128 ABR". MeGUI will automatically correct the delay for you! :) Again, click "Enqueue".

When you have time (overnight on older system, a few hours on a newer one) click to the Queue tab and click "Start". MeGUI will first analyze the video, then encode it, then encode the audio. When that's all finished and has gone without errors, do this:

Tools -> Muxer -> AVI Muxer. Add the new Avi file to the "Video" field. Add the new mp3 to the "Audio" field. Set "Muxed output" to whatever you want the final file to be. Click "Queue", then go back to the main window and to the queue tab one last time and click "Start". An external window will open while the final file is created from the combined audio and video. When that's done, browse to your final AVI and open it in your usual playback software. If it looks good, you're all done!

PzSniper
17th September 2009, 03:34
Oh great instructions, will try it tomorrow now i gotta go to bed, 3.30Am here hehe.

Will report results tomorrow. I'm sure this topic is useful for other ppl ;)

AVS Video Editor isn't so bad, it's very intuitive for cutting and editing. But if u wanna suggest me on other VISUAL/EASY tools go ahead.

Installed Premiere CS4 and Vegas 9 but they are too way complicated for my uses...

I got Megui installed 2 weeks ago but i screwed with scripts tools, million of opetion heheh...so just left it alone. Will try it again following your guide tomorrow.

Thanx a lot mate, really.

Inspector.Gadget
17th September 2009, 04:02
For cutting and joining, I like Avidemux. Good preview function, very stable (with the exception of occasional instability on H.264), avoids a lot of problems of Windows tools built on the dated VFW platform.

For cutting and joining H.264: use MKVMergeGUI for MKV, YAMB for MP4.

AVS Video Editor, like its sibling AVS Video Converter, uses code from ffmpeg without attribution - highly frowned on around here, because a number of members here have contributed code. So don't be surprised if nobody uses it enough to help you with it ;)

PzSniper
18th September 2009, 01:12
Hi InspectorGadget, i'm back and getting ready to follow you guide now.

I chose to use MeGui but i have a stop error.
On AviSynt script creator my 1.demuxed.m2v file won't open, it complain "you can't open file... you'll have to index it first with a DG indexer..."

Ops... i forgot to say that opening 1.d2v i get: Script error: there is no function named "DGDecode_Mpeg2Source"

advice please...

Inspector.Gadget
18th September 2009, 01:50
Make sure you're using the latest MeGUI from SourceForge. If the problem persists, force reinstallation of DGDecode using MeGUI's "Update" feature.

PzSniper
18th September 2009, 02:36
Make sure you're using the latest MeGUI from SourceForge. If the problem persists, force reinstallation of DGDecode using MeGUI's "Update" feature.

Yes mate, thought the same, now i cleaned my system because i've installed many tools, codec, and so on...

downloading and installing latest build megui-0.3.1.1056-setup.exe and after that i'm going to resume the encoding work.

It's nice see you're back. Did u read my PM and my email?
I know maybe you have something better to do than follow a video noob at 2.35am, i dunno what tim is there hehhe.

PzSniper
18th September 2009, 02:59
OMFG you made my day encoder is working on queued jobs.

I should wait only 19mins for the whole 900mb file.

This whole process is very VERY simple if an anel like you take the noob hand hehe... i be quality will be great too.

After that will play a bit with Avidemux and move it to a usb stick to play on bluray player on tv and check how it look. You surely remember my "scaling" problem.

Another guy suggested me to use MPEG4Modifier but i really not sure how do it. Can you tell me something while i'm waiting conversion?

PS:
I wish to do something to pay you back, i can't imagine how many days and hours spent on this...please tell me how.

Inspector.Gadget
18th September 2009, 03:07
MPEG4Modifier changes the pixel aspect ratio stored in an AVI file. Don't do that to your content - 4:3 on a 16:9 TV should be pillarboxed, because any other option either chops off part of the picture or makes everything the wrong shape. If you used MeGUI's "Resize" feature and kept the horizontal resolution while stretching the vertical resolution (so that a square-pixel display will show the picture accurately), then you don't need to do anything.

I wish to do something to pay you back, i can't imagine how many days and hours spent on this...please tell me how.

Maybe a small donation to MeGUI's development? Around here we all just help another so if you can help others out in the future that's all it takes to keep the forums working. Glad it worked out for you.

When using Avidemux to cut an AVI, remember to cut only on I-frames (keyframes) to keep the audio and video and sync and avoid broken frame sequences.

PzSniper
18th September 2009, 03:16
Small donation to MeGUI's development? Sure, no problem! Are you a dev or project founder?

Please add me on Live Messenger with email sent you on Private Message. Tomorrow we'll talk abt that coz i wanna ask u other things.

I'm going to bed now, very tired. I will continue tomorrow :)

Inspector.Gadget
18th September 2009, 05:01
No, I'm not a developer. I'm a relative late-comer. But I appreciate the mix of ease of use and powerful capabilities that the MeGUI team has put together. I don't use Live Messenger, sorry. Best way to contact me (and others on this site, usually) is via the built-in private message system.

PzSniper
18th September 2009, 22:14
Hi Gadget,

I'm back to finish video works.

Will report back soon

PS:
Posted here abt donation: http://forum.doom9.org/showthread.php?t=96032&page=114

PzSniper
18th September 2009, 22:27
Ok muxed it ad you wrote above and here's 1-muxed.avi

General
Complete name : Y:\TS Tmp\1-muxed.avi
Format : AVI
Format/Info : Audio Video Interleave
Format profile : OpenDML
File size : 812 MiB
Duration : 42mn 49s
Overall bit rate : 2 652 Kbps
Writing application : AVI-Mux GUI 1.17.7, Aug 8 2006 20:59:17

Video
ID : 0
Format : MPEG-4 Visual
Format profile : AdvancedSimple@L5
Format settings, BVOP : Yes
Format settings, QPel : No
Format settings, GMC : No warppoints
Format settings, Matrix : Default (H.263)
Muxing mode : Packed bitstream
Codec ID : XVID
Codec ID/Hint : XviD
Duration : 42mn 49s
Bit rate : 2 535 Kbps
Width : 544 pixels
Height : 400 pixels
Display aspect ratio : 4:3
Frame rate : 25.000 fps
Resolution : 24 bits
Colorimetry : 4:2:0
Scan type : Progressive
Bits/(Pixel*Frame) : 0.466
Stream size : 776 MiB (96%)
Writing library : XviD 1.2.1 (UTC 2008-12-04)

Audio
ID : 1
Format : MPEG Audio
Format version : Version 1
Format profile : Layer 3
Codec ID : 55
Codec ID/Hint : MP3
Duration : 42mn 48s
Bit rate mode : Variable
Bit rate : 109 Kbps
Nominal bit rate : 128 Kbps
Channel(s) : 2 channels
Sampling rate : 48.0 KHz
Resolution : 16 bits
Stream size : 33.3 MiB (4%)
Alignment : Aligned on interleaves
Interleave, duration : 24 ms (0.60 video frame)
Interleave, preload duration : 190 ms
Title : 1 PID a28 L2 2ch 48 128 DELAY 0ms
Writing library : LAME3.98r
Encoding settings : -m j -V 4 -q 2 -lowpass 17 --abr 128




Playing it on my bluray player give... A PERFECT IMAGE, PERFECT SCALE, GREAT VIDEO!!!!

Omg, you are great gadget, i can't thank you enought to have spent time with me and helped so much.

THANK YOU MATE!

PzSniper
18th September 2009, 23:40
Ok i'm trying to understand how to use avidemux 2.5.1, seems i've saved a portion of the original avi BUT this tool change and modify my avi properties... take a look

ORIGINAL
http://i37.tinypic.com/29ek7et.jpg

CUT AND SAVED
http://i38.tinypic.com/ka615y.jpg

what's wrong?

I've read
Intra Frames and SmartCopy
This section only applies when video is in copy mode (codec is set to Copy). In process mode (an encoder is selected for encoding), Avidemux internals ensure everything is alright.

Warning: When Fromat is set to "AVI, unpack VOP", Avidemux will use copy mode for all frames (including the "broken" ones) even if a video encoder is selected for encoding. SmartCopy mode will not work either, because SmartCopy needs to re-encode the broken frames.

Usually, each frame of video isn't that different from the one before - someone's mouth moves a bit, the background shifts around, etc. Most video codecs use this fact to save space, by saving a complete frame every few seconds, and making the other frames simply a modification of the reference frame. Complete frames are referred to as Intra frames, or sometimes I-frames or keyframes.

Markers don't have to be at key frames, so your stream might look like this:

abAdeIghBjklInop
Where lowercase letters are intermediate frames, A and B are marked frames, and I is an intra frame. When you cut frames [A,B), you will end up with:

abjklInop
Where frames jkl are broken, because they specify changes relative to an I-frame that no longer exists. There are two ways of dealing with that:

Make sure the B marker is an I-frame. In that case no problem.
If your file uses MSMPEG-4 (DivX ;-) 3) or MPEG-4 video, you can use smart copy mode. Smart copy will leave most frames unchanged, but re-encode the part that lost its reference images with a fixed quantizer. So in our example, frames ab and nop would remain unchanged, while frames jkl would be re-encoded to use a different reference frame. Smart copy will ask you for a value for the quantizer to use - 4 or 5 is generally OK.
bu don't get it...

Inspector.Gadget
19th September 2009, 00:15
If you have a hardware player that requires packed bitstream, then use "AVI" rather than "AVI, unpack VOP" output. Otherwise, nothing has changed. The "user data" section is irrelevant.

If you've cut on keyframes, which is the only lossless way to do it, you don't need smart copy at all. Make sure you're cutting only on "I" frames (look at bottom center of Avidemux window).

PzSniper
19th September 2009, 00:29
Well..ok... i think at this point it's over, this topic has been "RESOLVED" by you. Can i express my gratitude in some way? Not tell me again to donate to MeGUI hehe.

Last question, i've installed Divx 7.2.x Pro full version, how can i use it instead Xvid next time? Can you recommend me settings for that. Or it's better stay with xvid? h264 isn't yet well supported by dvd players... shame

Hope i can ask u other infos next time and... please... answer private messages coz you are unavailable to live messenger, yahoo etc... hehe.

Take care

:)

Inspector.Gadget
19th September 2009, 01:47
Better to stay with XviD. MeGUI doesn't support DivX, and anyway gives you more granular control over XviD options than the DivX bundled converters do over DivX. The two codecs are likely to be visually indistinguishable given the same parameters.

PzSniper
19th September 2009, 13:33
Ok, today i've processed a second .tsp from NatGeo and facing another problem... maybe just beacuse i've missed some setting...

Video play fine BUT on my TV have pillarboxes beside (those down are ok)... this has not happened with other (same quaity) tv stream we encoded yesterday.

Here's log:

Stream Type: Transport [188]
Profile: main@main
Frame Size: 544x576
Display Size: [not specified]
Aspect Ratio: 4:3 [2]
Frame Rate: 25.000000 fps
Video Type: PAL
Frame Type:
Coding Type:
Colorimetry:
Frame Structure:
Field Order:
Coded Number:
Playback Number:
Frame Repeats:
Field Repeats:
VOB ID:
Cell ID:
Bitrate:
Bitrate (Avg):
Bitrate (Max):
Audio Stream: 0: MPA L2 2ch 48 160
Timestamp: 10:54:43
Elapsed: 0:01:57
Remain: FINISH
FPS:
Info:



AVS Script
DGDecode_mpeg2source("F:\Archivio Serie Tv\Nationalgeo +1 @1202328c\Nationalgeo +1 @1202328c.d2v", info=3)
ColorMatrix(hints=true, interlaced=true, threads=0)
Load_Stdcall_Plugin("V:\Program Files\megui\tools\yadif\yadif.dll")
Yadif(order=-1)
#crop
LanczosResize(544,400) # Lanczos (Sharp)
#denoise

I've resized like suggested from MeGui...

Inspector.Gadget
19th September 2009, 16:08
When playing 4:3 content on a 16:9 TV, you will always have pillarboxing. However, here you've resized to less than full resolution of the source. Try resizing to 768x576 instead; that's the standard PAL resoluton. If that makes the picture look weird, then the broadcast at 544 px width is maybe not properly anamorphic.

PzSniper
22nd September 2009, 00:20
Ok now i've succesfully converted mant trp shows, its' time for NatGeo HD .trsp now hehe...

Here's the problems:

1- What player can i use to preview and play .trp files? VLC, GOM Player doesn't play those file. GOM play only SD .trp not h264, weird..

2- DGAVCIndex did the trick and gave me:
Nationalgeo Hd @1231b791.dga
Nationalgeo Hd @1231b791 PID 9d3 2_0ch 48KHz 192Kbps DELAY -1603ms.ac3

3- MeGUI won' create AviSynt script as beafore, give me this error: Script error: there's no function named "AVCSource"

I have faith in you Inspector :P

Inspector.Gadget
22nd September 2009, 00:32
You must make sure that you have DGAVCDecode.dll in your Avisynth plugins directory.

PzSniper
22nd September 2009, 00:40
Yeah now it's in i've put DGAvcDecodeNV.dll in my avisynth plugins folder.

Can you please answer Q#1?

And, what abt MeGui encoder settings now? i wish to have HQ video (h264?) and HQ audio (ac3? aac?), so i dont' think old settings are ok. I saw many x264 unrestricted profiles, but i dunno what to choose... please advice...

Inspector.Gadget
22nd September 2009, 00:49
For the .TRP playback, download MediaInfo and post the results of the "Text" view of the .TRP file into a new post in this thread. That'll tell us if there's anything unusual about the container, and how to configure MPC-HC to play it.

MeGUI's x264 profiles are undergoing some revision. At present, what I would do as a starting point is to use the "x264: p slower" profile with a CRF value (instead of bitrate) of 23, which you can set by clicking "Configure" after selecting the preset. See how that goes for quality. As soon as the new profiles are out maybe I'll have some more concrete recommendations. You already have AC3 audio from that stream. You can combine it with the new x264-encoded video in MKV without re-encoding. If you'd like to use AAC audio instead, see how a bitrate of 96 kbps with the Nero LC-AAC profile works.

PzSniper
22nd September 2009, 01:01
Here we are:

General
Complete name : J:\Archivio REC\Nationalgeo Hd @1231b791\Nationalgeo Hd @1231b791.trp
Format : MPEG-TS
Format profile : No PAT/PMT
File size : 1.47 GiB
Duration : 20mn 24s
Overall bit rate : 10.3 Mbps

Video
ID : 2514 (0x9D2)
Format : AVC
Format/Info : Advanced Video Codec
Format profile : Main@L4.0
Format settings, CABAC : Yes
Format settings, ReFrames : 4 frames
Duration : 20mn 24s
Bit rate : 9 394 Kbps
Width : 1 920 pixels
Height : 1 080 pixels
Display aspect ratio : 16:9
Frame rate : 25.000 fps
Resolution : 24 bits
Colorimetry : 4:2:0
Scan type : Interlaced
Bits/(Pixel*Frame) : 0.181
Stream size : 1.34 GiB (91%)
colour_primaries : BT.709-5, BT.1361, IEC 61966-2-4, SMPTE RP177
transfer_characteristics : BT.709-5, BT.1361
matrix_coefficients : BT.709-5, BT.1361, IEC 61966-2-4 709, SMPTE RP177

Audio
ID : 2515 (0x9D3)
Format : AC-3
Format/Info : Audio Coding 3
Duration : 20mn 24s
Bit rate mode : Constant
Bit rate : 192 Kbps
Channel(s) : 2 channels
Channel positions : L R
Sampling rate : 48.0 KHz
Video delay : -804ms
Stream size : 28.0 MiB (2%)


can you elaborate better this sentence: can combine it with the new x264-encoded video in MKV?

Inspector.Gadget
22nd September 2009, 01:04
Format profile : No PAT/PMT

This might be the problem. Since neuron2's tools handle this stream, you might ask him if he knows of any DirectShow filters that can handle it for playing back the file. It's worth trying using both Haali's Media Splitter and the MPC-HC built-in TS splitter as source filters in case one of them already works.

can combine it with the new x264-encoded video in MKV?

I meant there that you can re-encode the video if desired but you don't necessarily need to re-encode the audio: you can just add it into a new MKV container with the x264-encoded video if you'd like.

Inspector.Gadget
22nd September 2009, 01:07
You might try this tool for rebuilding the TS file's PAT/PMT so more types of software can read it: http://www.networkedmediatank.com/showthread.php?tid=5624&page=1

PzSniper
22nd September 2009, 01:27
Ok, seems there's another problem when i try to analyze video file:

http://i36.tinypic.com/2d7de1k.jpg

I'm sure my RAM is fine...what could be? TIVTC.dll IS inside folder.

Sorry but this time i don't understand your first part
Since neuron2's tools handle this stream, you might ask him if he knows of any DirectShow filters that can handle it for playing back the file. It's worth trying using both Haali's Media Splitter and the MPC-HC built-in TS splitter as source filters in case one of them already works.

i'm not so technical heheh...

Inspector.Gadget
22nd September 2009, 01:29
Apparently the two players that failed to play the file don't support TS streams without a certain sort of index. Perhaps MPC-HC contains an internal filter or Haali Media Splitter has a filter feature that will allow them to handle the file. Try and see.

Post the AVS Script that generates that error (before you run interlacing analysis).

PzSniper
22nd September 2009, 01:33
Until now only KMPlayer 2.9.4.1435 seems be able to play .trp file.

Tried TSDoctor 0.99 Beta Eng now... and here's the results:

http://i38.tinypic.com/28h3jav.jpg

what should i do now with it? Push START and save a .ts file?

PzSniper
22nd September 2009, 02:11
Post the AVS Script that generates that error (before you run interlacing analysis).

here is the script AFTER i click save on deinterlacing error:

AVCSource("J:\Archivio REC\Nationalgeo Hd @1231b791\Nationalgeo Hd @1231b791.Joined.dga")
#deinterlace
#crop
#resize
#denoise


this is the script WITHOUT getting the error and not trying to analyze:

AVCSource("J:\Archivio REC\Nationalgeo Hd @1231b791\Nationalgeo Hd @1231b791.Joined.dga")
#deinterlace
#crop
LanczosResize(1920,1080) # Lanczos (Sharp)
#denoise

Here's also DG log:
Stream Type: Transport [188]
Profile: Main
Level: 4
Frame Size: 1920x1080
SAR: 1:1
Display Size: 1920x1080
Frame Rate: 25.000000 fps
Colorimetry: BT.709 [1]
Frame Structure: Fields (TFF)
Frame Type: not yet
Coded Number: 79976
Playback Number: 79976
Frame Repeats: 0
Field Repeats: 0
Bitrate: 2.858
Bitrate (Avg): 8.863
Bitrate (Max): 20.330
Audio Stream: 9d3: AC3 2/0 48 192
Elapsed: 0:04:33
Remain: 0:00:01
FPS:
Info: Finished!

Inspector.Gadget
22nd September 2009, 02:20
Why the resize line? No need if you're keeping the original size.

Try grabbing the latest TIVTC here: http://web.missouri.edu/~kes25c/ or forcing reinstallation from MeGUI's update menu. See if the problem persists.

I haven't ever used TS Doctor. Try either "patch" or "Start", and check that website's discussion thread for more information.

PzSniper
22nd September 2009, 02:27
You red resize data because on HD suggested size wan't satisfactory to me, so i wrote it back manually 1920x1080.

Ok i thought same, going to download dll from website, reinstalling from "update" menu didn't worked to fix issue.

Tested another .trp HD stream and give me same error... so this file isn't corrupted.

Inspector.Gadget
22nd September 2009, 02:30
Just don't check "resize" at all to avoid needing to do that.

Another thought about the memory error: Are you using DGAVCIndex and DGAVCDecode.dll from the same package? If you aren't sure, download the zip from Neuron2's website and manually replace the contents of the dgavcindex directory and overwrite the DGAVCDecode.dll in the Avisynth\plugins folder.

Edit: You don't need anything from the DGAVCIndexNV package, only the non-NV package.

PzSniper
22nd September 2009, 03:01
I'm really blocked here, dunno wat to try... but i'm happy you are here...

What if i try to "update" MeGui to the lastest version of: Avisynth 2.5.8?

Ok, i've dgmpgdec155 and dgavcdec109 in another folder outside megui folder, now i'll try to overwrite those in Avisynth\plugins folder...

PzSniper
22nd September 2009, 03:08
Nothing, still get this error... i'm stuck!

Should i try a clean megui reinstall? update avisynth? what?

PzSniper
22nd September 2009, 03:19
Apparently the two players that failed to play the file don't support TS streams without a certain sort of index. Perhaps MPC-HC contains an internal filter or Haali Media Splitter has a filter feature that will allow them to handle the file. Try and see.

Post the AVS Script that generates that error (before you run interlacing analysis).

Media Player Classic - Home Cinema, GOM play only audio... tried right now. But i'm going to use KMPlayer for preview, its0 the only one play those h264 HD .trp files.

neuron2
22nd September 2009, 03:24
You need to stay focused on one problem. You've got multiple things going here.

Regarding your error, post a link to an UNPROCESSED sample stream file that we can use to duplicate your issue.

PzSniper
22nd September 2009, 03:28
You need to stay focused on one problem. You've got multiple things going here.

Regarding your error, post a link to an UNPROCESSED sample stream file that we can use to duplicate your issue.

Thank you for joining topics neuron2, the main problem remain Megui encoding issue.

Loading a sample, well... the smallest one it's 136.112mb... even if i start to u/l it now would take too long, 3.28Am here.
Let's continue tomorrow, file will be on RapidShare then.

Thank you very much for your contributions guys.

neuron2
22nd September 2009, 03:31
Please use mediafire.com and not RapidShare. Thank you.

PzSniper
22nd September 2009, 03:39
Please use mediafire.com and not RapidShare. Thank you.

Oh too bad, becasue i've a Premium account on rapidshare so uplaoad would be faster, but... ok, will upload to mediafire as needed.

See you tomorrow, take care guys.

Nite

Ghitulescu
22nd September 2009, 14:42
It might sound off-topic, but have you ever considered these simple steps:

1. convert the TRP to MPG
2. cut it with say Womble or Cuttermaran (you can check if these tools accept TRP as input so you can skip step 1.)
3. patch the first header to 720x576i with DVDpatcher
4. author the DVD
5. repatch the files back to 544x576i
6. burn the DVD
The result should play in any DVD/BD player that respects the MPEG-2 flags and copes with longer GOPs (as it may be the case with UK DVB-T). Since you do only transfers and no encodings, it will work at the transfer speeds of your HDDs :) say 20 minutes for 1 full DVD, longer if you have to cut out the ads.

With a TRP file under 3 Mbps (according to your log in post #1) you won't gain any significant space reduction by recoding to divx (max. 1:2) but a considerably gain of processing time (;)) depending on the CPU...

PzSniper
22nd September 2009, 20:26
Please use mediafire.com and not RapidShare. Thank you.

here we are http://www.mediafire.com/download.php?ny2mjji4muy download sample please.

@Ghitulescu
Thank for your post but i'm not going to burn DVDs just make xvid files. MeGui procedure Gadget told me works very well and just take max 3 hrs per 1hr show to get a complete file (alredy cut and ready to play).

I only have probvlems with.trp h264 HD streams

neuron2
22nd September 2009, 22:47
OK, now I have the file.

Now please tell me step-by-step what I need to do to create your error. If it involves MEGUI, tell me where to get the version you are using.

PzSniper
22nd September 2009, 23:00
OK, now I have the file.

Now please tell me step-by-step what I need to do to create your error. If it involves MEGUI, tell me where to get the version you are using.

Thank to be back neuron2, hope gadget will join us later...

1- Use dgavcdec109
2- open megui, and start avisynth script creator
3- drop .dga file in
4- go to Filters and push Analyze.

*bump* error popup.

I did a brief description b/c you know the tools :)

neuron2
22nd September 2009, 23:12
I specifically asked where to get the MEGUI you are using. I am not going to keep asking you for things twice.

Second, this stream mixes MBAFF and PAFF and so you cannot decode it properly with DGAVCDec. You need DGAVCDecNV.

PzSniper
22nd September 2009, 23:31
I specifically asked where to get the MEGUI you are using. I am not going to keep asking you for things twice.

Second, this stream mixes MBAFF and PAFF and so you cannot decode it properly with DGAVCDec. You need DGAVCDecNV.

Oh ok, i'll try DGAVCDecNV Version 1.0.13 in few mins.

Sorry, i just missed that part: MuGui came from here http://sourceforge.net/projects/megui/ latest .1056 release.

Any luck with your TRP encoding yet?

PS:
Donald, don't be so angry with me, already stated i'm a noob on video encoding..c'on :) *hugs*

PzSniper
22nd September 2009, 23:34
No, dropping my HD .trp on DGAVCDecNV complains abt a missing "license"...what's that? O_o

PzSniper
22nd September 2009, 23:47
No, dropping my HD .trp on DGAVCDecNV complains abt a missing "license"...what's that? O_o

Ok check PM here, i gave you my 15$ bucks for the "development support" heheh.

Hope this will solve my problems, and i'm quite happy to help you developing amazing tools like this.

Now i become a registered supporter of neuron2.net, can i ask you which are the other "licensed tools" you wrote?

PS:
I suggest you to add on missing license nag some more text lines like:

This program requires a license that you can obtain from me by donating $15.00 to become a registered supporter of neuron2.net.
Purchase it at: http://neuron2.net/dgavcdecnv/dgavcdecnv.html

that would be more user friendly hehe :)

neuron2
23rd September 2009, 00:41
I hope you have a supported Nvidia graphics card. Which one do you have?

PzSniper
23rd September 2009, 20:46
I hope you have a supported Nvidia graphics card. Which one do you have?


8800 GTS 320Mb latest forceware

Oh god... -_- another problem...

neuron2
23rd September 2009, 21:11
That card is not supported as it has a VP1 engine.

http://en.wikipedia.org/wiki/PureVideo#Table_of_PureVideo_.28HD.29_GPUs

Would you like me to refund your donation?

PzSniper
23rd September 2009, 22:09
That card is not supported as it has a VP1 engine.

http://en.wikipedia.org/wiki/PureVideo#Table_of_PureVideo_.28HD.29_GPUs

Would you like me to refund your donation?

Oh great!
It's not about money, just send me the license b/c i'm gonna change my whole pc in 1 months, it's becase now i dunno how to index those trp!

e, help me... suggest me somether way to create a working files form MeGui like NON HD trp.. please :(

It's 3rd time i ask you how went with TRP file you downloaded..please tell me something sinceu wrote before "not going to keep asking you for things twice." :P

neuron2
23rd September 2009, 22:37
Oh great!
It's not about money, just send me the license b/c i'm gonna change my whole pc in 1 months, it's becase now i dunno how to index those trp! I need the machine ID to make the license, so if you don't have the machine yet I can't give you the license. It won't work with your current graphics card.

e, help me... suggest me somether way to create a working files form MeGui like NON HD trp.. please :( Use DSS2() as your source filter.

It's 3rd time i ask you how went with TRP file you downloaded..please tell me something sinceu wrote before "not going to keep asking you for things twice." :P It decodes perfectly with DGAVCDecNV as I expected. I haven't had time to look at the problem with the analysis in MEGUI, but who cares anyway? The analysis feature is unreliable and, IMHO, should be avoided anyway because you can do a much better job using your own eyes and brain.

PzSniper
23rd September 2009, 23:52
I Use DSS2() as your source filter.


Can you "elaborate" this?

Inspector.Gadget
24th September 2009, 00:03
DSS2 is DirectShowSource 2. Unlike the original DSS, it is frame-accurate. If it matters, DSS2 does not do audio. The required plugin is called AVSS.dll and comes with the download of Haali's Media Splitter - simply copy it to your Avisynth\plugins folder and invoke it in your script as follows:

DSS2("C:\Users\PzSniper\Myfile.trp")

Because it does not do audio, you'll have to do something else if you want to re-encode audio; either:

1) Use eac3to to demux the audio from your source TS (TRP) and load it into MeGUI's audio section as usual; -OR-
2) Open your source TS directly in the audio section and see if MeGUI's behind-the-scenes use of DirectShowSource works to pass the data to your chosen audio encoder.

The no PAT/PMT thing may mess either of these methods up; neuron2 will of course know more about that than I do.

PzSniper
24th September 2009, 00:10
DSS2 is DirectShowSource 2. Unlike the original DSS, it is frame-accurate. If it matters, DSS2 does not do audio. The required plugin is called AVSS.dll and comes with the download of Haali's Media Splitter - simply copy it to your Avisynth\plugins folder and invoke it in your script as follows:



Because it does not do audio, you'll have to do something else if you want to re-encode audio; either:

1) Use eac3to to demux the audio from your source TS (TRP) and load it into MeGUI's audio section as usual; -OR-
2) Open your source TS directly in the audio section and see if MeGUI's behind-the-scenes use of DirectShowSource works to pass the data to your chosen audio encoder.

The no PAT/PMT thing may mess either of these methods up; neuron2 will of course know more about that than I do.


Ok thanx lot Inspector, for now i'm not going to change my pc for 1 month or 2, ater that will use the tool of neuron2 i've already bought.

I'm going thru the 1 option and report back.

Thanx!

PS:
when you have time, please, downlaod my sample and process it... hope you don't mind..

neuron2
24th September 2009, 00:14
Bear in mind that to use DSS2() you'll need a functioning DirectShow decoder for AVC video.

when you have time, please, downlaod my sample and process it... hope you don't mind.. How would that help you?

PzSniper
24th September 2009, 00:18
Bear in mind that to use DSS2() you'll need a functioning DirectShow decoder for AVC video.


Ehm, you are very helpful guys and can't thank you both enought.

But i'm lost here how do i user thso"DSS2("C:\Users\PzSniper\Myfile.trp") " on the script, now i put avss.dll inside plugin folder...

please be good, talk like a 5yo children hehe...

DirectShow decoder for AVC? How do i get it?

neuron2
24th September 2009, 00:36
Moved to Newbies and removed "[RESOLVED]" in the title.

Inspector.Gadget
24th September 2009, 00:44
But i'm lost here how do i user thso"DSS2("C:\Users\PzSniper\Myfile.trp") " on the script, now i put avss.dll inside plugin folder...

You can use that as the first line of a script that you make in Notepad. Alternately, open your TRP directly in MeGUI's Avisynth script creator and set up all your processing BUT before encoding replace MeGUI's DirectShowSource() line entirely with DSS("") pointing to your source file between the quotes.

DirectShow decoder for AVC? How do i get it?

Download and install ffdshow-tryouts latest 32-bit build from the SourceForge page. In "video encoder configuration", under the "Codecs" tab, set the decoder for AVC/H.264 to be "ffmpeg-mt". Make sure none of the processing filters are checked and that in the "Ouput" tab YV12 is checked and I420/IYUV is unchecked.

PzSniper
24th September 2009, 02:16
You can use that as the first line of a script that you make in Notepad. Alternately, open your TRP directly in MeGUI's Avisynth script creator and set up all your processing BUT before encoding replace MeGUI's DirectShowSource() line entirely with DSS("") pointing to your source file between the quotes.


I'm stuck here, it complains can't find the Nationalgeo Hd @1231a894.demuxed.avi file, and tha's true coz DGAVCIndex gave me Nationalgeo Hd @1231a894.demuxed.264

DSS2("J:\Archivio REC\Nationalgeo Hd @1231a894\Nationalgeo Hd @1231a894.dga")
Load_Stdcall_Plugin("V:\Program Files\megui\tools\yadif\yadif.dll")
Yadif(order=1)
#crop
#resize
#denoise


This happen when i click SAVE on script.

***UPDATE***
Weird, i restarted the process and now MeGUi accepted the scrip, fine, but can i use Nationalgeo Hd @1231a894 PID 9d3 3_2ch 48KHz 384Kbps DELAY -1127ms.ac3 created by DGAVCIndex on audio field?

Inspector.Gadget
24th September 2009, 02:28
Yes, that will be fine on the audio. And you don't need to demux any video when encoding a source indexed with DGAVCIndex! Demux the audio, and load the project file; leave the video in the container.

Inspector.Gadget
24th September 2009, 02:34
Also, I follow this thread. In all likelihood I will be automatically alerted before checking my private messages.

neuron2
24th September 2009, 03:14
I don't know about you PzSniper. You just don't LISTEN.

I told you not to use DGAVCDec on this as it will not decode it properly.

We also told you to use DSS2() on your transport stream, not on an AVI or DGA file.

I'm going to recuse myself until you show some signs of paying attention.

PzSniper
24th September 2009, 03:24
Ok now i've finished, encoding seems fine but video quality is not, unfortunately i have video artifacts, so please judge yourself downloading it here: http://rapidshare.com/files/284165904/Nationalgeo_Hd__1231a894-muxed.avi

General
Complete name : J:\Archivio REC\Nationalgeo Hd @1231a894\Nationalgeo Hd @1231a894-muxed.avi
Format : AVI
Format/Info : Audio Video Interleave
Format profile : OpenDML
File size : 26.4 MiB
Duration : 1mn 59s
Overall bit rate : 1 849 Kbps
Writing application : AVI-Mux GUI 1.17.7, Aug 8 2006 20:59:17

Video
ID : 0
Format : MPEG-4 Visual
Format profile : AdvancedSimple@L5
Format settings, BVOP : Yes
Format settings, QPel : No
Format settings, GMC : No warppoints
Format settings, Matrix : Default (H.263)
Muxing mode : Packed bitstream
Codec ID : XVID
Codec ID/Hint : XviD
Duration : 1mn 59s
Bit rate : 1 722 Kbps
Width : 1 920 pixels
Height : 1 080 pixels
Display aspect ratio : 16:9
Frame rate : 25.000 fps
Resolution : 24 bits
Colorimetry : 4:2:0
Scan type : Progressive
Bits/(Pixel*Frame) : 0.033
Stream size : 24.6 MiB (93%)
Writing library : XviD 1.2.1 (UTC 2008-12-04)

Audio
ID : 1
Format : MPEG Audio
Format version : Version 1
Format profile : Layer 3
Codec ID : 55
Codec ID/Hint : MP3
Duration : 1mn 58s
Bit rate mode : Variable
Bit rate : 115 Kbps
Nominal bit rate : 128 Kbps
Channel(s) : 2 channels
Sampling rate : 48.0 KHz
Resolution : 16 bits
Stream size : 1.63 MiB (6%)
Alignment : Aligned on interleaves
Interleave, duration : 24 ms (0.60 video frame)
Interleave, preload duration : 200 ms
Title : Nationalgeo Hd @1231a894 PID 9d3 3_2ch 48KHz 384Kbps DELAY 0ms
Writing library : LAME3.98r
Encoding settings : -m j -V 4 -q 2 -lowpass 17 --abr 128




Video came from 136mb TRP to 27mb XVID :)
For now i've preferred encofinh it as normal divx/mp3 we did until now, after i will tweak process as you taught me on second page :)

Thanx as always Inspector

@neuron2

Please stop treating me like an idiot, if you do not wish to *waste* time helping me out just click other topics, i stated i'm new, i'm not motherenglish, i need patience, i don't know very well tools and yout techy terms. Inspector gadget maybe isn't expert like you but have something you sometimes miss reading your words: kind and patience.
Tak o offence from my word, i'm just tired to read "hate" underlines when you talk to me on PM or Board.

back in topic..

DGAVCDec is my only option...
i've thought to use DSS2 on my .trp AFTER DGAVCDec demux...ok, i did a mistake, maybe i misunderstood something... that's all. I dunno why, but in someway it worked anyway, program complained abt an avi, but maybe it just need a restart, so don't care.

Now, if you wish take a look at the final avi, in meantime i will try this procedure on TRP directly.

Apologies if i'm so "stupid" -_-

PzSniper
24th September 2009, 03:28
Dropping .trp into MeGui Avisynth script creator video imput,program show this:

Unable to render the file. You probably don't have the correct filters installed.

Should i just ignore it? I can't set any option then, they are all greyed out.

PzSniper
24th September 2009, 20:47
Inspector.Gadget i did what you said, now i'm back from work and i can't continue coz, as you read above, last night used DSS2() on my trp but MeGui won't let me. Something wrong happened, please help :(

Inspector.Gadget
24th September 2009, 21:04
Unable to render the file. You probably don't have the correct filters installed.

You need a DirectShow H.264 decoder. Install botH Haali Media Splitter and ffdshow-tryouts latest (make sure to configure it as I described at 18:44)

Inspector.Gadget
24th September 2009, 21:05
Also:

Bit rate : 1 722 Kbps
Width : 1 920 pixels
Height : 1 080 pixels


The quality here has got to be AWFUL. Either vastly shrink the frame dimensions or vastly increase the bitrate.

PzSniper
24th September 2009, 21:14
You need a DirectShow H.264 decoder. Install botH Haali Media Splitter and ffdshow-tryouts latest (make sure to configure it as I described at 18:44)

Above all, thanx for coming here Inspector, as always...

I've already installed Haali Media Splitter 1.9.42.1 and ffdshow rev3055 2009.08-16.

Should i unistall ffdshow install ffdshow-tryouts?

Inspector.Gadget
24th September 2009, 21:15
No, that's fine: newer ffdshow updates ARE part of the ffdshow-tryouts fork. Make sure to configure it as above and then try your script again (making sure to modify it to use DSS2 after detecting interlacing, etc.)

PzSniper
24th September 2009, 21:40
In "video encoder configuration", under the "Codecs" tab, set the decoder for AVC/H.264 to be "ffmpeg-mt". Make sure none of the processing filters are checked and that in the "Ouput" tab YV12 is checked and I420/IYUV is unchecked.

All setting were as you write by stock... so this isn't a problem because error happened anyway.

Try other ffdshow? I set DSS2 even befoe but deinterlacing has to be set manully following same of NOT HD .TRP option.

So now, i'm running out of option..

Inspector.Gadget
25th September 2009, 01:28
What error are you getting?

Also, I misspoke: do all that in the video decoder configuration (I hope you caught my error).

PzSniper
25th September 2009, 01:32
Tried to write AVS script manually and just loading it directly into MeGui

DSS2("J:\Archivio REC\Nationalgeo +1 @12443adb\Nationalgeo Hd @1231a894.trp")
Load_Stdcall_Plugin("V:\Program Files\megui\tools\yadif\yadif.dll")
Yadif(order=-1)
#crop
#resize
#denoise

This give me "Can't open...bla bla... Nationalgeo +1 @12443adb.trp: 80040216 Error" on .trp file when script is dragged inside MeGui AVS fiels

IDEA!
Should i add "LoadPlugin("C:\Program Files\AviSynth 2.5\plugins\avss.dll")" somewhere?

neuron2
25th September 2009, 01:56
If you were missing the plugin you would have got a different error message.

I tried your sample with both DirectShowSource() and DSS2() in conjunction with CoreAVC, and with both the transport stream and the demuxed elementary stream. I could not get either one to work. I don't know why and it's not my code so please don't ask me to do anything about it. Haali is the guy.

However, DGAVCDecNV handles it perfectly. So go out and buy a supported Nvidia card. You can get them for $50 and up.

PzSniper
25th September 2009, 02:07
If you were missing the plugin you would have got a different error message.

I tried your sample with both DirectShowSource() and DSS2() in conjunction with CoreAVC, and with both the transport stream and the demuxed elementary stream. I could not get either one to work. I don't know why and it's not my code so please don't ask me to do anything about it. Haali is the guy.

However, DGAVCDecNV handles it perfectly. So go out and buy a supported Nvidia card. You can get them for $50 and up.

Thank you very very much for your time on this topic (and have dl my sample to process), i hope at least it could be useful for other ppl here, we have reached a decent 1000+ visit :)

Ok Neuron2 at this point i'm going to put this project on HOLD until i'll upgrade my whole pc. I'm not hurry to decode those TRP they can wait (wasting 50€ isn't wise, i fortunately don't have money problem, but wasting is bad.). I'm happy to have bought DGAVCDecNV and will contact you when new GPU will be here.

I also wish to say: thank you very very much Inspector Gadget, you helped me from beginning and every small steps forward on a/v coding knoweldge it's a great goal for me.

I'm sure we will read us soon again guys.

Out.

Inspector.Gadget
25th September 2009, 02:33
One last thing to try: Gabest's MPEG-TS splitter instead of Haali's.

neuron2
25th September 2009, 02:53
I don't think it's the splitter, because the ES would also not open.

Inspector.Gadget
25th September 2009, 03:29
OK, thanks for the clarification.

Inspector.Gadget
25th September 2009, 07:08
Messed around with the sample tonight and found the following:

If you demux the video stream with eac3to to a new MKV, and open that in MeGUI's AVS script creator using DirectShowSource (which calls Haali's Media Splitter -> CoreAVC Video Decoder), your source can be opened in MeGUI. Seeking works fine with DSS so I think frame accuracy with DSS2 should be OK. Here's the problem: as neuron2 mentioned above, this stream contains some types of interlacing. Normally, CoreAVC can decode them without fail. In the present case, using the script creator, CoreAVC will decode the video fine but will not apply deinterlacing regardless of the settings used - even though, AFAIK, the interlacing information is all still present in the H.264 stream.

So you can open the newly muxed MKV with DSS2 and then call YADIF or whatever, but this remains a subpar situation because YADIF is "dumb" relative to the decoder in DGIndexNV and will read interlacing information from Avisynth rather than from the stream.

Edit: TS Doctor does nothing but crash on my Vista Home Premium x64 SP2 install so I have been unable to find out whether that might allow for more direct workarounds - which would presumably still leave you with the MBAFF decoding issue.

PzSniper
29th September 2009, 21:02
However, DGAVCDecNV handles it perfectly. So go out and buy a supported Nvidia card. You can get them for $50 and up.

I'm back... hi neuron2,

As you know today at my office pc i tried to process file with DGAVCDecNV ans worked fine on 8600GT.

So app gave me:

Nationalgeo Hd @12305897.Joined.demuxed.264
Nationalgeo Hd @12305897.Joined.dga
Nationalgeo Hd @12305897.Joined PID 9d3 3_2ch 48KHz 384Kbps DELAY -1143ms.ac3

what should i do now? Which steps with MeGui?

PS:
Tried to drag .dga to megui avs script but give me this:
http://i37.tinypic.com/wa3tso.jpg

Can i ask you to be more detailed on what you did last night with my trp?

neuron2
30th September 2009, 00:39
I don't support MEGUI but I can tell you that you may need to configure it to point to the correct components. You should go to the MEGUI thread for support. Are you aware that you can do things manually without MEGUI?

Also, don't try to drag a DGA file to MEGUI. Just open your AVS script in the usual way. Forget the script creator and all that silliness.

I now deprecate anything but NV beta 10. I explained in email to you how to make that work. Upgrade to the latest Nvidia driver. If that is not possible, then set UseD3D=1.

Regarding your clip, I simply opened it in DGAVCIndexNV beta 10 and played it.

PzSniper
30th September 2009, 01:32
I don't support MEGUI but I can tell you that you may need to configure it to point to the correct components. You should go to the MEGUI thread for support. Are you aware that you can do things manually without MEGUI?

Also, don't try to drag a DGA file to MEGUI. Just open your AVS script in the usual way. Forget the script creator and all that silliness.


Ehm... sorry but i tried something following your post above but can't process file as i did before errors errors errors... can you help me following me to avoid issues and errore manually? Or at least create a sample .avs to load into MeGui (Inspector.Gadget?)

neuron2
30th September 2009, 01:39
You have to tell us what you did and what the errors were.

Manual operation is easy.

1. Open your TRP in DGAVCIndexNV.

2. Save Project.

3. Make AVS script as described in Quick Start guide.

4. Start the CUVIDServer.

5. Run x264.exe on the AVS script. Or HCEnc if you want to make MPEG2.

6. Mux resulting 264 file with the audio into MKV using mkvtoolnix.

Try that and say when you run into a problem and what it is. I'm here all night and will try to keep you moving along.

PzSniper
30th September 2009, 02:06
Oh thanx a lot for your support neuron2, but before starting process, i need to ask if on these steps it's needed the supported GPU as usual, if so, i need to postpone everythings tomorrow morning at my office.

Since i already have Nationalgeo Hd @12305897.Joined.demuxed.264 and .ac3 can i jump straight to step 6? I wish to have a normal MPEG2 Xvid with HD res 1920x1080 and high bitrate (8000?).

neuron2
30th September 2009, 02:20
Since i already have Nationalgeo Hd @12305897.Joined.demuxed.264 and .ac3 can i jump straight to step 6? I wish to have a normal MPEG2 Xvid with HD res 1920x1080 and high bitrate (8000?). First, there is no such thing as an MPEG2 Xvid. Xvid is MPEG4. So tell me what you really want: MPEG2 or Xvid.

Either way, you cannot jump straight from a demuxed 264 elementary stream to MPEG2 or Xvid. You have to do the transcoding. Transcoding requires decoding the source and then encoding the target file. This is what will happen:

Decoding: use DGAVCDecodeNV DLL via the AVS script. This will run on the GPU.

Encoding: Open the AVS script in the encoder you want.

BTW, you did not need to demux the video and it will not be used in the process. DGAVCDecodeNV will read from the transport stream.

PzSniper
30th September 2009, 02:34
First, there is no such thing as an MPEG2 Xvid. Xvid is MPEG4. So tell me what you really want: MPEG2 or Xvid.

Sorry, just a typo, i meant Xvid MPEG4, like all files i've encoded since now.


Decoding: use DGAVCDecodeNV DLL via the AVS script. This will run on the GPU.

Encoding: Open the AVS script in the encoder you want.


Ok that's the problem, so i can't run this on my home pc.. too bad, need to keep free time tomorrow at office then.

I tried to open this:

LoadPlugin("F:\Archivio File\C-Tech 5000 HD Combo Plus\LINK CONVERSIONE\dgavcdecnv1013\DGAVCDecodeNV.dll")
AVCSource("J:\Archivio REC\Nationalgeo Hd @12305897\Nationalgeo Hd @12305897.Joined.dga")
#deinterlace
#crop
LanczosResize(1920,1080) # Lanczos (Sharp)
#denoise

into VirtualDub-1.9.6 but i can't with this old GPU. Can you at least tell me if this script would work?

For the audio is this one correct?
LoadPlugin("...\DGAVCDecodeNV.dll")
video=AVCSource("Nationalgeo Hd @12305897.Joined.dga")
audio=AC3Source("Nationalgeo Hd @12305897.Joined PID 9d3 3_2ch 48KHz 384Kbps DELAY -1143ms.ac3")
AudioDub(video,audio)

What abt usual deinterlace i applied before? See post above, 23rd on 2nd page. This videos come directly from Sky broadcast.

Last step, i've read this into your guide: "If you just want to make an AVI out of your video, it's easy. Open the AVS in VirtualDub, set your compression, and do Save AVI". This is for me right?

neuron2
30th September 2009, 02:57
I tried to open this:

LoadPlugin("F:\Archivio File\C-Tech 5000 HD Combo Plus\LINK CONVERSIONE\dgavcdecnv1013\DGAVCDecodeNV.dll")
AVCSource("J:\Archivio REC\Nationalgeo Hd @12305897\Nationalgeo Hd @12305897.Joined.dga")
#deinterlace
#crop
LanczosResize(1920,1080) # Lanczos (Sharp)
#denoise

into VirtualDub-1.9.6 but i can't with this old GPU. Can you at least tell me if this script would work? I've already told you twice to use NV beta 10. This is the third time. Download it and use the documents and executables from the NV beta 10 ZIP.

For the audio is this one correct?
LoadPlugin("...\DGAVCDecodeNV.dll")
video=AVCSource("Nationalgeo Hd @12305897.Joined.dga")
audio=AC3Source("Nationalgeo Hd @12305897.Joined PID 9d3 3_2ch 48KHz 384Kbps DELAY -1143ms.ac3")
AudioDub(video,audio) See above.

What abt usual deinterlace i applied before? See post above, 23rd on 2nd page. This videos come directly from Sky broadcast. To deinterlace, either enable it with the DGSource() call, or add an external one in your script.

Last step, i've read this into your guide: "If you just want to make an AVI out of your video, it's easy. Open the AVS in VirtualDub, set your compression, and do Save AVI". This is for me right? Yes.

PzSniper
30th September 2009, 18:06
To deinterlace, either enable it with the DGSource() call, or add an external one in your script.


Please elaborate this with an example script...

Ok now i'm at office and did this:

1- Got Nationalgeo Hd @12319ba8.Joined.trp and processed with DGAVCIndexNV.exe beta, it opens and play fine.

2- It gave me Nationalgeo Hd @12319ba8.Joined.dga, Nationalgeo Hd @12319ba8.Joined.trp and Nationalgeo Hd @12319ba8 PID 9d3 3_2ch 48KHz 384Kbps DELAY -759ms.ac3

here's the log:

Stream Type: Transport [188]
Profile: Main
Level: 4
Coded Size: 1920x1088
SAR: 1:1
Display Size: 1920x1080
Frame Rate: 25.000000 fps
Colorimetry: BT.709 [1]
Frame Structure: Fields (TFF)
Frame Type: P
Coded Number: 79745
Playback Number: 79745
Frame Repeats: 0
Field Repeats: 0
Bitrate: 4.701
Bitrate (Avg): 8.803
Bitrate (Max): 19.764
Audio Stream: 9d3: AC3 3/2 48 384
Elapsed: 0:01:59
Remain: 0:00:00
FPS:
Info: Finished!


3- Following DGAVCDecNV Quick Start Guide Version 1.0.13, manually created this script:

LoadPlugin("E:\NVbeta\DGAVCDecodeNV.dll")
AVCSource("E:\Nationalgeo Hd @12319ba8\Nationalgeo Hd @12319ba8.Joined.dga")

4- Started the CUVID Server

6- Dragging into VirtualDub 1.9.6.. DOESN'T WORK... here's the error:
http://i38.tinypic.com/j7c8ba.jpg

I can't continue...

PS:
I don't have nvcuvid.dll inside your .zip just got it from my nvidia driver version: 8.16.11.9103 dated 19/09/2009
I moved DGDecodeNV.dll to C:\Program Files\AviSynth 2.5\plugins to be sure.

neuron2
30th September 2009, 19:42
I assume you are using NV beta 10 as I asked.

Then, you need this script:

LoadPlugin("E:\NVbeta\DGDecodeNV.dll")
DGSource("E:\Nationalgeo Hd @12319ba8\Nationalgeo Hd @12319ba8.Joined.dga")

Sorry, I have the wrong QuickStart guide in the ZIP file. I'll fix that tonight.

If the DLL is in plugins, then omit the LoadPlugin() call.

PzSniper
30th September 2009, 21:16
Thanx neuron2, but i must wait tomorrow morning to test this... will report back

PzSniper
28th October 2009, 23:00
Hi Neuron,

As you know i'm back with new rig and GTX295 VC4.

My file is Discovery Hd @12334954 .trp

Read all my previous steps and did the same as i wrote 2 post above: 30th September 2009, 18:06

Well, obviously used dgdecnv200b1 and saved only file, NOT demuxed.

After i've got this:

Discovery Hd @12334954 PID 5dd 3_2ch 48KHz 384Kbps DELAY -1694ms.ac3
Discovery Hd @12334954.dga

Stream Type: Transport [188]
Profile: Main
Level: 4
Coded Size: 1920x1088
SAR: 1:1
Display Size: 1920x1080
Frame Rate: 25.000000 fps
Colorimetry: BT.709 [1]
Frame Structure: MBAFF
Frame Type: B
Coded Number: 8367
Playback Number: 8367
Frame Repeats: 0
Field Repeats: 0
Bitrate: 8.261
Bitrate (Avg): 6.663
Bitrate (Max): 14.301
Audio Stream: 5dd: AC3 3/2 48 384
Elapsed: 0:00:17
Remain: 0:00:00
FPS:
Info: Finished!


Created script like this:
LoadPlugin("F:\Archivio File\C-Tech 5000 HD Combo Plus\LINK CONVERSIONE\dgdecnv200b1\DGAVCDecodeNV.dll")
DGSource("F:\1- AV SOSPESI\Discovery Hd @12334954\Discovery Hd @12334954.dga")

i also dropped DGAVCDecodeNV.dll inside: C:\Program Files\AviSynth 2.5\plugins AND into F:\Archivio File\C-Tech 5000 HD Combo Plus\LINK CONVERSIONE\VirtualDub-1.9.6\plugins

After loading it on Virtualdub gave same error...

please, help... :(

PS:
CUVIDServer.exe Often crash, dunno why...
Faulting application name: CUVIDServer.exe, version: 0.0.0.0, time stamp: 0x4ae390f0
Faulting module name: nvcuvid.dll, version: 8.16.11.9107, time stamp: 0x4ac006e3
Exception code: 0xc0000005
Fault offset: 0x0002527a
Faulting process id: 0x8bc
Faulting application start time: 0x01ca581ad07831a9
Faulting application path: F:\Archivio File\C-Tech 5000 HD Combo Plus\LINK CONVERSIONE\dgdecnv200b1\CUVIDServer.exe
Faulting module path: C:\Windows\system32\nvcuvid.dll
Report Id: 53c74988-c40e-11de-9b12-90e6ba6031a9

Running 191.07 Forceware on Windows 7 Retail.
nvcuvid.dll is 8.16.11.9107

neuron2
28th October 2009, 23:58
There is no DGAVCDecodeNV.dll in the 200b1 distribution.

Why are you using it?

Use DGDecodeNV.dll from the ZIP file.

PzSniper
29th October 2009, 18:43
You are right it was just a typo since i copied from old script, here's new fixed .avs

LoadPlugin("F:\Archivio File\C-Tech 5000 HD Combo Plus\LINK CONVERSIONE\dgdecnv200b1\DGDecodeNV.dll")
DGSource("F:\1- AV SOSPESI\Discovery Hd @12334954\Discovery Hd @12334954.dga")

When dragged into Virtualdub mouse waiting pointer appear and then CUVIDServer.exe crash.... i've installed Win 7 two days ago. Obviously also Nvidia drivers...

neuron2
30th October 2009, 00:27
Are you running the latest 200b1 CUDVIDServer?

Did you get rid of all copies of nvcuvid.dll that may be lying around except the one installed by the latest Nvidia driver?

You try the CUVIDClient sample application too, to see if that also crashes.

PzSniper
31st October 2009, 08:06
CUDVIDServer is the one incldued in the b1 zip modified: ‎24 ‎ottobre ‎2009, ‏‎19:42:42.

I've downloaded CUVID Server Version 2.0.0 beta 1 or CUVID Client Sample Application Version 2.0.0 beta 1 but, only files inside, how do i use them?

I don't have any OLDER driver since i've reinstalled WIn 7 from scratch and directly used 191.07. There's only 1 dll inside system32 folder.

neuron2
31st October 2009, 17:29
I forgot to put the executable in the CUVIDClient zip. It's there now.

Start the server and then the client. Try to open an elementary stream (*.264 not transport), step a few frames, and report what happens.

PzSniper
1st November 2009, 11:22
Hi,

I've downloaded file now but, here what i have

Discovery Hd @12334954 PID 5dd 3_2ch 48KHz 384Kbps DELAY -1694ms.ac3
Discovery Hd @12334954.dga
Discovery Hd @12334954.trp

so NO .x264 file.

How do i make it from .trp? Please help me step by step, i was used with MeGui so i'm not an expert yet :)

Here my system:
NVIDIA System Information report created on: 11/01/2009 11:21:03
System name: PZ-DESKTOP

[Display]
Processor: Intel(R) Core(TM) i7 CPU 920 @ 2.67GHz (2673 MHz)
Operating System: Windows 7 Ultimate, 32-bit
DirectX version: 11.0
GPU processor: GeForce GTX 295 (GPU 1 of 2)
Driver version: 191.07
Stream processors: 240
Core clock: 576 MHz
Shader clock: 1242 MHz
Memory clock: 1008 MHz (2016 MHz data rate)
Memory interface: 448-bit
Total available graphics memory: 1915 MB
Dedicated video memory: 896 MB
System video memory: 0 MB
Shared system memory: 1019 MB
Video BIOS version: 62.00.6C.00.01
IRQ: 35
Bus: PCI Express x16 Gen2
GPU processor: GeForce GTX 295 (GPU 2 of 2)
Driver version: 191.07
Stream processors: 240
Core clock: 576 MHz
Shader clock: 1242 MHz
Memory clock: 1008 MHz (2016 MHz data rate)
Memory interface: 448-bit
Total available graphics memory: 1915 MB
Dedicated video memory: 896 MB
System video memory: 0 MB
Shared system memory: 1019 MB
Video BIOS version: 62.00.6C.00.02
IRQ: 24
Bus: PCI Express x16 Gen2

[Components]

nvCpl.cpl 2.7.170.15 NVIDIA Control Panel Applet
nvCplUI.exe 2.7.170.15 NVIDIA Control Panel
nvWSS.dll 8.16.11.9107 NVIDIA Workstation Server
nvViTvS.dll 8.16.11.9107 NVIDIA Video and TV Server
NVSTVIEW.EXE 7.16.11.9107 NVIDIA GeForce 3D Vision
NVSTTEST.EXE 7.16.11.9107 NVIDIA 3D Vision Test Application
NVSTRES.DLL 7.16.11.9107 NVIDIA 3D Vision Module (4743138)
NVMCTRAY.DLL 8.16.11.9107 NVIDIA Media Center Library
nvDispS.dll 8.16.11.9107 NVIDIA Display Server
NVCPL.DLL 8.16.11.9107 NVIDIA Compatible Windows7 Display driver, Version 191.07
PhysX 09.09.0814 NVIDIA PhysX
NVCUDA.DLL 8.16.11.9107 NVIDIA CUDA 2.3 driver
nvGameS.dll 8.16.11.9107 NVIDIA 3D Settings Server

neuron2
1st November 2009, 13:27
Open it in DGAVCIndex -- NOT the NV version. Then hit the > button about 10-20 times so that video is showing, and then hit ]. Then do Save project and demux video. That will give you a small .264 file.

Then start the server. Then open the CUVID client and hit the AVC File button and select the .264 file. Then hit Step repeatedly until you either see video or something goes wrong.

PzSniper
1st November 2009, 18:50
Ok, i opened the .264 using client and hitting AVC File.

It opens, fist step i got a gree screen after many other button hit, i got correct image... only a portion.

Tell me next move Donald .

Thanx

neuron2
2nd November 2009, 00:41
Post a link to the stream that causes the CUVIDServer crash.

PzSniper
2nd November 2009, 21:11
It's 300mb trp file... is this upload really necessary?

Sorry to ask this Donald but... you know how much time has passed since i started this topic. Don't you have live chat account MSN, ICQ...? Maybe we can find a solution quicly then... we are going ahead 1 reply every 24hrs this way.

neuron2
2nd November 2009, 21:39
I don't do chat.

Use your head a little, cut the stream to a reasonable size but such that it still crashes the CUVID server.

PzSniper
2nd November 2009, 22:14
Thanx for the tips but i dunno what tool use to cut .trp... my head was just WAITING for instructions from you since i don't wanna do something stupid and have u bashing me. I did wrong anyway...

Reading board i've found this:
Demuxed the M2TS with xport
Imported 264 into AVI using AVC2AVI
Joined the AVIs using VDubMod, correcting framerate to 23.976 (AVC2AVI wrote 23.975 - no idea why).
Synced german audio tracks
Muxed AVI (with video only), DTS and AC3 tracks using MKVMerge

The video is fine and the file is seekable.

and

Now I managed to get Lucky Number Slevin into MKV.
EVO => EVODemux => 264 => avc2avi => AVI => VirtualDubMod => AVI with AC3 Audio => AVI-Mux GUI => MKV

It works but no DD+ Tracks possible. VDubMod won't import DD+, AVI-Mux GUI says it's AC3 and writed a track-header for it but won't include the audio data.
It is not possible to remux the mkv with mkvmerge. Crashes with malloc() error as always with H264 video.

This method does not work with The Interpreter.

http://forum.doom9.org/archive/index.php/t-124717.html

Could be avc2avi my key tool?

Also i found this tool
http://www.dvbportal.de/projects/mp4muxer/
Added .264 + .ac3 files togheder, muxed and gave me Discovery Hd @12334954.demuxed.mp4 that play nice, deinterlacing is the only problem left. I was just messing around while waiting for your answer...

what do u think?

neuron2
2nd November 2009, 23:44
Cut the original stream with DGSplit. I don't want anything else processed by other tools.

PzSniper
3rd November 2009, 19:30
Heres' the file re-uploaded and in his original format: http://www.mediafire.com/?edtfcafgjyq
Please Donald, tell me step by step what u do to get the final .avi + audio ac3 ok?
example:
1..
2..
3...

neuron2
3rd November 2009, 20:11
I've duplicated the crash with the file you uploaded.

Investigating...

neuron2
3rd November 2009, 22:52
OK, I found the problem. I'm making a 2.0.0b2 release. I'll upload it within an hour or so.

neuron2
3rd November 2009, 23:11
New version is online. Be sure to get rid of all your previous version stuff and re-index your projects.

Let me know of you can run your scripts now without crashing. If so, we'll go from there.