Video frame shift issue

For questions and discussion that is NOT (I repeat NOT) specific to a certain Operating System.
quelx
New Cone
New Cone
Posts: 4
Joined: 01 May 2015 17:47

Video frame shift issue

Postby quelx » 01 May 2015 17:57

I have some videos from an old camera phone where the frames are vertically challenged, e.g. some of the top lines of each frame are at the bottom of the frame. Like this: Image

Is there a technical term for this which I can use to search google or a setting in VLC to correct for this?

I have tried searching for video [vh]sync, misaligned video frames, video frame shift, shift video vertically, and the like.

Thank you.

Lotesdelere
Cone Master
Cone Master
Posts: 10089
Joined: 08 Sep 2006 04:39
Location: Europe

Re: Video frame shift issue

Postby Lotesdelere » 02 May 2015 10:32

What OS ?
Which VLC version ?


Please open Tools -> Messages (set Verbosity to 2) before you start the playback, and then paste the full resulting log here or on Pastebin.com if it's too long.

Also upload a short sample of a problematic file to either http://streams.videolan.org/upload/ or to Zippyshare.com (200 MB max) or to EmbedUpload.com, the latter will upload the file for you to several other hosts (use the default ones) and then post the link to the file here.

If needed cut it with DGsplit and read here about how to do it:
viewtopic.php?f=14&t=57724&p=193335#p193335
50 MB max should be enough.

quelx
New Cone
New Cone
Posts: 4
Joined: 01 May 2015 17:47

Re: Video frame shift issue

Postby quelx » 03 May 2015 03:21

What OS ?
OS X 10.10.3 (14D136)
Which VLC version ?
VLC 2.1.5 Rincewind

debug logs from "Window > Messages" @ http://pastebin.com/8NxKBHnr

uploaded video-2010-06-20-19-25-41.3gp, 891,480 bytes to http://streams.videolan.org/upload/

To be clear, I do not believe this is an issue with VLC. The video looks the same in mplayer, quicktime, on Google Photos, etc. I was wondering if there is a way to fix it with VLC or if there was a term for this issue I could add to my google-fu.

Thank you.

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37523
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Re: Video frame shift issue

Postby Jean-Baptiste Kempf » 03 May 2015 19:04

I don't know any solution for this.
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.

quelx
New Cone
New Cone
Posts: 4
Joined: 01 May 2015 17:47

Re: Video frame shift issue

Postby quelx » 07 May 2015 15:04

I ended up using some ImageMagick and a few mplayer.

Dump the frames:

Code: Select all

mplayer -vo png video.3gp
Dump the audio:

Code: Select all

mplayer -vc dummy -vo null -ao pcm:file=video.wav video.3gp
Fix the frames (shifted down 85 pixels):

Code: Select all

for i in $(ls -1 *.png); do convert -roll +0+85 $i roll-$i done
Put it back together:

Code: Select all

mencoder mf://roll-*.png -mf fps=29.970 -ovc lavc -o roll-video.avi -oac mp3lame -audiofile video.wav
And for ffmpeg (which produced better results):

Code: Select all

ffmpeg -framerate 20.83 -i roll-0000%04d.png -i video.wav -c:v libx264 -c:a aac -strict experimental -b:a 64k -r 30 -pix_fmt yuv420p roll-video.mp4

mederi
Big Cone-huna
Big Cone-huna
Posts: 1951
Joined: 15 Mar 2011 16:38
VLC version: 2.0.8
Operating System: Windows Vista/XP

Re: Video frame shift issue

Postby mederi » 12 May 2015 16:23

vhs video filter can shift picture up/down :)
Tools > Preferences > Show settings=All > Video > Filters: [v] VHS movie effect video filter

quelx
New Cone
New Cone
Posts: 4
Joined: 01 May 2015 17:47

Re: Video frame shift issue

Postby quelx » 12 May 2015 17:24

vhs video filter can shift picture up/down :)
Tools > Preferences > Show settings=All > Video > Filters: [v] VHS movie effect video filter
That made it interesting :wink:


Return to “General VLC media player Troubleshooting”

Who is online

Users browsing this forum: No registered users and 106 guests