PDA

View Full Version : is it possible to to do this


videonoob
20th February 2006, 20:50
is there anyway to mux a 29.97 aac audio file into a 23.97 avc mp4 video file? But i want it to be unsynched, i don't want the two to synch up. I want the audio to go a few secs ahead of the video file.

The reason is this, I have a psp and while it can play 23.97 fps fine the audio becomes unsynched. (The audio is always slower than the video)The atomchanger can fool the psp into thinking that a 23.97 fps file is a 29.97 file but it doesn't seem to have an effect on the audio. The audio is being played at 29.97 and thus drags behind the video which is 23.97.

Sharktooth
20th February 2006, 20:56
wtf...

shon3i
20th February 2006, 21:34
Yes just use mp4box or yamb or megui.

deets
20th February 2006, 21:56
use besweet to slow the audio as well, use the re compiled atomachanger on the file

videonoob
20th February 2006, 22:29
I am using mbox now but the resulting file is synched not unsynched. the audio refuses go a few secs faster.

I'll try using besweet to delay, i assume the - means that i want the audio to play x ms earlier right?

Just in case i'm doing this wrong I can I get a audio file that's 29.97? so far when i use dvd2avi I leave don't use force film since I assume that my audio file would be 29.97.

deets
20th February 2006, 22:35
see the thing in my link about slowing audio to 25fps using soundtouch and do the same

videonoob
21st February 2006, 02:41
the thing is i don't want to slow the audio down. When i encode a file into 23.97 frames the audio and video are synch perfectly when played on the computer/quicktime. But when i play it on the psp, the video is fine but the audio drags and goes to slow. I see people move their lips and then i hear the dialog. It seems that the psp is playing the video at 23.97 fine (because of atom changer) but not the audio.

see what i mean?

dude051
21st February 2006, 06:21
Can I ask at what bitrate you are encoding at? I personally own a PSP and have experienced audio drop out for movies with too high of a bitrate. You should never go over say... 800kbps. The PMP Mod just isnt optomized enough for this yet.

bond
21st February 2006, 11:49
there are two different types of desyncs:
1) the desync gets bigger throughout the file, because there is a speed (or framerate) mismatch between audio and video
solution: change the framerate of the video (no need to reencode the audio)
2) there is a constant desync. solution: set a delay between audio and video (or if the player doesnt handle such a set delay, which i guess the psp will not, set the delay by encoding the audio)

both can be done with mp4box (except encoding audio of course)

striked for rule 9

deets
21st February 2006, 13:18
are you using the recompiled atomchanger, it has no problems with 23.97 files

videonoob
21st February 2006, 18:54
"1) the desync gets bigger throughout the file, because there is a speed (or framerate) mismatch between audio and video
solution: change the framerate of the video (no need to reencode the audio)
2) there is a constant desync. solution: set a delay between audio and video (or if the player doesnt handle such a set delay, which i guess the psp will not, set the delay by encoding the audio)"

It looks like I'm prob number 2 right now. But this only happens when the file is being played on the PSP. When i play it on the computer, audio and video are in synch.

Video file = 23.97 fps
audio file = 23.97 fps ( best knowledge)
on computer after muxing, video + audio = all in synch no problems
on computer after atomchanger/ video + audio =All in synch no problems

On psp = video at 23.97 fine, audio is delayed.
Eg. someone fires a gun but I won't hear the gun until a few secs later.

That's what i'm trying to fix.

videonoob
21st February 2006, 18:54
yes i am using the recomplied atomchanger but the problem isn't the video, I want it at 23.97. The problem is the audio, it lags behind the video

deets
21st February 2006, 18:59
i get you, but if your saying its playing fine on your PC and is sync at 23.97, then it was obvious to check the version of atomchanger :)

does it do this on all clips you make?

videonoob
21st February 2006, 19:43
yup, it does to all my files that i've tested so far. I've also checked and I am using the new re-complied verison of atomchanger. But I can download it again if you can post the link.

I do have a theory, i'm thinking that if i can phsyically smux a 29.97 audio to a 23.97 file but have it stay desynched after muxing. It might play correctly in the psp.

The reasoning is this, if the psp is indeed seeing the audio as 29.97 then it's either slowing down or trying to fix the audio into a 29.97 space to line up with a video that it's seeing as 29.97 when it's not due to atomchanger.

but if the file is 29.97 then there might be enough audio data there for it to line up with the video file.

The end result is that, on a computer the file will probably be unsynched which is fine but synched on a psp.

Now i can mux both a 23.97 video to a 29.97 audio file but they end up being synch which is pointless. I resulting file to be desynched, perferably the audio to be a few secs ahead of the video.

deets
21st February 2006, 19:45
its on the x264 psp thread, or in my sig.

if its doing it with all your clips, something is going badly wrong somewhere. try giving your avs script and audio conversion process

videonoob
21st February 2006, 21:20
i've tried it using x264 thread but the resulting audio file doesn't work.

As to your guide I'm using belight with besweet. And my encoder is set to Nero aac, Low comp, sampling rate of 48000khz and 128bits. I'm imputing a wave file.

now the problem is i don't get an error when the audio file is getting generated but resulting file can't be played by either quicktime, or itunes. The only program that'll play that aac audio file is nero?

Now if i go directly to nero and do the encode the resulting audio file is fine. So it seems like I'm also having an issue with either besweet or belight.

deets
21st February 2006, 23:22
nothing else set in the advanced options of besweet that you dont want? its all unticked?

videonoob
21st February 2006, 23:33
yup, i left copied what you had in your screen shot. And i changed the fps for audio from 23.97 to 29.97.

but the output file was no playable by anything except nero

videonoob
22nd February 2006, 17:12
I reinstalled besweet, belight and mpbox. I'm using the newest versions of everything and belight is making an error free mp4 audio file.

I muxed a 23.97 video file with a 29.97 audio file and the psp plays the resulting file in synch. Finally smoooth video playback.

But...

I still have a problem, if I pause, or skip ahead the audio will de-synch completely from the video. The audio will be in front of the video and the video will lag.

Is there anyway to trick the psp into thinking the audio is something when it's not? Just like how atomchanger tricks the psp when it comes to the video file?

deets
22nd February 2006, 17:21
look, if you need to run your audio at 29 and your video at 23, then something is clearly wrong.

stop trying to patch it and fix the root cause.

post your avs script and try using a different AAC encoder, and list all your settings for everything.

videonoob
22nd February 2006, 18:21
my avs script does not include audio. I encode the audio separately using besweet (which is using nero for aac).

There is nothing to see in the avs file regarding audio. Audio is not loaded in AVs. The AVS script loads my .d2v file which is set to 23,97/force film. And no 23.97 is not declared in my avs script for my d2v file. The rest of the script consists of resize and sharpen.


1.) i mux a 23.97 file with a 23.97 audio file, the audio is perfectly in synch with the video when it's play on the computer. I can forward/rewind/seek and all that fine with no issues. But on the psp, audio is totally delayed.


2.) if i mux a 23.97 video file with 29.97 audio file, the file is de-synched on the computer. video lags behind the audio. HOWEVER the file plays perfectly synched on the psp as long as i don't stop the file. No seeking, no rewind, no pausing etc. if i attempt to do any of that the file gets de-synched.

videonoob
22nd February 2006, 18:25
and i have tried other aac encoders. I've used apple's itunes which does not let me change the frame rate. And i end up with a perfectly synch mp4 on the computer. But on the psp the audio becomes de-synched. Same for doing it directly in nero.

deets
22nd February 2006, 18:33
hey, im trying to work out the root cause of you problem. if you dont want to post all your settings, then fair enough, but something is not right and until you work out why, your not going to be getting anywhere.

edit: firmware 2.6?

videonoob
22nd February 2006, 21:10
i will post my avs tonight, I don't have it on me at the momemt. My psp is not 2.6, it's at 2.0

Not sure if that's a problem

deets
22nd February 2006, 21:17
update the firmware if you want the other fps to work.

edit: if you had even looked at the video page on my link it makes it pretty clear in big text that 2.60 adds the extra frame rates