Questions tagged [fmp4]

Fragmented MP4 ... MP4 (.mov, .mp4) files organized to allow live streaming.

Ordinary, unfragmented, MP4 has separate "boxes" for media metadata and data. It's often necessary to random-access such files, often to near the end, to play them correctly. That doesn't work for live streaming: the end is unknown because it's still in the future.

Most players can play both ordinary and fragmented mp4.

More description here.

72 questions
0
votes
1 answer

Fragmented MP4 not playing in ffplay/QuickTime/Safari, but in VLC

I encoded a fMP4-Video (HEVC) in Swift using VideoToolbox and CoreMedia. The resulting fragmented MP4 is only playing in VLC. The library I am using to write the fMP4 is an HEVC-adapted version of this GitHub-Project:…
Stack64
  • 3
  • 3
0
votes
1 answer

Fragmented MP4 video with multiple sets of SPS and PPS with avcc encoding

I am trying to capture image of screen very frequently and then encode it in avcc format. Using the SPS, PPS, and avccnalunits of the encoded frames I am creating fragmented mp4 video and pushing those fragments to cloud, and concat all those…
Sudheer Kumar
  • 77
  • 1
  • 7
0
votes
2 answers

FMP4 moof box sequence number ordering

I wanted to do a basic fragmented mp4 broadcast program with avformat libs and HTML5 video and MSE. This is a live stream and I use avformat to copy h264 data to mp4 fragments. Here is my basic drawing of clients attaching to the stream: So, with…
Daniel
  • 2,318
  • 2
  • 22
  • 53
0
votes
1 answer

Fragmented mp4 broadcast with avformat

I want to broadcast a live stream (h264 -> fragmented mp4) with avformatfunctions. Now basically I have a working example with this pseudo: avformat_write_header while (!end) { av_read_frame av_write_frame } avformat_write_tailer I have this as…
Daniel
  • 2,318
  • 2
  • 22
  • 53
0
votes
2 answers

How can I use Shaka Player with raw mp4 video data arriving over xhr or websocket?

I know how can I give Shaka Player a file or mpd from the internet to playback. However, how can I push raw data from client side JavaScript to it? I could not find anything for that, maybe it is not possible?
Daniel
  • 2,318
  • 2
  • 22
  • 53
0
votes
1 answer

ffmpeg creates an mp4 stream which results error in Firefox

I'm about to play an fmp4 in HTML5 video element. I was successfully created a websocket to pass ffmpeg's output into MSE. However when I try to open the page in Firefox (72.0.1, 64bit, under Ubuntu 18.04LTS), it always results an error: Media…
Daniel
  • 2,318
  • 2
  • 22
  • 53
0
votes
1 answer

Which box of fmp4 file contains CTTS information similar to that of ordinary MP4 file?

I converted fmp4 files into TS files by imitating the code of converting MP4 files into TS files. I encountered a problem: There is CTTS box in MP4 file, but there is no CTTS box in fmp4 file. The information inside CTTS (PTS = STTS + CTTS) is…
YuanDa.Yu
  • 127
  • 7
0
votes
0 answers

iOS - converting to fmp4 (from mp4/m4a) and streaming it

So I didn't managed to find any code about this issue. I have recorded an mp4 file(audioFile.mp4) and now i want to stream it through socket , yet i have problem in converting. I know that there is the ffmpeg(https://www.ffmpeg.org/) platform yet i…
ironRoei
  • 2,049
  • 24
  • 45
0
votes
1 answer

AAC audio files play faster than normal speed

I sampled the raw PCM data from the device, encoded it through libfaac to an audio file in ".aac" format(ADTS format), and when I sampled it in 16KHZ or 41KHZ the encoded ".aac" file played faster than normal. What's the reason? The parameter…
YuanDa.Yu
  • 127
  • 7
0
votes
0 answers

How to generate a DASH manifest file (MPD file) given a fragmented MP4 file

So I have a single fragmented MP4 file. Now I need to stream this fragmented MP4 file to a DASH player on a mobile device (so that user can view this video from mobile). However, I do not know how to generate the DASH manifest file for this…
Xavier
  • 87
  • 1
  • 9
0
votes
1 answer

Is it possible to encode broadcast samples into a MPEG-ts or fmp4 file using AVAssetWriter?

I know that this is a frequently asked question which does not have a trivial solution. Found a demo which does the same - http://blog.denivip.ru/index.php/2017/01/live-streaming-on-ios/?lang=en, but it does not use AVAssetWriter. People have also…
user3911119
  • 273
  • 3
  • 14
-1
votes
1 answer

Restartable HLS encoding in ffmpeg

I'm trying to encode a HLS video in a restartable way so that it can be run on a preemptive VM. It's possible with the segment muxer in FFmpeg to create HLS files with mpegts that can be restarted (Using the -ss [time], -segment_start_number [num],…
TheGreatRambler
  • 128
  • 2
  • 10
1 2 3 4
5