@ Marchand, ffmpeg libx265 works quite well. but you need to add a -preset name in there for maximum quality. i tried several variations without -present and i was not impressed. the quality had pixelation and other compression artifacts. but when i added a -preset ultrafast (my usual setting) (but, use the one you usually use in your test encodes) the quality was as good as x265 on its own. i did not do any quality comparisions between ffmpeg_libx265 and x265.exe or anything. i used the script in post # 19 above.
Try StreamFab Downloader and download from Netflix, Amazon, Youtube! Or Try DVDFab and copy Blu-rays! or rip iTunes movies!
+ Reply to Thread
Results 31 to 45 of 45
Thread
-
-
Ok vhelp
Thank's
preset ultrafast and 2 pass
Code:"C:/Users/Marchand/Downloads/ffmpeg.exe" -v verbose -i "C:/Users/Marchand/Videos/Videos/00200.m2ts" -threads:v 4 -sws_flags bicubic -vf "yadif=0:-1,hqdn3d=0.1,scale=0:0,unsharp=3:3:0.05" -codec:v libx265 -b:v 1500k -minrate 1k -maxrate 28k -preset ultrafast -af "aresample=44100" -codec:a libvo_aacenc -b:a 128k -ac 2 -pass 2 -passlogfile "C:/Users/Marchand/Videos/Videos/00200sss10" -y "C:/Users/Marchand/Videos/Videos/00200sss10.mp4"
x265 [info]: using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.1 Cache64
x265 [info]: Main profile, Level-4 (Main tier)
x265 [info]: WPP streams / pool / frames : 34 / 4 / 4
x265 [info]: CU size : 32
x265 [info]: Max RQT depth inter / intra : 1 / 1
x265 [info]: ME / range / subpel / merge : dia / 25 / 0 / 2
x265 [info]: Keyframe min / max / scenecut : 23 / 250 / 0
x265 [info]: Lookahead / bframes / badapt : 10 / 4 / 0
x265 [info]: b-pyramid / weightp / refs : 1 / 0 / 1
x265 [info]: Rate Control / AQ-Strength / CUTree : ABR-1500 kbps / 0.0 / 0
x265 [info]: tools: cfm esd rd=3 lft
Metadata_Write:
... encoder : Lavf55.34.101
video:1159kB audio:118kB subtitle:0 data:0 global headers:0kB overhead 0.516874%
x265 [info]: frame I: 1 Avg QP:23.00 kb/s: 181.83
x265 [info]: frame P: 36 Avg QP:26.42 kb/s: 3657.01
x265 [info]: frame B: 142 Avg QP:28.66 kb/s: 673.74
x265 [info]: global : 179 Avg QP:28.18 kb/s: 1270.98
x265 [info]: consecutive B-frames: 2.7% 0.0% 2.7% 0.0% 94.6%
22:17:15 - bitrate: min 1, max 1418, avg 1127 kbit/s
22:17:15 - Q-scale: min 0.0, max 0, avg 0.0
22:17:15 - Process successfully finished after 00:01:41 hms. -
Ok
I'm starting to get the hang .... HEHEHE
I no longer have much patience to read manuals, but it's getting interesting.
preset ultrafast and yuv444p
Code:""C:/Users/Marchand/Downloads/ffmpeg.exe" -v verbose -i "C:/Users/Marchand/Videos/Videos/00200.m2ts" -threads:v 4 -sws_flags lanczos -vf "yadif=0:-1,scale=0:0" -codec:v libx265 -b:v 1500k -minrate 1k -maxrate 28k -preset ultrafast -strict experimental -pix_fmt yuv444p -af "aresample=44100" -codec:a libvo_aacenc -b:a 128k -ac 2 -y "C:/Users/Marchand/Videos/Videos/00200sss11.mp4" "
ffmpeg version N-61444-gf3d3e3f Copyright (c) 2000-2014 the FFmpeg developers
built on Mar 13 2014 22:21:46 with gcc 4.8.2 (GCC)
configuration: --disable-static --enable-shared --enable-gpl --enable-version3
--disable-w32threads --enable-avisynth --enable-bzlib --enable-fontconfig --ena
ble-frei0r --enable-gnutls --enable-iconv --enable-libass --enable-libbluray --e
nable-libcaca --enable-libfreetype --enable-libgsm --enable-libilbc --enable-lib
modplug --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrw
b --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-libschroedinge
r --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --en
able-libvidstab --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-libvorbis
--enable-libvpx --enable-libwavpack --enable-libx264 --enable-libx265 --enable-
libxavs --enable-libxvid --enable-zlib
libavutil 52. 66.101 / 52. 66.101
libavcodec 55. 52.102 / 55. 52.102
libavformat 55. 34.101 / 55. 34.101
libavdevice 55. 11.100 / 55. 11.100
libavfilter 4. 3.100 / 4. 3.100
libswscale 2. 5.101 / 2. 5.101
libswresample 0. 18.100 / 0. 18.100
libpostproc 52. 3.100 / 52. 3.100
Input #0, mpegts, from 'C:/Users/Marchand/Videos/Videos/00200.m2ts':
Duration: 00:00:07.46, start: 11.650667, bitrate: 41412 kb/s
Program 1
Stream #0:0[0x1011]: Video: h264 (High) (HDMV / 0x564D4448), yuv420p, 1920x1
080 [SAR 1:1 DAR 16:9], 23.98 fps, 23.98 tbr, 90k tbn, 47.95 tbc
Stream #0:1[0x1100]: Audio: dts (DTS-HD MA) ([134][0][0][0] / 0x0086), 48000
Hz, 5.1(side), fltp, 1536 kb/s
[Parsed_scale_1 @ 02243a80] w:0 h:0 flags:'0x200' interl:0
[graph 0 input from stream 0:0 @ 02244400] w:1920 h:1080 pixfmt:yuv420p tb:1/900
00 fr:24000/1001 sar:1/1 sws_param:flags=2
[Parsed_scale_1 @ 02243a80] w:1920 h:1080 fmt:yuv420p sar:1/1 -> w:1920 h:1080 f
mt:yuv444p sar:1/1 flags:0x200
[graph 1 input from stream 0:1 @ 029c2080] tb:1/48000 samplefmt:fltp samplerate:
48000 chlayout:0x60f
[Parsed_aresample_0 @ 029c1ea0] ch:6 chl:5.1(side) fmt:fltp r:48000Hz -> ch:2 ch
ltereo fmt16 r:44100Hz
x265 [info]: using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.1 Cache64
x265 [info]: Main profile, Level-4 (Main tier)
x265 [info]: WPP streams / pool / frames : 34 / 4 / 4
x265 [warning]: !! HEVC Range Extension specifications are not finalized !!
x265 [warning]: !! This output bitstream may not be compliant with the final spe
c !!
x265 [info]: CU size : 32
x265 [info]: Max RQT depth inter / intra : 1 / 1
x265 [info]: ME / range / subpel / merge : dia / 25 / 0 / 2
x265 [info]: Keyframe min / max / scenecut : 23 / 250 / 0
x265 [info]: Lookahead / bframes / badapt : 10 / 4 / 0
x265 [info]: b-pyramid / weightp / refs : 1 / 0 / 1
x265 [info]: Rate Control / AQ-Strength / CUTree : ABR-1500 kbps / 0.0 / 0
x265 [info]: tools: cfm esd rd=3 lft
Output #0, mp4, to 'C:/Users/Marchand/Videos/Videos/00200sss11.mp4':
Metadata:
encoder : Lavf55.34.101
Stream #0:0: Video: hevc (libx265) ([35][0][0][0] / 0x0023), yuv444p, 1920x1
080 [SAR 1:1 DAR 16:9], q=2-31, 1500 kb/s, 24k tbn, 23.98 tbc
Stream #0:1: Audio: aac (libvo_aacenc) ([64][0][0][0] / 0x0040), 44100 Hz, s
tereo, s16, 128 kb/s
Stream mapping:
Stream #0:0 -> #0:0 (h264 -> libx265)
Stream #0:1 -> #0:1 (dca -> libvo_aacenc)
Press [q] to stop, [?] for help
No more output streams to write to, finishing.
frame= 179 fps=2.5 q=0.0 Lsize= 1299kB time=00:00:07.48 bitrate=1420.8kbits/
s
video:1174kB audio:118kB subtitle:0 data:0 global headers:0kB muxing overhead 0.
510752%
x265 [info]: frame I: 1 Avg QP:23.00 kb/s: 1089.09
x265 [info]: frame P: 36 Avg QP:27.78 kb/s: 3769.00
x265 [info]: frame B: 142 Avg QP:29.92 kb/s: 660.12
x265 [info]: global : 179 Avg QP:29.45 kb/s: 1287.77
x265 [info]: consecutive B-frames: 2.7% 0.0% 2.7% 0.0% 94.6%
C:\Users\Marchand\Videos\Videos> -
Ok
This thing is crazy. .... HEHEHE
preset ultrafast and 2pass and filters
Code:"C:/Users/Marchand/Downloads/ffmpeg.exe" -v verbose -i "C:/Users/Marchand/Videos/Videos/00200.m2ts" -threads:v 4 -sws_flags lanczos -vf "yadif=0:-1,scale=0:0,unsharp=3:3:3.3" -codec:v libx265 -b:v 1500k -minrate 1k -maxrate 28k -preset ultrafast -af "aresample=44100" -codec:a libvo_aacenc -b:a 128k -ac 2 -pass 2 -passlogfile "C:/Users/Marchand/Videos/Videos/00200sss11" -y "C:/Users/Marchand/Videos/Videos/00200sss11.mp4"
-
In case anyone has a computer powerful enough to play it at full 23.976 fps (I don't), here is a 4k encode. I managed 2.2 fps using ultrafast - crf=25 in ffmpeg 64-bit.
"C:\FFmbc\ffmpeg64" -i Weasel_4k.mkv -c:v libx265 -aspect 16:9 -
preset ultrafast -x265-params crf=25 -c:a copy -f mp4 Weasel_4k.mp4
ffmpeg version N-61801-gc25d2cd Copyright (c) 2000-2014 the FFmpeg developers
built on Mar 24 2014 22:06:15 with gcc 4.8.2 (GCC)
configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-av
isynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enab
le-iconv --enable-libass --enable-libbluray --enable-libcaca --enable-libfreetyp
e --enable-libgsm --enable-libilbc --enable-libmodplug --enable-libmp3lame --ena
ble-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-l
ibopus --enable-librtmp --enable-libschroedinger --enable-libsoxr --enable-libsp
eex --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvo-aa
cenc --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libwavp
ack --enable-libx264 --enable-libx265 --enable-libxavs --enable-libxvid --enable
-zlib
libavutil 52. 69.100 / 52. 69.100
libavcodec 55. 54.100 / 55. 54.100
libavformat 55. 35.100 / 55. 35.100
libavdevice 55. 11.100 / 55. 11.100
libavfilter 4. 3.100 / 4. 3.100
libswscale 2. 5.102 / 2. 5.102
libswresample 0. 18.100 / 0. 18.100
libpostproc 52. 3.100 / 52. 3.100
Input #0, matroska,webm, from 'Weasel_4k.mkv':
Metadata:
encoder : libebml v1.3.0 + libmatroska v1.4.1
creation_time : 2014-03-29 17:46:04
Duration: 00:00:13.01, start: 0.000000, bitrate: 17308 kb/s
Chapter #0.0: start 0.059000, end 13.013000
Metadata:
title : 00:00:00.059
Stream #0:0: Video: h264 (High), yuv420p, 3840x2160, SAR 1:1 DAR 16:9, 23.98
fps, 23.98 tbr, 1k tbn, 47.95 tbc (default)
Stream #0:1: Audio: aac, 44100 Hz, stereo, fltp (default)
x265 [info]: using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.1 Cache64
x265 [info]: Main profile, Level-5 (Main tier)
x265 [info]: WPP streams / pool / frames : 68 / 4 / 2
x265 [info]: CU size : 32
x265 [info]: Max RQT depth inter / intra : 1 / 1
x265 [info]: ME / range / subpel / merge : dia / 25 / 0 / 2
x265 [info]: Keyframe min / max / scenecut : 23 / 250 / 0
x265 [info]: Lookahead / bframes / badapt : 10 / 4 / 0
x265 [info]: b-pyramid / weightp / refs : 1 / 0 / 1
x265 [info]: Rate Control / AQ-Strength / CUTree : CRF-25.0 / 0.0 / 0
x265 [info]: tools: cfm esd rd=3 lft
Output #0, mp4, to 'Weasel_4k.mp4':
Metadata:
encoder : Lavf55.35.100
Chapter #0.0: start 0.059000, end 13.013000
Metadata:
title : 00:00:00.059
Stream #0:0: Video: hevc (libx265) ([35][0][0][0] / 0x0023), yuv420p, 3840x2
160 [SAR 1:1 DAR 16:9], q=2-31, 200 kb/s, 24k tbn, 23.98 tbc (default)
Stream #0:1: Audio: aac ([64][0][0][0] / 0x0040), 44100 Hz, stereo (default)
Stream mapping:
Stream #0:0 -> #0:0 (h264 -> libx265)
Stream #0:1 -> #0:1 (copy)
Press [q] to stop, [?] for help
video:11006kB audio:388kB subtitle:0kB other streams:0kB global headers:0kB muxi
ng overhead: 0.120342%
x265 [info]: frame I: 2 Avg QP:23.00 kb/s: 57513.78
x265 [info]: frame P: 62 Avg QP:25.00 kb/s: 15052.41
x265 [info]: frame B: 248 Avg QP:27.07 kb/s: 4488.93
x265 [info]: global : 312 Avg QP:26.63 kb/s: 6927.98
x265 [info]: consecutive B-frames: 3.1% 0.0% 0.0% 0.0% 96.9%
E:\Video\Weasel>pause
Press any key to continue . . .Got my retirement plans all set. Looks like I only have to work another 5 years after I die........ -
Is this "Weasel" video a public 4K test clip? If so, where could one get it from?
-
Latest versions libx265 suport - 28-Mar-2014
This build was compiled on: Mar 28 2014, at: 22:02:04
FFmpeg version: 2014-03-29 git-657cee1
libavutil 52. 69.100 / 52. 69.100
libavcodec 55. 55.104 / 55. 55.104
libavformat 55. 36.100 / 55. 36.100
libavdevice 55. 11.100 / 55. 11.100
libavfilter 4. 3.100 / 4. 3.100
libswscale 2. 5.102 / 2. 5.102
libswresample 0. 18.100 / 0. 18.100
libpostproc 52. 3.100 / 52. 3.100
This FFmpeg build was configured with:
--enable-gpl
--enable-version3
--disable-w32threads
--enable-avisynth
--enable-bzlib
--enable-fontconfig
--enable-frei0r
--enable-gnutls
--enable-iconv
--enable-libass
--enable-libbluray
--enable-libcaca
--enable-libfreetype
--enable-libgsm
--enable-libilbc
--enable-libmodplug
--enable-libmp3lame
--enable-libopencore-amrnb
--enable-libopencore-amrwb
--enable-libopenjpeg
--enable-libopus
--enable-librtmp
--enable-libschroedinger
--enable-libsoxr
--enable-libspeex
--enable-libtheora
--enable-libtwolame
--enable-libvidstab
--enable-libvo-aacenc
--enable-libvo-amrwbenc
--enable-libvorbis
--enable-libvpx
--enable-libwavpack
--enable-libx264
--enable-libx265
--enable-libxavs
--enable-libxvid
--enable-zlib
ffmpeg-20140329-git-657cee1-win64-static.7z -
No, it's a trimmed section of a 4k mp4 I downloaded from youtube awhile back. I can't seam to find the original link, so it may be taken down now. I can post the trimmed source I used if you want.
Got my retirement plans all set. Looks like I only have to work another 5 years after I die........ -
No thanks. If it was uploaded to YouTube, it will certainly not be in a reference quality.
-
FFMPEG turned with support for Libx265 version: 2014-03-31 git-e818ee0
ffmpeg-20140331-git-e818ee0-win32-static.7z
ffmpeg-20140331-git-e818ee0-win64-static.7z -
And to Nabajit Deka who fixed the assembler register usage; and to everyone else who contributed solutions.
So x265 is already approaching the next milestone of version 0.9 ... soon™. -
Keep doing tests with Libx265 (FFmpeg) and some filters.
See how was this test video (Ideal for anime and movies):
-threads:v 4 -sws_flags bicubic -vf "scale=0:0,unsharp=3:3:2.03" -codec:v libx265 -b:v 1500k -minrate 1k -maxrate 128k -flags +loop -me_method umh -g 250 -qcomp 0.6 -qmin 01 -qmax 81 -qdiff 4 -bf 16 -b_strategy 4 -i_qfactor 0.81 -af "aresample=44100" -codec:a libvo_aacenc -b:a 128k -ac 2 -yGeral
Nome completo : C:\Users\Marchand\Videos\Videos\00200_012.mp4
Formato : MPEG-4
Perfil do Formato : Base Media
ID do Codec : isom
Tamanho do arquivo : 33.5 MiB
Duração : 2mn 58s
Taxa de Bits Total : 1 569 Kbps
Programa usado : Lavf55.37.101
Vídeo
ID : 1
Formato : HEVC
Formato/Informações : High Efficiency Video Coding
Perfil do Formato : Main@L4.0
ID do Codec : hev1
ID do Codec/Informações : High Efficiency Video Coding
Duração : 2mn 58s
Taxa de bits : 1 435 Kbps
Largura : 1 920 pixels
Altura : 816 pixels
Proporção da imagem : 2.35:1
Modo de taxa de quadros : TConstante
Taxa de quadros : 23.976 fps
ColorSpace : YUV
ChromaSubsampling : 4:2:0
BitDepth/String : 8 bits
Tipo de Scan : Progressivo
Bits/(Pixels*Quadros) : 0.038
Tamanho da Faixa : 30.6 MiB (91%)
Idioma : Inglês
Áudio
ID : 2
Formato : AAC
Formato/Informações : Advanced Audio Codec
Perfil do Formato : LC
ID do Codec : 40
Duração : 2mn 58s
Duration_LastFrame : -10ms
Modo da taxa de bits : Constante
Taxa de bits : 128 Kbps
Nº de canais : 2 canais
Posições dos canais : Front: L R
Taxa de amostragem : 44.1 KHz
Tamanho da Faixa : 2.73 MiB (8%)
Idioma : Inglês
Last edited by Marchand; 28th Apr 2014 at 20:56.
-
ffmpeg-20140507-git-4cdea92-changelog 06-May-2014
commit fc7d0d82017d67a1bbc0c1664144b756dc4ba6e3
Author: Michael Niedermayer <michaelni@gmx.at>
AuthorDate: 2014-05-06 18:27:49 +0200
Commit: Michael Niedermayer <michaelni@gmx.at>
CommitDate: 2014-05-06 18:27:49 +0200
avcodec/x86/hevcdsp_init: fix SSE4 checks
Found-by: James Almer <jamrial@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
commit 3b3db02f2e5cb978312e90d6b0e0813b71b5a26e
Author: Michael Niedermayer <michaelni@gmx.at>
AuthorDate: 2014-05-06 17:38:20 +0200
Commit: Michael Niedermayer <michaelni@gmx.at>
CommitDate: 2014-05-06 18:23:42 +0200
avcodec/x86/hevcdsp_init: fix build on 32bit
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
commit 7a2491c436af41de103ca82294d79eb2031c6607
Author: plepere <pierre-edouard.lepere@insa-rennes.fr>
AuthorDate: 2014-04-28 16:12:28 +0200
Commit: Michael Niedermayer <michaelni@gmx.at>
CommitDate: 2014-05-06 18:23:36 +0200
HEVC : added assembly MC functions
pretty print x86
Reviewed-by: "Ronald S. Bultje" <rsbultje@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
commit 83976e40e89655162e5394cf8915d9b6d89702d9
Author: Mickaël Raulet <mraulet@insa-rennes.fr>
AuthorDate: 2014-04-26 15:35:23 +0200
Commit: Michael Niedermayer <michaelni@gmx.at>
CommitDate: 2014-05-06 18:22:34 +0200
hevc: C code update for new motion compensation
pretty print C
Reviewed-by: "Ronald S. Bultje" <rsbultje@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> -
very simple command that has worked with all of my videos. Good if you don't want to/know how to tinker around too much but just want to test libx265 problem free.
Code:ffmpeg -i D:\1.avi -pix_fmt yuv420p -c:v libx265 -x265-params crf=28 -c:a copy 2.mkv
If you would rather use x265.exe which is updated more often instead of libx265, I can post a bat file for that if anyone needs it. You pipe the file from ffmpeg to x265.exe.
Alternately, to avoid the command line altogether you can use libx265 with the avanti gui, which works well. There is an option to set the pixel format to yuv420p on the main page.
Handbrake nightly builds are the simplest gui for x265 but I don't like the output quality. Hybrid is extremely customizable, you can get whatever output you want, but it is a little bit slow. Mediacoder requires the internet to finish the encode, but doesn't tell you until you are 99% finished.
Here is a link on how to make the .bat file if you want to use x265.exe directly in the simplest way.
https://forum.videohelp.com/threads/367860-having-trouble-muxing-265-file-with-audioLast edited by ezcapper; 20th Oct 2014 at 17:58.
Similar Threads
-
Does anybody know a ripping software that support lossless codecs?
By TheNiceGuy in forum DVD RippingReplies: 10Last Post: 24th Nov 2012, 00:49 -
Codecs gone, not showing up in VirtualDub or other software....
By ggouweloos in forum Video ConversionReplies: 19Last Post: 14th Sep 2012, 23:24 -
Transcoding Software for CODECS
By PowerFalcon in forum Video ConversionReplies: 0Last Post: 18th Jan 2012, 12:01 -
using Youtube downloading software, but not a lot of choices for codecs
By snafubaby in forum Newbie / General discussionsReplies: 2Last Post: 12th Aug 2010, 21:46 -
Looking for a conversion software that uses Dshow/VFW/ACM codecs
By giuliojiang in forum Video ConversionReplies: 2Last Post: 9th Jul 2010, 08:28