Skip to content

Commit 9d3ffed

Browse files
committed
fix: detect more file extensions correctly
1 parent 9a856b6 commit 9d3ffed

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

lib/ffmpeg/media.rb

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,10 @@ def initialize(message, output)
7777
case format_name
7878
when /\Adash\b/ then '.mpd'
7979
when /\bhls\b/ then '.m3u8'
80-
when /\bmpegts\b/ then '.ts'
80+
when /\bmpegts(raw)?\b/ then '.ts'
81+
when /\bmpegvideo\b/ then '.mpg'
82+
when /\blive_flv\b/ then '.flv'
83+
when /\basf_o\b/ then '.asf'
8184
when /\b(mov|mp4)\b/
8285
case major_brand
8386
when /\Aqt\b/i then '.mov'

0 commit comments

Comments
 (0)