Page 1 of 1

VLC 1.1.4 h264 Quicktime video distorted shakes

Posted: 03 Nov 2010 10:41
by nonix66
Hi,
'm using vlc 1.1.4 on Mac (iMac i7), having trans-coded video to h264 results in distorted (shaken) video when played using Quicktime and/or iPhone. The same video file plays fine using VLC.
I have used mp4 container with h264 codec vb=768 mp4a audio ab=128, the result was same using Windows XP.
Perhaps its my fault and someone can point me out to right direction of adjusting settings.
Thanks a lot,
N.

Re: VLC 1.1.4 h264 Quicktime video distorted shakes

Posted: 03 Nov 2010 13:10
by Lotesdelere
Tips for QuickTIme:
viewtopic.php?p=252318#p252318

x264 settings to use with some devices (might not be up to date):
http://spreadsheets.google.com/pub?key= ... utput=html

Re: VLC 1.1.4 h264 Quicktime video distorted shakes

Posted: 03 Nov 2010 20:38
by nonix66
many thanks for reply. I did try the suggestion, but no luck. The resulting video seems like when video camera is hand held while walking, usually on scene with some even a minimal motion. I'll try to take a snapshot of it and posted.
Also, a small correction, the version on mac is not 1.1.4 but 1.1.3.
Thx

Re: VLC 1.1.4 h264 Quicktime video distorted shakes

Posted: 04 Nov 2010 10:32
by Lotesdelere
Upload a short file exposing this problem on some file sharing site like Rapidshare or Megaupload.

Re: VLC 1.1.4 h264 Quicktime video distorted shakes

Posted: 05 Nov 2010 22:43
by nonix66
Many thanks for helping with this issue. More I tested, I do believe it's a bug in h264 encoder.

Here we are:
The original file just to show the source, taken from DVD first 18 secs.
http://dl.dropbox.com/u/14523062/a.avi
Encoded result, have tried on XP on Mac, will do on Linux, too perhaps tomorrow.
http://dl.dropbox.com/u/14523062/a.mp4
Playing the video using VLC all is fine, but if you do play this by latest QT, you'll see what 'm talking about.

This is the MRL used for trans-code.
:sout=#transcode{vcodec=h264,vb=768,acodec=mp4a,ab=64}:standard{mux=mp4,dst=a.mp4,access=file}

thx

Re: VLC 1.1.4 h264 Quicktime video distorted shakes

Posted: 06 Nov 2010 09:40
by Lotesdelere
I have not used QT for years and I don't plan to use it in the future, sorry :P

It might be a mux problem so try to demux then remux the file with YAMB+MP4Box (on Windows) or ffmpeg.

Or try to reencode the file with CABAC disabled and only 2 ref frames.

Re: VLC 1.1.4 h264 Quicktime video distorted shakes

Posted: 06 Nov 2010 14:59
by nonix66
I agree with you, but the QT is the best way to test if the resulting video will play on iPhone.
CABAC, it seems vlc doesn't like to change some settings in this area (h264): It keeps crashing while saving, when I try to change it in the rc file, it seems to ignore them. I'll invest a bit more time to experiment.