So, I am trying to subtitle an mp4 file....

This forum is for questions and discussion of all the aspects of handling and cleaning up your footage with Avisynth.
Locked
User avatar
Sayoria
Joined: Mon May 02, 2005 7:43 pm
Org Profile

So, I am trying to subtitle an mp4 file....

Post by Sayoria » Fri Feb 11, 2011 11:28 pm

And when I do, I get no sound. I am opening the video through Avisynth into VD and for some reason, I get no audio at all. My current script says:

Code: Select all

FFMPEGSource("C:\Users\Don\Downloads\Batsu Games\(2009) No-Laughing Hotel Employee\No-Laughing Hotel Disc 1.mp4") 

Is there something I need to add to get the audio in there?
My old Youtube Channel has been removed. Kindly review here for videos:
https://www.youtube.com/channel/UCjmhp2 ... gpjU0cMCuA

User avatar
CodeZTM
Spin Me Round
Joined: Fri Mar 03, 2006 6:13 pm
Status: Flapping Lips
Location: Arkansas
Contact:
Org Profile

Re: So, I am trying to subtitle an mp4 file....

Post by CodeZTM » Fri Feb 11, 2011 11:43 pm

Have you tried WAVSource and plugging in a separate audio file that matches the video?

User avatar
Sayoria
Joined: Mon May 02, 2005 7:43 pm
Org Profile

Re: So, I am trying to subtitle an mp4 file....

Post by Sayoria » Sat Feb 12, 2011 12:31 am

My sound keeps coming in about 5 seconds ahead of the lipsync. =/
My old Youtube Channel has been removed. Kindly review here for videos:
https://www.youtube.com/channel/UCjmhp2 ... gpjU0cMCuA

User avatar
CodeZTM
Spin Me Round
Joined: Fri Mar 03, 2006 6:13 pm
Status: Flapping Lips
Location: Arkansas
Contact:
Org Profile

Re: So, I am trying to subtitle an mp4 file....

Post by CodeZTM » Sat Feb 12, 2011 12:47 am

Is the audio file and the video file the same length? Try and export your workspace only and export the two separately.

User avatar
Sayoria
Joined: Mon May 02, 2005 7:43 pm
Org Profile

Re: So, I am trying to subtitle an mp4 file....

Post by Sayoria » Sat Feb 12, 2011 1:10 am

I got it fixed. I needed to add ", atrack=-1" after the file location. My audio was put in. Also, I realized that the time off wasn't the sound clip's fault. VD keeps audio setting to like....3 times the regular speed, and I mis-wrote the accurate FPS.
My old Youtube Channel has been removed. Kindly review here for videos:
https://www.youtube.com/channel/UCjmhp2 ... gpjU0cMCuA

Mister Hatt
Joined: Tue Dec 25, 2007 8:26 am
Status: better than you
Contact:
Org Profile

Re: So, I am trying to subtitle an mp4 file....

Post by Mister Hatt » Sat Feb 12, 2011 5:23 am

Don't ever run your audio through avisynth. Even though it's fixed, load your audio via vdub directly, and don't use VBR. Reasons are complicated but basically boil down to avisynth handling audio incredibly poorly (not that anyone here notices quality or accuracy) and vdub not being able to accurately match audio samples to frames when VBR audio is used.

User avatar
Tab.
Joined: Tue May 13, 2003 10:36 pm
Status: SLP
Location: gayville
Org Profile

Re: So, I am trying to subtitle an mp4 file....

Post by Tab. » Sun Feb 20, 2011 10:24 pm

Is it too late to point out that MP4 supports soft subtitles?
MP4Box can import them from SRT: http://gpac.wp.institut-telecom.fr/mp4b ... mentation/
◔ ◡ ◔

Mister Hatt
Joined: Tue Dec 25, 2007 8:26 am
Status: better than you
Contact:
Org Profile

Re: So, I am trying to subtitle an mp4 file....

Post by Mister Hatt » Mon Feb 21, 2011 8:50 pm

No, you're just stupid. GPAC's MP4 supports TTXT, which is what it converts SRT to, but lavf won't demux it. Adobe however supports only TTXML (a bluray subtitle format that nobody uses, similar to SSA4 and Kate). Sony only support muxing TTXT but not playing it back. Apple don't support it at all. You're starting to see where I'm going with this? MP4 is a common file extension which various formats all use. They are loosely similar but they all have different rules on formats and muxing and demuxing. When it comes down to it, you can include subtitles, but almost nothing will read them, and certainly not the way you'd expect. In a test I did a few months ago with Adobe's TTXML in MP4, a file that fully conformed wouldn't even play in THEIR player.

User avatar
Tab.
Joined: Tue May 13, 2003 10:36 pm
Status: SLP
Location: gayville
Org Profile

Re: So, I am trying to subtitle an mp4 file....

Post by Tab. » Tue Feb 22, 2011 6:52 am

Mister Hatt wrote:lavf won't demux it.
Wrong.
Mister Hatt wrote: Adobe however supports only TTXML (a bluray subtitle format that nobody uses, similar to SSA4 and Kate). Sony only support muxing TTXT but not playing it back.
Relevant in what way? MP4 is a production format, not an editing format.
Mister Hatt wrote:Apple don't support it at all.
Both QuickTime and the iOS playback engine support it fine.
Mister Hatt wrote:No, you're just stupid.
It's clear by now you don't actually bother to verify anything you're saying, but this one is way out of line.
◔ ◡ ◔

User avatar
HalOfBorg
Joined: Wed May 14, 2008 7:19 pm
Org Profile

Re: So, I am trying to subtitle an mp4 file....

Post by HalOfBorg » Tue Feb 22, 2011 8:21 am

I know it's all fixed, but Aegisub for soft subs.

http://www.aegisub.org/
Help HalOfBorg fight his cancer - http://www.gofundme.com/21ygdk

ImageImageImage
ImageImageImage

Locked

Return to “AviSynth Help”