VideoHelp Forum




+ Reply to Thread
Results 1 to 18 of 18
  1. Member bat999's Avatar
    Join Date
    Feb 2008
    Location
    United Kingdom
    Search Comp PM
    Question withdrawn.
    Last edited by bat999; 4th Apr 2011 at 07:27. Reason: Thread went off-topic.
    Quote Quote  
  2. Member
    Join Date
    Sep 2010
    Location
    Oman
    Search Comp PM
    and I want to know if there's a similar utility for WAV files.

    Also MP3DirectCut can do fadein/fade out without re-encoding (so I've read), so I wondered if that was there for WAV as well.
    Quote Quote  
  3. I'm a MEGA Super Moderator Baldrick's Avatar
    Join Date
    Aug 2000
    Location
    Sweden
    Search Comp PM
    I have not seen any simple lossless m4a/aac editor with a gui.
    Quote Quote  
  4. Member bat999's Avatar
    Join Date
    Feb 2008
    Location
    United Kingdom
    Search Comp PM
    Originally Posted by Baldrick View Post
    I have not seen any simple lossless m4a/aac editor with a gui.
    Thanks Baldrick for the no-nonsense reply.
    Quote Quote  
  5. can you mux with blank video into mp4 and use avidemux? (then extract aac audio)
    Quote Quote  
  6. Member
    Join Date
    Sep 2010
    Location
    Oman
    Search Comp PM
    I've used MKVMerge for splitting audio files but most of the time the split isn't exacting, i.e. I don't get the required accuracy in milliseconds.
    Quote Quote  
  7. Member
    Join Date
    Jul 2009
    Location
    Spain
    Search Comp PM
    Originally Posted by poisondeathray View Post
    can you mux with blank video into mp4 and use avidemux? (then extract aac audio)
    Originally Posted by ad.vid View Post
    I've used MKVMerge for splitting audio files but most of the time the split isn't exacting, i.e. I don't get the required accuracy in milliseconds.
    Using video software to edit audio, you will not get an accuracy greater than the duration of 1 (video) frame.

    To get millisecond accuracy, you need to have a framerate of 1000fps, so for example with pdr's suggestion you would use a blank clip with that rate.
    Quote Quote  
  8. Member
    Join Date
    Sep 2010
    Location
    Oman
    Search Comp PM
    how do i create/get a blank clip with that rate?

    I tried but your can't alter FPS in MKVMerge.
    Quote Quote  
  9. Goldwave opens and edits m4a but doesn't output back to it.
    Quote Quote  
  10. Originally Posted by ad.vid View Post
    how do i create/get a blank clip with that rate?

    I tried but your can't alter FPS in MKVMerge.

    you can generate a blank clip with avisynth , and encode using vdub for example

    e.g
    blankclip(length=10000, width=16, height=16, pixel_type="YV12", fps=1000)

    Adjust the parameters to whatever you want. When encoding, if you use I-frame only encoding, you can cut on any frame with video editing software
    Quote Quote  
  11. Member
    Join Date
    Jul 2009
    Location
    Spain
    Search Comp PM
    Another thought that occurs to me is that most compressed audio formats also have what is the equivalent of GOPs (confusingly, for those used to video terminology, called 'frames'), so there is a limit on the granularity of any lossless editing you can do.

    For example, MPEG audio (eg mpa) uses frames of 576 samples (about 13ms at 44.1KHz).
    Quote Quote  
  12. Member
    Join Date
    Sep 2010
    Location
    Oman
    Search Comp PM
    Thanks poisondeathray, I try what you said and let you know.
    Quote Quote  
  13. Member
    Join Date
    Sep 2010
    Location
    Oman
    Search Comp PM
    Okay, I did it and encoded a blank video with 1000fps using MeGUI. But how do I encode with I-frames only? Because I'm still not getting accuracy.
    Quote Quote  
  14. what compression are you using ?

    if you are using x264 encoder, set --keyint 1
    Quote Quote  
  15. Member
    Join Date
    Jul 2009
    Location
    Spain
    Search Comp PM
    Originally Posted by ad.vid View Post
    Okay, I did it and encoded a blank video with 1000fps using MeGUI. But how do I encode with I-frames only? Because I'm still not getting accuracy.
    How accurate do you want the audio cutting to be?
    Once you get the I-frames sorted out, you will still have to take into account my point about audio 'frame' size. AAC can have a block size as large as 1024 samples (which is over 20ms, even at 48KHz).
    http://en.wikipedia.org/wiki/Advanced_Audio_Coding#How_AAC_works
    Quote Quote  
  16. Member
    Join Date
    Sep 2010
    Location
    Oman
    Search Comp PM
    Ok, I looked into that link you posted but could only understand a little. My knowledge of waves in physics isn't at an advanced level. However, I understood your GOP equivalent concept for audio streams. Btw, I'm trying to split WAV audio, and I want millisecond accuracy.

    I've tried poisondeathray's suggestion. I messed around, tweaked and altered the syntax here and there but no avail.
    For example, when I fed the AVS script into x264, the output video ended up having 2000fps (twice of that specified in the script); so I changed it to 500fps and then x264 encoded it to 1000fps. And when I open the video in MediaInfo, it shows two fields,
    frame rate: 500fps
    original frame rate: 1000fps

    Anyways, I wasn't able split the file accurately. The desired output WAV segment should've been 34.532s but I got 34.600s.
    Quote Quote  
  17. Member
    Join Date
    Jul 2009
    Location
    Spain
    Search Comp PM
    I don't know why your script didn't work, but if you are working with WAV audio, you would be better using a dedicated audio editor like Audacity (free). This should allow sample accuracy when cutting and since WAV is uncompressed, there is no re-encoding involved.

    I thought your source was m4a/aac (though I see now you mentioned WAV in your first post). The idea of using a blank clip was simply a means to get your source into a video editor for lossless cutting, as there are no audio editors (as far as we know) that can do that for m4a/aac. But for WAV, any audio editor worthy of the name can do it.
    Quote Quote  
  18. Member
    Join Date
    Sep 2010
    Location
    Oman
    Search Comp PM
    In fact, my first solution to splitting the audio was by using Audacity; but then I was like "Oh wait, I'll lose quality if I do it this way!"

    You're right. That fact you mentioned totally went over my head at that time.

    Anyways, thanks a lot for your time and suggestions.
    Quote Quote  



Similar Threads

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