digitalFAQ.com Forum

digitalFAQ.com Forum (https://www.digitalfaq.com/forum/)
-   Edit Video, Audio (https://www.digitalfaq.com/forum/video-editing/)
-   -   Add a new track to a video (https://www.digitalfaq.com/forum/video-editing/10053-add-track-video.html)

RockCassette 10-04-2019 04:55 PM

Add a new track to a video
 
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?

lordsmurf 10-05-2019 06:20 AM

That sort of task requires an NLE.

josem84 10-05-2019 01:03 PM

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.

RockCassette 10-06-2019 04:54 AM

Thank you.
Humble Creative Pack for $25, which includes Pinnacle Studio 23 Ultimate :)
I will also try with ffmpeg.

RockCassette 10-06-2019 10:16 AM

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.

josem84 10-06-2019 10:29 AM

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 (Post 64379)
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.


RockCassette 10-06-2019 11:44 AM

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

josem84 10-06-2019 12:43 PM

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.

dpalomaki 10-07-2019 08:05 AM

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.

josem84 10-08-2019 06:13 AM

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 (Post 64388)
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.


RockCassette 10-10-2019 10:21 AM

I only move the audio track ahead (8,5 seconds) and it seems good.


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

Site design, images and content © 2002-2024 The Digital FAQ, www.digitalFAQ.com
Forum Software by vBulletin · Copyright © 2024 Jelsoft Enterprises Ltd.