Skip to content

Commit

Permalink
Merge pull request #21 from geekmug/patch-1
Browse files Browse the repository at this point in the history
Use -bsf:v to avoid issues with unsupported audio
  • Loading branch information
wmcbrine authored Nov 14, 2016
2 parents 9fdbd7e + 7323e9f commit dcb0fee
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions plugins/video/transcode.py
Original file line number Diff line number Diff line change
Expand Up @@ -321,9 +321,9 @@ def select_videocodec(inFile, tsn, mime=''):
if (mime == 'video/x-tivo-mpeg-ts'):
org_codec = vInfo.get('vCodec', '')
if org_codec == 'h264':
codec += ['-bsf', 'h264_mp4toannexb']
codec += ['-bsf:v', 'h264_mp4toannexb']
elif org_codec == 'hevc':
codec += ['-bsf', 'hevc_mp4toannexb']
codec += ['-bsf:v', 'hevc_mp4toannexb']
else:
codec += ['mpeg2video', '-pix_fmt', 'yuv420p'] # default
return codec
Expand Down

0 comments on commit dcb0fee

Please sign in to comment.