I have two video in different audio but content is exactly the same. File 1 is 58 min long and file 2 is 55 min long. I want to want to replace the audio in file 1 with audio in file 2. Before I can do that, I need to edit file 1 to match with file 2 in length, like cutting out extra scenes and credits in between, etc. I find it kind of hard getting everything exact using avidemux. Is there any other good software out there where I can get the video and scenes to be precise?
+ Reply to Thread
Results 1 to 23 of 23
-
-
I guess you gave up edit the audio...
Cutting exact is difficult. Most free editors cut at keyframes and they can be some seconds a apart. You can cut exactly with virtualdub but you must reconvert. -
The difference between 55 and 58 minutes is about the difference between PAL (25 fps) and NTSC (23.976 fps) versions of a show. You might be able to change the frame rate of the video at the container level.
-
Might go back to playing with audio another time.
I used virtual dub but it says file must be in avi. I have files in MP4 and mkv -
I don't think AviDemux can do it. You'll need to use something like MMG or MP4Muxer. VirtualDub can do it for AVI files.
Changing the frame rate will only work if there are no content differences between the two videos.Last edited by jagabo; 3rd Mar 2015 at 10:52.
-
-
You can load all your footage into Vegas Movie Studio, compare the audio using waveforms and see if the mismatches are due to frame rate or different versions.
Most likely you can make any fixes and output your file before the free trial expires. -
So I'm thinking I basically have two options?
Option 1: mess with the video. trim file 1 down (58 min) to match file 2 in length (55min) and then extract the audio in file 2 and replace the audio in file 1.
Option 2: mess with the audio. take the audio in file 2, use audacity or any suggest software, add some gaps in between to make the audio in file 2 to be exactly 58 min as file 1 and then replace the audio in file 1.
Which option will give me better results? -
Fixing the audio will get you no drop in quality if you leave the audio uncompressed. Or if you recompress it at a high bitrate you won't notice any drop in quality.
-
-
-
Are the frame rates the same? Are you certain the only difference is extra scenes in file 1?
A non linear video editor (NLE) is probably your best bet for either messing with video or audio, such as vegas as suggested above. A free one is aviutl , but it's not as user friendly or slick as retail NLE's - however it supports more formats natively, including mkv container . With a NLE, you can see audio & video and you get instant feedback. You can use multiple tracks - you can put video 1 & 2 both on the timeline and see everything laid out. You can solo tracks one at a time. So you can see where the extra scenes are. What the relationship is with the audio etc...
The audio is probably going to dictate what you do with the video if you want to do a decent job, because it will be pretty messed up if you have actual video content and blank audio. Unless you're a good audio composer and synthesizing music and background audio
But editing the video will likely require you to re-encode it - that implies re-compression & quality loss if you use a lossy codec. Unless the video in #1 is using intra-compression.
If you use mediainfo (view=>text) and copy & paste the information about both videos, it would help -
File one is hd mkv file in korean audio.
neral
Unique ID : 213584909758081952256082672900391140456 (0xA0AEF5140D8D5E03BBD8FD78045D7C68)
Format : Matroska
Format version : Version 4 / Version 2
File size : 165 MiB
Duration : 58mn 44s
Overall bit rate mode : Variable
Overall bit rate : 394 Kbps
Encoded date : UTC 2014-05-09 17:45:36
Writing application : mkvmerge v6.0.0 ('Coming Up For Air') built on Jan 20 2013 09:52:00
Video
ID : 1
Format : AVC
Format/Info : Advanced Video Codec
Format profile : High@L3.1
Format settings, CABAC : Yes
Format settings, ReFrames : 8 frames
Codec ID : V_MPEG4/ISO/AVC
Duration : 58mn 44s
Bit rate : 338 Kbps
Width : 848 pixels
Height : 480 pixels
Display aspect ratio : 16:9
Frame rate mode : Constant
Frame rate : 29.970 fps
Color space : YUV
Chroma subsampling : 4:2:0
Bit depth : 8 bits
Scan type : Progressive
Bits/(Pixel*Frame) : 0.028
Stream size : 142 MiB (86%)
Writing library : x264 core 125
Encoding settings : cabac=1 / ref=8 / deblock=1:1:1 / analyse=0x3:0x113 / me=umh / subme=10 / psy=1 / psy_rd=0.00:0.00 / mixed_ref=1 / me_range=16 / chroma_me=1 / trellis=2 / 8x8dct=1 / cqm=0 / deadzone=21,11 / fast_pskip=1 / chroma_qp_offset=0 / threads=3 / lookahead_threads=1 / sliced_threads=0 / nr=0 / decimate=1 / interlaced=0 / bluray_compat=0 / constrained_intra=0 / bframes=5 / b_pyramid=2 / b_adapt=2 / b_bias=0 / direct=1 / weightb=1 / open_gop=0 / weightp=2 / keyint=300 / keyint_min=30 / scenecut=40 / intra_refresh=0 / rc_lookahead=40 / rc=crf / mbtree=1 / crf=27.0 / qcomp=0.60 / qpmin=3 / qpmax=69 / qpstep=4 / ip_ratio=1.40 / aq=2:0.60
Language : English
Default : Yes
Forced : No
Color primaries : BT.709
Transfer characteristics : BT.709
Matrix coefficients : BT.709
Color range : Limited
Audio
ID : 2
Format : Vorbis
Format settings, Floor : 1
Codec ID : A_VORBIS
Duration : 58mn 44s
Bit rate mode : Variable
Bit rate : 48.0 Kbps
Channel(s) : 1 channel
Sampling rate : 48.0 KHz
Compression mode : Lossy
Stream size : 20.2 MiB (12%)
Writing library : aoTuV 20110424 (UTC 2011-04-24)
Language : Unknown
Default : Yes
Forced : No
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------
File 2 is a low quality file in japanese audio.
General
Format : MPEG-4
Format profile : Base Media
Codec ID : isom
File size : 548 MiB
Duration : 55mn 43s
Overall bit rate mode : Variable
Overall bit rate : 1 376 Kbps
Encoded date : UTC 2015-02-25 06:47:30
Tagged date : UTC 2015-02-25 06:47:30
Video
ID : 1
Format : AVC
Format/Info : Advanced Video Codec
Format profile : High@L4.0
Format settings, CABAC : Yes
Format settings, ReFrames : 8 frames
Codec ID : avc1
Codec ID/Info : Advanced Video Coding
Duration : 55mn 43s
Bit rate : 1 300 Kbps
Maximum bit rate : 5 172 Kbps
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
Bits/(Pixel*Frame) : 0.056
Stream size : 518 MiB (94%)
Writing library : x264 core 116 r2074 2641b9e
Encoding settings : cabac=1 / ref=8 / deblock=1:-1:-1 / analyse=0x3:0x113 / me=umh / subme=9 / psy=1 / psy_rd=1.00:0.15 / mixed_ref=1 / me_range=16 / chroma_me=1 / trellis=1 / 8x8dct=1 / cqm=0 / deadzone=21,11 / fast_pskip=1 / chroma_qp_offset=-3 / threads=6 / sliced_threads=0 / nr=0 / decimate=1 / interlaced=0 / bluray_compat=0 / constrained_intra=0 / bframes=5 / 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=60 / rc=2pass / mbtree=1 / bitrate=1300 / ratetol=1.0 / qcomp=0.60 / qpmin=10 / qpmax=51 / qpstep=4 / cplxblur=20.0 / qblur=0.5 / ip_ratio=1.40 / aq=1:1.00
Encoded date : UTC 2015-02-25 02:28:57
Tagged date : UTC 2015-02-25 06:48:59
Audio
ID : 2
Format : AAC
Format/Info : Advanced Audio Codec
Format profile : HE-AAC / LC
Codec ID : 40
Duration : 55mn 43s
Bit rate mode : Variable
Bit rate : 72.0 Kbps
Maximum bit rate : 86.4 Kbps
Channel(s) : 2 channels
Channel positions : Front: L R
Sampling rate : 48.0 KHz / 24.0 KHz
Compression mode : Lossy
Stream size : 29.0 MiB (5%)
Encoded date : UTC 2015-02-25 06:48:56
Tagged date : UTC 2015-02-25 06:48:59 -
I attached the info on another post above. How do I tell if the frame rate is the same or not?
The japanese audio in the low hd file #2 is what I really want to extract. Once I extract it, I plan to replace the original korean audio in the hd file 1. I am hoping my result will be a hd file in japanese audio. However, because the length of the two files are different, I dont know what is the best way to get this to work. I watched a bit of the korean file #1 and there are more scenes than file 2 which is the reason I think that makes file 1 longer. But, I am not sure what else could be out there that makes it different from file 2. -
Option 3: Watch the version with the original language and use the subtitles. This whole exercise (even if you knew what you were doing, which you don't) is a complete waste of time. You already have a good quality video in the original Korean language. Leave it at that.
-
-
It tells you the frame rate in the report : 29.97 and 25, for file 1 & 2 respectively
The frame rate actually isn't that relevant for what you are doing - Audio doesn't have a frame rate . I was more interested in seeing if something else was going on.
There might be some misunderstanding or vocabulary / English translation issue - but file #2 might be lower visual quality, but it's 1280x720 - so technically that is "HD" . File #1 is "SD" because because it's 848x480. It uses very low bitrate so that would suggest the visual quality actually isn't that great. This is important to consider because both files use long GOP encoding and the keyframes are spaced up to 10 sec apart - this means you cannot cut frame accurately unless you re-encode at least some segments. When you re-encode with a lossy codec, it's going to deteriorate in quality. But you can use a higher bitrate to minimize the quality loss. It's not an ideal situation for you that both these files are not meant to be edited.
What I suggested earlier is still the way I would do it and cut video from #1. With a NLE, you can line up both videos, both audios and it's much easier to edit. Because you have multiple tracks, you can toggle their opacity and use video #2 a a visual guide your video #1 cutting. Even if you don't understand Korean , it doesn't matter as much because you can visually line them up and chop out the segments in video #1 that aren't in video #2. It's not like avidemux or vdub, where you only have 1 video open at a time. Decent NLE's also allow you to see the audio waveform so that can also help with timing.
It should be possible to do this with aviutl as well, but slightly harder , and slower than a retail NLE .
Cutting video means you would have to re-encode video (because of the way your specific files were compressed). So that will result in lower visual quality (unless you use a lossless codec, or uncompressed - large filesizes) . But if you do it the other way and add silence or music to the japanese audio to match video #1, then you have to re-encode the japanese audio and that will deteriorate (again, unless you use a lossless codec, or uncompressed - again larger filesizes) . -
The usual practice for converting 24 fps film for NTSC broadcast is to slow it down to 23.976 fps and duplicate fields to make 59.94 fields per second (this doesn't further change the running time). In digital files pairs of those fields are interleaved together to create 29.97 frames per second. The usual practice for PAL video is speed the film up to 25 fps. So the exact same video in PAL has a shorter running time by a factor of 23.976/25 (about 4 percent shorter).
The Japanese audio you have is 3343 seconds (55:43) long. If you stretch that by the usual PAL/NTSC speed difference you get ~3486 seconds. But the audio in your NTSC video is 3524 seconds (58:44) long. So in addition to the PAL/NTSC speed difference there is some extra material in the NTSC version. You'll have to first stretch the Japanese audio to 3486 seconds then compensate for the extra 38 seconds. If you're lucky most of those extra seconds will be junk at the start and end of the video. -
In your situation, I would stack both versions in a timeline and using partial opacity do what needs to be done to get your main video and your secondary video lined up (trimming, stretching, etc.) Fool with your main video as little as possible and make your adjustments to the secondary.
Then, once everything's synced, do a second pass to clean up the audio.Last edited by smrpix; 4th Mar 2015 at 08:46.
-
I am trying to download vegas another night to see if it works. I did download aviutl but I am having problems finding the instructions on the web how to put them side by side or one on top of another. I mean I see four layers, two sets of audio and video but on the screen, I only see one video. Like you said, it is a bit not so user friendly. I have seen this done successfully before. I am sure there is a way out there but just need to find out the right software and tools.
Last edited by Freelife2345; 5th Mar 2015 at 01:08.