[FFmpeg-user] ffmpeg from .json file to .ts or .mp4 ?

Moritz Barsnick barsnick at gmx.net
Wed May 17 23:21:22 EEST 2017


On Tue, May 16, 2017 at 13:41:31 -0700, pmcnamara wrote:
> I'm trying to save a video playlist using ffmpeg..   
> 
> file playlist is
> https://62skyfiregce-vimeo.akamaized.net/exp=1494971437~acl=%2F217020261%2F%2A~hmac=adbad75e94d1640960d2a3a5303f786508d3aaf13b43644d15f24c7b5b67616b/217020261/sep/video/751054707,751054719,751054708/master.json?base64_init=1

I get "HTTP/1.1 403 Forbidden". Is that link geo-restricted?

> If I change the file type on the file above to .m3u8, I get this playlist.

Have you tried passing that URL as input to ffmpeg? ffmpeg can handle
m3u8 playlists, perhaps even yours.

> If I copy out the playlist url extenstion and add it to the end of the URL
> like this..
> 
> https://62skyfiregce-vimeo.akamaized.net/exp=1494971437~acl=%2F217020261%2F%2A~hmac=adbad75e94d1640960d2a3a5303f786508d3aaf13b43644d15f24c7b5b67616b/217020261/sep/video/751054719/playlist.m3u8
> 
> It will play the video, but there is no sound ?

I guess because video and audio have separate streams.

You would have to do
$ ffmpeg -i videostreamurl -i audiostreamurl -map 0 -map 1 -c copy ...

But try the base URL first.

> -- JSON --

I don't think ffmpeg can handle json playlists. Which tools actually
can?

Moritz


More information about the ffmpeg-user mailing list