Don't put both commands in batch file. if you have created a batch file with notepad then just copy the first command to file and save it. Make sure file's extension is .bat
NOT .txt.
Code:
1. Open up Notepad in Windows and copy paste first command line.
2. Go to File > Save As...
3. Choose your rtmpdump folder as the location to save.
4. Click on the dropdown box "Save as type:" and select "All files" instead of Text (*.txt).
5. Add .bat to the end of your file name before you save. For example, you would type Cam1.bat.
6. Click on Save. If you did this correctly, you should see your file name in the title bar of Windows Notepad. Make sure that it reads as Cam1.bat not Cam1.bat.txt.
Second command is to create the batch file from dos prompt. You don't have to use it if you use the first method.