occivink / mpv-scripts

Various scripts for mpv
The Unlicense
420 stars 38 forks source link

[encode] Unable to find a suitable output format for streams #19

Closed Dupond closed 6 years ago

Dupond commented 6 years ago

Hello, I've tested the following with two computers, and, having the same problem, I've thought I would report it here. I'm trying to slice (without reencoding) a stream file :

mpv https://www.youtube.com/watch?v=B-8fXb8tts0

No file is created at all. So I've tried to copy/paste the code in the console :

ffmpeg -ss 00:03.560 -i "https://r2---sn-1gi7zn7l.googlevideo.com/videoplayback?key=yt6&ipbits=0&clen=80997447&itag=137&c=WEB&requiressl=yes&ip=185.230.125.38&mime=video%2Fmp4&source=youtube&mm=31%2C26&mn=sn-1gi7zn7l%2Csn-2gb7sn7k&pl=24&id=o-ANQQIuyT8a1KfDi93P7l130hLeYfbzj1d46XPM9eJkyt&keepalive=yes&ms=au%2Conr&mt=1526740456&mv=m&aitags=133%2C134%2C135%2C136%2C137%2C160%2C242%2C243%2C244%2C247%2C248%2C278&gir=yes&sparams=aitags%2Cclen%2Cdur%2Cei%2Cgir%2Cid%2Cinitcwndbps%2Cip%2Cipbits%2Citag%2Ckeepalive%2Clmt%2Cmime%2Cmm%2Cmn%2Cms%2Cmv%2Cpl%2Crequiressl%2Csource%2Cexpire&lmt=1438402447902317&ei=RTYAW_r0I4KV1gKG3IVI&expire=1526762149&initcwndbps=457500&dur=178.960&fvip=4&signature=84F897178FEDBF3E36C9766D86A1FEB5290378D2.46C32A8318BC0D9B5580F5B203D4FF663A044759&ratebypass=yes" -to 4.7 -map 0 -c copy "./watch?v=B-8fXb8tts0_1.46C32A8318BC0D9B5580F5B203D4FF663A044759&ratebypass=yes"

The result is :

Unable to find a suitable output format for './watch?v=B-8fXb8tts0_1.46C32A8318BC0D9B5580F5B203D4FF663A044759&ratebypass=yes'
./watch?v=B-8fXb8tts0_1.46C32A8318BC0D9B5580F5B203D4FF663A044759&ratebypass=yes: Invalid argument

My configuration file is the following one :

only_active_tracks=no
preserve_filters=no
append_filter=
codec=-c copy
output_format=$f_$n.$x
output_directory=
detached=yes
ffmpeg_command=ffmpeg
print=yes

I use the latest version of your script (commited on may 18) with mpv 0.28.2. Thanx ! Best regards, Dupond

Dupond commented 6 years ago

Fast as hell ;) Thank you. Your scripts are simply awesome !

occivink commented 6 years ago

You're welcome