Transport Stream capture with ts_dump.exe and set_event_from_log.exe tools




This document explains how to do a sliding window capture of a Transport Stream from COMPANY_NAME device with ts_dump.exe tool and how to stop the capture when a specific error is detected in the transcoder/encoder logs with set_event_from_log.exe tool.

ts_dump.exe and set_event_from_log.exe tools are property of COMPANY_NAME and may not be distributed.

  1. Connect to COMPANY_NAME device physically or from Windows Remote Desktop client
  2. From the cmd start explorer and browse to D:\
  3. Copy/past ts_dump.exe, ts_dump.bat, set_event_from_log.exe and set_event.bat to D:\ (see. Copy and paste from a remote computer)
  4. From cmd disable firewall netsh firewall set opmode disable

    C:\Windows\system32>netsh firewall set opmode disable

    IMPORTANT: Command executed successfully.
    However, "netsh firewall" is deprecated;
    use "netsh advfirewall firewall" instead.
    For more information on using "netsh advfirewall firewall" commands
    instead of "netsh firewall", see KB article 947709
    at http://go.microsoft.com/fwlink/?linkid=121488 .

    Ok.

  5. Edit ts_dump.bat file and change parameters in orange :

    ts_dump.exe --eventname=stop --ipaddress=238.1.167.1 --memorymode_poolsize=400000 --networkinterface=10.5.55.109 --outfile=capture.ts --udpport=1234 --window=0


  6. Start ts_dump.bat
  7. From cmd start taskmgr and check that ts_dump.exe memory usage is growing
  8. Edit set_event.bat file and change parameters in orange :

    set_event_from_log.exe --detectionstring="error" --eventdelaytime=60 --eventname=stop --logfilename="D:\FIRMWARE\Logs\CODER190B.channels.channel1.log"


  9. Start set_event.bat.
  10. Capture will be stopped automatically when event will be detected in logs.