Pixelation/Video Lag .mp4 (ffmpegsource)

This forum is for video and audio help and discussion.

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?
Kevmaster
Eisenbahnmörser
 
Joined: 28 May 2006

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/
User avatar
LantisEscudo
 
Joined: 08 Mar 2001
Location: Vermont

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.
Kevmaster
Eisenbahnmörser
 
Joined: 28 May 2006

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
User avatar
mirkosp
MODkip
 
Joined: 24 Apr 2006
Location: Gallarate (VA), Italy
Status: (」・ワ・)」(⊃・ワ・)⊃

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!
Kevmaster
Eisenbahnmörser
 
Joined: 28 May 2006

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.
User avatar
Cannonaire
 
Joined: 05 May 2010
Location: Oregon
Status: OVERLOAD

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.
Kevmaster
Eisenbahnmörser
 
Joined: 28 May 2006

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
Cannonaire
 
Joined: 05 May 2010
Location: Oregon
Status: OVERLOAD

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).
User avatar
LantisEscudo
 
Joined: 08 Mar 2001
Location: Vermont

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.
Kevmaster
Eisenbahnmörser
 
Joined: 28 May 2006

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
mirkosp
MODkip
 
Joined: 24 Apr 2006
Location: Gallarate (VA), Italy
Status: (」・ワ・)」(⊃・ワ・)⊃

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.
User avatar
Cannonaire
 
Joined: 05 May 2010
Location: Oregon
Status: OVERLOAD

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.
Mister Hatt
 
Joined: 25 Dec 2007
Status: better than you

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
Kevmaster
Eisenbahnmörser
 
Joined: 28 May 2006

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
User avatar
mirkosp
MODkip
 
Joined: 24 Apr 2006
Location: Gallarate (VA), Italy
Status: (」・ワ・)」(⊃・ワ・)⊃

Next

Return to Video & Audio Help

Who is online

Users browsing this forum: No registered users and 1 guest