Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion.

Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules.

Domains: forum.doom9.org / forum.doom9.net / forum.doom9.se

 

Go Back   Doom9's Forum > Capturing and Editing Video > Avisynth Usage
Register FAQ Today's Posts Search

Reply
 
Thread Tools Search this Thread
Old 11th July 2004, 22:44   #1  |  Link
DvdKhl
Registered User
 
Join Date: Dec 2002
Location: Germany
Posts: 82
2 Audio Streams & reading a ssa file out of an AVI

I want to cut out the Start & End credits of an series and attach them all together, so I can watch without needing to load another file when one episode ends.

I don't want to reencode them just cut, join them and then load them into BSPlayer.

So, in my AVIs are 4 files:
1x Video *g*
2x Audio (mp3)
1x Subtitle (ssa)

Now I'm having 2 problems:
1. There is only one audio stream available
2. I don't know how to read the muxed ssa file so TextSub() can work with it


This is my best result so far.

Code:
N1 = avisource("Nr 01.avi").AssumeFPS(23.976)
  N1 = TextSub(N1,"Nr 01.ssa")
  N1 = trim(N1,0,16200) + trim(N1,16410,32524)
.
.
.
NR = N1 + N2 + N3 + N4 + N5 + N6 + N7 + N8 + N9 + N10 + N11 + N12 + N13 + N14 + N15 + N16 + N17 + N18 + N19 + N20 + N21 + N22 + N23 + N24 + N25 + N26

RETURN NR
But this only works if the ssa file isn't mused into the AVI file.

Is there a way that Avisynth can load both Audio streams?
Can I access an ssa file which is muxed into an AVI?
DvdKhl is offline   Reply With Quote
Old 12th July 2004, 01:41   #2  |  Link
DarkNite
Almost Silent Member
 
DarkNite's Avatar
 
Join Date: Jun 2002
Location: Purgatory
Posts: 273
Demux to seperate files, and then revise your script.

However, wouldn't it be a whole lot easier to just make a playlist?
__________________
Rethinking the "Why?" chromosome.
DarkNite is offline   Reply With Quote
Old 12th July 2004, 09:05   #3  |  Link
DvdKhl
Registered User
 
Join Date: Dec 2002
Location: Germany
Posts: 82
The problem with playlists is,
that I can't set the beginning and the ends of each file.
Thats why I used Avisynth.

So there is no way accessing the second Audio-stream and
the ssa file without demuxing them?
Because I would like to have one file
instead of three per episode.
DvdKhl is offline   Reply With Quote
Old 12th July 2004, 19:57   #4  |  Link
Cyberia
Registered User
 
Cyberia's Avatar
 
Join Date: Nov 2002
Location: Inside
Posts: 718
OK, so you don't want to reencode. Then you can't use AviSynth to do what you are attempting. AviSynth is decoding the frames, not passing on the encoded frames. See the difference? Also, AviSynth ONLY supports one audio stream, and I don't think it supports muxed subtitles (but I could be wrong there)

You need to use VirtualDubMod. That will allow you to cut a section of the AVI (including cutting both audio streams) out without reencoding. I am not sure if/how VdubMod will cut the subtitles however.
Cyberia is offline   Reply With Quote
Old 13th July 2004, 15:04   #5  |  Link
DvdKhl
Registered User
 
Join Date: Dec 2002
Location: Germany
Posts: 82
Quote:
OK, so you don't want to reencode.
Then you can't use AviSynth to do what you are attempting.
AviSynth is decoding the frames, not passing on the encoded frames.
OK. But for me it is just important that the AVS I made
can be played by a softwareplayer like BSPlayer and it work fine so far.
So with "don't want to reencode" I just meant that I don't want to create a new AVI.

The last problems I had was to read the ssa out of an AVI and
the second audio stream.

Since it seems that isn't possible,
I'm going to use only one audio stream and demux the ssa file.

I can live with that too. Just wanted to know if it's possible.


Quote:
You need to use VirtualDubMod.
That will allow you to cut a section of the AVI
(including cutting both audio streams) out without reencoding.
I am not sure if/how VdubMod will cut the subtitles however.
That was the first thing I did but since VDM only
cuts between keyframes it is no use to me,
because in my source aren't many keyframes.
AviSynth will do this just fine.
DvdKhl is offline   Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 02:00.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.