VideoHelp Forum

Try DVDFab and download streaming video, copy, convert or make Blu-rays,DVDs! Download free trial !
+ Reply to Thread
Results 1 to 13 of 13
Thread
  1. AVI file container. One MP4 video stream. Two MP3 audio streams: #1 Italian, #2 English
    I want to remove the Italian audio to reduce file size. Can it be done without demux+remuxing?
    Quote Quote  
  2. Explorer Case's Avatar
    Join Date
    Feb 2004
    Location
    Middle Earth
    Search Comp PM
    If you feel comfortable using command line ffmpeg:
    Find out the stream numbers you want to keep:
    Code:
    ffmpeg -i foo.avi
    E.g.
    Stream #0.0: Video: details
    Stream #0.1: Audio: (Ita) details
    Stream #0.2: Audio: (Eng) details

    Next, copy the streams that you want to keep to a new file:
    Code:
    ffmpeg -i foo.avi -map 0:0 -map 0:2 -vcodec copy -acodec copy foo-new.avi
    Quote Quote  
  3. Member terryj's Avatar
    Join Date
    Sep 2002
    Location
    N3525.24068, W09734.204
    Search Comp PM
    Open the avi in Quicktime Pro. ( w/ Perian installed)
    go to Show Movie Properties (Window -->Show Movie Properties)

    Select the offending audio track, click delete.

    Save As Quicktime Reference movie file in the same folder / destination as the original.

    Now when you play the reference file, it will only have the audio you want.
    "Everyone has to learn, so that they can one day teach."
    ------------------------------------------------------
    When I'm not here, Where can I be found?
    Urban Mac User
    Quote Quote  
  4. Case thank you for your unending patience.

    However, I'm getting a bazillion errors:

    Code:
    error, non monotone timestamps 19 >= 19
    error, non monotone timestamps 22 >= 22
    error, non monotone timestamps 25 >= 25
    ...
    terryj, your method does not reduce the file size.
    Last edited by exekutive; 26th Jan 2011 at 23:10.
    Quote Quote  
  5. Interesting. I may have found out how to kill 2 birds with one stone.

    I tried to use the "fix" tool in FFmpegX to repair the AVI index (which was causing the timestamp errors). The output file was 100MB less than the original. Sure enough, one of the audio tracks (#1) was gone. Unfortunately it was the English one I wanted. If I could just figure out how to make it keep the other one ...
    Quote Quote  
  6. Tried using DivFix++ 0.34 to repair AVI.

    Code:
    Processing file : foo.avi
    Four CC is : XVID
    Info: Original index chunk found at 813794760
    Error detected at byte: 820382704
    File end reached.
    Error: Bigger than 2 stream? Breaked.
    DMLH found: 137256
    
    New Stream Size 	: 813780416
    Total Error Count 	: 1
    Total Frame Count 	: 274501
    Video Data Frames 	: 137256
    Audio Data Frames 	: 137245
    Then tried ffmpeg again to copy, but got same timestamp errors.

    AVI's often seem to be plagued with problems.
    Quote Quote  
  7. Member
    Join Date
    Jun 2003
    Location
    United States
    Search Comp PM
    Use a variant of terryj's suggestion; instead of saving as a reference movie, save it as "self-contained". You may want to run it through ffmpegX next to fix the index.
    Quote Quote  
  8. terryj's method saves it as a Quicktime MOV file doesn't it? I need to keep it AVI.
    Quote Quote  
  9. Member
    Join Date
    Jun 2003
    Location
    United States
    Search Comp PM
    The video track doesn't change; just the container is changed. Why does it have to be an AVI if the content is MP4?
    Quote Quote  
  10. To play on an AVI-enabled DVD player, and because it's just a more widely used container.
    Quote Quote  
  11. Member
    Join Date
    Jun 2003
    Location
    United States
    Search Comp PM
    A-ha! Okay; I was thinking that, by now, most people would have migrated away from physical media (discs) to a media player like the WD TV Media Player or AppleTV (old style) or any one of a number of others. Those devices (most of them) handle MOV, MP4, AVI, and some others without a complaint. Guess I'm ahead of the curve.
    Quote Quote  
  12. OK I got it to work with Avidemux. It practically did everything for me.
    As soon as I opened the file, a dialog popped up asking if I wanted to rebuild frames so I clicked yes.
    Then another dialog popped up that says "The file you just loaded contains several audio tracks. Go to Audio->MainTrack to select the active one." So I did, and then saved the movie.
    Mission accomplished
    Quote Quote  
  13. Member terryj's Avatar
    Join Date
    Sep 2002
    Location
    N3525.24068, W09734.204
    Search Comp PM
    Originally Posted by rumplestiltskin View Post
    A-ha! Okay; I was thinking that, by now, most people would have migrated away from physical media (discs) to a media player like the WD TV Media Player or AppleTV (old style) or any one of a number of others. Those devices (most of them) handle MOV, MP4, AVI, and some others without a complaint. Guess I'm ahead of the curve.
    not from where I'm sitting rumple. If you are then we are both on that bus.
    "Everyone has to learn, so that they can one day teach."
    ------------------------------------------------------
    When I'm not here, Where can I be found?
    Urban Mac User
    Quote Quote  



Similar Threads