Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MP4Box support #4958

Open
kungfubeaner opened this issue Feb 16, 2015 · 5 comments
Open

MP4Box support #4958

kungfubeaner opened this issue Feb 16, 2015 · 5 comments

Comments

@kungfubeaner
Copy link

@kungfubeaner kungfubeaner commented Feb 16, 2015

It would be nice to have muxing via MP4Box other than just FFmpeg and avconv, usage is simple using the "-add" option.

@jaimeMF
Copy link
Collaborator

@jaimeMF jaimeMF commented Feb 16, 2015

Does it support webm videos?

I prefer using a single tool, what are the advantages of mp4box?

@kungfubeaner
Copy link
Author

@kungfubeaner kungfubeaner commented Feb 16, 2015

MP4Box supports DASH wich I don't think ffmpeg/avconv support unless it was added recently I was under the impression MP4Box supports webm but I just tried and It doesn't seem to. I guess it wouldn't make sense to add support if it doesnt support webm. but I do have a hardware media player from japan that sometimes errors out from muxed mp4 videos from ffmpeg untill I remux them with mp4box but thats probably the hardware's fault.

@jaimeMF
Copy link
Collaborator

@jaimeMF jaimeMF commented Feb 17, 2015

ffmpeg/avconv seem to support well dash files (for example Quicktime can't play the DASH video only file, but if you process it with ffmpeg it can play the final file). You may be interested in the --exec option, which would allow you to remux the video with mp4box.

@pishposhmcgee
Copy link
Contributor

@pishposhmcgee pishposhmcgee commented Feb 26, 2015

LibAV/FFmpeg seems like a better choice, but for the sake of discussion I figured I'd chime in here with a couple of things.

  • MP4Box allows similarly formatted videos (i.e. same framerate, resolution) to be concatenated with the -cat option, and videos can be added with separate chapter metadata. E.g.
MP4Box -cat video1.mp4:chapter="First Part" -cat video2.mp4:chapter="Second Part" final.mp4
  • MP4Box supports embedding subtitles (at least from *.srt) in MP4 streams. For example, to add iTunes-compatible subtitles:
MP4Box -add video1.srt:lang=eng:hldr=sbtl video1.mp4

Concatenation can be done in LibAV/FFmpeg with a bitstream filter, however, so I'm not sure if that's adding anything. Embedded text subtitles can be done with FFmpeg, but I have not been able to make it work with LibAV.

@jaimeMF
Copy link
Collaborator

@jaimeMF jaimeMF commented Feb 26, 2015

  • Concat: ffmpeg supports that for more formats (flv ...), there has been some PR for them but they haven't been merged.
  • Subtitles: already supported by ffmpeg (not libav), see the --embed-subs option.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
3 participants
You can’t perform that action at this time.