VideoHelp Forum




+ Reply to Thread
Results 1 to 15 of 15
  1. Member
    Join Date
    Apr 2005
    Location
    europe
    Search Comp PM
    Does anybody knows of an app to manipulate mp4 files? I mean:
    - adding/removing audio tracks
    - adding/removing subtitles tracks (and converting them to MPEG4 Timed Text before)

    thanks!
    Quote Quote  
  2. I don't know of any real front ends to these cli tools, but I know 2 cli tools that should be able to do it. mp4creator (part of mpeg4ip) or mp4box (part of gpac) can add tracks... I've never tried removing a track though.

    You can find a precompiled binary of mp4box in a few video tools (fourtytwo & ffmpegx), but I think you'll have to build mpeg4ip yourself. If you do try to compile mpeg4ip yourself & you're on Tiger, get a cvs checkout - you won't be able to compile it otherwise.

    From the mp4box's manpage:

    Create a movie with subtitle:
    MP4Box -add video.avi -add audio.mp3 -add Subtitle.srt mymp4.mp4
    Quote Quote  
  3. Member
    Join Date
    Apr 2005
    Location
    europe
    Search Comp PM
    ok, I tried MP4Box. Great software, easy to use. I added a second audio track and 2 subtitles tracks.

    But:
    - after adding an audio track to a movie, quicktime wasn't able to open it again: error -50. (vlc and mPlayer still can, but quicktime is the less cpu intensive. H264 seems to be extremely demanding in terms of CPU usage for certain specific scenes containing a lot of movement and colors)
    - I didn't find any software able to read the embedded subtitles. Do you know of one?
    Quote Quote  
  4. Sorry to hear about the quicktime issues. You should report that bug to gpac - for all anyone knows, it *could* be a fixable issue - more likely a problem on Apple's end (which translates into "live with it").

    The other mp4 players would be (none of which I would tell you to trip over trying to get):

    Realplayer
    Osmo4.app (part of gpac). I haven't returned to working on it - won't allow any files to be opened. You would have to build it (and if your not on Tiger, wxWidgets) from source.
    mp4player (part of mpeg4ip). It might be able to handle subtitles. mp4player uses SDL; the gmp4player variant uses gtk2. Only the SDL-based player could actually play a file, but gmp4player had "Play text" (which might be different than subtitles for all I know) as a menu item. Unfortunately, mp4player has *NO* controls to that I could find - essentially just a window.

    Maybe Handbrake can add tracks and leave it playable by quicktime.
    Quote Quote  
  5. Member
    Join Date
    Apr 2005
    Location
    europe
    Search Comp PM
    Thank you for the answer! I'll report the quicktime bug to gpac. It seems, that, the higher the quicktime version number, the more bugs and incompatibilities. Too bad.

    Handbrake does only works with a DVD as source, doesn't it? Ok, I'll try it with a DVD...

    Realplayer doesn't seem to be able to play my mp4 file. He only "see" the 2 audio tracks, and play both of them simultaneously, curiously.

    I'll maybe try the two others. But since putting the srt files in the same folder as the mp4 file allow vlc to use them as subtitles, I don't really need them. It's just that it would be more handy to have only one file. And its frustrating to see that it is possible to create embedded subtitles, but it's not possible to use them...
    Quote Quote  
  6. Nevermind - I just noticed your video codec was h.264. Those players won't play h.265/avc1. Just goes to show you: you can throw anything in a container - its the PLAYER that determines whether it matters.
    Quote Quote  
  7. Member
    Join Date
    Apr 2005
    Location
    europe
    Search Comp PM
    Ok, MP4Box seem to have some problems with adding tracks. "Isomedia not compliant" or soemthing like this before adding an AAC audio track in a mov container. Nevermind, I'll check this out with the gpac people.

    But Handbrake is able to create a file with double audio track, which is readable by quicktime. Only problem, Quicktime doesn't seem to understand this, because it's playing both audio tracks at the same time.
    Quote Quote  
  8. a .mov container is not a iso complaint mpeg4 container. mp4box won't work on anything other than mp4 files.
    Quote Quote  
  9. Member
    Join Date
    Apr 2005
    Location
    europe
    Search Comp PM
    Ok. Than, how am I supposed to bring ffmpegX to give me a m4a AAC file?

    PS: actually, it did work with a .mov the first time I tried. No ideas why.
    Quote Quote  
  10. That gpac worked on a mov container is... odd. Probably due to the similar atom structure, it just found something it can work with. There are a number of similarities between the formats (mp4 was based on quicktime).

    The last time I let ffmpegX at a video file was many moons ago, so I can't help you there.

    I'm unsure of what you are trying to do.
    To extract raw aac from a mp4 file that has aac (.aac - raw aac bitstream -no wrapper) :
    mp4box ~/Desktop/sample.mp4 -raw 1 -out ~/Desktop/raw.aac
    Convert (.aac - raw aac conversion from an input wav file):
    faac -r --obj-type LC ~/Untitled.wav ~/Desktop/out.aac

    if you are extracting an aac track from an mp4 file into a virgin mp4 container (containing only the raw aac bitstream; essentially an iTunes m4a file), use mp4box:
    mp4box -add ~/sample.mp4#audio -new ~/Desktop/new.mp4
    Quote Quote  
  11. Member
    Join Date
    Apr 2005
    Location
    europe
    Search Comp PM
    Sorry, I wasn't very clear. I want to extract an audio track from a VOB file into an m4a or mp4 file. Something compatible with MP4Box, so that I can add it in a mp4 file afterwards.

    I tried handbrake: it is very handy, you can add the two track at once, but the compression rate isn't that good in my opinion. Don't know exactly why. Maybe because I activated some prof. options in ffmpegX. Anyway, I'm still running some test on a short file, in order to campare the quality/size ratios, but I think ffmpegX is much better at using the x264 encoder. Are they many implementation of this x264?
    Quote Quote  
  12. Member
    Join Date
    Apr 2005
    Location
    europe
    Search Comp PM
    oops. I take back what I said about Handbrake quality. My mistake.

    PS: use the CVS o Handbrake version, as the 7.0b3 make files that are not readable by quicktime (at least the 7.0.3 version).
    Quote Quote  
  13. There are a number of front ends to the various implementation of x264 (x264, ffmpeg's incorporation of x264 & mencoder's incorporation of ffmpeg's incorporation). I compile x264 from the svn source, so I don't use any of the front ends & wouldn't really know. You can get a pre-compiled x264 binary in fourty-two, google for the manpage or type "x264 -h" and see your available options - a lot more than ffmpegX will ever give you.

    As for working with the vob file, I haven't worked with them in some time. Logically, since "ffmpeg -formats" shows that ffmpeg doesn't decode vob files, you'll have to transcode the vob to something like an mpeg2 file, and then something like:

    ffmpeg -i ~/sample.mpg -acodec copy -vn ~/Desktop/out.m4a
    Quote Quote  
  14. I tried using Quicktime 7Pro to copy an mp4 audio file - it wouldn't let me do it. However, I still have a copy of Quicktime Player 6.5.2 around - that DID let me copy the audio file, and I pasted (using Add to Selection & scale) into the video in Quicktime 7 player, even added a 3rd audio track. I could select which one played with the properties window. I didn't get an mp4 output file though - it was tragically a mov - but it didn't require re-encoding.
    Quote Quote  
  15. Member
    Join Date
    Apr 2005
    Location
    europe
    Search Comp PM
    ok, I find out.

    Just encode it to AAC .mov with ffmpegX, open it with quicktime and export it to mp4 using "passthrough" option.
    Quote Quote  



Similar Threads

Visit our sponsor! Try DVDFab and backup Blu-rays!