I am trying to hardsub to an mkv using avidemux. I am using avidemux version 2.5.5 since it is the latest version that includes the subtitle option. I open the original mkv file and receive the following message, see picture 1. I click no and the second dialog box opens, see picture 2. I choose yes and it opens the video. For my video option I choose MPEG-4 AVC and I choose copy for audio. I leave the encode mode on Constant Rate Factor (single pass). I then add the ASS subtitle filter along with my subtitle file. I choose MKV as my format and save it. When the process is finished I end up with a longer file than the original and the audio is out of sync with the video, but the subtitles are burned in. I ran the original file and the new file through mediainfo. I noticed several differences that seem like they are important and then there are several of less importance like the names of tracks, etc. The results of the media info scans are below. It seems like an issue that happnes with mpeg audio and that Builiding a VBR time map would help, but the audio is aac. I also don't know how to install MAD (mpeg audio decoder) so that Avidemux can build the time map. So I can't even try it.
Picture 1:
Picture 2:
Mediainfo original file:
Mediainfo new file after Avidemux:General
Unique ID : 187679702404224639223690598157885901731 (0x8D31CBBEE2207A57A275275F9CD00BA3)
Complete name : C:\Users\Robert\Desktop\video.mkv
Format : Matroska
Format version : Version 2
File size : 315 MiB
Duration : 23mn 19s
Overall bit rate : 1 890 Kbps
Encoded date : UTC 2012-08-10 08:04:33
Writing application : mkvmerge v5.4.0 ('Piper') built on Mar 10 2012 13:34:39
Writing library : libebml v1.2.3 + libmatroska v1.3.0
Attachment : Yes / Yes
Video
ID : 1
Format : AVC
Format/Info : Advanced Video Codec
Format profile : High@L4.0
Format settings, CABAC : Yes
Format settings, ReFrames : 9 frames
Codec ID : V_MPEG4/ISO/AVC
Duration : 23mn 19s
Width : 1 280 pixels
Height : 720 pixels
Display aspect ratio : 16:9
Frame rate mode : Constant
Frame rate : 23.976 fps
Color space : YUV
Chroma subsampling : 4:2:0
Bit depth : 8 bits
Scan type : Progressive
Title : h.264
Writing library : x264 core 120 r2164 da19765
Encoding settings : cabac=1 / ref=9 / deblock=1:0:0 / analyse=0x3:0x13 / me=umh / subme=10 / psy=1 / psy_rd=1.00:0.00 / mixed_ref=1 / me_range=24 / chroma_me=1 / trellis=2 / 8x8dct=1 / cqm=0 / deadzone=21,11 / fast_pskip=1 / chroma_qp_offset=-2 / threads=9 / sliced_threads=0 / nr=0 / decimate=1 / interlaced=0 / bluray_compat=0 / constrained_intra=0 / bframes=7 / b_pyramid=2 / b_adapt=2 / b_bias=0 / direct=3 / weightb=1 / open_gop=0 / weightp=2 / keyint=250 / keyint_min=25 / scenecut=40 / intra_refresh=0 / rc_lookahead=130 / rc=crf / mbtree=1 / crf=18.0 / qcomp=0.60 / qpmin=0 / qpmax=69 / qpstep=4 / ip_ratio=1.40 / aq=1:1.00
Language : Japanese
Default : Yes
Forced : No
Matrix coefficients : BT.709
Audio
ID : 2
Format : AAC
Format/Info : Advanced Audio Codec
Format profile : LC
Codec ID : A_AAC
Duration : 23mn 19s
Channel(s) : 2 channels
Channel positions : Front: L R
Sampling rate : 48.0 KHz
Compression mode : Lossy
Delay relative to video : 9ms
Title : aac 2ch
Language : Japanese
Default : Yes
Forced : No
Text
ID : 3
Format : ASS
Codec ID : S_TEXT/ASS
Codec ID/Info : Advanced Sub Station Alpha
Compression mode : Lossless
Title : subtitles & notes
Language : English
Default : Yes
Forced : No
Menu
00:00:00.000 : en:Opening
00:03:13.902 : en:Recap
00:04:28.560 : en:Part 1
00:14:34.907 : en:Part 2
00:23:04.925 : en:Preview
I would really appreciate any help anyone can give. If there's anymore information that you need please let me know.General
Unique ID : 15599106885966777402436194929471852200 (0xBBC4759425E26A4F6767537CCA70EA8)
Complete name : C:\Users\Robert\Desktop\test.mkv
Format : Matroska
Format version : Version 2
File size : 158 MiB
Duration : 25mn 20s
Overall bit rate : 873 Kbps
Movie name : Avidemux
Writing application : Lavf52.108.0
Writing library : Lavf52.108.0
AUTHOR : Avidemux
Video
ID : 1
Format : AVC
Format/Info : Advanced Video Codec
Format profile : High@L3.1
Format settings, CABAC : Yes
Format settings, ReFrames : 4 frames
Codec ID : V_MPEG4/ISO/AVC
Duration : 25mn 20s
Width : 1 280 pixels
Height : 720 pixels
Display aspect ratio : 16:9
Frame rate mode : Constant
Frame rate : 25.000 fps
Color space : YUV
Chroma subsampling : 4:2:0
Bit depth : 8 bits
Scan type : Progressive
Writing library : x264 core 119 r2106 07efeb4
Encoding settings : cabac=1 / ref=3 / deblock=1:0:0 / analyse=0x3:0x113 / me=hex / subme=7 / psy=1 / psy_rd=1.00:0.00 / mixed_ref=1 / me_range=16 / chroma_me=1 / trellis=1 / 8x8dct=1 / cqm=0 / deadzone=21,11 / fast_pskip=1 / chroma_qp_offset=-2 / threads=12 / sliced_threads=0 / nr=0 / decimate=1 / interlaced=0 / bluray_compat=0 / constrained_intra=0 / bframes=3 / b_pyramid=2 / b_adapt=1 / b_bias=0 / direct=1 / weightb=1 / open_gop=0 / weightp=2 / keyint=250 / keyint_min=25 / scenecut=40 / intra_refresh=0 / rc_lookahead=40 / rc=crf / mbtree=1 / crf=26.0 / qcomp=0.60 / qpmin=0 / qpmax=51 / qpstep=4 / ip_ratio=1.40 / aq=1:1.00
Default : Yes
Forced : No
Matrix coefficients : SMPTE 240M
Audio
ID : 2
Format : AAC
Format/Info : Advanced Audio Codec
Format profile : LC
Codec ID : A_AAC
Duration : 25mn 20s
Channel(s) : 2 channels
Channel positions : Front: L R
Sampling rate : 48.0 KHz
Compression mode : Lossy
Delay relative to video : -40ms
Default : Yes
Forced : No
+ Reply to Thread
Results 1 to 14 of 14
-
Last edited by ROBO731; 18th Nov 2012 at 16:51. Reason: Added information.
-
Your original video is shown as 23.976 fps and of duration 23 min 19 sec
Your encoded video is 25 fps and of duration 25 min 20s (something wrong- with 25 fps, the video is speeded up, so should be of less duration than your original)
You can try loading your final mkv in mmg.exe from mkvtoolnix package, and remux. specifically use 23.976 as your fps,
and audio delay as 9 ms (as in original video)
in mmg-select Format specific options- then highlight video stream to access video options- highlight audio stream to access audio options.
If that doesn't work.
Demux the original mkv with MKVExtractGUI-2
re-encode the video with subtitles. Then mux the original audio with reencoded video using mmg.exe as indicated above. -
Thanks guys. I hadn't mentioned it, but I had also tried a file with the exact fps of the original, but it came out even longer than this file. I know that avidemux doesn't handle h.264 well. It's just the easiest way to hardsub my file. I'll give the mkvtoolnix suggestions a try and let you guys know how it goes.
-
I downloaded version 256-1 from here, http://avidemux.razorbyte.com.au/ , but had similar problems.
Perhaps give version 2.60 a try? (build 8266).
I did successfully encode it with Staxrip version 1172. I used FFdshow and activated Subtitles.
Set Staxrip to use directshowsource as the source filter. -
I think I'm just going to use handbrake. It gets the job done. It may not be the fastest or the best, but it's the most simple. I have been struggling with this issue of finding a good, easy, fast, high quality way to burn in subtitle for a long time. It seems to me that there is no way like this for the files I'm trying. Hopefully there will be one in the future. Thanks anyway guys.
-
I got it to work using Staxrip; perhaps I'll post the output to see if it's what you mean.
By enabling subtitles in FFdshow and using the directshowsource source filter in Staxrip, the subtitles
are merged in automatically through dshow. No need to even address it in Staxrip, they're just picked up automatically.
When I looked at the Staxrip produced file, the ASS subs were there in the file as a separate stream. I ran it through
mkvmerge and deselcted the subs. I played back the resulting file and the subs still appeared, so I I assumed they were
burned in? -
Yes, they are indeed burned in. I guess I'll give it one more go. Can you give me specific instructions on how you did it? I'm not really sure what you did.
-
I used Staxrip 1172. I mentioned the process at a high level, but I'll fill in some details.
Install Staxrip. If you see any errors concerning DGdecNV or DGindexNV, see the comment by arto65 on this page.
http://www.techsupportalert.com/best-free-video-encoder.htm
Uninstall or deactivate vobsub if present.
Render the source file with Graphstudio and confirm that FFDshow is the decoder.
Turn on FFdshow's subtitles.
Open Staxrip and under "Filters", deselect all except "source". Right click "source" and choose directshowsource.
Click on "source" (top left) and load your file. On the right where it says "divx plus", (above the white box- right)
click it and choose your x264 profile (I used x264 animation). Set up your audio .
On the bottom right where it defaults to aac 96 vbr, you can click that and
set to "just mux" if you'd like to use the original audio. That's all. Hit "next" and "start"
Similar Threads
-
Why do some m2ts files play on PS3 while others in the same format don't?
By chrvi in forum Video ConversionReplies: 7Last Post: 12th Mar 2012, 13:31 -
why does Avidemux play back files faster or slower
By mukluk909 in forum EditingReplies: 1Last Post: 2nd May 2011, 12:26 -
Video files open but don't play
By necrolancer in forum Newbie / General discussionsReplies: 3Last Post: 1st Jun 2010, 00:24 -
Avidemux encoding problem
By las7h0p3 in forum Video ConversionReplies: 0Last Post: 17th Feb 2010, 13:40 -
Joined 3 AVI Videos using Avidemux, but 1 video has sound, other 2 don't??
By UmmAddan in forum EditingReplies: 2Last Post: 31st Dec 2007, 18:04