hi, i have a HDR-XR150 handycam which records videos with the following information
ID : 0 (0x0)
Complete name : --------------------------------------
Format : BDAV
Format/Info : Blu-ray Video
File size : 296 MiB
Duration : 1mn 50s
Overall bit rate mode : Variable
Overall bit rate : 22.4 Mbps
Maximum Overall bit rate : 24.0 Mbps
Video
ID : 4113 (0x1011)
Menu ID : 1 (0x1)
Format : AVC
Format/Info : Advanced Video Codec
Format profile : High@L4.0
Format settings, CABAC : Yes
Format settings, ReFrames : 2 frames
Format settings, GOP : M=2, N=13
Codec ID : 27
Duration : 1mn 50s
Bit rate mode : Variable
Bit rate : 21.2 Mbps
Maximum bit rate : 22.0 Mbps
Width : 1 920 pixels
Height : 1 080 pixels
Display aspect ratio : 16:9
Frame rate : 25.000 fps
Color space : YUV
Chroma subsampling : 4:2:0
Bit depth : 8 bits
Scan type : Interlaced
Scan order : Top Field First
Bits/(Pixel*Frame) : 0.410
Stream size : 280 MiB (95%)
Audio
ID : 4352 (0x1100)
Menu ID : 1 (0x1)
Format : AC-3
Format/Info : Audio Coding 3
Mode extension : CM (complete main)
Format settings, Endianness : Big
Codec ID : 129
Duration : 1mn 50s
Bit rate mode : Constant
Bit rate : 256 Kbps
Channel(s) : 2 channels
Channel positions : Front: L R
Sampling rate : 48.0 KHz
Bit depth : 16 bits
Compression mode : Lossy
Delay relative to video : -80ms
Stream size : 3.38 MiB (1%)
Text
ID : 4608 (0x1200)
Menu ID : 1 (0x1)
Format : PGS
Codec ID : 144
Duration : 1mn 50s
Delay relative to video : -80ms
as you can see it has caption which is recording time and date. i want to edit this clip in vegas pro and make this caption appear on the video permanently, like a water mark. not a caption stream which you can select to see the caption or not.
Try StreamFab Downloader and download from Netflix, Amazon, Youtube! Or Try DVDFab and copy Blu-rays! or rip iTunes movies!
+ Reply to Thread
Results 1 to 28 of 28
Thread
-
-
Some retail options:
DVMP Pro 5
https://www.videohelp.com/tools/DV-Media-Player
http://www.dvmp.co.uk/
Visual AVCHD Time Stamp (vATS)
https://www.videohelp.com/tools/Visual-AVCHD-Time-Stamp
http://www.dts8888.com/vATS/vats.htm
A more difficult but free way to do is to use avchd2srt to extract srt subs (which will contain the date,time & GPS info if applicable), then you can hardcode a transparent clip with masksub() in avisynth to use as an overlay in vegas (there are some GUI's at the end of the thread)
https://forum.videohelp.com/threads/316229-Export-AVCHD-frame-specific-metadata-to-subtitles
Or you can import srt subs direct with vegasaur
http://vegasaur.com/text-generation-wizard -
I don't understand what you are asking
They don't work directly with vegas (they are separate programs) . You can hardcode the data, then import into vegas. Vegasaur is sort of a plugin for vegas that directly works within vegas that you can import srt subs (if you extracted the date/time/gps info with other methods) -
use the GUI at the middle of the thread or use the commandline (read the instructions)
https://forum.videohelp.com/threads/316229-Export-AVCHD-frame-specific-metadata-to-subt...=1#post2067734
http://code.google.com/p/sublib1/downloads/detail?name=subtitlemaker_v0.1.7z&can=2&q=
https://forum.videohelp.com/threads/316229-Export-AVCHD-frame-specific-metadata-to-subt...=1#post2069475 -
i extracted the captions, continuing the rest
thanks alotLast edited by darknesslord; 30th Apr 2014 at 14:44.
-
i downloaded avisynth and 32bit version of vsfilter.dll
and made a .avs file like this:
loadplugin("VSFilter.dll")
FlipVertical(MaskSub("day1.srt",1920,1080,25,13832 ))
but the .avs files can not be imported to the vegas.Last edited by darknesslord; 1st May 2014 at 06:40.
-
.avs cannnot import directly to vegas. You have 2 options:
1) You can re-encode the subs with masksub() to a transparent background video (e.g. lagarith or ut video codec in RGBA mode - You can do that with vdub), use that imported into vegas as an overlay over your original video .
2) You can use avfs (avisynth virtual frame server)
Usually #1 is better, because avfs can bog down your system if you have many instances/layers -
thank you, you have been very helpful so far
i re-encoded that .avs file with lagarith RGBA and imported that into vegas, but the video was only transparent in subtitle part instead of background. so i had to add invert to the avisynth function and re-encode again and import into vegas. it worked the only problem is that i only can get black subtitle
what i want to do now is:
1- have white subtitle
2- have subtitle boxed( e.g. white sub in black box)
3- have subtitle positioned in a plac other that lower middle -
No, you just interpret the alpha channel in vegas -
Right click the clip in the clip bin, properties, media tab, under "alpha channnel" set it to "straight" instead of "none" . "None" means vegas "thinks" the clip is RGB, not RGBA . The alpha channel is for transparency
what i want to do now is:
1- have white subtitle
2- have subtitle boxed( e.g. white sub in black box)
3- have subtitle positioned in a plac other that lower middle
If you want to adjust positioning , any fancy effects, colors , fonts ,size ,etc.... I would convert them to ASS subs . With ASS subs you have control over everything. You can use a subtitle editor like aegisub and make them look any way you want. You do this BEFORE hardsubbing the transparent video to import to vegas
Or you can just make adjustments to the overlay layer in vegas (you can position the overlay, scale, change colors) . You have some control, but not as much control than if you did it the subs in aegisub . For example, you can alter the position in vegas (and they should already be white subs if you interpret the alpha channel) , but you can't automatically put a black box behind them unless you use ASS subs (unless you want an ugly static box in vegas)Last edited by poisondeathray; 2nd May 2014 at 11:15.
-
-
there was guid here, use i use this method or you suggest another one for my specific purpose
http://forums.creativecow.net/sonyvegas -
there was guid here, use i use this method or you suggest another one for my specific purpose
http://forums.creativecow.net/sonyvegas[/QUOTE]
I don't understand what you're trying to say
Use whatever method works for your goals. There were several suggestions listed in this thread -
-
The answer was posted above:
Right click the clip in the clip bin, properties, media tab, under "alpha channnel" set it to "straight" instead of "none" . "None" means vegas "thinks" the clip is RGB, not RGBA . The alpha channel is for transparency -
Try this sample below in vegas. The sample is lagarith RGBA 1920x1080 25fps, 2secs
Even if you "forgot" to use the alpha channel in vdub or lagarith or ut video configuration , you can use the same black/white video as a luma matte , or key out the black using luma key . If you've inverted the colors for some reason, invert the colors then use the luma key
But it's better to do it the first way with the RGBA with embedded alpha, because there are fewer effects applied, thus fewer resources being used by vegas
If nothing works, post a small sample of your encoded masksub clip (cut a small section using video=>direct stream copy , file=>save as avi in vdub ) -
-
thanks man, you helped me do exactly what i wanted to do
and since you know every thing, do i have any chance of compressing these clips without any quality loss? -
The subs are already compressed
In that example, lagarith is used. Lagarith is an example of lossless video compression
If you had used uncompressed RGBA instead, that clip would be 1.72MB clip would become 395MB. That's about 230x the size. It achieves so much compression because blank areas are easy to compress, low complexity. It's just a small time/date overlay. If you tried to compress "regular" content, you would not achieve such a large compression ratio .
Native AVCHD clips are already compressed, so when you use lagarith, they actually become 5-10x larger. (Because the lossless compression is applied to the uncompresssed stream from the AVCHD - it's decoded and uncompressed before being re-compressed by lagarith) -
i meant the compressing overall output, in other words clips captured by my handycam which information is mentioned in the beginning of thread.
they have bitrate of 22Mbps, they are rather big files, so i look for a lossless (or unnoticeable loss) re-compression. -
Lossless (mathematically lossless) compression will just increase the filesize
You can reduce the filesize with minimal quality loss by re-encoding using x264 or some GUI for it (e.g. megui, ripbot, xvid4psp). You can frameserve out of vegas using debugmode frameserver. You can use <search> because there are many guides describing how to do this -
You already have lossy-compressed files (~30:1). You will be uncompressing them to do the overlay of the subs, then re-compressing them. This will LOSE quality. No ifs, ands or buts.
How much quality you lose will depend on the compression settings & bitrate you give it when re-compressing. Again, if you re-compress to Lagarith, etc., your size will likely be 5x or more what it is now (though the only quality you will lose would be from the overlay operation's bitdepth rounding calculations). If you recompress back to an AVC of form & bitrate similar to your source file, you will have similar sizes to your source and will have only SLIGHT or MILD quality losses. How much is MILD? Is MILD too much for you? You have to decide that. If you try to do the recompress AND you try to go for even LOWER sizes, your losses will be even more noticeable. How much noticeable depends again on the material and on YOU.
Scott -
actually this clip is codec with this parameters and possibly with fast algorithm
Format profile : High@L4.0
Format settings, CABAC : Yes
Format settings, ReFrames : 2 frames
i think re-encoding it with higher reframe, b-frame, format profile and ... can result in smaller file with unnoticeable quality loss -
1-what is that?
and by the way i use mediacoder for encoding.
2-how good is that? i mean should i stick to this or i should choose another encoder?
3- i also have handbrake which seem to have more options than mediacoder for h264!!! why? -
It's a frameserver. It allows you to "connect" vegas to other programs. So it allows vegas to use other encoders. You can use x264 (or some GUI for x264), because it potentially offers better compression (better quality per filesize) than vegas's mainconcept or sony AVC encoders
and by the way i use mediacoder for encoding.
2-how good is that? i mean should i stick to this or i should choose another encoder?
3- i also have handbrake which seem to have more options than mediacoder for h264!!! why?