Log in

View Full Version : Trying to load 1080i h264 in avisynth


SamKook
7th April 2011, 06:21
I'm trying to encode a music video(1080i h264 in a .ts) to 720p and I'm having a hard time extracting the video from the .ts into something usable with avisynth.

I tried DGAVCdec, but the end result is full of glitches even if I don't apply any filters(which mean a simple 1080i to 1080i re-encode). I read somewhere in my many searches that DGAVCdec had a problem with interlaced h264, but it was dated from 2006 I think so I don't know if it's still true.

Loading the .ts directly with FFmpegsource2 also didn't give anything good and I read it could have sync issues so that's not ideal.

I tried processing it with projectx, but I'm having a hard time finding an up-to-date tutorial so I'm not exactly sure of what I'm doing.
I load my .ts in the collection box at the bottom, click prepare, click on the "i" icon to get the infos(which gives 218 errors similar to this: "PID 0x1100 (payload: 00 00 01 FD 06 0B 84 81 ..) (164876 #878) -> ignored") and I make sure demux is selected and click the play button which gives 20 GOP errors:"dropping video data, GOP larger than 6MB"


If someone could point me in the right direction to prepare 1080i h264 in avisynth it would really be appreciated.

P.S. I use all the latest version of the software used and I want to do each steps manually, not with megui(I would prefer it that way. Please don't throw me rocks while calling me a newb that can't handle doing it without a gui).

Blue_MiSfit
7th April 2011, 06:31
DGAVCDec uses a very old version of libavcodec that doesn't handle MBAFF properly. MBAFF is the more advanced form of interlaced coding in H.264, and your video probably uses this.

ffmpegsource2 should work, that's odd that it doesn't.

DGDecNV should handle this, if you have a CUDA card and don't mind kicking neuron2 $15 for the license.

Otherwise, I'd suggest remuxing to MKV, and trying your luck with DSS2. This will invoke ffdshow (proved you have it installed), of which the latest build should be able to handle MBAFF without issues.

Derek

SamKook
7th April 2011, 16:37
Thanks, DSS2 seem to work perfectly.

I don't have CUDA so that wasn't an option.

I gave ffmpeg2 another try with the same parameters as dss2 and it wasn't as bad as the first time. It must have been another filter that wasn't properly setted up since I don't think I tried an encode with no filters using it. But some frames aren't in the right order(I notice it just before a scene change) so I'll stick with dss2.

Out of curiosity, is there a way to know if a video uses MBAFF? I tried opening it with mediainfo, but I haven't seen it mentioned in there.

I haven't had time to search how since I have to go to work and since I was replying anyway, I thought I'd ask.

Blue_MiSfit
8th April 2011, 04:35
mediainfo should state whether a video uses MBAFF or not. I don't have any MBAFF samples handy so I can't say for sure. However, I do recall it saying if a file was MBAFF or not.

I'm glad DSS2 seemed to work though!!
Derek