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

This forum is for questions and discussion of all the aspects of handling your footage. If you have questions about capturing/ripping footage, AviSynth, or compression/encoding/converting, look here.

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

Postby L'arc~en~ciel » 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?
User avatar
L'arc~en~ciel
 
Joined: 02 May 2005

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

Postby 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
CodeZTM
Spin Me Round
 
Joined: 03 Mar 2006
Location: Arkansas
Status: Flapping Lips

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

Postby L'arc~en~ciel » Sat Feb 12, 2011 12:31 am

My sound keeps coming in about 5 seconds ahead of the lipsync. =/
User avatar
L'arc~en~ciel
 
Joined: 02 May 2005

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

Postby 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
CodeZTM
Spin Me Round
 
Joined: 03 Mar 2006
Location: Arkansas
Status: Flapping Lips

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

Postby L'arc~en~ciel » 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.
User avatar
L'arc~en~ciel
 
Joined: 02 May 2005

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

Postby 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.
Mister Hatt
 
Joined: 25 Dec 2007
Status: better than you

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

Postby 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/
◔ ◡ ◔
User avatar
Tab.
 
Joined: 13 May 2003
Location: gayville
Status: SLP

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

Postby 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.
Mister Hatt
 
Joined: 25 Dec 2007
Status: better than you

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

Postby 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
Tab.
 
Joined: 13 May 2003
Location: gayville
Status: SLP

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

Postby 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
User avatar
HalOfBorg
 
Joined: 14 May 2008

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

Postby mirkosp » Tue Feb 22, 2011 10:56 am

That was kind of not what was going on in here anyway, HalOfBorg... Aegisub is an IDE to create the subs themselves, doesn't help you any with muxing or hardsubbing them. :p
Image
User avatar
mirkosp
MODkip
 
Joined: 24 Apr 2006
Location: Gallarate (VA), Italy
Status: (」・ワ・)」(⊃・ワ・)⊃

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

Postby HalOfBorg » Tue Feb 22, 2011 10:58 am

I know, I said for soft subs. Just trying to contribute.
Help HalOfBorg fight his cancer - http://www.gofundme.com/21ygdk

ImageImageImage
ImageImageImage
User avatar
HalOfBorg
 
Joined: 14 May 2008

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

Postby mirkosp » Tue Feb 22, 2011 11:32 am

Yes, but still, it will help you make the subs, but it won't do anything to actually mux them with the audio and video...
Image
User avatar
mirkosp
MODkip
 
Joined: 24 Apr 2006
Location: Gallarate (VA), Italy
Status: (」・ワ・)」(⊃・ワ・)⊃

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

Postby Tab. » Tue Feb 22, 2011 11:49 am

Spoiler :
Image


Man, this MPEG-4 Timed Text support sure is horrible. It's like nothing plays it.
◔ ◡ ◔
User avatar
Tab.
 
Joined: 13 May 2003
Location: gayville
Status: SLP

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

Postby Mister Hatt » Tue Feb 22, 2011 6:36 pm

3GP is not the same as MP4, only similar. Can you either verify it's actually a non-extended MP4 file, or do it again? The splitting is handled differently afaik in mplayer at least, and possibly lavf itself which'd also impact MPC and VLC. You also haven't verified the TTXT file is actually TTXT and not just SRT.

I did admit on IRC that I wasn't aware QuickTime could handle subtitles, but as I recall you had some issues getting ffmpeg to play nice, which seems to go along more with what I said...

In regard to Adobe and Sony, Adobe's streaming solutions are meant to handle subtitles (the AVC in MP4 via flash setups are supposedly capable of TTXML - but it doesn't work), which sounds rather more like production than editing to me. Sony's MP4 support on the PS3 doesn't display subtitles at all, and for a long time even bluray subs wouldn't show up, possibly still now. Their muxing app for converting does seem to add subs in though.

@HalOfBorg: Aegisub can't export TTXT, although you can convert SRT to it. You are correct for a change though, Aegisub to create a .ass file and mux to MKV is the way to go, seeing as MP4 is shit and all.
Mister Hatt
 
Joined: 25 Dec 2007
Status: better than you

Next

Return to Footage Help

Who is online

Users browsing this forum: No registered users and 1 guest