PDA

View Full Version : Appending 2 differnt formats...?


Internet
1st October 2009, 17:50
Hello all...

I need to append both clip1.avi and clip2.avi together,

I've tried both...
a = avisource("clip1.avi")
b = avisource("clip2.avi")
AlignedSplice(a,b)

AND

Source1=AVISource("clip1.avi")
Source2=AVISource("clip2.avi")
Return Source1+Source2

I don't know the differnce [That's what i'm posting under General > Newbies]
But I'm always getting a "Video formats don't match" error.


Clip1.avi
Format : AVI
File size : 131 MiB
Duration : 5mn 6s
Overall bit rate : 3 585 Kbps
Writing library : VirtualDub build 32618/release

Video
Format : TechSmith
Codec ID : tscc
Codec ID/Info : TechSmith Screen Capture
Duration : 5mn 6s
Bit rate : 3 449 Kbps
Width : 640 pixels
Height : 360 pixels
Display aspect ratio : 16/9
Frame rate : 20.000 fps
Resolution : 32 bits
Bits/(Pixel*Frame) : 0.748
Stream size : 126 MiB (96%)

Audio
ID : 1
Format : MPEG Audio
Format version : Version 1
Format profile : Layer 3
Codec ID : 55
Codec ID/Hint : MP3
Duration : 5mn 6s
Bit rate mode : Constant
Bit rate : 128 Kbps
Channel(s) : 2 channels
Sampling rate : 44.1 KHz
Resolution : 16 bits
Stream size : 4.68 MiB (4%)
Alignment : Split accross interleaves
Interleave, duration : 50 ms (1.00 video frame)
Interleave, preload duration : 500 ms


Clip2.avi
Format : AVI
File size : 1.41 MiB
Duration : 8s 50ms
Overall bit rate : 1 468 Kbps
Writing library : VirtualDub build 32618/release

Video
Format : TechSmith
Codec ID : tscc
Codec ID/Info : TechSmith Screen Capture
Duration : 8s 50ms
Bit rate : 54.9 Kbps
Width : 640 pixels
Height : 360 pixels
Display aspect ratio : 16/9
Frame rate : 20.000 fps
Resolution : 24 bits
Bits/(Pixel*Frame) : 0.012
Stream size : 53.9 KiB (4%)

Audio
Format : PCM
Format settings, Endianness : Little
Format settings, Sign : Unsigned
Codec ID : 1
Codec ID/Hint : Microsoft
Duration : 7s 961ms
Bit rate mode : Constant
Bit rate : 1 411.2 Kbps
Channel(s) : 2 channels
Sampling rate : 44.1 KHz
Resolution : 16 bits
Stream size : 1.34 MiB (95%)
Interleave, duration : 53 ms (1.07 video frame)
Interleave, preload duration : 500 ms

Any help is much appreciated.
Regards,

poisondeathray
1st October 2009, 18:14
Check with info() on each source to make sure the frame rate is exactly 20fps
If not, use assumefps(20)

The audio formats don't match (PCM vs mp3), but that shouldn't matter since you are appending in avisynth

Internet
1st October 2009, 18:41
Thanks for your response,poisondeathray. Like I've stated above, both have the same frame rate...

Here's a screen cap of "AviSource("clip1.avi").Info"
http://img21.imageshack.us/img21/6859/snapshot1kd.jpg

AviSource("clip2.avi").Info
http://img32.imageshack.us/img32/2401/snapshot22s.jpg

poisondeathray
1st October 2009, 18:44
Sometimes mediainfo misreports the fps, it's good practice to double check.

Anyways, one is rgb32 one is rgb24

Use converttorgb32() or converttorgb24() on either clip so they match. If you are not using alpha channel then rgb24 makes more sense

MatLz
1st October 2009, 18:49
One is rgb24 and the other is rgb32.

Edit: I'm very very very slow...

Internet
1st October 2009, 19:45
Thanks again poisondeathray
LOL@MatLz

Alirght, I've done it... But when I play the AVS file or open it with VirtualDub, the video looks really fucked up. Flashing black and stuff like that.
I've removed the other video [clip2] from the avs file, played it... but still having the same problem.
Even when I was trying the info() ... that's why the screenshots above are black :S

I've captured a video it to let you see how it looks like, Actually on my computer it looks even worse.

http://www.youtube.com/watch?v=Zg98436jsD0

poisondeathray
1st October 2009, 19:51
What about playing each video alone, in a media player ? i.e. is this a decoding issue?

If the original has the screw ups and flashes, it's possible your capture got screwed up or dropping frames, something like that.

What software are you using to capture with? A good lossless codec to capture with is huffyuv or ut video codec, then you do your edits and encode to your final format goal (I don't think techsmith is lossless)

Internet
1st October 2009, 20:03
The original clip1.avi and clip2.avi are working perfectly... I dunno what's wrong with avisynth :\

Edit: I used Camstudio with TechSmith Screen Capture Codec.

poisondeathray
1st October 2009, 20:24
Do you have ffdshow installed? Are you using the ffdshow vfw to decode techsmith for avisource? If you aren't using it, try enabling it (yellow icon is the vfw interface, not red icon) . It's possible the default techsmith decoder or ffdshow vfw decoder is broken

If the vfw decoder is broken for techsmith, you could use DirectShowSource()++DirectShowSource() to append as another option. This should use whatever your installed default directshow filter is (i.e. should be the one used in a directshow player like MPC)

If you recorded using the same formats (same colorspace, same audio), you should be able to losslessly append in vdub as well

Internet
1st October 2009, 21:20
Not working...

Actually the clip2.avi is not a recorded video like the other one :\

Internet
7th October 2009, 18:21
Alright, I'm back.
This happens with any video encoded by Techsmith. Other AVIs are working fine.

So, Is there anyway to encode these 2 vids to something else quickly and without losing any quality?!

Internet
12th October 2009, 01:53
Any ideas? :)

setarip_old
12th October 2009, 02:46
Hi!I used Camstudio with TechSmith Screen Capture CodecThis happens with any video encoded by TechsmithThese two statements appear to be contradictory:

The second statement is indicative of the behavior encountered if you don't own a purchased and registered version (and, therefore, fully functional) of the Techsmith codec. Yet the first statement would indicate that you DO own a purchased and registered version of the Techsmith codec...

http://74.125.155.132/search?q=cache:E4po9pjCjm0J:groups.google.com/group/showmedo/msg/0ca1f50adf2c3b80+camstudio%2Btechsmith&cd=2&hl=en&ct=clnk&gl=us

you can *decode* freely using the TechSmith codec from their site but you are *forbidden* to encode using that download. I know - I have tried. You get an error message telling you that you need to purchase a full CamTasia license.

Internet
12th October 2009, 05:12
I'm using the Techsmith codec [Which is free] with Camstudio [which is free too]; CamTasia is not involved.

So, Is there anyway to encode [Or convert?] these 2 vids to something else quickly and without losing any quality?!
That's the question now.

setarip_old
12th October 2009, 07:50
My apologies. It looks like things have changed since the last time (apparently a few years ago!) I had occasion to use the TSCC codec (as part of my purchased "Camtasia")...

Since you have "CamStudio" and the "Techsmith" codec, why don't you simply play and record each of the .AVIs, using identical video and audio settings for both?

Internet
12th October 2009, 13:00
The second video is not a recorded video, It is just an outro. Anyway, when I try to append them with avisynth the video frames get ***. [This happens with any video made with Techsmith codec] other AVIs work just fine.

Again, same question :'*(
So, Is there anyway to convert these 2 vids to something else quickly and without losing any quality?!

setarip_old
12th October 2009, 22:22
The second video is not a recorded video, It is just an outroI'm afraid I don't see what this has to do with my suggestion that you play and re-record both clips. (Regardless of the original sources, you have two clips)

Please clarify...

Internet
12th October 2009, 23:49
Play and re-record both clips? I don't get what that means?!

setarip_old
13th October 2009, 00:13
Play and re-record both clips? I don't get what that means?! While playing the .AVI clip on your PC, record it with Camstudio. Without changing the Camstudio settings, do the same for each of the two .AVI clips.

They will then be IDENTICAL in ALL video and audio respects and then can be simply joined using VirtualDub as follows:

1) Loading the first .AVI and then, from the "File" dropdown menu selecting "Append .AVI segment" and loading the second file.

2) Set BOTH "Video" and "Audio" to "Direct Stream Copy"

3) Save with a new filename