2015-08-13 79 views
0

我安裝了Wowza媒體服務器,我需要測試按需MPEG碰撞。在那裏我可以找到編碼成不同品質的h.264視頻樣本。我可以找到編碼成不同質量的h.264視頻樣本。

我嘗試下載一個文件並使用ffmpeg進行編碼,但它是MPEG短跑不適合我,它似乎我在做錯誤的方式ffmpeg。因爲我正在搜索是否有已編碼的視頻可供在線下載。

回答

0

如果需要,您可以從YouTube上下載視頻。

抓鬥youtube-dl(需要Python),選擇一個視頻,顯示其格式:

$ youtube-dl -F https://www.youtube.com/watch?v=9bZkp7q19f0 

[youtube] 9bZkp7q19f0: Downloading webpage 
[youtube] 9bZkp7q19f0: Downloading video info webpage 
[youtube] 9bZkp7q19f0: Extracting video information 
[youtube] 9bZkp7q19f0: Downloading DASH manifest 
[info] Available formats for 9bZkp7q19f0: 
format code extension resolution note 
249   webm  audio only DASH audio , opus @ 50k 
250   webm  audio only DASH audio , opus @ 70k 
251   webm  audio only DASH audio , opus @160k 
140   m4a  audio only DASH audio 127k , m4a_dash container, aac @128k (44100Hz), 3.82MiB 
171   webm  audio only DASH audio 128k , [email protected] (44100Hz), 3.49MiB 
141   m4a  audio only DASH audio 255k , m4a_dash container, aac @256k (44100Hz), 7.67MiB 
278   webm  256x144 DASH video 100k , webm container, vp9, 1fps, video only, 2.57MiB 
160   mp4  256x144 DASH video 111k , avc1.4d400c, 12fps, video only, 3.28MiB 
242   webm  426x240 DASH video 217k , vp9, 1fps, video only, 5.53MiB 
133   mp4  426x240 DASH video 248k , avc1.4d4015, 24fps, video only, 7.37MiB 
243   webm  640x360 DASH video 396k , vp9, 1fps, video only, 10.37MiB 
134   mp4  640x360 DASH video 622k , avc1.4d401e, 24fps, video only, 15.96MiB 
244   webm  854x480 DASH video 872k , vp9, 1fps, video only, 21.15MiB 
135   mp4  854x480 DASH video 1141k , avc1.4d401e, 24fps, video only, 29.63MiB 
247   webm  1280x720 DASH video 1791k , vp9, 1fps, video only, 40.43MiB 
136   mp4  1280x720 DASH video 2265k , avc1.4d401f, 24fps, video only, 56.86MiB 
248   webm  1920x1080 DASH video 3295k , vp9, 1fps, video only, 69.28MiB 
137   mp4  1920x1080 DASH video 4229k , avc1.640028, 24fps, video only, 113.12MiB 
17   3gp  176x144 
36   3gp  320x240 
5   flv  400x240 
43   webm  640x360 
18   mp4  640x360 
22   mp4  1280x720 (best) 

然後,如果你想抓住的1080p和720p的H.264文件:

youtube-dl -f 136 https://www.youtube.com/watch?v=9bZkp7q19f0 -o 720p.mp4 
youtube-dl -f 137 https://www.youtube.com/watch?v=9bZkp7q19f0 -o 1080p.mp4 

你也可以用相應的ID獲取單獨的音軌(140,141 ..)

相關問題