Site Tools


ffprobe_hints

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
ffprobe_hints [2025/06/10 07:45] – ashleyffprobe_hints [2026/01/07 11:59] (current) – ashley
Line 1: Line 1:
-extract stream data into a file+=====FFMPEG FFPROBE Scripts===== 
 +**Run from lmc-cloud-io-techex-uat-01b:** 
 + 
 +==== extract stream data into a file ==== 
  
   C:\Users\sladea\Downloads\ffmpeg-7.1.1-essentials_build\bin\ffprobe -v quiet -f mpegts -print_format json -show_streams rtp://239.201.140.109:2000 >> C:\Users/sladea/documents/209a.json   C:\Users\sladea\Downloads\ffmpeg-7.1.1-essentials_build\bin\ffprobe -v quiet -f mpegts -print_format json -show_streams rtp://239.201.140.109:2000 >> C:\Users/sladea/documents/209a.json
      
-For Linux script, stripping PTS values +=== For Linux script, stripping PTS values === 
-  ffprobe -v quiet -f mpegts -print_format json -show_streams rtp://239.201.140.109:2000 |  + 
-   +  ffprobe -v quiet -f mpegts -show_streams rtp://239.201.140.109:2000 | sed s/start_pts.*//g | sed s/start_time.*//g >> 209a.json 
-   + 
-ffprobe -v quiet -f mpegts -show_streams rtp://239.201.140.109:2000 | sed s/start_pts.*//g | sed s/start_time.*//g >> 209a.json+==== ffprobe_script ==== 
 + 
 + 
 + 
 +  #!/bin/bash 
 +  rm *-output 
 +  rm comparison_results.txt 
 +  filename='channels' 
 +  echo Starting capture 
 +  while read p; do 
 +  echo Capturing stream  239.201.140.$p 
 +  ffprobe -v quiet -f mpegts -show_streams rtp://239.201.140.$p:2000 | sed s/start_pts.*//g | sed s/start_time> 
 +  echo Comparing stream 239.201.140.$p with Gold standard 
 +  diff -q gold-channel $p-output >> comparison_results.txt >&1 
 +  #cmp -b gold-channel $p-output >> comparison_results.txt >&1 
 +  done < "$filename" 
 + 
 +====Capture stream to TS file==== 
 +  ffmpeg -i rtp://239.20.20.1:3000 -t 60 -c copy /home/ubuntu/video/cap-456a.ts
  
ffprobe_hints.1749541556.txt.gz · Last modified: by ashley