Page 1 of 1

I have 6 streams in one file - but I want only 2

Posted: 14 Apr 2007 13:59
by rush4hire
Image

I play that file and 3 screens open up, and I suppose 3 sound streams are playing too.

This was recorded with SDP, that's why I started using VLC. It's so much better for recording.

Well I'm sure there's a way to get just one stream.
Here's what works, but the output file is the same. How do I select just the 2 streams; the best audio and the best video.

Code: Select all

C:\Program Files\VideoLAN\VLC\vlc.exe "C:\filepath\file.asf" --sout="#duplicate{dst=std{access=file,mux=asf,dst='C:\test\outputfile.asf'},dst=nodisplay}"
Thanks!! :)

Posted: 14 Apr 2007 15:10
by rush4hire
This will work to get only one audio track:

Code: Select all

Run($vlcpath &' "'& $streamurl &'" --audio-track-id=2 --sout="#duplicate{dst=std{access=file,mux=asf,dst='''& $name &'''},dst=nodisplay}"')
But this does not work

Code: Select all

Run($vlcpath &' "'& $streamurl &'" --audio-track-id=2 --video-track-id=4 --sout="#duplicate{dst=std{access=file,mux=asf,dst='''& $name &'''},dst=nodisplay}"')
----------

I used --file-logging --logfile="C:\test\k6.txt"

I got this when I viewed the stream where I got this file:

Code: Select all

access_mms: selecting stream[0x1] audio (16 kb/s) access_mms: ignoring stream[0x2] audio (12 kb/s) access_mms: ignoring stream[0x3] audio (8 kb/s) access_mms: selecting stream[0x4] video (88 kb/s) access_mms: ignoring stream[0x5] video (43 kb/s) access_mms: ignoring stream[0x6] video (20 kb/s)
But I can't get it to use access_mms as an input module when I'm playing a file on my computer.

I can't get anything to work.
--intf="access_mms" --demux="0x01" --extraintf="access_mms"