Fixing a truncated or invalid audio format of avi file

Discussion in 'DVDR' started by stibi, Feb 7, 2008.

  1. stibi

    stibi Regular member

    Joined:
    Jun 10, 2004
    Messages:
    209
    Likes Received:
    1
    Trophy Points:
    26
    I got a set of 3 avi files, creating together a certain movie. In order to join the said 3 files I went to VirtualDub>File>open video file and selected the first of the said 3 files, however there appeared a message as follows : Some warnings were issued during the previous operation; AVI: Truncated or invalid compressed audio format detected (18 bytes, should be 36). Attemping to fix." I clicked OK, hoping VirtualDub will try to fix that defect, however the said file didn't open. I wanted to see whether the said problem is only with the first of the said 3 avi files, so I tried to open the second and then the third avi file, however I got always the same message. Hence I joined the said 3 files with Avi MPEG RM WMV Joiner. However,when I tried to embed the subtitles to that joint file with VirtualDub, I got the same message (namely, "Truncated or invalid etc.). How can I fix the audio part of those avi files?
    Thanks in advance
    stibi
     
  2. Rotary

    Rotary Senior member

    Joined:
    Apr 10, 2003
    Messages:
    7,606
    Likes Received:
    0
    Trophy Points:
    116
    3 avi for 1 movie? hmm very odd...

    ok use AVIMUX GUI a free app

    load all 3 in top pain then highlight all 3 then click long button below to add all 3 in one file to bottom window, then click save!

    was there 3 sub files?
     
    Last edited: Feb 7, 2008
  3. stibi

    stibi Regular member

    Joined:
    Jun 10, 2004
    Messages:
    209
    Likes Received:
    1
    Trophy Points:
    26
    Hi Rotary and thanks for your fast and helpful response.

    It's a long movie, somewhat longer than 3 hours. I could download the same in one avi file of about 700MB; however, I thought it must be too compressed, hence I prefered to download the 3 avifiles each one of about 700MB. There were no subtitles there, however I downloaded suitable subtitles, though in two parts, not three.
    With the Avimux program suggested by you I succeeded to joint the three avi files. Now I want to devide the same into two not equal parts and, since the two part subtitles I downloaded are equal, I joint them (with Subtitle Workshop), and after I shall split the joint avi into two customised avis, I will have to split the joint subtitles accordingly. At the end of all the above I intend to embed the subtitles with VirtualDub.
    In fact, I have already splitted a copy of the joint avi file into two cusomised ones with a program named AVi MPEG RM WMV SPLITTER, however, for reasons I don't understand, a short piece of the last picture in the first part is seen in the second part too. Since it happend to me in the past with the same program, I am looking for some other solution. What would be the simplest solution in your opinion ?
    Thanks in advance
    stibi
     
  4. Rotary

    Rotary Senior member

    Joined:
    Apr 10, 2003
    Messages:
    7,606
    Likes Received:
    0
    Trophy Points:
    116
    hi

    hmmm i sort of follow you but only 95% i know what you need is an avi with subs embedded still in avi format (for xvid player?)

    in a few years not seen a film in 3 avi, only ever seen 2 avi with 2 subs (makes life easy for sure!)

    to be honest im not to sure on a 3 avi + 2 subs film??? i find subs if none there to match the avi amount, be it either 1 avi film or 2. so no messing around incurred.

    i know all the process you are talking about but never gone this route myself so i am following you on this, but your venturing into territory im not familiar with the actual processing part only the apps used here...

    you sound like your getting there as i think subs work on the TIME?!? not size/amount of avi used?

    could you elaborate on the seeing 2 same parts of film in youer end result, as you may be able to edit the duplicate frames out?

    i take it this project is a one off and may never happen again?
     
  5. cyprusrom

    cyprusrom Active member

    Joined:
    Jan 5, 2006
    Messages:
    5,439
    Likes Received:
    1
    Trophy Points:
    96
    @stibi

    Avimux is a very useful tool.

    Since now you are somehow familiar with it try this:

    Is your full subtitle file in sync with the full AVI?(the one resulted after you joined the 3 parts)

    I don't know if it works(if it satys in sync), but you can try to use Avimux GUi to load the Avi, load the subtitles, select all, and them Mux them together and split them at the same time(Avimux can split very easily your AVI)

    The other option, which is maybe easier, and probably avoids out of sync subs/video due to splitting:
    First embed the subtitles to the full AVI, then split the embedded AVI. You can use Avimux GUI to split at the exact time that you want in manual mode.

    [​IMG]
     
    Last edited: Feb 8, 2008
  6. stibi

    stibi Regular member

    Joined:
    Jun 10, 2004
    Messages:
    209
    Likes Received:
    1
    Trophy Points:
    26
    Hi cyprusrom and yhanks a lot. I will try it and notify you about the results
    stibi
     
  7. stibi

    stibi Regular member

    Joined:
    Jun 10, 2004
    Messages:
    209
    Likes Received:
    1
    Trophy Points:
    26
    Hi cyprusrom,
    Well, first without embeding the subtitles, I tried to spilt the avi & the subtitles with AVImux by taking the following steps, however, nothing at all happened.
    1.I opened a new folder and copied into it the avi file (that containes the joint 3 original avi files)and the srt file (which is in sync with the said joined avi file).
    2. I opened AVIMUX (version 1.17.7) and drew into it's upper part the said avi file. Now there appeared in the upper part of AVIMUX the said avi file as well as the said srt file, though the srt file was faintly gray-colored.
    3.I highlited the said avi and srt files and clicked on settings. 4.In the settings window I checked the "manually set split paints" option, entered next to "frames" the number 1602 and next to "file names", the name of the avi & srt file (the names being identical).All the other settings I left as in the example included in your respons.
    5. I clicked OK on the settins window and "start" on AVIMUX's main window.
    As I said, nothing happened. Next,just for trying, in the settings window I unchecked "manually set split paints" Clicked on OK and on the main window on "start", but, again, nothing happened.

    Could you, please, notify me what did I wrong ?
    Thanks in advance
    stibi
     
  8. stibi

    stibi Regular member

    Joined:
    Jun 10, 2004
    Messages:
    209
    Likes Received:
    1
    Trophy Points:
    26
    Hi, cyprusrom and Rotary,

    This time I just want to inform you, that - after failing to split an avi file and it's subtitles with Avimux, as suggested by you, cyprusrom (I wrote you about that on February 9) I splitted the avi file ,succesfully, with VirtualDub. Notwithstanding, I still think, there must be a better way to do that, because VirtualDub doesn't just split the avi file, but it, actually, reprocesses it (and, therefore, it also takes quite a while). For splitting the subtitles I used Subtitle Workshop.

    Many thanks, again, for trying to help me (with partial success).

    stibi
     
  9. cyprusrom

    cyprusrom Active member

    Joined:
    Jan 5, 2006
    Messages:
    5,439
    Likes Received:
    1
    Trophy Points:
    96
    Hi stibi,
    For whatever reason I did not get any updates on this thread...

    Your final goal is to have the subtitles embedded, right? Well, that cannot be done without reencoding. If you just want to mux those in the avi container, then no reencoding is done.

    I suggested to first embed the entire subtitle file with the entire video, and then split the embedded video, to avoid sub/video out of sync.

    If you want to first split, and then embed, I suggested to split both, subs and video at the same time, to also avoid out of sync issues that might occur if you use 2 different applications to split, one for video and one for subs.

    Here is how you use Avimux GUI to split the file; if you don't want to split the subtitle file, don't add it to the project, however, the subtitles/video/audio came out in perfect sync for me when I split them this way:

    [​IMG]

    [​IMG]

    next, you click "OK" again, and "Start". It will ask you to name your new file. It will be saved as newname1.avi and newname2.avi

    The subtitles will now be muxed with the video in the Avi container.
     
    Last edited: Feb 19, 2008

Share This Page