2008-09-26, 16:09 | Link #203 |
Junior Member
Join Date: Sep 2008
|
hi everyone, i have a troble about raw files... Let me explain.
i have a raw file with a resolution of 720*480 from dvd source, but i guess its aspect ratio isn't 16:9 and has a bad image. i searched about it and and found that http://forum.doom9.org/showthread.ph...89#post1111789 i suppose the answer i've been looking for is ZoomBox it's said: "Convert a square pixel source to anamorphic (16/9) DVD" Code:
Width=720 Height=480 ColorBars() ZoomBox(Width, Height, TargetDAR=16.0/9.0) |
2008-09-27, 09:52 | Link #204 |
翻訳家わなびぃ
Fansubber
|
Don't do it at the encode level - do it at the container level. Modern containers like mkv supports setting the pixel aspect ratio when you mux the video. So encode the video ay 720x480, then use that PAR option when you mux.
I'm not very familiar with mkv muxing, but for mp4 muxing using mp4box, it's like Code:
MP4Box.exe -add Video1.264:fps=23.976:par=32:27 -add Audio1.m4a:lang=jpn Output.mp4 |
2008-10-13, 15:02 | Link #205 |
Junior Member
Join Date: Sep 2007
|
I use the overlay function from the first post in this thread for my kara but its shifted (it starts 20 frames to early - it was vor another version of the OP)
and "insertsign(last, sign1, x, x)" doesnt take negative values. Trim always works for the whole video and if I attach it with dot to the clip or after insertsign.... it does nothing. I also tried to cut the kara clip with vdubmod and saved it with direct stream copy, but after this the script gives me an error (errorcode: 2) if I try to save and refresh. How can I solve this? thanks in advice |
2008-10-17, 05:13 | Link #208 |
Slower Than You
|
I'm having a rather odd error. I got given an absolutely horrid raw, full of strange framerates (see Nicholi's second impossible raw in the VFR thread- it's practically the same thing)
I've got to trim part of the audio as well, as the first 300 frames need to go, so I'm using audiodub to load that from the wav I extracted. The problem is that when opening it in whatever program I choose, it returns and avisynth read error. I cleared out my plugins folder to prevent auto loading and it still failed. I even removed the ffmpegsource filter and tried opening it and it gave the read error, did not complain about the missing filter at all. Here's my script, any help or thoughts are appreciated: http://pastebin.ca/1229240 E~ |
2008-10-17, 07:20 | Link #209 | |
Member
Join Date: Aug 2008
|
Quote:
Last edited by guest0815; 2008-10-17 at 13:05. |
|
2008-10-17, 07:32 | Link #210 |
makes no files now
Join Date: May 2006
|
Just a wild blind guess... could it be AssumeFPS(24000/1001) -> AssumeFPS(24000,1001). Can't check right now since I'm not at home... however how the heck did you get so many trims? That's bound to fail when trying to render it... :/
__________________
|
2008-10-17, 08:23 | Link #211 |
幻想郷
Join Date: Dec 2006
Location: 幻想郷
|
What? He trims and splices every single frame , better reanimate it yourself.
It's decimate or timecodes-collector job. And are you sure this is in the script? Code:
v = ffmpegsource("raw.mp4") a = wavsource("audio.wav") audiodub(v,a)
__________________
|
2008-10-17, 16:27 | Link #213 |
King of Hosers
Join Date: Dec 2005
Age: 41
|
It looks like he/she might have been krayzie enough to use TheFluff's perl script @_@. Which I'm fairly certain wasn't really meant to be for actual use, just something he was toying around with . As you found AviSynth simply can't load that many commands at once...if you really want to use that script you'd need to break the Trims up into multiple scripts.
However are you sure you should even be using that perl script? What are the timecodes for the source file itself? If it really is fucked like the example I gave, my suggestion...find a better raw. Do not let someone provide a raw for you. Who better than the encoder to choose what they are going to work with, and the quality of the audio/video in the raw? |
2008-10-18, 06:59 | Link #214 |
Slower Than You
|
I did not use TheFluff's script actually. What I did was write a shell script to take each block of timecodes and create a trim function for them to even out the framerate without it going all jumpy like using DirectShowSource+ConvertFPS would have done. It looks like my shell-fu is a bit fail and went and split it up for every single frame, I should probably have checked that more closely. You're probably right about too many functions though. Here's the timecodes file for you: http://pastebin.ca/1230173, the first 297 frames are the animax logo so they have a static rate. I'm trying to find a better raw but its proving difficult, I have no transport stream for it and the only raws I can find are at a much smaller res than what I'm working with. It looks like I will just have to wait for the DVD's.
@martino: I've never had any problem with the various FPS adjusting functions and doing a/b in them, I guess your way works too, but it wouldn't explain the error I got, which was most likely from too many trims. @nagato: if the avs script is in the same directory as the files, then you can do it without the complete path and just go relative. I have absolutely no idea what timecodes-collector is though, could you explain? I'll probably need it or something else if I can't get a different raw >.< E~ Last edited by Emess; 2008-10-18 at 08:00. |
2008-10-18, 13:18 | Link #215 | |
幻想郷
Join Date: Dec 2006
Location: 幻想郷
|
Quote:
__________________
|
|
2008-10-18, 19:04 | Link #216 | |
King of Hosers
Join Date: Dec 2005
Age: 41
|
Quote:
Since you are at least knowledgeable in the ways of the shell, you could modify your script slightly in order to make this a bit more workable. Instead of trimming out the odd frames you could instead Trim them together (as it would do in a v2->v1 conversion) and run AssumeFPS(theirfps).ConvertFPS(targetfps). The only problem would occur in the 1 frame sections, which I am not sure if ConvertFPS will properly handle them by themselves. However you could just have your script combine it with 1 frame from the nearest group of its complement framerate to make something else, which is either 24fps or will convert to just fine. Like one 20fps frame with one 30fps frame automatically make two 24fps frames, no work needed. Also one 15fps frame and one 30fps frame make three 30fps frames. That way your shell script would spit something out like Code:
AssumeFPS(23.976) main = last main.Trim(0,236).AssumeFPS(29.970).ConvertFPS(23.976) + main.Trim(298,300) + main.Trim(301,306).AssumeFPS(29.970).ConvertFPS(23.976) + main.Trim(307,370) + main.Trim(371,372).AssumeFPS(29.970).ConvertFPS(23.976) + ... And for every idiot that keeps mentioning DecombVFR...thats for making VFR content. In other words taking CFR, something like DVD input, and getting out VFR (vfrac and a timecodes file). Not going from VFR to CFR. |
|
2008-10-19, 18:43 | Link #219 |
King of Hosers
Join Date: Dec 2005
Age: 41
|
It's always better to pick a raw from a capper that at least has a semblance of an idea of what they are doing, in my opinion . God knows what else an idiot who can't even IVTC will do to his encode.
And of course once you find your new favorite capper, you stick to him like white on rice! |
|
|