Thanks El Heggunte.
I added encoding from avs scripts using avs2yuv. But result isn't what I expected; file encodes without a problem but when I play encoded video (its in mp4 container) with Osmo player, picture does some sort of slide from left to right and frames get mixed at places.
BTW has anyone tried piping a video file to x265 using ffmpeg? I tried but it failed for me. Here is console output from my attempt:
Command line:Stream mapping:
...
Stream #0:0 -> #0:0 (h264 -> rawvideo)
Press [q] to stop, [?] for help
[yuv4mpegpipe @ 02d763a0] Encoder did not produce proper pts, making some up.
av_interleaved_write_frame(): Invalid argument
Pleae feel free to correct me so I can prepare a release asap.ffmpeg.exe -i 1.mp4 -an -f yuv4mpegpipe - | x264.exe --input - --output 1.h264
PS: I used latest ffmpeg build from http://ffmpeg.zeranoe.com/builds/
+ Reply to Thread
Results 691 to 720 of 2222
-
-
Well, not all options in the x265 command-line give good results, you should already know that
If you used parameters equal or similar to the ones used by LigH, then visual artifacts during playback should be expected --- this should have nothing to do with the piped input
By the way, an fc /b between the encodes from Y4M files and the encodes from AVS files has always resulted in "No differences encountered" so far.
FWIW, over here I found no difference (quality-wise) between the Lentoid Decoder and the newest LAV Video. -
YUV is.. yeah yuv..
You forget to specify the height, width and fps. (-> no container to read it out from)
ffmpeg -i input.mkv -f yuv4mpegpipe - | x265 --input-res 1280x720 --fps 23.976 - -o output.hevc
CPU usage would be (more?) intresting.encoder.pw buildbot is NOT affiliated with, endorsed, or sponsored by the
x265 development team, MultiCoreWare Inc, Xiph.Org Foundation nor VideoLAN organization. -
@x265.cc I know I didn't use dimension options for input, x265 already gives warning about it, that's not the point. FFmpeg's output tho doesn't mean much to me. I'll try a different source.
@El Heggunte I used the same options I used before. I even tried passing no options. I'll try older version of mp4box. -
Preliminary test in Virtualdub with external encoder, working. Thanks x265.cc!
Used the argument above which is very slow. Will add arguments from my last encode with a higher resolution file and see how it does. Sure is nice to not have to create YUV or Y4M file and just encode with Virtualdub.
Encoder Profile:
Program: C:\Tools\x265.cc_latest\x265.exe
Command Argument: --input-res %(width)x%(height) --fps %(fps) - -o "%(tempvideofile)"
Output Filename: %(outputname).hevc -
Virtualdub with this command argument...
--input-res %(width)x%(height) --fps %(fps) --q 24 --keyint 40 --max-merge 3 --hash 1 --no-rect --wpp --tu-intra-depth 1 --tu-inter-depth 1 --no-tskip --frame-threads 4 - -o "%(tempvideofile)"
[*] AVI: Opening file "C:\Tools\x265\input.avi"[*] Beginning dub operation.
[i] Dub: Input (decompression) format is: RGB888.
[i] Dub: Output (compression) format is: YUV420.
[i] VideoEnc: yuv [info]: 1280x720 25Hz, unknown frame count
[i] VideoEnc: x265 [info]: using cpu capabilities: MMX2 SSE SSE2Fast SSSE3
Cache64 SlowShuffle
[i] VideoEnc: x265 [info]: performance primitives: intrinsic assembly
[i] VideoEnc: x265 [info]: Main profile, Level-3.1 (Main tier)
[i] VideoEnc: x265 [info]: WPP streams / pool / frames : 12 / 4 / 4
[i] VideoEnc: x265 [info]: CU size : 64
[i] VideoEnc: x265 [info]: Max RQT depth inter / intra : 1 / 1
[i] VideoEnc: x265 [info]: ME / range / subpel / merge : star / 60 / 5 / 3
[i] VideoEnc: x265 [info]: Keyframe min / max : 40 / 40
[i] VideoEnc: x265 [info]: Rate Control : CQP-24
[i] VideoEnc: x265 [info]: Lookahead / bframes / badapt : 10 / 3 / 1
[i] VideoEnc: x265 [info]: tools: rd=2 ref=1 lft sao-lcu sign-hide
[i] VideoEnc: encoded 480 frames in 78.20s (6.14 fps), 157.43 kb/s, Global
PSNR: 53.280
[i] VideoEnc:
[i] VideoEnc: x265 [info]: frame I:16 kb/s: 4368.95 PSNR Mean: Y:52.353
U:56.474 V:55.649
[i] VideoEnc: x265 [info]: frame P:464 kb/s: 12.20 PSNR Mean: Y:52.353
U:56.474 V:55.649
[i] VideoEnc: x265 [info]: global: kb/s: 157.43 PSNR Mean: Y:52.353
U:56.474 V:55.649[*] Ending operation. -
OS: windows xp home
file: x265_ 0.4.1+546-ccac3a7d3622.7z
virtualdub uses a method compatible to piping and that works. but i'm not using that.
ok, so i am not alone and no wonder why its been quiet since the news of studin support. however, piping is still not available (working) yet. i tried avs2yuv v0.24 and is not working. i tried using every conceivable position of the pipe command '-' and/or '|' and nothing.
also, tried w/out piping through avs2yuv, and using an avs file diretly with x265.exe, and i get the same output screen below, when using avs2yuv and when only using avs script directly.
encoded 0 frames is returned.
Code:yuv [info]: 720x480 24Hz, frames 0 - 14 of 0 x265 [info]: using cpu capabilities: MMX2 SSE SSE2Slow SlowCTZ x265 [info]: performance primitives: intrinsic assembly x265 [info]: Main profile, Level-3 (Main tier) x265 [info]: WPP streams / pool / frames : 8 / 2 / 2 x265 [info]: CU size : 64 x265 [info]: Max RQT depth inter / intra : 3 / 3 x265 [info]: ME / range / subpel / merge : star / 60 / 5 / 5 x265 [info]: Keyframe min / max : 80 / 80 x265 [info]: Rate Control : CQP-17 x265 [info]: Lookahead / bframes / badapt : 10 / 3 / 2 x265 [info]: tools: rect amp rd=0 ref=1 lft sao-lcu sign-hide encoded 0 frames
hopefully, the currently added studin support will be fixed, or better yet, just give us full avisynth support, please. -
cancel that. the new piping support does work for virtualdub v1.10.03
i discovered what the problem was. you have to add the x265.exe param --frames ALL.
when i had --frames 15 as the param, and virtualdub begin/end marks at 100 frames, it could not find any frames after 15 since that was the last frame i set it to in x265 encoder. when you set to ALL, you can then set cut/encoding positions in virtualdub.
** new virtualdub pipe setting, below, works well.
Code:--input - --input-res %(width)x%(height) --frame-skip 0 --frames all --q 17 -F2 --keyint 80 --b-adapt 2 -b 3 --bframe-bias 30 --ref 1 --max-merge 5 --me 3 --rect --hash 0 --rd 0 --tu-intra-depth 3 --tu-inter-depth 3 --no-tskip --no-tskip-fast --frame-threads 2 --fps %(fps) -o "%(tempvideofile)"
Last edited by vhelp; 26th Oct 2013 at 21:27. Reason: trunk space in long text
-
Thanks for reading between the lines
IOW, first, ALWAYS check the elementary streams with the Reference Decoder, before deciding that the fault is of x265 ( okay x265 still suxxx, but hey ^__^ )
Performance-wise, the open-source HEVC decoders still suck. With the Strongene Lentoid Decoder, even my ancient Pentium 4 can play smoothly the "Sexy Film Leader" sample file (1280x720@24fps), but if I use LAV Video or MPC-BE instead, well, the decoding rate is not greater than the playback rate anymore, and you know happens then.Last edited by El Heggunte; 27th Oct 2013 at 04:33. Reason: clarification
-
In my last test, neither the average quantization (-q 20) nor the "not certainly supported" combination of per-frame parallelizing and weighted P-frame prediction (-F 3 -w) caused noticable issues, what the overall SSIM value of 0.995 indicated.
Early tested builds (v0.3) produced a lot worse results with the same quality parameter. So either the meaning of its value changed, or the encoding is now a lot more efficient.Last edited by LigH.de; 27th Oct 2013 at 04:20.
-
I've had this problem without the use of a container too. So it seems it does not rely on mp4box
encoder.pw buildbot is NOT affiliated with, endorsed, or sponsored by the
x265 development team, MultiCoreWare Inc, Xiph.Org Foundation nor VideoLAN organization. -
The answer was already given. And the warning was given even earlier before...
When YUV4MPEG will be supported via pipe too, there will be a container to read values from. I hope a patch will be available rather soon, then serving AviSynth scripts will be even more easy and reliable. -
When YUV4MPEG will be supported via pipe too, there will be a container to read values from. I hope a patch will be available rather soon, then serving AviSynth scripts will be even more easy and reliable.
-
^ vhelp:
do you include the -raw option in the command-line
also, what about avs2pipe -
Is there some overview of the min and max values of each x265 option somewhere?
(the command line help only shows some values)
i made the suggestion that for each build released that we list the: add/delete/updated/corrected/bugfix/etc., so we know what to expect right away instead of hunting for them ourselves, but that too went unacknowledged. but i still suggest we do that. we need some form of control of consistancy with these builds but no one wants to do that.
i recommend that we appoint someone for this task, someone knowledgeable in the encoding aspects, so that progress moves smoothly and quickly with each build/upgrade/enhancements to x265.exe encoder. otherwise, this will slow our testings and their results and reporting them, the bugs, the success, and so on, somewhat. anyway, good luck. -
^ vhelp: do you include the -raw option in the command-line
also, what about avs2pipe
well, the piping via -raw param its not mentioned in the official dev website, and the built-in help is bare-bones. but i did try it too..still not working. but like i said, i'm not alone, seems doom9 has no answer with avs2yuv or piping successfully to gui's, either. only virtualdub is working.
http://forum.doom9.org/showthread.php?p=1649849#post1649849
-
Nice that someone found my cmdline useful. Regarding ref frame count, that indeed at least gets rid of most of artifacts on my end. Even though i have to say that reference decoding was at all times fine, so its just me having some weird issues with lentoid.
( even now i cant just get it to decode my recent vids - example uploaded ~ for me it stalls at about 0:53)
id be interested to see if you have the same issues
Also, for the encode, i got psnr ~49.5, some issues woth gradients here and there, but not sure if they weren't there in the first place.
Ah i heard you like mudkipz theres been stdin support added, thats great news indeed ( thx deadrats?), added to my gui. will spare my disk a bit.
regarding performance ill agree 100%, nonetheless its still *fine* on relatively modern machines. -
Last edited by El Heggunte; 27th Oct 2013 at 08:08.
-
Well piping through avs2yuv and ffmpeg works here.
Using ffmpeg to pipe video files:
https://forum.videohelp.com/images/imgfiles/uxZg6TR.png
Using avs2yuv to pipe avs script:
https://forum.videohelp.com/images/imgfiles/VjMs5TS.png -
Thank you for sharing any newer build.
__
Ah, the komisar has a recent one...
Also there is Chikuzen's avs2pipemod project (binary linked in the doom9 forum).Last edited by LigH.de; 27th Oct 2013 at 08:24.
-
@vhelp
just in case, how i'm using ffmpeg in my gui ( avs2yuv and vdub also work )
Code:fffmpeg -i general.avs -an -f yuv4mpegpipe -y - | x265 --input-res 1280x720 --fps 23.976 --q 18 -F2 --keyint 80 --b-adapt 2 -b 3 --bframe-bias 30 --ref 2 --max-merge 5 --me 3 --rect --hash 0 --rd 0 --tu-intra-depth 3 --tu-inter-depth 3 --no-tskip --no-tskip-fast --input - -o output.hvc
Code:avs2yuv -raw general.avs -o - | x265 --input-res 1280x720 --fps 23.976 --frames 96 --q 18 -F2 --keyint 80 --b-adapt 2 -b 3 --bframe-bias 30 --ref 2 --max-merge 5 --me 3 --rect --hash 0 --rd 0 --tu-intra-depth 3 --tu-inter-depth 3 --no-tskip --no-tskip-fast --input - -o output.hvc
Last edited by Jacobr; 27th Oct 2013 at 08:56.
-
x265GUI build180 is here.
Change log:
-Added: support for stdin using ffmpeg or avs2yuv
-Added: console outputs are now stored inside of the gui
-Fixed: encoder options weren't reseted after an encode
-Fixed: using stop button didn't stop watchdog timer
-Updated: x265 to 0.4.1+546-ccac3a7d3622
Please note that there might be broken things etc. I've tested it and works for me well. Audio encoding is not supported for avisynth source. -
Last edited by El Heggunte; 27th Oct 2013 at 11:14. Reason: clarification
-
thats funny. i haven't seen any postings on doom9 saying they successfully got piping to work. anyway.
-
It was vhelp who compared Doom9's forum to a ghost town, right?
And definitely it looks like you need much more
http://forum.doom9.org/showthread.php?t=169607
-
** my specs for current tools:
Code:windows xp home sp2 virtualdub v1.10.03 -- success, but i don't use that avisynth v2.58, build:Dec 22 2008 [08:46:51] avs2yuv v0.24, 52kb, 7/30/2006 12:14 AM avs4x265 v0.2.0, built on oct 26 2013
Code:f: http://forum.doom9.org/showthread.php?t=169607 s: avs4x265 0.2 released - x265 with avisynth as input avs4x265 --frame-skip 0 --frames 15 --q 17 -F2 --keyint 80 --b-adapt 2 -b 3 --bframe-bias 30 --ref 2 --max-merge 5 --me 3 --rect --hash 0 --rd 0 --tu-intra-depth 3 --tu-inter-depth 3 --no-tskip --no-tskip-fast --input-res 720x480 --fps 24 -o "g:\video.avs4x265.hm10" c:\video.avs
-
You should consider to release at least another build bundled with a VC11 x64 x265 build.
x265.exe akiyo_cif.y4m -o output.hevcIntel Core2Quad Q9000 (6M Cache, 4x2.00GHz); 4096 MB DDR2; Windows 7 Enterprise x64 SP1:
GCC 4.8.1: encoded 300 frames in 112.39s (2.67 fps), 28.59 kb/s, Global PSNR: 39.079
GCC 4.8.2: encoded 300 frames in 114.97s (2.61 fps), 28.59 kb/s, Global PSNR: 39.079
VC11-x86: encoded 300 frames in 92.08s (3.26 fps), 28.59 kb/s, Global PSNR: 39.079
VC11-x64: encoded 300 frames in 73.71s (4.07 fps), 28.59 kb/s, Global PSNR: 39.079
Intel Core i5-760 (8M Cache, 4x2.80GHz) ; 4096 MB DDR3; Windows 8.1 Enterprise x64:
GCC 4.8.1: encoded 300 frames in 65.98s (4.55 fps), 28.59 kb/s, Global PSNR: 39.079
GCC 4.8.2: encoded 300 frames in 66.89s (4.48 fps), 28.59 kb/s, Global PSNR: 39.079
VC11-x86: encoded 300 frames in 55.02s (5.45 fps), 28.59 kb/s, Global PSNR: 39.079
VC11-x64: encoded 300 frames in 43.45s (6.90 fps), 28.59 kb/s, Global PSNR: 39.079encoder.pw buildbot is NOT affiliated with, endorsed, or sponsored by the
x265 development team, MultiCoreWare Inc, Xiph.Org Foundation nor VideoLAN organization. -
ok. it was great while it lasted. but avs4x265 requirement is that x265.exe be named that. i keep a running list of all versions i download so i can revert between any version for comparison/review purposes. thus, 1x265, .. 24x265, and so on, will not work with that tool. and i can't add a renaming feature to my tool because that always leads me into trouble. it always does.
so, can someone help me get avs2yuv working, please ?
my current specs are listed in post # 717 -
regarding avs2yuv v0.24bm2 -- the encoding string below does not work.
error message says: "no such option: --input-res"
Code:avs2yuv -raw c:\video.avs -o - | x265 --input-res 720x480 --fps 24 --frame-skip 0 --frames 15 --q 17 -F2 --keyint 80 --b-adapt 2 -b 3 --bframe-bias 30 --ref 2 --max-merge 5 --me 3 --rect --hash 0 --rd 0 --tu-intra-depth 3 --tu-inter-depth 3 --no-tskip --no-tskip-fast -o "g:\video.studin.hm10"
Similar Threads
-
help - how to compile latest "nightly" ffmpeg for win32 (XP) with mingw
By hydra3333 in forum ProgrammingReplies: 32Last Post: 20th May 2017, 00:33 -
x265 vs x264
By deadrats in forum Video ConversionReplies: 71Last Post: 10th Jan 2016, 06:14 -
ffdcaenc (an upgrade to dcaenc)
By El Heggunte in forum AudioReplies: 22Last Post: 9th Dec 2014, 06:09 -
MulticoreWare Annouces x265/HEVC Mission Statement
By enim in forum Latest Video NewsReplies: 4Last Post: 9th Aug 2013, 22:09 -
New PC Build(s)
By thedeificone in forum ComputerReplies: 6Last Post: 25th May 2010, 16:57