Pixelation/Video Lag .mp4 (ffmpegsource)

This forum is for video and audio help and discussion.
Kevmaster
Eisenbahnmörser
Joined: Sun May 28, 2006 12:20 pm
Org Profile

Pixelation/Video Lag .mp4 (ffmpegsource)

Postby Kevmaster » Sun Jun 10, 2012 5:32 pm

First off, visualisation of the error:

Pictures:
Image
Image
Image
Video:
http://www.sendspace.com/file/bqvze0

What I'm trying to do:

Turning a .mp4 file into .avi to swap the audio with a higher quality version and re-encode as mp4.

What didn't work:

- (Avisynth) ffmpegsource in Virtualdub => caused the error you see in the samples
- Same script to encode .mp4 file directly to .mp4 with swapped audio in zarxgui


=>

Image
Image



Any idea for a fix/alternative?

User avatar
LantisEscudo
Joined: Thu Mar 08, 2001 5:21 pm
Location: Vermont
Contact:
Org Profile

Re: Pixelation/Video Lag .mp4 (ffmpegsource)

Postby LantisEscudo » Sun Jun 10, 2012 9:48 pm

Update your ffmpegsource. That looks like a 10-bit encode run through an 8-bit-only decoder.

http://code.google.com/p/ffmpegsource/

Kevmaster
Eisenbahnmörser
Joined: Sun May 28, 2006 12:20 pm
Org Profile

Re: Pixelation/Video Lag .mp4 (ffmpegsource)

Postby Kevmaster » Mon Jun 11, 2012 3:00 pm

LantisEscudo wrote:Update your ffmpegsource. That looks like a 10-bit encode run through an 8-bit-only decoder.

http://code.google.com/p/ffmpegsource/


I just recently downloaded and installed it (it hasn't even been 2 weeks).

I'm having some trouble on understanding which of the listed downloads is the newest (except for the beta) and/or which I should use though.

User avatar
mirkosp
The Absolute Mudman
Joined: Mon Apr 24, 2006 6:24 am
Status: (」・ワ・)」(⊃・ワ・)⊃
Location: Gallarate (VA), Italy
Contact:
Org Profile

Re: Pixelation/Video Lag .mp4 (ffmpegsource)

Postby mirkosp » Mon Jun 11, 2012 3:05 pm

Do use the beta.
By the way, if all you need to do is just have a higher quality audio, you could just remux in mkv and swap the audio like that. Avoiding a useless re-encode would be a better thing when possible. Or I guess you can remux to mp4 again with yamb if you so desire, but I personally prefer mkv over mp4.
Image

Kevmaster
Eisenbahnmörser
Joined: Sun May 28, 2006 12:20 pm
Org Profile

Re: Pixelation/Video Lag .mp4 (ffmpegsource)

Postby Kevmaster » Mon Jun 11, 2012 4:40 pm

mirkosp wrote:Do use the beta.


Well, that didn't work. The error didn't disappear.

mirkosp wrote:By the way, if all you need to do is just have a higher quality audio, you could just remux in mkv and swap the audio like that. Avoiding a useless re-encode would be a better thing when possible. Or I guess you can remux to mp4 again with yamb if you so desire, but I personally prefer mkv over mp4.


This on the other hand did the job! A very simple and easy method to swap the audio. Thanks! :up:


P.S. I'm still curious if anyone knows how to fix the ffmpegsource-error and why it occurs!

User avatar
Cannonaire
Joined: Wed May 05, 2010 5:59 pm
Status: OVERLOAD
Location: Oregon
Org Profile

Re: Pixelation/Video Lag .mp4 (ffmpegsource)

Postby Cannonaire » Mon Jun 11, 2012 4:45 pm

Just making sure we cover all of the bases...
Does your source line look something like this?

Code: Select all

ffvideosource("c:\yoursourceblahblah.mp4")

You must make sure you are loading up the video with the correct command/plugin, otherwise you can update it all you want and it will never change.
Image Think millionaire, but with cannons. || Resident Maaya Sakamoto fan.

Kevmaster
Eisenbahnmörser
Joined: Sun May 28, 2006 12:20 pm
Org Profile

Re: Pixelation/Video Lag .mp4 (ffmpegsource)

Postby Kevmaster » Mon Jun 11, 2012 5:37 pm

Code: Select all

ffmpegsource("D:\[Kevmaster] Ninja Nature (H.264).mp4")


Nothing else in the script.


I've just tried out some other .mp4 files. It seems that the error appears only with newer .mp4 encodes (regardless wether it's my encode or a video I downloaded). Encodes that were made longer time ago work just fine.

User avatar
Cannonaire
Joined: Wed May 05, 2010 5:59 pm
Status: OVERLOAD
Location: Oregon
Org Profile

Re: Pixelation/Video Lag .mp4 (ffmpegsource)

Postby Cannonaire » Mon Jun 11, 2012 6:09 pm

You are using ffmpegsource() for your source line.
You need to use ffvideosource().
Image Think millionaire, but with cannons. || Resident Maaya Sakamoto fan.

User avatar
LantisEscudo
Joined: Thu Mar 08, 2001 5:21 pm
Location: Vermont
Contact:
Org Profile

Re: Pixelation/Video Lag .mp4 (ffmpegsource)

Postby LantisEscudo » Mon Jun 11, 2012 7:46 pm

Cannonaire wrote:You are using ffmpegsource() for your source line.
You need to use ffvideosource().

Indeed. ffmpegsource is the old v1 ffms, which hasn't been updated in ages. I'd recommend removing the old one (ffmpegsource.dll) from your plugins directory so you don't accidentally use it any more (the current one is ffms2.dll).

Kevmaster
Eisenbahnmörser
Joined: Sun May 28, 2006 12:20 pm
Org Profile

Re: Pixelation/Video Lag .mp4 (ffmpegsource)

Postby Kevmaster » Tue Jun 12, 2012 1:35 am

Image

Added both .ddl and .avsi to the plugin-directory and each without the other.

User avatar
mirkosp
The Absolute Mudman
Joined: Mon Apr 24, 2006 6:24 am
Status: (」・ワ・)」(⊃・ワ・)⊃
Location: Gallarate (VA), Italy
Contact:
Org Profile

Re: Pixelation/Video Lag .mp4 (ffmpegsource)

Postby mirkosp » Tue Jun 12, 2012 6:15 am

Try doing

Code: Select all

LoadPlugin("C:\path\to\ffms2.dll")

before calling ffvideosource.
Image

User avatar
Cannonaire
Joined: Wed May 05, 2010 5:59 pm
Status: OVERLOAD
Location: Oregon
Org Profile

Re: Pixelation/Video Lag .mp4 (ffmpegsource)

Postby Cannonaire » Tue Jun 12, 2012 9:26 am

What mirkosp said should get it working.
FFMS2 is, however, one of the few plugins I would actually keep in my avs plugin (autoload) directory full-time. Make sure you have ffms2.dll and ffms2.avsi in "C:\Program Files (x86)\AviSynth 2.5\plugins", and if you are using 64-bit Avisynth, have ffms2-x64.dll and ffms2.avsi in "C:\Program Files (x86)\AviSynth 2.5\plugins64". These should be your plugin folders unless you changed them (unlikely).
Image Think millionaire, but with cannons. || Resident Maaya Sakamoto fan.

Mister Hatt
Joined: Tue Dec 25, 2007 8:26 am
Status: better than you
Contact:
Org Profile

Re: Pixelation/Video Lag .mp4 (ffmpegsource)

Postby Mister Hatt » Tue Jun 12, 2012 5:15 pm

Source plugins are the ONLY kind you should keep in your autoload directory. Load everything else that you need by hand, easier. There are some tools to auto-insert dependencies as well. I haven't had a plugin load or compatibility or conflict issue in like 6 years since I stopped auto-loading.

Kevmaster
Eisenbahnmörser
Joined: Sun May 28, 2006 12:20 pm
Org Profile

Re: Pixelation/Video Lag .mp4 (ffmpegsource)

Postby Kevmaster » Thu Jun 14, 2012 8:50 am

Code: Select all

LoadPlugin("C:\Program Files (x86)\AviSynth 2.5\plugins\ffms2.dll")
ffvideosource("D:\[Kevmaster] Ninja Nature (H.264).mp4")

Image

User avatar
mirkosp
The Absolute Mudman
Joined: Mon Apr 24, 2006 6:24 am
Status: (」・ワ・)」(⊃・ワ・)⊃
Location: Gallarate (VA), Italy
Contact:
Org Profile

Re: Pixelation/Video Lag .mp4 (ffmpegsource)

Postby mirkosp » Thu Jun 14, 2012 11:21 am

Dafuq?
Uhm... try reinstalling avisynth. LoadPlugin is a core function, so if it isn't working, something's terribly wrong. Perhaps try to install the avisynth 2.6 alpha 3.
Image


Return to “Video & Audio Help”

Who is online

Users browsing this forum: No registered users and 1 guest