Questions tagged [mp4box]

108 questions
1
vote
0 answers

How to resolve the issue with Adaptive Bitrate Switching in Mpeg Dash?

I use the following MP4Box command to generate the manifest file(.mpd). The manifest file is common to different video representations. MP4Box -dash 5000 -frag 5000 -fps 25 -frag-rap -rap -bs-switching merge -profile dashavc264:live -mpd-title "Mpeg…
Tom Taylor
  • 3,344
  • 2
  • 38
  • 63
1
vote
2 answers

Using subprocess in python with multiple values and same argument

This is my command subprocess.call(["wine","MP4Box.exe","-add",outputdir+"tmp.m4a","-itags",'name=a',"-itags", "artist=b","-itags", "album_artist=c","-itags", "album=d","-itags", "created=2034","-itags", "genre=e","-new", "tmp23.m4a"]) In the…
Karthik M
  • 313
  • 2
  • 6
1
vote
4 answers

MP4Box does not concatenate videos

I have problem with MP4Box, can't concatenate videos in one video. I get out.mp4 file (~103 MB) but omxplayer can not play it. I have 6 very simple .mp4 videos and I want them to merge in one video. Until now, I was able to do that with command,…
Teemo
  • 449
  • 6
  • 23
1
vote
0 answers

Segment duration variation is higher than the +/- 50% allowed by DASH-IF

I am implement a proof of concept page with video player that uses DASH. I am having a difficult time getting the video right and I am not sure whether this is an encoding issue or MP4Box issue. Since I am working on Ubuntu I had to change a few…
Tim Hysniu
  • 1,446
  • 13
  • 24
1
vote
1 answer

Playing audio.mpd and video.mpd together in dash.js

For MPEG DASH streaming, I have audio.mpd and video.mpd separately for a video.mp4 file generated using following command. MP4Box -dash 5000 -frag 5000 -rap -bs-switching no -profile dashavc264:live -segment-name ./video/$2_segment_ -out…
user3753682
  • 187
  • 4
  • 13
1
vote
3 answers

Single Manifest file for different audio and video segments created using MP4Box (MPEG DASH)

I have three questions 1) Does dash.js support audio and video content multiplexed in a single segment? 2) If not how to merge audio.mpd and video.mpd created using MP4Box into a single out.mpd, that is supported by dash.js player? 3) It works if…
user3753682
  • 187
  • 4
  • 13
0
votes
4 answers

Adding subtitle from command line MP4Box

I am adding a subtitle file to a video using MP4Box. The following command works perfectly from the command line: c:/GPAC/MP4Box -add c:/test.m4v#audio -add c:/test.m4v#video -add c:/test_en.srt:hdlr=sbtl:lang=en:group=2:layer=-1 -new…
irrational
  • 767
  • 7
  • 24
0
votes
0 answers

Why does ffmpeg parses an entire file beforehand

When calling avformat_open_input with AVIOContext set it seems that the library parses an entire file. I set both read and seek functions on the context. The video file is a fragmented mp4 with a lot of moof boxes. The file is located on a remote…
0
votes
0 answers

use mp4parser to edit the mp4boxes

Can some one give me a guide on how to use mp4parser to edit the mp4boxes? I tried MP4Edit edit = new MP4Edit(); edit.open(inputFile); edit.editBox("moov", newBoxContents); edit.close(); but I want the detailed solution for all the boxes.
0
votes
2 answers

Windows Media Player doesn't reproduce audio from file that was created with mp4box library

I am using the mp4box library to create a media file that includes video and audio tracks. I have set up my audio encoder output callback using the following code: if (encodingAudioTrack === null) { let encodingAudioTrackOptions = { …
0
votes
0 answers

How to add additional audio tracks to video using gpac/mp4box?

I want to add additional audio tracks to the video. When I tried to do this with gpac, it replaced original audio track. I added an extra audio track with this command: gpac -i…
xz1s
  • 1
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
0
votes
1 answer

What's the equivalent of "MP4Box -hint" in ffmpeg?

I currently run my ffmpeg command to record the video then afterwards run MP4Box -hint file.mp4 to make the file stream quicker for the web. Is there any way for ffmpeg to "hint" my file straightaway without the extra step?
Roman Gaufman
  • 1,104
  • 1
  • 13
  • 17
0
votes
1 answer

How to add a json text file (x.json) into an existing mp4 file (x.mp4)

I’m trying to add a json text file (x.json) into an existing mp4 file (x.mp4) using mp4box. Seemed simple enough but I’m getting nowhere. MP4Box -add x.mp4 -set-meta box:tk=0 -add-item x.json:tk=0:name=metadata:mime=text/plain fusion.mp4 Thanks.
0
votes
0 answers

Playing mp4 via mp4box.js

There was a problem with playing mp4 video through MediaSource. For video processing, I used the mp4box.js library. According to the logs, I see that all stages of video processing go through, but when I try to play the video, it loads endlessly,…