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
1
vote
0 answers

How to fix EXT-X-MAP:URI in m3u8 when specifying absolute hls_fmp4_init_filename using ffmpeg?

Today I found this blog post teaching me about fragmented mp4s (fmp4s). Using the ffmpeg docs, I've made great progress. I run this: '/usr/bin/ffmpeg' '-y' '-i' '/myproject/storage/app/sample_media/2020-02-27/Sample Videos 5.mp4' \ '-c:v' 'libx264'…
Ryan
  • 22,332
  • 31
  • 176
  • 357
1
vote
0 answers

Firefox is not able to play my fragmented MP4 file

I'm serving this fragmented mp4 file which was created by ffmpeg. Here is the client side code: WebSocket and MSE demo
1
vote
0 answers

How to play a live fmp4 stream from web api result

I have a sample script I am working on that can receive an fmp4 stream or an mpd xml response from an HTTP server. I can retrieve the mpd data with requests.get and it comes back no worries. If I use requests.get with stream = True for the fmp4 the…
The Frog
  • 85
  • 7
1
vote
1 answer

Using MP4box.js and onSegment callback is not called

Base problem: display a H264 live stream in a browser. Solution: let's just convert it to fragmented mp4 and load chunk-by-chunk via websocket (or XHR) into MSE. Sounds too easy. But I want to do the fragmentation on client side with pure JS. So I'm…
Daniel
  • 2,318
  • 2
  • 22
  • 53
1
vote
1 answer

Why fmp4 files can't decode the audio with VLC, but they can play normally with PotPlayer

I have an fmp4 file (using h264 and aac frame codes). When playing with VLC, only video has no audio, but the audio can be parsed with PotPlayer. The AAC format is ADTS.The screenshot of my fmp4 audio-related box is as follows
YuanDa.Yu
  • 127
  • 7
1
vote
1 answer

How does the VLC player calculate the total length of the timeline of the fmp4 file?

use VLC player to play fmp4 file, the player shows the total length of the timeline port is 0, but video can play normally.How does the player calculate the total length of the timeline of the fmp4 file? How should I modify the time parameter of…
YuanDa.Yu
  • 127
  • 7
1
vote
0 answers

HLS/fMP4 (CMAF) redundant/fallback (Primary/Backup) workflow on Apple Devices is not working

I'm trying to publish my HLS/fMP4 (CMAF) stream to Akamai with Primary/Backup workflow. When I tested with Shaka player, it works fine: Whenever publishing to Primary entry point stopped, player will properly switch to Backup stream and keep playing…
Aki24x
  • 1,058
  • 1
  • 13
  • 28
1
vote
2 answers

FFmpeg memory leak in fragmented MP4

When using the FFmpeg console for saving an RTSP stream to a fragmented MP4 file I noticed there is a small memory leak. It leaks approx 3-4 MB per hour (when each frame is a fragment and 30 fps). The following command was used: ffmpeg.exe -i…
1
vote
1 answer

Exo Player Unity Plugin for Android for HLS Fragmented MP4 (fmp4)

I am trying to integrate the Google Exoplayer in Unity and I am a newbie in Unity. I worked with Easy Move Textures Plugin but it does not support HLS FMP4 and I want to develop the plugin. How should I proceed.??
0
votes
0 answers

Using isobmff github. Make fmp4 file

Using isobmff github. I am trying to Make Avc to fmp4 file. Now I am using Link : https://github.com/MPEGGroup/isobmff this C Library for isobmff. I want to Make fmp4 file and There is similar case of make fmp4 file. Link :…
Kundera
  • 65
  • 5
0
votes
1 answer

.m3u8 (HEVC, HLS) video won't play while other will

I converted my video into HEVC codec with support for HLS using ffmpeg with the following command: ffmpeg -i originalName.mp4 -c:v libx265 -tag:v hvc1 -g 60 -hls_time 2 -hls_playlist_type vod -hls_segment_type fmp4…
user1207524
  • 251
  • 2
  • 12
  • 27
0
votes
0 answers

MSE (Media Source Extensions) player not playing fragment due to baseMediaDecodeTime

I am trying to get fragmented Mp4 files to play using MSE in a TypeScript player. I have the fragmented mp4 files being split into the video and audio portions. I am able to play the video and audio after setting the baseMediaDecodeTimes in the tfdt…
rickyz
  • 71
  • 7
0
votes
0 answers

How to dynamically stitch mp4 files together in a React app?

I am building a react app for viewing security footage. Right now, these mp4 files are uploaded to google cloud storage in 1 minute segments, where our app is supposed to access them and display them in the browser. Obviously, gaining access to a…
0
votes
0 answers

Player downloads all moof part of a fragment mp4 file before playing

I converted a mp4 to fragment mp4 with the following command: ffmpeg -i ./input.mp4 -y -b:a 32k -vcodec libx265 -b:v 320k -bufsize 320k -tag:v hvc1 -color_primaries bt709 -color_trc bt709 -colorspace bt709 -c:a libfdk_aac -profile:a aac_he_v2…
happyz90
  • 91
  • 5
0
votes
0 answers

how to read partial fragmented mp4 from buffer or stdin

I am facing a weird challenge. I am still wondering if there's something wrong in my understanding of fragmented mp4 concepts. I have a buffer stream of a video file, that I am streaming from AWS. Subsequently I am passing it to stdin and using…
poush
  • 273
  • 1
  • 10