PDA

View Full Version : I need a batch file made just for me please


Guest110
11-10-2006, 01:17 PM
I need a batch file to do this please (http://www.kickenhardware.net/forum/showthread.php?t=4774) see post 2

Thought i would put it in here in case a clever member can help

rVidia
11-10-2006, 04:45 PM
Sure thing, BM ;)

Here's what I need you to do:

1) Open Notepad (Start > Run > notepad)
2) Paste this into the Notepad window:

"C:\Program Files\VideoLAN\VLC\vlc.exe" --mms-caching 5000 mms://live.wildlife.wavelit.net/451OK

Note: The location of vlc.exe may differ.

3) Go to Save As
4) Save the file as "AfricaCam.bat" WITH quotes

That's it! Save the batch file to your desktop, for example, and just double-click it to open it.

I hope this is what you're looking for,
Ray

Guest110
11-10-2006, 04:47 PM
you are a star thank you so much:D

Guest110
11-10-2006, 04:51 PM
AHH is that just to open it and not start it recording.. I only ask because usually when it is recording i lose the picture

rVidia
11-10-2006, 04:52 PM
Glad to help :) That will open the Africa Cam.

Guest110
11-10-2006, 04:59 PM
Glad to help :) That will open the Africa Cam.

and for making it autonmaically record..:) .. or is that asking for the moon on a stick please
:pout:

rVidia
11-10-2006, 05:14 PM
I know it's possible; I'll have to play around with some things, and I'll get back to you later.

Guest110
11-10-2006, 05:15 PM
I know it's possible; I'll have to play around with some things, and I'll get back to you later.


thank you .....no rush :D

rVidia
11-10-2006, 05:41 PM
See if this works, BM:

1) Right-click the AfricaCam.bat file.
2) Select "Edit"
3) Delete everything in the file and paste this into the window:

"C:\Program Files\VideoLAN\VLC\vlc.exe" --mms-caching 5000 mms://live.wildlife.wavelit.net/451OK :sout=#transcode{vcodec=mp4v,acodec=mp4a,ab=32,cha nnels=2}:duplicate{dst=display,dst=std{access=file ,mux=mp4,url="%userprofile%\Desktop\AfricaCam.mp4"}}
4) Save.

Just as a test, open the batch file and leave it open for about ten seconds. Then close out, find AfricaCam.mp4 on the desktop, and double-click it. If a dialog comes up that says Windows cannot open the file, choose "Select the program from a list", click OK, find VLC media player in the list, and click OK.

Let me know if that does the trick,
Ray

Tortanick
11-10-2006, 06:08 PM
Wow rVidia. I knew this was possible but one look at the VLC wiki and I didn't think I'd ever figure it out. Well done! (I tested it and it works fine)

P.S. might I recomend replaceing the filename of AfricaCam with the date and time started.

rVidia
11-10-2006, 06:17 PM
Thanks for the kind words, Tortanick :) I'm glad it works! Regarding the file name, you can't use the variables %date% or %time% in the file name, or the file itself will not be created, so a name such as AfricaCam must be used. Then, you can simply rename the file to date/time after.

PeteF
11-11-2006, 12:02 AM
rVidia,
I'm impressed! Very good!
I was going to suggest trying to use AutoIT,
but you did it more elegantly.

Are you familiar with AutoIT? See this recent post about AutoIT.
http://www.kickenhardware.net/forum/showthread.php?t=3243&highlight=autoIT#2

---pete---

Guest110
11-11-2006, 02:58 AM
See if this works, BM:

1) Right-click the AfricaCam.bat file.
2) Select "Edit"
3) Delete everything in the file and paste this into the window:

"C:\Program Files\VideoLAN\VLC\vlc.exe" --mms-caching 5000 mms://live.wildlife.wavelit.net/451OK :sout=#transcode{vcodec=mp4v,acodec=mp4a,ab=32,cha nnels=2}:duplicate{dst=display,dst=std{access=file ,mux=mp4,url="%userprofile%\Desktop\AfricaCam.mp4"}}
4) Save.

Just as a test, open the batch file and leave it open for about ten seconds. Then close out, find AfricaCam.mp4 on the desktop, and double-click it. If a dialog comes up that says Windows cannot open the file, choose "Select the program from a list", click OK, find VLC media player in the list, and click OK.

Let me know if that does the trick,
Ray

RAY
Thank you so much.. it works like a dream
now i can keep an eye out for the exciting action and capture it live:D

you are http://i96.photobucket.com/albums/l183/blackmirror111/burninghot_e0.gif when it comes to batch files.. Thanks again

Mr T thanks also http://i96.photobucket.com/albums/l183/blackmirror111/pc_2.gif

I am a very happy BM

Tortanick
11-11-2006, 03:33 AM
And this is why every program should be command line compatible!

Guest110
11-11-2006, 03:45 AM
And this is why every program should be command line compatible!

The next question is how do i edit the videos now to prune out the best bits. What do i need to do for that. ????

Guest110
11-11-2006, 06:12 AM
Another q can i have both those batch files on my desktop soi donr have to keep opeing wmp to view the cam
Seems easier to have the vlc one open and then use the batch file to record if anything EXCITING happens

Guest110
11-11-2006, 06:21 AM
Yes you can.... just tried it.. now for editing program

rVidia
11-11-2006, 09:10 AM
BM:

First, thanks for the kind words :cool: For editing, you can download these two free programs (you will only use one to edit but the other is necessary to open the mp4 file):

First download KL QuickTime Alternative from here (http://www.filehippo.com/download_quicktime_alternative/) and run the installer.

Next download MPEG Streamclip from here (http://www.squared5.com/svideo/mpeg-streamclip-win.html) and unzip the .zip file.

Then, open the MPEG Streamclip folder and double-click MPEG_Streamclip.exe. Once open, go to File > Open Files > find AfricaCam.mp4 > click the Open button. Then click the play button (sideways triangle) near the bottom and you'll see that the file has opened. While it's playing, there will be a cursor moving along the bottom bar to show you where you are in the video. Now, to edit:

First pause the video (||)

Next,

1) Move this cursor to the beginning spot you want to remove/cut from the video. Press the "i" button on your keyboard.
2) Move this cursor to the end spot you want to remove/cut from the video. Press the "o" button on your keyboard.

(i stands for in; o stands for out)

3) Once you have done so, you will see the part you want to remove is a dark shade of gray. To remove/cut that portion of the video, go to Edit > Cut.

Repeat steps 1 - 3 to remove different parts of the video.

4) To save the file, go to File > Save As. Remove whatever is currently in the File name box and type in (for example) "AfricaCam-edit.mp4" WITH quotes.

5) Click the Save button.

You may then close out of MPEG Streamclip, and your video should be edited.

Hope this helps,
Ray

Guest110
11-11-2006, 09:18 AM
I think Xmas has come early lol i am having so much fun making little videos lol im going to need a new hard drive just for them

thanks to you Ray
i will have a try at editing now lol
thanks again:D :)

Guest110
11-11-2006, 09:26 AM
I can edit now thanks to you

now can you make me a lottery batch file that will pick out the winning numbers tonight so we can all get together for a knees up:):tea: :grouphug: :juggle:

rVidia
11-11-2006, 09:32 AM
You're welcome, BM. :) Give me a few minutes and I'll get ya those winning numbers. ;) (Now that would be an early Christmas present!)

Guest110
11-11-2006, 10:45 AM
You're welcome, BM. :) Give me a few minutes and I'll get ya those winning numbers. ;) (Now that would be an early Christmas present!)

yes then you would be able to watch ME at the waterhole:D

Guest110
11-14-2006, 03:51 PM
I want to edit all the movies mpeg4 and i want to use movie maker windows( it would be easier) but it wont accept the files.. do i need a converter please

Tortanick
11-14-2006, 04:58 PM
You can retranscode it to wmv 3 and mp3 then save it in an asf file and it will work with windows movie maker.

I did find some weird doubleing takeing place when I retranscoded not sure why so watch out for that, if it happens to you just set a partical extract covering the whole thing.

As for modifying the batch file to use wmv3 and mp3 I'm trying but I doub't I'll pull it off. [edit] nope, it downloaded and saved soemthing windows media player said was corrupted. guess rVidia will have to redo it

rVidia
11-14-2006, 06:45 PM
Try this:
"C:\Program Files\VideoLAN\VLC\vlc.exe" --mms-caching 5000 mms://live.wildlife.wavelit.net/451OK :sout=#transcode{vcodec=wmv2,acodec=mp3,ab=128,cha nnels=2}:duplicate{dst=display,dst=std{access=file ,mux=asf,url="%userprofile%\Desktop\AfricaCam.wmv"}}
Let me know if that works.

Guest110
11-15-2006, 03:32 AM
Try this:
"C:\Program Files\VideoLAN\VLC\vlc.exe" --mms-caching 5000 mms://live.wildlife.wavelit.net/451OK :sout=#transcode{vcodec=wmv2,acodec=mp3,ab=128,cha nnels=2}:duplicate{dst=display,dst=std{access=file ,mux=asf,url="%userprofile%\Desktop\AfricaCam.wmv"}}
Let me know if that works.

I cant seem to see anything. I hear audio but no picture i have tried checking that with the previous one to see if i canspot the error( if there is one ) and my brain hurts

Guest110
11-15-2006, 03:58 AM
Oh this is driving me mad.. i have been over it with a fine tooth comb even changed a couple of things and still no pic

Help me out here please:D

Tortanick
11-15-2006, 04:24 AM
I'm at school so I can't do any tests but I do notice that rVidia is useing wmv 2, I used wmv3 so that may be the problem.

Try this:
"C:\Program Files\VideoLAN\VLC\vlc.exe" --mms-caching 5000 mms://live.wildlife.wavelit.net/451OK :sout=#transcode{vcodec=wmv3,acodec=mp3,ab=128,cha nnels=2}:duplicate{dst=display,dst=std{access=file ,mux=asf,url="%userprofile%\Desktop\AfricaCam.wmv"}}

If that dosn't work saving it as a .asf file rather than wmv may help but I doubt it.

"C:\Program Files\VideoLAN\VLC\vlc.exe" --mms-caching 5000 mms://live.wildlife.wavelit.net/451OK :sout=#transcode{vcodec=wmv3,acodec=mp3,ab=128,cha nnels=2}:duplicate{dst=display,dst=std{access=file ,mux=asf,url="%userprofile%\Desktop\AfricaCam.asf"}}

P.S. when you say no pic, is that with VLC or with windows movie maker?

Guest110
11-15-2006, 05:36 AM
I'm at school so I can't do any tests but I do notice that rVidia is useing wmv 2, I used wmv3 so that may be the problem.

Try this:
"C:\Program Files\VideoLAN\VLC\vlc.exe" --mms-caching 5000 mms://live.wildlife.wavelit.net/451OK :sout=#transcode{vcodec=wmv3,acodec=mp3,ab=128,cha nnels=2}:duplicate{dst=display,dst=std{access=file ,mux=asf,url="%userprofile%\Desktop\AfricaCam.wmv"}}

If that dosn't work saving it as a .asf file rather than wmv may help but I doubt it.

"C:\Program Files\VideoLAN\VLC\vlc.exe" --mms-caching 5000 mms://live.wildlife.wavelit.net/451OK :sout=#transcode{vcodec=wmv3,acodec=mp3,ab=128,cha nnels=2}:duplicate{dst=display,dst=std{access=file ,mux=asf,url="%userprofile%\Desktop\AfricaCam.asf"}}

P.S. when you say no pic, is that with VLC or with windows movie maker?


with the vlc player

Guest110
11-15-2006, 05:45 AM
1ist one still no picture
2nd one still no pics

sorry MRT but thanks for trying

Guest110
11-15-2006, 07:48 AM
i have tried and failed

rVidia
11-15-2006, 08:25 AM
I should probably note that WMV3 is not yet supported, and that's why WMV2 was used. Try this, BM:
"C:\Program Files\VideoLAN\VLC\vlc.exe" --mms-caching 5000 mms://live.wildlife.wavelit.net/451OK :sout=#transcode{vcodec=wmv2,vb=512,scale=1,acodec =mp3,ab=192,channels=2}:duplicate{dst=display,dst= std{access=file,mux=asf,url="%userprofile%\Desktop\AfricaCam.wmv"}}
or this:
"C:\Program Files\VideoLAN\VLC\vlc.exe" --mms-caching 5000 mms://live.wildlife.wavelit.net/451OK :sout=#transcode{vcodec=wmv2,vb=512,scale=1,acodec =mp3,ab=192,channels=2}:duplicate{dst=display,dst= std{access=file,mux=asf,url="%userprofile%\Desktop\AfricaCam.asf"}}
Sorry for having to make you try this and try that; unfortunately, I don't have VLC Media Player installed on my home machine. :) Again, let me know the results,

Ray

Guest110
11-15-2006, 08:46 AM
Still no picture sorry

Guest110
11-16-2006, 06:30 AM
Wheres my knight in shining armour:)

rVidia
11-16-2006, 07:17 AM
"C:\Program Files\VideoLAN\VLC\vlc.exe" --mms-caching 5000 mms://live.wildlife.wavelit.net/451OK :sout=#transcode{vcodec=wmv2,scale=1,acodec=wma,ab =96,channels=2}:duplicate{dst=display,dst=std{acce ss=file,mux=asf,url="%userprofile%\Desktop\AfricaCam.wmv"}
Does this work for you?

Guest110
11-16-2006, 07:21 AM
"C:\Program Files\VideoLAN\VLC\vlc.exe" --mms-caching 5000 mms://live.wildlife.wavelit.net/451OK :sout=#transcode{vcodec=wmv2,scale=1,acodec=wma,ab =96,channels=2}:duplicate{dst=display,dst=std{acce ss=file,mux=asf,url="%userprofile%\Desktop\AfricaCam.wmv"}
Does this work for you?

No sorry still no picture nice clear audio though:) houston we have a problem!!!!!!!!!!!!!:angel:

Guest110
11-25-2006, 10:46 AM
Bumpity bumpity bumpity bump.. i can see you are back:)rvidia

rVidia
11-25-2006, 11:51 AM
Bumpity bumpity bumpity bump.. i can see you are back:)rvidia
*Hides from BM* ....... I'll get back to you as soon as possible, when I don't have so much work on my hands :)

Guest110
11-25-2006, 01:35 PM
*Hides from BM* ....... I'll get back to you as soon as possible, when I don't have so much work on my hands :)

dont worry i knew you had been hiding from me...........:)

:boink: :bounce:

Guest110
01-05-2007, 03:36 AM
Bumpity bumpity bumb

you have been hiding from me since the 25 November lol.. come out where ever you are please

http://i96.photobucket.com/albums/l183/blackmirror111/th812249469_l.gif

Guest110
01-08-2007, 03:28 PM
Bumpy bumpy bumpy bumpy.......

rVidia
01-08-2007, 08:22 PM
I apologize, BM, as I realize it's been a while since my last reply. Unfortunately, I do not have VLC installed on any of my home computers, so I will hopefully get around to downloading it soon and will try to play with it over the weekend.

Guest110
01-12-2007, 04:25 PM
I apologize, BM, as I realize it's been a while since my last reply. Unfortunately, I do not have VLC installed on any of my home computers, so I will hopefully get around to downloading it soon and will try to play with it over the weekend.

Not to worry lol its just i have been downloading loads of clips and then i have to try to convert them and its making my head spin.....:D
I really appreciate it thanks

rVidia
01-21-2007, 09:38 AM
Sorry about the wait, BM. I just got the chance to download VLC this morning. It would've helped so much if I had done so earlier, as I was able to figure it out in just a few minutes! Let me know if this code works for you:
"C:\Program Files\VideoLAN\VLC\vlc.exe" --mms-caching 5000 mms://live.wildlife.wavelit.net/451OK :sout=#transcode{vcodec=DIV3,vb=256,scale=1,acodec =mp3,ab=32,channels=2}:duplicate{dst=display,dst=s td{access=file,mux=asf,url="%userprofile%\Desktop\AfricaCam.asf"}}
Just make that AfricaCam.bat, open it, and then wait for it to record AfricaCam.asf on the desktop.

Then, open Movie Maker, go to File > Import into Collections, and import the .asf file. Next, you can drag the file to the storyboard, and you should be able to play it. However, I don't think it's possible to edit the video using Movie Maker, as I don't think you can "break it up" into parts. Therefore, you may still have to use MPEG Streamclip (post (http://www.kickenhardware.net/forum/showpost.php?p=18662&postcount=18)) for that purpose, so I'm actually not sure how Movie Maker helps here. :eek: If you have different video clips you'd like to combine together, though, you can do so by importing them to Movie Maker and creating a video that way.

EDIT: Now that I think of it, .asf is not a supported file type for MPEG Streamclip, so you won't be able to edit the video anyway. So here's an alternative:

1) Use this code for AfricaCam.bat (the old mp4 code):
"C:\Program Files\VideoLAN\VLC\vlc.exe" --mms-caching 5000 mms://live.wildlife.wavelit.net/451OK :sout=#transcode{vcodec=mp4v,acodec=mp4a,ab=32,cha nnels=2}:duplicate{dst=display,dst=std{access=file ,mux=mp4,url="%userprofile%\Desktop\AfricaCam.mp4"}}
2) Edit the .mp4 file using MPEG Streamclip.
3) Once finished, go to File > Export to AVI > Make AVI > Save (to the desktop, for example).

The .avi files are supported by Movie Maker, so you can then import the edited .avi file into Movie Maker. I'm not sure what you're trying to do with Movie Maker, but it's pretty useless in terms of editing the clips, as mentioned above (but you can combine the edited .avi clips together with it ;)).

Hopefully, this will help you out...

Let me know,
Ray

Guest110
01-21-2007, 02:35 PM
Thanks Ray .. much appreciated .. will let you know how i get on