Log in

View Full Version : problems with ar of captured video


Ma-Xell
20th July 2010, 18:38
I have a toshiba p30 handicam which captures FullHD H.264 video and AAC audio in AVI (not best combination) and when I play these video files using a standard software avc decoder (eg. ffdshow or mpc's built-in avc/h.264 decoder) I have no problem. But one day I decided to play one of these clips on my laptop which uses DXVA to be able to play h.264 at such resolution, and I get a weird extra green bar added on the right side.
http://img64.imageshack.us/img64/7734/screeniev.jpg
I think the AVI header is not written correctly because I have to tried to remux the streams to mkv and edit the header and the bar dissapeared.

Any ideas?
Does anyone know why DXVA plays the file incorrectly? How can I fix this, is there an AVI header editor that I could use?
Thanks!:thanks:

PS: I will shortly upload a sample video.

Ma-Xell
20th July 2010, 19:58
Here is the link to the file. (http://www.4shared.com/video/2LxW6IJP/IMAG0142.html?)

I forgot to add that the camera actually records video at 1440×1080 then flags it as 16:9.

roozhou
23rd July 2010, 16:19
I don't have a green bar issue with DXVA on either MPC-HC or PotPlayer, but a black bar:). I am using ATI HD4250 (880G intergrated) and running XP SP3.

The following method solve the problem:
Open virtualdub's hex editor (tool -> hex editor). Drag & drop the avi file and try changing all 1920 in avi header to 1440 (80 07 00 00 -> A0 05 00 00).

Ma-Xell
23rd July 2010, 21:28
So this is a mistake on the camera's side right?
Ill check maybe there is a firmware update or something.
Is there a way of not doing this manually and doing in batch with many files at the same time?

Thanks for the help

roozhou
24th July 2010, 03:52
This a "find & replace byte" job at fixed positions of a file. If you know C/C++, this is work of ~30 lines of code. Well I don't know any way of doing this by a .bat file.

Ma-Xell
24th July 2010, 09:55
I don't know any C or C# so I simply googled "find & replace byte" and I found a program called A.F.9 Replace some bytes (http://www.fauland.com/af9.htm) which actually did the job. AND it can do it in batch. Although it replaces all '80 07 00 00's with 'A0 05 00 00', but the video file plays perfectly so I guess its okay. Thanks