Joined: 10/14/2013
Posts: 335
Location: Australia
To add on to what Aktan has already said, the encoding package changes often enough that a video guide may need to be entirely remade multiple times throughout a year in order to stay up-to-date, whereas a text guide can be amended if there are changes or if anyone notices a problem that needs to be fixed. If you're having any trouble understanding a particular part of the guide, or something isn't working the way it should be, we can always try help you work through it as best we can. AVISynth gets a lot easier over time and with practice!
I'm not as active as I once was, but I can be reached here if I should be needed.
xRavenXP
He/Him
Joined: 4/15/2012
Posts: 116
Location: Brazil
Hi TasVideos friends, how are you? I know how to use the Encoding Package well for HD encodes, but I got a new version (64 bit version) and I can not remove the subtitles, how do I make subtitles not appear in my video? (this will also serve for videos that I need to do in parts). What change should I make in encode.avs to be without caption? With the Feos I learned to do the encode without the initial logo, but I want to do without subtitles with this new version of the program. I await an answer. Thank you!
I love games and love to record videos (longplays). Visit my Youtube channel https://www.youtube.com/user/xRavenXP
EZGames69
He/They
Publisher, Reviewer, Expert player (4464)
Joined: 5/29/2017
Posts: 2762
Set subFF equal to -10000 and it should not appear.
[14:15] <feos> WinDOES what DOSn't 12:33:44 PM <Mothrayas> "I got an oof with my game!" Mothrayas Today at 12:22: <Colin> thank you for supporting noble causes such as my feet MemoryTAS Today at 11:55 AM: you wouldn't know beauty if it slapped you in the face with a giant fish [Today at 4:51 PM] Mothrayas: although if you like your own tweets that's the online equivalent of sniffing your own farts and probably tells a lot about you as a person MemoryTAS Today at 7:01 PM: But I exert big staff energy honestly lol Samsara Today at 1:20 PM: wouldn't ACE in a real life TAS just stand for Actually Cease Existing
Joined: 2/21/2008
Posts: 255
Will I get banned if I post an encode that is banned in the thread for a movie(or another thread)?
"The guy was fatally injured and wants to be covered by God's tears (rain) before he dies. God is too busy to bother because it wastes frames." Frames 16:26
Editor, Skilled player (1440)
Joined: 3/31/2010
Posts: 2109
yes
Active player (302)
Joined: 3/15/2018
Posts: 235
Location: United States
Does anyone here use ffmpeg for upscaling? I've found its nearest neighbor scaling produces uneven pixel sizes sometimes. Maybe it's because I'm upscaling as well as stretching to 4:3?
Joined: 10/14/2013
Posts: 335
Location: Australia
I've never used ffmpeg for resizing, but I do have a fair bit of experience with nearest neighbor elsewhere. The most important question here is: what resolution are you resizing to? Due to the nature of the nearest neighbor, it will produce uneven pixel sizes if the destination dimensions aren't multiples of the respective source dimensions. This is because it doesn't interpolate colors between pixels, so each destination pixel is going to be the same color as an appropriate source pixel. I'm probably not the best at explaining this, but here's an attempt at an example: Assume you have a source frame that is 100 pixels wide. If your destination width is 200 (a factor of 2), each source pixel becomes two destination pixels. In this case, the width is doubled and the sharpness of the original image is retained. If your destination width is 150 pixels width (a factor of 1.5), each pixel becomes 1.5 destination pixels. This means the first destination pixel uses the first source pixel, but the second destination pixel is half of the first source pixel and half of the second source pixel. Because the filter only uses the exact colors from the source, it will have to choose one of these two (the nearest neighbor) to place there. This results in uneven pixel sizes. There are a couple of solutions here (though I'm not sure how they translate into ffmpeg) that might help: 1 - Resize the width and height by the same integer (4x, for example) and then set a 4:3 AR flag on the file (AR flags don't change the video data, but instead tell the player to stretch the video upon playback). 2 - Resize the width and height by separate integers that result in the correct aspect ratio. If you want 256x224 to play at 4:3, you can use 7 and 6 respectively. This gives 1792x1344, which is 4:3 and would have consistent pixel sizes. This tool may help you calculate the integers for this process. 3 - Resize the width and height (using nearest neighbor) by integers to a resolution that is higher than the resolution you wish to display at, then resize via Lanczos down to the destination resolution. For example: Resize 256x224 to 1536x1120 via nearest neighbor, then to 1440x1080 via Lanczos. This introduces a pixel's worth of blur to the resulting image, but can target any resolution. There are likely other solutions too.
I'm not as active as I once was, but I can be reached here if I should be needed.
Active player (302)
Joined: 3/15/2018
Posts: 235
Location: United States
Method 3 seems to produce good results, even if it takes two separate upscale operations. Method 2 is a cool math problem, I kinda want to code it up. Thanks for the tips!
Editor, Expert player (2330)
Joined: 5/15/2007
Posts: 3933
Location: Germany
I have a MKV file with multiple audio tracks. How can I extract a specific audio track from this MKV?
Publisher
Joined: 4/23/2009
Posts: 1283
[18:01] <muggphone1> says AC3 5.1 chnls for all of them
[18:01] <Aktan> wait, third track?
[18:01] <Aktan> oops
[18:01] <Aktan> mkvextract.exe input.mkv tracks 3:output.ac3
[18:02] <Aktan> this is assuming only 1 video track at track 0
[18:02] <muggphone1> yes
[18:02] <Aktan> then track 1 is first ac3, track 2 is 2nd audio track.. etc
Editor, Expert player (2330)
Joined: 5/15/2007
Posts: 3933
Location: Germany
Thanks Aktan, I now have the audio track. I'm interested in getting the video track also. I'm having trouble opening the MKV directly in virtualdub with avisynth (both with avss.dll dss2() and ffms2.dll ffvideosource()), so I tried extracting the video track with mkvextract with this code. Note I'm using an outdated version, hence the difference in syntax:
mkvextract tracks input.mkv 0:output.mp4
This gives me an mp4 which can be opened in Mediaplayer Classic, but I cannot seek through the video. It does not open in VLC. When trying to open in virtualdub, it says invalid initial pts and dts, or something.. I'm now converting the MKV to MP4 in a converter software as a last resort. But I was wondering if you know of other solutions.
Publisher
Joined: 4/23/2009
Posts: 1283
What are you trying to do? Honestly if you are going to use AviSYnth script on it, I would convert it to lossless FFV1 Level 1 (AVI) with FFMPEG which can be opened by VDub and AviSynth
creaothceann
He/Him
Editor
Joined: 4/7/2005
Posts: 1874
Location: Germany
VirtualDub can open Avisynth scripts, there's no need to convert files to open them in VD directly...
Editor, Expert player (2330)
Joined: 5/15/2007
Posts: 3933
Location: Germany
What are you trying to do?
I have a MKV file that's 4.7 GB size and 1h35m00s length and I would like to cut out a scene from it. I did what you said and converted it to a 24 GB size AVI file (it took like 6 hours to convert). It opens in Media Player Classic but runs very slowly. In VLC it shows a garbled colored mess. It does not open in Virtualdub; it says "couldn't locate decompressor for format FFV1 (unknown). Virtualdub requires a Video for Windows (VFW) compatible codec to decompress video. DirectShow codecs such as those used by Windows Media Player are not suitable." So I guess I will try to convert again without having "DirectShow" ticked.
VirtualDub can open Avisynth scripts, there's no need to convert files to open them in VD directly...
Like I said, I have tried both avss.dll's dds2() and ffms2.dll's ffvideosource() but it does not open. In the case of ffvideosource, it says "invalid initial pts and dts", whatever that means. VLC can open the MKV, but any video snapshots I take in VLC are broken (they don't get rendered when playing them back).
creaothceann
He/Him
Editor
Joined: 4/7/2005
Posts: 1874
Location: Germany
According to this page, VD supports FFV1 with the help of FFmpeg or Libav. I'd just install the k-lite codec pack with all options turned on, and try again. (related?)
Publisher
Joined: 4/23/2009
Posts: 1283
You need ffdshow installed. It is using an older version of ffmpeg which only supports FFV1 Level 1, which is why I mentioned it. What line did you use to convert? How accurate do you need the cut of the scene? If you don't need it to be too accurate, you can cut via key frames in MKVToolNix GUI itself using timestamps. Edit: I do not recommend using codec packs due to the problems they may bring with installing extra codecs you would never use. I prefer installing codecs as needed bases.
Joined: 8/3/2008
Posts: 254
I have two questions: 1. Can video editor affect your AVI/MP4 videos even though they run smoothly in Media Player Classic or VLAN? 2. How do you fix audio and video sync in emulators lot VBA 1.7.2. or 1.8.0? I need to record AVI but I wonder what settings in the emulator itself that I can use to stop lag or help the emulator resync the audio for video editors like Virtualdub?
Guernsey Adams Pierre
Publisher
Joined: 4/23/2009
Posts: 1283
Guernsey wrote:
I have two questions: 1. Can video editor affect your AVI/MP4 videos even though they run smoothly in Media Player Classic or VLAN?
I'm not understanding your question. Can you rephrase?
Guernsey wrote:
2. How do you fix audio and video sync in emulators lot VBA 1.7.2. or 1.8.0? I need to record AVI but I wonder what settings in the emulator itself that I can use to stop lag or help the emulator resync the audio for video editors like Virtualdub?
I didn't think there was an A/V sync issue in VBA. Are you sure it's there?
Joined: 8/3/2008
Posts: 254
Aktan wrote:
Guernsey wrote:
I have two questions: 1. Can video editor affect your AVI/MP4 videos even though they run smoothly in Media Player Classic or VLAN?
I'm not understanding your question. Can you rephrase?
I was referring to how when you playback your AVI recording in editors like Cyberlink PWerdirector or in media players like VideoLan where it seems like your video is seemingly a mess.
Aktan wrote:
Guernsey wrote:
2. How do you fix audio and video sync in emulators lot VBA 1.7.2. or 1.8.0? I need to record AVI but I wonder what settings in the emulator itself that I can use to stop lag or help the emulator resync the audio for video editors like Virtualdub?
I didn't think there was an A/V sync issue in VBA. Are you sure it's there?
Well, that is what it looked like when I played it back on my editor as when I am played it back, I notice how sometimes the sound doesn't always match what I see on screen especially in games like Mother 3. I guess it might be due to the fact that I might need to fiddle with the settings with the emulator to get a better result. Does VBA do that? Or is it supposed to do that?
Guernsey Adams Pierre
Publisher
Joined: 4/23/2009
Posts: 1283
Guernsey wrote:
I was referring to how when you playback your AVI recording in editors like Cyberlink PWerdirector or in media players like VideoLan where it seems like your video is seemingly a mess.
So I'm still confused. Your first post says it plays smoothly in VLC, but now you're saying it doesn't play smoothly in VLC? Which is it? As long as MPC and VLC plays it back right, it's fine. Video editors may do extra processing making it too slow to playback smoothly. What are your PC specs?
Guernsey wrote:
Well, that is what it looked like when I played it back on my editor as when I am played it back, I notice how sometimes the sound doesn't always match what I see on screen especially in games like Mother 3. I guess it might be due to the fact that I might need to fiddle with the settings with the emulator to get a better result. Does VBA do that? Or is it supposed to do that?
I don't remember exactly, since it's been a while, but VBA may have some minimal capture settings. What codec did you capture to?
Joined: 8/3/2008
Posts: 254
Aktan wrote:
Guernsey wrote:
I was referring to how when you playback your AVI recording in editors like Cyberlink PWerdirector or in media players like VideoLan where it seems like your video is seemingly a mess.
So I'm still confused. Your first post says it plays smoothly in VLC, but now you're saying it doesn't play smoothly in VLC? Which is it? As long as MPC and VLC plays it back right, it's fine. Video editors may do extra processing making it too slow to playback smoothly. What are your PC specs?
HP 15 Home Windows 10 Home 4.00 GB 64 bit Operating System, x64 based processor It does playback fairly well in VLC but it slows down on my editor for some reason.
Aktan wrote:
Guernsey wrote:
Well, that is what it looked like when I played it back on my editor as when I am played it back, I notice how sometimes the sound doesn't always match what I see on screen especially in games like Mother 3. I guess it might be due to the fact that I might need to fiddle with the settings with the emulator to get a better result. Does VBA do that? Or is it supposed to do that?
I don't remember exactly, since it's been a while, but VBA may have some minimal capture settings. What codec did you capture to?
XviD. There was a Youtube video explains how to resync in VBA
Guernsey Adams Pierre
Publisher
Joined: 4/23/2009
Posts: 1283
Guernsey wrote:
HP 15 Home Windows 10 Home 4.00 GB 64 bit Operating System, x64 based processor It does playback fairly well in VLC but it slows down on my editor for some reason.
Would you happen to have the exact model number? I want to find out what CPU. It not playing back in the editor is fine as long as your edits and final file plays fine in VLC, no?
Guernsey wrote:
XviD. There was a Youtube video explains how to resync in VBA
If you're doing editing, I would recommend using lossless like Lagarith. This is assuming you have enough space, though GB/GBA games resolution is tiny so you must be really strapped for space to not have enough for a capture. Also, Xvid includes B-frames which will make AVIs funky sometimes. Really highly recommend you go lossless Lagarith.
Joined: 8/3/2008
Posts: 254
Aktan wrote:
Guernsey wrote:
HP 15 Home Windows 10 Home 4.00 GB 64 bit Operating System, x64 based processor It does playback fairly well in VLC but it slows down on my editor for some reason.
Would you happen to have the exact model number? I want to find out what CPU. It not playing back in the editor is fine as long as your edits and final file plays fine in VLC, no?
I guess you are right. HP 15 Notebook PC Intel(R) Pentium(R) CPU N3540 @ 2.16GHz P/N: N5Y05UA#ABA
Aktan wrote:
Guernsey wrote:
XviD. There was a Youtube video explains how to resync in VBA
If you're doing editing, I would recommend using lossless like Lagarith. This is assuming you have enough space, though GB/GBA games resolution is tiny so you must be really strapped for space to not have enough for a capture. Also, Xvid includes B-frames which will make AVIs funky sometimes. Really highly recommend you go lossless Lagarith.
Lagarith is that huge? Well, I will that I guess......
Guernsey Adams Pierre
Publisher
Joined: 4/23/2009
Posts: 1283
Guernsey wrote:
I guess you are right. HP 15 Notebook PC Intel(R) Pentium(R) CPU N3540 @ 2.16GHz P/N: N5Y05UA#ABA
That's a pretty slow CPU, honestly. It could be that.
Guernsey wrote:
Lagarith is that huge? Well, I will that I guess......
Lagarith can be huge, but it depends what you think is huge. How much free space do you have and how long are you capturing? With your slower CPU, Lagarith is easier to decode but it depends on your hard drive speed.
Joined: 8/3/2008
Posts: 254
I have 75 GB of 446 GB space so I have 371 GB of hard drive space.
Guernsey Adams Pierre