VideoHelp Forum




+ Reply to Thread
Results 1 to 8 of 8
  1. I created some MP4 files some time ago, with MeGUI. Created a .264 file with MeGUI and an AC3 file with Audacity, then muxed with the MP4 Muxer in MeGUI.

    Trying to demux them with tsMuxer and I keep getting "Invalid H.264/AVC frame at position #######" errors. Not on all, but on a few. Why is this happening?
    Quote Quote  
  2. maybe you have errors in some of the videos? maybe corrupted for whatever reason

    You can try demuxing with something else such as ffmpeg, or mp4box . Do they report errors ?
    Quote Quote  
  3. How does one demux using ffmpeg?
    Quote Quote  
  4. ffmpeg -i input.mp4 -c:v copy -an output.h264
    Quote Quote  
  5. Well, yeah. But if I wanted to extract the audio to an ac3 file as well? Is there a one-step way of doing that?
    Quote Quote  
  6. Originally Posted by koberulz View Post
    Well, yeah. But if I wanted to extract the audio to an ac3 file as well? Is there a one-step way of doing that?
    demux all streams mp4box. This is like "wildcard", so everything gets demuxed, including subs, attachments, etc.. You don't have to "guess" extension

    MP4Box -raw * INPUT.mp4



    or in ffmpeg use -map to specify streams . There is no "wildcard" in ffmpeg, but since you know you have AVC video ,and AC3 audio it should work

    ffmpeg -i input.mp4 -map v:0 -c:v copy output.h264 -map a:0 -c:a copy output.ac3
    Last edited by poisondeathray; 9th Dec 2019 at 15:28.
    Quote Quote  
  7. Well, the ffmpeg demux seems to work. Not sure why it tripped up tsMuxer.
    Quote Quote  



Similar Threads

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