Reputation: 131
I want to play 360 degree videos using HLS/DASH protocols. I am currently using ffmpeg and nginx combo. my question is does ffmpeg support 360 video transcoding to hls format. I tried with following command but 360 degree meta data is dropped by ffmpeg. is there any alternative way to do this?
ffmpeg -i 360Videosample.mp4 \
-preset fast -g 25 -sc_threshold 0 \
-map v:0 -c:v:0 libx264 -b:v:0 2000k \
-map v:0 -c:v:1 libx264 -b:v:1 6000k \
-map a:0 -map a:0 -c:a aac -b:a 128k -ac 2 \
-f hls -hls_time 4 -hls_playlist_type event \
-master_pl_name master.m3u8 \
-var_stream_map "v:0,a:0 v:1,a:1" stream_%v.m3u8
Upvotes: 3
Views: 876