Saturday, January 22, 2011

How to Stream with FME and VHScrCap to JustinTV

These steps will show you how to configure Adobe Flash Media Encoder and VH Screen Capture to stream World of Warcraft from your PC in High Quality to JustinTV.

Step 1) Download and Install

Install both programs using their default paths

Adobe Flash Media Encoder 2.5
VH Screen Capture (1.0.44.0)

Step 2) Setup VH Screen Capture

Run the configuration tool > C:\Program Files (x86)\HmelyoffLabs\VHScrCap\VHScrCapDlg.exe
Click on > Create New One



Select > Settings and set the following configuration

    Frame rate: 30
    Align video [x]
    Show mouse [x]
    Show clicks [x]





All other options should be unchecked
Select > Capture and set the correct width and height based on your current desktop resolution

    Width: 1920
    Height: 1080



Now just close the VH Screen Capture configuration screen

Step 3) Create FME Batch File

Create a new folder on your (C:\) drive and call it "jtv"
Open the folder and create a new text file and call it "jtvgame"
Open the file in notepad and enter the following line of code

    "C:\Program Files (x86)\Adobe\Flash Media Encoder 2.5\FMEcmd.exe" /p C:\jtv\jtvgame.xml

Now perform a File > Save As... and change the Save As Type to All Files and name it jtvgame.bat

Step 4) Create FME XML File

Run the Adobe Flash Media Encoder 2.5 GUI and configure the these settings
 
    Preset: Custom
    Video [x]
    Device: VHScrCap
    Format: VP6
    Bit Rate: 1000
    Size: 1920x1080
    FPS: 60.00

    Audio [x]
    Device: ** YOUR SOUND CARD NAME / Playback Device **
    Format: Mp3 / Stereo
    Sample Rate: 44100
    Bit Rate: 128

    Panel Options: Output
    Stream to Flash Media Server [x]
    FMS URL: rtmp://live.justin.tv/app



All other options and fields should be unchecked and left blank
Now perform a File > Save Profile and change the Save in to "jtv" folder (C:\jtv)
Now name the file jtvgame.xml and click on the save button
Close the Flash Media Encoder GUI

Step 5) Edit FME XML File with Stream Key

Log in to your JustinTV account
Now navigate to http://www.justin.tv/broadcast/adv_other to obtain/copy your Stream Key
Locate the the jtvgame.xml file inside the C:\jtv folder and open it in notepad
Search for the "<stream>" field and paste your JustinTV Stream Key

    <stream>live_XXXXXXXX_XXXXXXXX....</stream>

Search for the "<directory>" field and make sure it has the correct path

    <directory>C:\jtv\</directory>

Now save the file with the new changes




Step 6) Start Streaming

Just double-click on the jtvgame.bat file inside the C:\jtv folder and a black screen will come up
The screen will display bit rate and fps information it will also show your jtv stream key
Make sure to minimize or hide the screen as soon as it starts so that no one can see your Stream Key

The JustinTV Stream Key is like a password so do not give it out to anyone.



** Thanks to Multiboxing for proving the original "How To" instructions **

17 comments:

  1. Hello,

    Thanks a lot for this tuto, could not get it working with the others.

    The only problem I meet is that the streaming is not covering the entire space on the movie.

    (Look at one of my video if you didn't understand, as it's hard to explain : http://fr.justin.tv/arktal/b/280045280 )

    ReplyDelete
  2. Try placing a check mark on the (Resize to output size) box

    ReplyDelete
  3. I re-installed everything, went into the jtvgame.xml to change things and got this result : http://fr.justin.tv/arktal/b/280102922

    But still can't get rid of these bars =X

    ReplyDelete
  4. @Arktal the black bars on the top are normal for widescreen, look at my video http://justin.tv/lovtrain/b/280016371

    ReplyDelete
  5. I've setup everything and the stream looks fine but everytime I start it there's some kind of stuttering in the game. The in-game FPS shows I'm running at 100 though so I absolutely cannot figure out what's causing it. Any ideas?

    ReplyDelete
  6. @ArcTerran Check your upload speed (speedtest.net), make sure your not running a program in the background that might be utilizing to many resources.

    ReplyDelete
  7. My CPU is always around 14% (on an i7-920) and my upload speed is around 7mbps. Even without streaming just having FME open causes this mouse lag/stuttering I'm talking about. I did find out that turning crossfire (2x 4980s) off helped a significant amount, but there's still some left. I'm thinking it might be an ATI problem but I don't know.

    ReplyDelete
  8. @ArcTerran It sounds like a video card driver issue then, I had a similar issue when I started broadcasting where VHScrc would cause my screen to crash, you can try using the newer version of VHScr but it has a watermark on it =/

    ReplyDelete
  9. I love the detail, and it seemed a lot easier than other guides. One problem, when I double click the .bat file it does not bring anything up.

    ReplyDelete
  10. @DavidHill76 - You should be getting a black screen showing the status of the stream, if the black screen pops up but disappears, you will need to double check your settings.

    ReplyDelete
  11. yeah it's not workin, but I found a way to get it to work using another guide.

    However, now, whenever I try to broadcast, the aspect ratio is off, so I played with it til I got it right.

    NOW, it won't keep a continuous stream. it will start, then immediately stop.

    ReplyDelete
  12. This comment has been removed by the author.

    ReplyDelete
  13. After completing all of these steps, and after runing the .bat file DOS opens and and the vh multi camera studio opens and NOTHING else happens.... \

    edit:
    OK so I have to close out the same window three times that keeps poping up and then the DOS runs some commands and closes out...

    ReplyDelete
  14. @Jeremy - If it fails to start encoding, try restarting the computer. This is an issue with the VhsCrap because its an older version.

    ReplyDelete
  15. Hey, i've followed the tutorial to a T, But when i double click the .bat file, command prompt comes up and closes instantly, i managed to ss it, and it says " 'C:\Program' is not a recognized as an internal or external command, operable program or batch file."

    Using win7 btw.

    ReplyDelete