Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion.

Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules.

 

Go Back   Doom9's Forum > General > Newbies

Reply
 
Thread Tools Search this Thread Display Modes
Old 7th October 2010, 06:11   #1  |  Link
Cyber Akuma
Registered User
 
Cyber Akuma's Avatar
 
Join Date: May 2002
Posts: 167
Can flac or .ass files be muxed into a MP4 container?

I have a MKV file that I wanted to convert into MP4, and avoid re-encoding as much as possible to preserve quality which is why I want to do it manually and avoid automated encoding tools such as handbrake.

After extracting it with MeGui I was left with a .h264 video file, .flac audio file, and a .ass subtitles file.

Any attempt to mux the .flac and/or .ass file into an MP4 container failed.

First of all, I want to ask if its even possible (without breaking standards and thus making the file incompatible with many devices) to put FLAC audio into an MP4 container?

If not then no problem, I can convert it to AAC, a bit of quality loss is acceptable if its the only way.

I have no idea what to do with the .ass subtitle file though since I have never worked with soft subtitles before, how can I mux this into an MP4 file without breaking any standards? Do I need to convert it into another format? And if so, how?

Finally, if I am forced to go with hard coded subtitles, what would be the best way to encode the video and subtitle track together? I am aware that this would mean I would need to re-encode the video and thus suffer some quality loss...

Thanks
__________________
"A train station is where a train stops. A bus station is where a bus stops. On my desk I have a workstation..." - ComradOtter
Cyber Akuma is offline   Reply With Quote
Old 7th October 2010, 07:33   #2  |  Link
Keiyakusha
契約者
 
Keiyakusha's Avatar
 
Join Date: Jun 2008
Posts: 1,576
Quote:
First of all, I want to ask if its even possible (without breaking standards and thus making the file incompatible with many devices) to put FLAC audio into an MP4 container?
Theoretically - you can put anything. Practically, it won't work anywhere. The same about ass.

The option you can try is to convert audio into alac (but not sure if there is alac decoder in ffdshow... and if it work on devices other that PC...) and subtitles into srt (they will be converted again into ttxt whe you'll mux them to mp4 using mp4box). But anyway this will be ugly. Another option for audio is probably AAC with highest quality setting.

Last edited by Keiyakusha; 7th October 2010 at 07:36.
Keiyakusha is offline   Reply With Quote
Old 7th October 2010, 07:49   #3  |  Link
zmaster
nvidia user
 
Join Date: Sep 2010
Location: Russia, Abakan
Posts: 92
Cyber Akuma,
Why do you need to put .ass subtitles in the container? Do not convert them, leave the outer .ass subtitles. (For compatibility with hardware player subtitles can be sewn into the video.)

Last edited by zmaster; 7th October 2010 at 07:51.
zmaster is offline   Reply With Quote
Old 29th October 2010, 14:04   #4  |  Link
Cyber Akuma
Registered User
 
Cyber Akuma's Avatar
 
Join Date: May 2002
Posts: 167
(sorry for not replying to this in a while)

I don't want my videos to be made up of multiple files and would much rather have all the video, audio, subtitles, etc in one file.

Is there any way for me to add these subtitles to the MP$ file? Or do I need to convert them to another format before doing so?

Also, if I run into a player that can't so soft subtitles, what would be a good way to make a hard subtitled video with these files?
__________________
"A train station is where a train stops. A bus station is where a bus stops. On my desk I have a workstation..." - ComradOtter
Cyber Akuma is offline   Reply With Quote
Old 29th October 2010, 15:50   #5  |  Link
Sharktooth
Mr. Sandman
 
Sharktooth's Avatar
 
Join Date: Sep 2003
Location: Haddonfield, IL
Posts: 11,768
they have to be converted to mp4 timed text format (TTXT). Subrip can do that.
however, mp4box reads .srt files and automatically converts them into ttxt when muxing to mp4.
flac audio doesnt fit.
i suggest to use the MKV container that can accept both FLAC audio and ASS subs.
Sharktooth is offline   Reply With Quote
Old 29th October 2010, 23:36   #6  |  Link
dansrfe
Registered User
 
Join Date: Jan 2009
Posts: 1,210
Frankly speaking, I don't understand exactly why you want to use mp4 instead of mkv.
dansrfe is offline   Reply With Quote
Old 30th October 2010, 16:06   #7  |  Link
Cyber Akuma
Registered User
 
Cyber Akuma's Avatar
 
Join Date: May 2002
Posts: 167
MP4 is more widely supported than MKV
__________________
"A train station is where a train stops. A bus station is where a bus stops. On my desk I have a workstation..." - ComradOtter
Cyber Akuma is offline   Reply With Quote
Old 30th October 2010, 16:56   #8  |  Link
RunningSkittle
Skittle
 
RunningSkittle's Avatar
 
Join Date: Mar 2008
Posts: 539
However FLAC and .ASS are not widely supported in mp4, while the opposite is true for MKV. Besides really its only the PS3 and Xbox that do not play MKV.
RunningSkittle is offline   Reply With Quote
Old 30th October 2010, 18:21   #9  |  Link
Cyber Akuma
Registered User
 
Cyber Akuma's Avatar
 
Join Date: May 2002
Posts: 167
Quote:
Originally Posted by Sharktooth View Post
they have to be converted to mp4 timed text format (TTXT). Subrip can do that.
however, mp4box reads .srt files and automatically converts them into ttxt when muxing to mp4.
flac audio doesnt fit.
i suggest to use the MKV container that can accept both FLAC audio and ASS subs.
I tried both SubRip and Subtitle Workshop.

I couldn't even figure out how to load the subtitles into SubRip, even with googling it.

Subtitle Workshop loaded the .ass file just fine and gave me many different formats to work with, but I didn't see the TTXT subtitle format, does Subtitle Format support exporting to this format?

Quote:
Originally Posted by RunningSkittle View Post
However FLAC and .ASS are not widely supported in mp4, while the opposite is true for MKV. Besides really its only the PS3 and Xbox that do not play MKV.
Just about anything that plays video and isn't a computer doesn't support MKV but almost all support MP4.

The original file already is a MKV, I'm trying to convert it to MP4.
__________________
"A train station is where a train stops. A bus station is where a bus stops. On my desk I have a workstation..." - ComradOtter

Last edited by Cyber Akuma; 30th October 2010 at 19:01.
Cyber Akuma is offline   Reply With Quote
Old 31st October 2010, 04:15   #10  |  Link
dansrfe
Registered User
 
Join Date: Jan 2009
Posts: 1,210
convert the flac to aac and use subrip to save the subs as ttxt (which you will have to figure out how to do).
dansrfe is offline   Reply With Quote
Old 31st October 2010, 08:32   #11  |  Link
RunningSkittle
Skittle
 
RunningSkittle's Avatar
 
Join Date: Mar 2008
Posts: 539
Quote:
Originally Posted by Cyber Akuma View Post
Just about anything that plays video and isn't a computer doesn't support MKV but almost all support MP4
Perhaps this was true years ago but not in 2010+! The ones that ONLY support mp4 certainly will not support ASS or FLAC. Most hardware players (like WDTV, popcorn hour etc), some bluray players, and even modern TV's support MKV now.
RunningSkittle is offline   Reply With Quote
Old 13th October 2022, 16:30   #12  |  Link
filler56789
SuperVirus
 
filler56789's Avatar
 
Join Date: Jun 2012
Location: Antarctic Japan
Posts: 1,351
Overdue update

Quote:
Originally Posted by Cyber Akuma View Post
First of all, I want to ask if its even possible (without breaking standards and thus making the file incompatible with many devices) to put FLAC audio into an MP4 container?
Yes, now it is «officially» possible to store FLAC in MP4 files...
Since 2017, apparently. :-|
__________________
«Your software patents have expired.»
filler56789 is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 08:20.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.