Quantcast Add a new track to a video - digitalFAQ Forum
  #1  
10-04-2019, 04:55 PM
RockCassette RockCassette is offline
Free Member
 
Join Date: Aug 2018
Location: Italy
Posts: 28
Thanked 3 Times in 2 Posts
Hello,
I've ripped a Blu-ray film that it has no my language as audio.
I've found the audio in mp3 retrieved from the version aired to TV. Unfortunatelly it did not much at the beginning so I should delay the audio about 3-4 seconds (with VLC 8,700s).
As I would like to copy video (H264 - MPEG-4 AVC (part 10) (avc1)) and adding such track on the mp4, I need a tool (like virtualdub) to do the job.

What program?
Suggestions?
Reply With Quote
Someday, 12:01 PM
admin's Avatar
Ads / Sponsors
 
Join Date: ∞
Posts: 42
Thanks: ∞
Thanked 42 Times in 42 Posts
  #2  
10-05-2019, 06:20 AM
lordsmurf's Avatar
lordsmurf lordsmurf is offline
Site Staff | Video
 
Join Date: Dec 2002
Posts: 8,552
Thanked 1,404 Times in 1,233 Posts
That sort of task requires an NLE.

- Did my advice help you? Then become a Premium Member and support this site.
- Find television shows, cartoons, DVDs and Blu-ray releases at the TVPast forums.
Reply With Quote
  #3  
10-05-2019, 01:03 PM
josem84 josem84 is offline
Free Member
 
Join Date: Feb 2019
Posts: 40
Thanked 2 Times in 2 Posts
If the offset is constant in time, you don't need any NLE to mux both tracks. It can be done directly using ffmpeg's audio filter "adelay". If your video source is 24 fps and the audio you're working with came from a 25 fps source, you need to look at "atempo" filter for changing the audio tempo. Or you can speed up the video ("setpts"). If there are commercials in between or you're dealing with different cuts from the same movie, then yes... you need an NLE to edit the audio track. Or you can use Audacity.

Edit: You can also use mkvmerge to mux both tracks into an mkv file. It will allow you to delay the audio track using a flag at a container level without re-encoding the audio.

Last edited by josem84; 10-05-2019 at 01:35 PM.
Reply With Quote
  #4  
10-06-2019, 04:54 AM
RockCassette RockCassette is offline
Free Member
 
Join Date: Aug 2018
Location: Italy
Posts: 28
Thanked 3 Times in 2 Posts
Thank you.
Humble Creative Pack for $25, which includes Pinnacle Studio 23 Ultimate
I will also try with ffmpeg.
Reply With Quote
  #5  
10-06-2019, 10:16 AM
RockCassette RockCassette is offline
Free Member
 
Join Date: Aug 2018
Location: Italy
Posts: 28
Thanked 3 Times in 2 Posts
Here it's the media info of the video I converted:
https://i.ibb.co/27zWxhc/Media-Info.png

The 2 audio files I captured through TV:

Format : MPEG-4
Format profile : Apple audio with iTunes info
Codec ID : M4A (isom/iso2)
File size : 141 MiB
Duration : 1 h 40 min
Overall bit rate mode : Constant
Overall bit rate : 197 kb/s
Writing application : Lavf55.33.100

Format : MPEG-4
Format profile : Base Media
Codec ID : isom (mp41/avc1)
File size : 89.6 MiB
Duration : 1 h 37 min
Overall bit rate mode : Constant
Overall bit rate : 129 kb/s
Encoded date : UTC 2019-10-04 18:34:28
Tagged date : UTC 2019-10-04 18:34:28
Writing application : vlc 3.0.7.1 stream output


I can add silent if the audio does not match with the video lenght.

I do not understand the question about framerate. I recorded the audio through headphone jack out and line-in as input.
Reply With Quote
  #6  
10-06-2019, 10:29 AM
josem84 josem84 is offline
Free Member
 
Join Date: Feb 2019
Posts: 40
Thanked 2 Times in 2 Posts
You're dealing with different framerates here. You're trying to sync audio from a 25fps source with a 24fps video. You need to either speed up the video or change the audio tempo. Easiest way is to use MKVToolnix (a frontend for mkvmerge) and speed up the video. Give it a try.



Quote:
Originally Posted by RockCassette View Post
Here it's the media info of the video I converted:
https://i.ibb.co/27zWxhc/Media-Info.png

The 2 audio files I captured through TV:

Format : MPEG-4
Format profile : Apple audio with iTunes info
Codec ID : M4A (isom/iso2)
File size : 141 MiB
Duration : 1 h 40 min
Overall bit rate mode : Constant
Overall bit rate : 197 kb/s
Writing application : Lavf55.33.100

Format : MPEG-4
Format profile : Base Media
Codec ID : isom (mp41/avc1)
File size : 89.6 MiB
Duration : 1 h 37 min
Overall bit rate mode : Constant
Overall bit rate : 129 kb/s
Encoded date : UTC 2019-10-04 18:34:28
Tagged date : UTC 2019-10-04 18:34:28
Writing application : vlc 3.0.7.1 stream output


I can add silent if the audio does not match with the video lenght.

I do not understand the question about framerate. I recorded the audio through headphone jack out and line-in as input.
Reply With Quote
  #7  
10-06-2019, 11:44 AM
RockCassette RockCassette is offline
Free Member
 
Join Date: Aug 2018
Location: Italy
Posts: 28
Thanked 3 Times in 2 Posts
I did but the result is awful.

Generale
Unique ID : 69255704181812611234053643954857142724 (0x341A29D7E19F093CE065D39E96E369C4)
Complete name : C:\Users\Vale\Documents\Audacity\Registra003_w (1).mkv
Format : Matroska
Format version : Version 4
File size : 4,00 GiB
Duration : 1 o 40 min
Overall bit rate : 5.718 kb/s
Encoded date : UTC 2019-10-06 16:36:59
Writing application : mkvmerge v38.0.0 ('The Silent Type') 64-bit
Writing library : libebml v1.3.9 + libmatroska v1.5.2

Video
ID : 2
Format : AVC
Format/Info : Advanced Video Codec
Format profile : High@L4
Format settings : CABAC / 4 Ref Frames
Format settings, CABAC : Si
Format settings, Reference frames : 4 frame
Codec ID : V_MPEG4/ISO/AVC
Duration : 1 o 35 min
Bit rate : 5.761 kb/s
Width : 1.920 pixel
Height : 1.036 pixel
Display aspect ratio : 1,85:1
Frame rate mode : Costante
Frame rate : 25,000 FPS
Color space : YUV
Chroma subsampling : 4:2:0
Bit depth : 8 bit
Scan type : Progressivo
Bits/(Pixel*Frame) : 0.116
Stream size : 3,86 GiB (97%)
Writing library : x264 core 157 r2935 545de2f
Encoding settings : cabac=1 / ref=4 / deblock=1:0:0 / analyse=0x3:0x113 / me=hex / subme=8 / psy=1 / psy_rd=1.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=-2 / threads=12 / lookahead_threads=2 / 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=3 / weightb=1 / open_gop=0 / weightp=2 / keyint=240 / keyint_min=24 / scenecut=40 / intra_refresh=0 / rc_lookahead=50 / rc=crf / mbtree=1 / crf=20.0 / qcomp=0.60 / qpmin=0 / qpmax=69 / qpstep=4 / vbv_maxrate=25000 / vbv_bufsize=31250 / crf_max=0.0 / nal_hrd=none / filler=0 / ip_ratio=1.40 / aq=1:1.00
Default : Si
Forced : No
Color range : Limited
Color primaries : BT.709
Transfer characteristics : BT.709
Matrix coefficients : BT.709

Audio
ID : 1
Format : AAC LC
Format/Info : Advanced Audio Codec Low Complexity
Codec ID : A_AAC-2
Duration : 1 o 40 min
Bit rate : 192 kb/s
Channel(s) : 2 canali
Channel layout : L R
Sampling rate : 44,1 kHz
Frame rate : 43,066 FPS (1024 SPF)
Compression mode : Con perdita
Stream size : 140MiB (3%)
Default : Si
Forced : No
Reply With Quote
  #8  
10-06-2019, 12:43 PM
josem84 josem84 is offline
Free Member
 
Join Date: Feb 2019
Posts: 40
Thanked 2 Times in 2 Posts
Go to the framerate field in the video stream and change it to 25fps. You don't have to do anything to the audio track, leave it as is.
Reply With Quote
  #9  
10-07-2019, 08:05 AM
dpalomaki dpalomaki is offline
Free Member
 
Join Date: Feb 2014
Location: VA
Posts: 827
Thanked 179 Times in 152 Posts
Audio editing software like Adobe Audition can stretch/shrink duration audio while preserving pitch.

An NLE allows find adjustment and trimming of video (and audio) with ease.
Reply With Quote
  #10  
10-08-2019, 06:13 AM
josem84 josem84 is offline
Free Member
 
Join Date: Feb 2019
Posts: 40
Thanked 2 Times in 2 Posts
In this case, speeding up the video is preferred over the other alternative.
Audacity has also the option to change the audio tempo without changing the pitch. It's such a powerfull tool and it's free.
An NLE is only needed for complex editing. There's no point using an NLE for such an easy task as muxing two tracks. I'm done with it by the time you've finished loading your NLE.

Quote:
Originally Posted by dpalomaki View Post
Audio editing software like Adobe Audition can stretch/shrink duration audio while preserving pitch.

An NLE allows find adjustment and trimming of video (and audio) with ease.
Reply With Quote
  #11  
10-10-2019, 10:21 AM
RockCassette RockCassette is offline
Free Member
 
Join Date: Aug 2018
Location: Italy
Posts: 28
Thanked 3 Times in 2 Posts
I only move the audio track ahead (8,5 seconds) and it seems good.
Reply With Quote
Reply




Similar Threads
Thread Thread Starter Forum Replies Last Post
General Electric 8-track player to PC for digital? creaper Digital Devices 2 09-14-2018 06:36 AM
JVC VCR seems to constantly track (re-track) tapes finallygreen Video Hardware Repair 4 08-23-2013 03:59 PM
VHS has broken Control Track? Belmont Video Hardware Repair 2 12-25-2012 10:33 PM
On the right track to being capturing VHS? dummptyhummpty Project Planning, Workflows 3 10-10-2011 01:15 PM
Replace audio track ninjastriker Edit Video, Audio 2 07-11-2006 05:51 AM

Thread Tools



 
All times are GMT -5. The time now is 05:09 AM