Forum archive - H264 TS and MPEG Audio in AVI

http://www.supermediastore.com/



Forum Archive Home -> Video Conversion -> H264 TS and MPEG Audio in AVI



H264 TS and MPEG Audio in AVI

flash_49 posted 2009 Oct 28 12:49
Hi,
I want to convert a MPEG TS H264 file with MPEG Audio in AVI. Now I use the H264 Cutter to cut my video and DGAVCDec to demux.
After that, I keep only the audio file and it is written a delay time. Then I open the TS file in VirtualDub with DDS and a AVS Script.
I throw away the other files (file .dga...)
I include the audio file which has been demuxed by DGAVCDec.
I put a interlaving time in Virtualbud, one is written in the name of the audio file which has been demuxed by DGAVCDec.
Then I encode in a divx ou xvid and the audio file in mp3 128 kbits. There was no out of sync
Everything was working when my computer crashed. I took another one and now it doesnt'work anymore.
Could help me please. I could you give a file to me if you want to.
Do you know another method to make that ?
Thanky you very much.
Flash_49

I hope there will be some answers, because you are the last one who can help me.
Thank you



jagabo posted 2009 Oct 28 17:40
Since you are using DgAvcIndex keep the .DGA file. Open it with AvcSource("filename.dga"). Make sure you put DgAvcDecode.dll in the AviSynth plugins folder.


flash_49 posted 2009 Oct 29 05:46
Ok I wil try. But it means that I shall keep the .264 file ?
Or I only keep the .DGA File aud Audio file ?
To summarize I put the DgAvcDecode.dll in the AviSynth plugins folder. Then I open the script with VirtualDub and the TS file will be opened ?
Thank you very much for answer.



jagabo posted 2009 Oct 29 06:33
flash_49 :
Ok I wil try. But it means that I shall keep the .264 file ?
Or I only keep the .DGA File aud Audio file ?
To summarize I put the DgAvcDecode.dll in the AviSynth plugins folder. Then I open the script with VirtualDub and the TS file will be opened ?

Yes. There is no need to demux the video, it will be read directly from the TS file. You do need to demux the audio with DgAvcIndex as you were before.



flash_49 posted 2009 Oct 29 11:04
Thank you very much for your answer. in my script AVS, it's only written : AvcSource("filename.dga") ?


jagabo posted 2009 Oct 29 11:35
flash_49 :
Thank you very much for your answer. in my script AVS, it's only written : AvcSource("filename.dga") ?

Yes. Unless you want to do some filtering.



flash_49 posted 2009 Oct 30 05:43
yes of course. I resize my video. That's all because i dont know how to do some other filtering. Thank you very much.


flash_49 posted 2009 Oct 30 07:06
I havae tryied, but in fact it's as before. The AVCsource takes the TS File but the quality is bad as well. In fact, when I open the TS file in VirtualDub with DirectShow Decoder and then I put the Audio File which has been demuxed by DGAVSDec. I set the audio delay, but it's out of sync. What can I do ?
Maybe to do some filtering ?
Thanks



jagabo posted 2009 Oct 30 07:54
If the audio is off by the same amount at the start and end you can just set a different delay.

If the audio delay changes you'll have to determine how it changes. If it starts out in sync then slowly gets more and more out of sync you can adjust the length of the audio (you'll have to re-encode it though) or the frame rate of the video (this may make playback a little jerky). If the delay changes suddenly, maybe in several places, you'll have to break the video into pieces and work with each piece individually.

It's possible for the audio delay to change within a TS file. This often happens at the ads. It can happen within a program too. It's also possible for the frame rate to change. Most editing software doesn't take this into account. h264ts_cutter can also cause audio sync problems. You may get better results (and more accurate cuts) if you do all the editing in VirtualDub. Try using TsSniper instead of h264ts_cutter. It's a little less problematic in my experience.

There are several resizing methods in AviSynth. Try using LanczosResize(width, height). Where width and height are integers -- for example: LanczosResize(720,480). The docs give more details and list the other methods. Use BilinearResize() for less sharp resizing, BicubicResize() or LanczosResize() for sharper resizing.



flash_49 posted 2009 Oct 30 12:43
With Tssniper it doeesn't work. How can I keep the quality of TS File ?
I would like to encode the TS File not the .264 file if it's possible.
Then I don't undersand PID. Maybe this is the problem. And is it possible to convert PCM to MP3 ?
Thank you very much
I




Login/Register to our forum to be able to post here.








Slysofts AnyDVD HD removes DVD and Blu-ray encryption and region coding. More info or download trial!
About   Advertise   Forum Archive   RSS Feeds   Statistics