Audio/video stream recording forums
|
Attention Visitor: |
You may have to register or log in before you can post:
|
|
|
Thread Tools | Display Modes |
|
#1
|
|||
|
|||
Streamripper Scripting For Windows Help NeededI've been using Streamripper scripts for Linux Mint for a year. The scripts I found a template for work well for saving streams and naming them with the date format I choose. I want to be able to do the same thing in Windows but the command line naming and dating is limited. What I want to do is to crate a script that will allow me to name the file in this format "PROGRAMNAME 07-17-2017.(format suffix)". Here is an example of a script that does this in Linux.
----------------------------------------------------------------------------- #!/bin/sh date=`date +"%m-%d-%Y"` url=http://live2.darkmatterdigitalnetwork.com:10133/stream output_filename=Conspirinormal_${date} duration=10800 output_dir=/home/someuser/Audio/DMDN/Conspirinormal/ cd $output_dir streamripper $url -d $output_dir -l $duration -a $output_filename --------------------------------------------------------------------------- #!/bin/sh date=`date +"%m-%d-%Y"` url=http://live2.darkmatterdigitalnetwork.com:10133/stream output_filename=Conspirinormal_${date} duration=10800 output_dir=/home/someuser/Audio/DMDN/Conspirinormal/ cd $output_dir streamripper $url -d $output_dir -l $duration -a $output_filename ---------------------------------------------------------------------------- Can anyone tell me how to do the same thing with a Windows batch file? Thank you Kylearan |
#2
|
|||
|
|||
Re: Streamripper Scripting For Windows Help NeededCode:
set hour=%time:~0,2% if "%hour:~0,1%" == " " set hour=0%hour:~1,1% set date=%date:~-4%-%date:~3,2%-%date:~0,2%_%hour%-%time:~3,2%-%time:~6,2% set url=http://live2.darkmatterdigitalnetwork.com:10133/stream set output_filename=Conspirinormal_%date% set duration=10800 set output_dir="C:\New folder" cd %output_dir% streamripper %url% -d %output_dir% -l %duration% -a %output_filename% Code:
C:\>set hour=12 C:\>if "1" == " " set hour=02 C:\>set date=2018-04-06_12-03-23 C:\>set url=http://live2.darkmatterdigitalnetwork.com:10133/stream C:\>set output_filename=Conspirinormal_2018-04-06_12-03-23 C:\>set duration=10800 C:\>set output_dir="C:\New folder" C:\>cd "C:\New folder" C:\New folder>streamripper http://live2.darkmatterdigitalnetwork.com:10133/stream -d "C:\New folder" -l 10800 -a Conspirinormal_2018-04-06_12-03-23 Connecting... stream: DMDN server name: Icecast 2.4.0-kh1 declared bitrate: 48 meta interval: 16000 [skipping... ] Conspirinormal Podcast - 205: Aaron Gulyas (The Sa [ 95kb] https://ss64.com/ http://streamripper.sourceforge.net/tutorialconsole.php |
#3
|
|||
|
|||
Re: Streamripper Scripting For Windows Help Needed |
#4
|
|||
|
|||
Re: Streamripper Scripting For Windows Help Needednguyen,
I know you for longer than a year. How much $$$ did you make from advertising here since then? It might be worth selling you anus here as well for a few $$$. |
Tags: batch, scripting, streamripper, windows |
Thread Tools | |
Display Modes | |
|
|