video - Can't figure out how to get ffmpeg to save to an odd file extension -


i'm working on network encoder sagetv. request sagetv filenames. i'm trying capture video capture card , write out file called

'd:\media\tvrecordings\rokunetworkencoderonlocalhost4510tvtuner- 0.mpgbuf'

here's command i'm using:

c:\users\user>c:/users/user/desktop/ffmpeg-20150928-git-235381e-win64-static/bin/ffmpeg.exe -f dshow -crossbar_video_input_pin_number 2 -i video="ati avstream analog capture" d:\media\tvrecordings\rokunetworkencoderonlocalhost4510tvtuner-0.mpgbuf

when run command, error:

[null @ 00000000087f9160] unable find suitable output format 'd:\media\ tvrecordings\rokunetworkencoderonlocalhost4510tvtuner-0.mpgbuf' d:\media\tvrecordings\rokunetworkencoderonlocalhost4510tvtuner-0.mpgbuf: invalid  argument 

but if change .mpgbuf .mpg works fine . forced use filename though. there easy way this?

in general file extension gives ffmpeg "hint" container format want. if it's not right 1 or want explicitly specify 1 (or can't use one, in case) can manually call 1 out like.

 ffmpeg -i xxx -f mpegts outfile 

Comments

Popular posts from this blog

html - Outlook 2010 Anchor (url/address/link) -

javascript - Why does running this loop 9 times take 100x longer than running it 8 times? -

Getting gateway time-out Rails app with Nginx + Puma running on Digital Ocean -