http-live-streaming

Incorporate HEv2 AAC into an MPEG-TS for HLS content

我与影子孤独终老i 提交于 2021-01-28 14:20:54
问题 I try to find any info about AAC HEv2 (PS) in an MPEG Transport Stream (TS) for HLS. According to the HLS Authoring Specification for Apple Devices AAC HEv2 is a supported format. AAC HEv2 is part of MPEG-4, but I cannot understand how HEv2 could fit into a transport stream. SBR (or HEv1) can be in TS by implicit signaling. In case of MP4 we have an audio specific config. But how can I multiplex AAC Parametric Stereo into the TS? Is it available or not? I cannot find any info from the Apple

GStreamer - RTSP to HLS / mp4

穿精又带淫゛_ 提交于 2021-01-28 08:06:42
问题 I try to save RTSP h.264 stream to HLS mp4 files: gst-launch-1.0 rtspsrc location="rtsp://....." ! rtph264depay ! h264parse ! matroskamux ! hlssink max-files=0 playlist-length=0 location="/home/user/ch%05d.mp4" playlist-location="/home/user/list.m3u8" target-duration=15 As a result - there is only one file ch00000.mp4, which includes the whole videostream (3min instead of 15sec in "target-duration"). If I save to mpegtsmux / ts files - all is ok for the same command. What is wrong? Thanks in

How to use EXT-X-DISCONTINUITY-SEQUENCE when creating an infinite HLS stream that loops over same fragments

白昼怎懂夜的黑 提交于 2021-01-27 20:21:14
问题 I am trying to create an infinite HLS stream. The idea is that the server sends the same fragments meaning that once the last fragment is sent the first one is sent again. As far as I know I have to use the EXT-X-DISCONTINUITY-SEQUENCE tag. Here is my initial manifest #EXTM3U #EXT-X-MEDIA-SEQUENCE:0 #EXT-X-ALLOW-CACHE:NO #EXT-X-VERSION:2 #EXT-X-TARGETDURATION:8 #EXTINF:8, fragment0.ts #EXTINF:8, fragment1.ts #EXTINF:8, fragment2.ts #EXTINF:8, fragment3.ts #EXTINF:8, fragment4.ts #EXTINF:8,

Cache HLS video while playing with AVAssetDownloadTask

拈花ヽ惹草 提交于 2021-01-27 14:23:09
问题 I am trying cache an HLS stream while I am playing it. I was following the Apple documentation on this (the section Playing Offline Assets): https://developer.apple.com/library/archive/documentation/AudioVideo/Conceptual/MediaPlaybackGuide/Contents/Resources/en.lproj/HTTPLiveStreaming/HTTPLiveStreaming.html#//apple_ref/doc/uid/TP40016757-CH11-SW1 I've implemented the following method - which should make my HLS streams download while playing: func downloadAndPlayAsset(_ asset: AVURLAsset) { //

HLS FLAC stream using FFMPEG

安稳与你 提交于 2021-01-25 05:55:12
问题 I have created a HLS stream from a FLAC file with an output of FLAC using the following command: ffmpeg -i 10-brass-in-pocket.flac -map 0:a -c:a:0 flac -f hls -hls_playlist_type vod -master_pl_name master.m3u8 -hls_time 30 -hls_segment_type fmp4 -strict -2 -hls_segment_filename music.m4s -hls_flags single_file -var_stream_map "a:0" stream_%v.m3u8` I have published it here: https://di5wym8npn4cm.cloudfront.net/stackoverflow_fmp4_singlefile/master.m3u8. (this works in VLC) Page with audio

HLS FLAC stream using FFMPEG

纵然是瞬间 提交于 2021-01-25 05:51:12
问题 I have created a HLS stream from a FLAC file with an output of FLAC using the following command: ffmpeg -i 10-brass-in-pocket.flac -map 0:a -c:a:0 flac -f hls -hls_playlist_type vod -master_pl_name master.m3u8 -hls_time 30 -hls_segment_type fmp4 -strict -2 -hls_segment_filename music.m4s -hls_flags single_file -var_stream_map "a:0" stream_%v.m3u8` I have published it here: https://di5wym8npn4cm.cloudfront.net/stackoverflow_fmp4_singlefile/master.m3u8. (this works in VLC) Page with audio

Stream HLS on safari using MediaSource api

半腔热情 提交于 2020-12-09 23:25:45
问题 I want to stream HLS fragments using media source extension. I have tried the same using mpeg-dash fragments (generated using MP4Box) and media source extension. var mediaSource = new window.MediaSource(); mediaSource.addEventListener('sourceopen', _onSourceOpen); $('video').attr('src', URL.createObjectURL(self.mediaSource)); function _onSourceOpen() { sourceBuffer = mediaSource.addSourceBuffer('video/mp4; codecs="avc1.64000d,mp4a.40.2"'); } function _onFragmentDataLoad(data) { sourceBuffer

Stream HLS on safari using MediaSource api

旧城冷巷雨未停 提交于 2020-12-09 23:08:14
问题 I want to stream HLS fragments using media source extension. I have tried the same using mpeg-dash fragments (generated using MP4Box) and media source extension. var mediaSource = new window.MediaSource(); mediaSource.addEventListener('sourceopen', _onSourceOpen); $('video').attr('src', URL.createObjectURL(self.mediaSource)); function _onSourceOpen() { sourceBuffer = mediaSource.addSourceBuffer('video/mp4; codecs="avc1.64000d,mp4a.40.2"'); } function _onFragmentDataLoad(data) { sourceBuffer