Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion. Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules. |
|
|
Thread Tools | Search this Thread | Display Modes |
16th January 2014, 17:13 | #1 | Link |
Registered User
Join Date: Dec 2009
Posts: 177
|
X264 encoder settings for SD content captured from camcorder
Hi,
I have some uncompressed AVI files captured from my old camcorder, and videos are interlaced (50i) in DVD quality. To reduce the storage size, I'd like to convert them to MP4 with the help of X264 (with GUI). I'd like to ask whether if it is the correct way to go and if so, what would be the optimal settings for X264 encoder if I want the max. quality and reasonable file size? Thank you in advance! Last edited by somy; 16th January 2014 at 22:20. |
16th January 2014, 17:20 | #2 | Link |
Registered User
Join Date: Dec 2002
Location: Region 0
Posts: 1,436
|
Whether it's the correct way to go or not depends on what you want to do with these files down the road. That usage may also drive the "optimal" settings.
Do you plan to just watch them as is occasionally? You want to save them for later editing / processing work? FWIW, max. quality and reasonable file size are generally on opposite ends of the spectrum so you're going to have to compromise somewhere. Last edited by Stereodude; 16th January 2014 at 17:22. |
16th January 2014, 19:29 | #3 | Link | |
Registered User
Join Date: Dec 2009
Posts: 177
|
Quote:
I plan to keep the videos in my PC and just watch them occasionally, I don't plan to edit them further. I tried to encode the video to mpeg2 with the bitrate 9000kbs, and I'm happy with the result. I'd like to know what would be the proper bitrate if I use X264 encoder instead? I'd like to keep the quality at least similar to 9000kbs mpeg2. Thank you! |
|
16th January 2014, 19:43 | #4 | Link |
Registered User
Join Date: Dec 2002
Location: Region 0
Posts: 1,436
|
You probably should use the veryslow preset and find the CRF value that looks acceptable to you by encoding a sample, watch the results, and adjusting the CRF setting upward (lower numbers) until you are happy with the results. You could start at something like 20. Once you are happy with the video quality from that CRF value encode all the video files you have with that CRF.
So your command line would look something like this: x264 --crf 20 --preset veryslow --tune film --level 3.1 --keyint 25 --open-gop --tff --colorprim "bt470bg" --transfer "bt470bg" --colormatrix "bt470bg" --sar 12:11 -o out.264 input.avi This assumes your content is PAL 704x576, 4:3, and top field first. |
16th January 2014, 22:20 | #5 | Link | |
Registered User
Join Date: Dec 2009
Posts: 177
|
Quote:
|
|
16th January 2014, 22:26 | #6 | Link | |
Registered User
Join Date: Dec 2009
Posts: 177
|
Quote:
I have one doubt though, my original videos are interlaced with 25 FPS. If I use decomb option in HandBrake, shall I set the output FPS to 25 or 50? |
|
16th January 2014, 23:16 | #7 | Link |
RipBot264 author
Join Date: May 2006
Location: Poland
Posts: 7,815
|
50 fps
__________________
Windows 7 Image Updater - SkyLake\KabyLake\CoffeLake\Ryzen Threadripper |
16th January 2014, 23:42 | #8 | Link |
Registered User
Join Date: Dec 2002
Location: Region 0
Posts: 1,436
|
Deinterlace or decomb? Your footage is interlaced, and it's highly unlikely a decomb (IVTC) operation is the proper thing to do to it. If a CRF of 20 is fine, keep trying higher numbers until it's not fine, then go back down 1.
|
17th January 2014, 09:12 | #11 | Link | |
Registered User
Join Date: Dec 2009
Posts: 177
|
Quote:
I guess your point is the transcoding from compressed MPEG2 to H264 will suffer quality loss, and in this regard maybe it is better to keep the MPEG2 files? |
|
17th January 2014, 09:13 | #12 | Link | |
Registered User
Join Date: Dec 2009
Posts: 177
|
Quote:
|
|
|
|