Log in

View Full Version : Is there a tool to force Vertical resolution for h264 encodes from 1088 to 1080?


Has123
5th August 2007, 01:54
Sorry I asked this question on the AVC for PS3 thread but I was not sure it was noticed. My source files are h264 ts from a modded dish receiver. The video stream is h264 1088i main profile level 4. I ran through TSRemux to m2ts, but ps3 plays audio only and I think the problem is that ps3 does not like 1088 vertical resolution. Is there a way to change that without re-encoding as we do with mpeg files?
Thank you,

bob0r
5th August 2007, 12:09
There is no tool to do that, only decoders or splitters to hide the 8 pixels, but that is to no use for you.

But all H.264 video sources from satellite are X x 1088, some have set the proper cropping flag, and some have not

foxyshadis
5th August 2007, 12:30
mkvmerge can rewrite the bitstream header, which can then be demuxed keeping the crop, and I think I remember than h264info can do so as well. The latter is preferable if possible, since it'll save a lot of disk space. :D

akupenguin
5th August 2007, 12:44
If you add cropping to a stream that doesn't already have it, it changes the size of the header, so you have to copy the file anyway. h264info thus can't save diskspace compared to mkvmerge.

Has123
5th August 2007, 14:33
Thank you all. I did try h264info but it did not work for me. I tried different options and could not find a 1088 to 1080 option. Can you please tell which option in h264info rewrites the header. This is 10s file clip http://rapidshare.com/files/46959405/Test.ts.html .
I will also give mkvmerge a try.

Trahald
6th August 2007, 00:38
actually it doesnt support that.. i can add it in 5 mins probably. but as aku said, variable size encoding means no quick hexedit type fix. h264info has to rewrite the entire stream and add cropping info

Has123
6th August 2007, 00:56
actually it doesnt support that.. i can add it in 5 mins probably. but as aku said, variable size encoding means no quick hexedit type fix. h264info has to rewrite the entire stream and add cropping info

Trahald,
Thank you so much I would really appreciate it if you can add this function to h264info:). I tried mkvmerge and for some reason I was not successful. Probably interlacing has to do with it.

Edit,
Non of my demuxed video streams work with h264info, I get non playable files.

Trahald
6th August 2007, 04:38
sorry .. had to watch 4400 and deadzone. anyways.. i put up a version that allows for resolution setting. it checks for chroma_format_idc and frame_mbs_only_flag. so should get right calc with in different environments.

hmmm... your stream has to be a pure .es elementary avc stream (some demuxers dont make pure .es files). can you snip a piece from the beginning and make it available? i'll look at it tomorrow

Has123
6th August 2007, 05:05
Trahald thanks for the help. I am still getting a nonplayable files. I use xport for demuxing (also tried xmuxer pro). This is a 5 second clip. http://rapidshare.com/files/47236751/Test-has123.h264.html

Trahald
6th August 2007, 21:28
i put up 0011 looks good on your stream. lemme know.

Has123
7th August 2007, 09:20
Thank you. The files are now playable but I noticed they are still flagged at 1088 but resolution plays at 1072. Unfortunately also xmuxer always produces an out of sync and the frame rate is also not accurate (plays fast forward), but this may be a problem with xmuxer.:thanks:

Trahald
7th August 2007, 13:36
btw... i didnt look at it right away, but your stream was already the right resolution. the height is for you clip is flaged 34*2*16=1088 - 2*2*2 (cropping) 1080