Encode/Convert video

vbimport

#1

Hello, I have a mp4 video that’s 2,6 Gb large and I wanted to encode or convert it (don’t know exactly how the procedure is named) to an avi file, preferrably split into 2x700 Mb, so what’s the best method? thanks in advance.


#2

So, you want to split it [B]and[/B] compress it? Do you know what audio and video codecs are used in it?

You can probably cut it into two parts using AviDemux. Set your beginning and end points so that you cut the last half out and save the first half. So, put the first marker in the middle where you want it, then the second at the end of the video. Go to Edit, then cut. Then set Video Output to Mpeg4 ASP (xvid). Click on Configure and set the encoder to a two pass encode and the video size to 700mb.

If the Audio is already mp3, you can use it unchanged. If it is ac3 or aac, I’d convert to mp3 audio for an xvid avi file.

Your output format should be AVI Muxer and when you save the file, you should make sure to name your new file with an .avi extension.

Repeat the process, but cut the first section out and save the last half.


#3

The specs using mediainfo are these:
ormat : MPEG-4
Format profile : Base Media
Codec ID : isom
File size : 2.60 GiB
Duration : 2h 10mn
Overall bit rate mode : Variable
Overall bit rate : 2 852 Kbps
Encoded date : UTC 2012-11-09 15:41:48
Tagged date : UTC 2012-11-09 15:41:48

Video
ID : 1
Format : AVC
Format/Info : Advanced Video Codec
Format profile : High@L4.1
Format settings, CABAC : Yes
Format settings, ReFrames : 5 frames
Codec ID : avc1
Codec ID/Info : Advanced Video Coding
Duration : 2h 10mn
Source duration : 1mn 25s
Bit rate : 2 405 Kbps
Maximum bit rate : 11.8 Mbps
Width : 1 280 pixels
Height : 534 pixels
Display aspect ratio : 2.40:1
Frame rate mode : Constant
Frame rate : 23.976 fps
Color space : YUV
Chroma subsampling : 4:2:0
Bit depth : 8 bits
Scan type : Progressive
Bits/(Pixel*Frame) : 0.147
Stream size : 2.19 GiB (84%)
Source stream size : 2.19 GiB (84%)
Writing library : x264 core 125 r2200 999b753
Encoding settings : cabac=1 / ref=5 / deblock=1:1:0 / analyse=0x3:0x113 / me=umh / subme=8 / 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=0 / threads=12 / lookahead_threads=2 / sliced_threads=0 / nr=1 / decimate=1 / interlaced=0 / bluray_compat=0 / constrained_intra=0 / bframes=3 / b_pyramid=2 / b_adapt=2 / b_bias=0 / direct=3 / weightb=1 / open_gop=0 / weightp=2 / keyint=250 / keyint_min=23 / scenecut=40 / intra_refresh=0 / rc_lookahead=50 / rc=2pass / mbtree=1 / bitrate=2405 / ratetol=1.0 / qcomp=0.60 / qpmin=0 / qpmax=69 / qpstep=4 / cplxblur=20.0 / qblur=0.5 / ip_ratio=1.40 / aq=1:1.10
Encoded date : UTC 2012-11-09 12:34:41
Tagged date : UTC 2012-11-09 15:43:13
mdhd_Duration : 7816303

Audio
ID : 2
Format : AAC
Format/Info : Advanced Audio Codec
Format profile : LC
Codec ID : 40
Duration : 2h 10mn
Bit rate mode : Variable
Bit rate : 444 Kbps
Maximum bit rate : 665 Kbps
Channel(s) : 6 channels
Channel positions : Front: L C R, Side: L R, LFE
Sampling rate : 48.0 KHz
Compression mode : Lossy
Delay relative to video : 83ms
Stream size : 414 MiB (16%)
Encoded date : UTC 2012-11-09 15:42:21
Tagged date : UTC 2012-11-09 15:43:13

Does the method you described works with this? Thanks for the reply.


#4

Well, before version 2.6, I’d say this was a very iffy proposition in AviDemux. But they have improved handling of H264 video codec quite a lot in this newest version. You’ve at least got a shot at this working in other words. :slight_smile: Try to cut on an I frame by the way.

One thing to be aware of is that H264 is much more efficient in compression than Xvid, and if you are going to a smaller size with Xvid from H264, you will see a definite decrease in video quality.


#5

So you would advice to make 2x700 Mb H264 files instead of avi?


#6

If your playback equipment can handle H264, then yes, I’d use it instead. But you’ll need to put it in a container format of some sort, like mp4 or mkv. I would NOT use H264 in an avi file.

If you want to make two 700mb files out of it in H264, I’d still do the initial cuts in AviDemux, or maybeMy Mp4Box GUI. That’s just to split it and save as mp4 (use Copy settings in AviDemux and the MP4 Muxer). Then use the individual halves as input into VidCoder to compress and output as mp4 or mkv files. VidCoder will allow you to set a specific size as output.

Edit: By the way, after you make the cut and save each half, test each one to make certain that you do not have any audio/video sync problems at this point, before importing into VidCoder. Then test playback again after compressing each video in VidCoder.