Skip to content

Commit

Permalink
fix space
Browse files Browse the repository at this point in the history
  • Loading branch information
chenxinfeng committed Mar 13, 2024
1 parent 0256247 commit e178821
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ffmpegcv/stream_info.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

def get_info(stream_url):
rtspflag = '-rtsp_transport tcp' if stream_url.startswith('rtsp://') else ''
cmd = 'ffprobe -v quiet -print_format xml {}-select_streams v:0 -show_format -show_streams "{}"'.format(rtspflag, stream_url)
cmd = 'ffprobe -v quiet -print_format xml {} -select_streams v:0 -show_format -show_streams "{}"'.format(rtspflag, stream_url)
output = subprocess.check_output(shlex.split(cmd), shell=False)
root = ET.fromstring(output)
assert (root[0].tag, root[0][0].tag) == ("streams", "stream")
Expand Down

0 comments on commit e178821

Please sign in to comment.