Convert HLS stream to fixed FPS mp4 I am using ffmpeg to convert an HLS stream to mp4 using this command:

ffmpeg -i https://example.com/xxx.m3u8 -y -vcodec copy -c copy -bsf:a aac_adtstoasc test.mp4


I only have access to this video from the stream, and I need it in mp4 format to send on for processing, but I want to be able to set the FPS of the mp4, so that it is consistent.

The HLS stream looks like this:

#EXTM3U
#EXT-X-STREAM-INF:BANDWIDTH=264000
xxx/xxx007e.m3u8
#EXT-X-STREAM-INF:BANDWIDTH=464000
xxx/xxx0080.m3u8
#EXT-X-STREAM-INF:BANDWIDTH=768000
xxx/xxx0082.m3u8
#EXT-X-STREAM-INF:BANDWIDTH=1200000
xxx/xxx0084.m3u8
You can use -r 30 to designate 30 fps for your mp4 output. 
The whole cmd can be like this

ffmpeg -i https://example.com/xxx.m3u8 -y -vcodec copy -c copy -bsf:a aac_adtstoasc test.mp4