Log in

View Full Version : TRP to AVI video encoding help


Pages : [1] 2 3

PzSniper
17th September 2009, 01: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, 01: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, 01: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, 01: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, 01: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, 02: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, 02: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, 02: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, 03: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, 00: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, 00: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, 01: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, 01: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, 02: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, 02: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, 04: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, 21: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, 21: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, 22: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
18th September 2009, 23: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
18th September 2009, 23: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, 00: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, 12: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, 15: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
21st September 2009, 23: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
21st September 2009, 23:32
You must make sure that you have DGAVCDecode.dll in your Avisynth plugins directory.

PzSniper
21st September 2009, 23: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
21st September 2009, 23: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, 00: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, 00: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, 00: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, 00: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, 00: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, 00: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, 01: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, 01: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, 01: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, 01: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, 02: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, 02:08
Nothing, still get this error... i'm stuck!

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

PzSniper
22nd September 2009, 02: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.

Guest
22nd September 2009, 02: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, 02: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.

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

PzSniper
22nd September 2009, 02: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, 13: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, 19: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

Guest
22nd September 2009, 21: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, 22: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 :)

Guest
22nd September 2009, 22: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.