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.

 

Go Back   Doom9's Forum > Video Encoding > New and alternative video codecs

Reply
 
Thread Tools Search this Thread Display Modes
Old 15th November 2018, 15:56   #101  |  Link
jonatans
Registered User
 
Join Date: Oct 2017
Posts: 49
Quote:
Originally Posted by Gravitator View Post
xvc v2.0 2018-09-23 #d3e8b46

There is no "-explicit-encoder-settings "aqp_strength 16"" ?
In xvc, internal encoder settings (settings that control how decisions and evaluations are made in the encoder) are exposed via the "-explicit-encoder-settings" cli parameter. These settings are primarily intended for development purposes and are not intended to be modified by the user and that is why this setting is not shown in the printout.

The full list of settings that can be modified by the "-explicit-encoder-settings" parameter can be found in the ParseExplicitSettings function in encoder_settings.cc.

We used this setting to generate the encode for our online demo (at https://www.divideon.com/products-an...ming-with-xvc/) as described in https://forum.doom9.org/showthread.p...72#post1832272. This was done in order to more closely meet the bitrate target. The difference in bitrate between two "-qp" steps are typically in the order of 12% so aqp_strength can be used to generate bitrate points in between.
__________________
Jonatan Samuelsson
Co-founder and CEO at Divideon

www.divideon.com | xvc.io
jonatans is offline   Reply With Quote
Old 15th November 2018, 17:26   #102  |  Link
Gravitator
Registered User
 
Join Date: May 2014
Posts: 155
Quote:
Originally Posted by jonatans View Post
Sounds interesting but it's not something we have looked in to. Is this a capability that is available for any other codecs in ffmpeg? Can you provide an example?
Привет!
I have a 50% load of coding can suddenly jump into 100% (the system squeaks) for a long time, then go back to 50%.
A pause can give: a breather, give a use for other heavy programs, it is possible that it will allow back to reduce the load (there may be a conflict of processes, or is it a feature of the coder's floating load ...).
Or we can wait for separate scripts, GUI with a pause.
Gravitator is offline   Reply With Quote
Old 16th November 2018, 10:09   #103  |  Link
jonatans
Registered User
 
Join Date: Oct 2017
Posts: 49
Quote:
Originally Posted by Gravitator View Post
Привет!
I have a 50% load of coding can suddenly jump into 100% (the system squeaks) for a long time, then go back to 50%.
A pause can give: a breather, give a use for other heavy programs, it is possible that it will allow back to reduce the load (there may be a conflict of processes, or is it a feature of the coder's floating load ...).
Or we can wait for separate scripts, GUI with a pause.
I see. The mutlithreading in the xvc software is so far entirely based on picture-level parallelism and it will encode as many pictures as it can in parallel, as long as they don't depend on each other. The prediction structure of reference pictures will cause the processor load to sometimes go down while waiting for new reference pictures to be completed.

If you want to ensure that your processor load never reaches 100% you can set the -threads parameter to a value that is lower than the number of cores available on your system. But this will of course also increase the encoding time somewhat.
__________________
Jonatan Samuelsson
Co-founder and CEO at Divideon

www.divideon.com | xvc.io
jonatans is offline   Reply With Quote
Old 17th November 2018, 23:47   #104  |  Link
foxyshadis
ангел смерти
 
foxyshadis's Avatar
 
Join Date: Nov 2004
Location: Lost
Posts: 9,392
Quote:
Originally Posted by Gravitator View Post
Can you add the ability to pause xvc coding in ffmpeg?
Are you on Windows? Just press the pause key in the command window and FFmpeg will stop feeding the encoder frames until you press it again.

Pausing happens through the application ideally, not individual codecs inside of it.
__________________
There are four boxes to be used in defense of liberty: soap, ballot, jury, and ammo. Please use in that order. ~ Ed Howdershelt
foxyshadis is offline   Reply With Quote
Old 13th December 2018, 11:55   #105  |  Link
Gravitator
Registered User
 
Join Date: May 2014
Posts: 155
Quote:
Originally Posted by foxyshadis View Post
Are you on Windows?
Win10x64
Quote:
Originally Posted by foxyshadis View Post
Just press the pause key in the command window and FFmpeg will stop feeding the encoder frames until you press it again.
There is no reaction to pressing the Pause key.
Gravitator is offline   Reply With Quote
Old 9th January 2019, 14:48   #106  |  Link
Vin
Registered User
 
Join Date: Jul 2018
Posts: 1
XVC is simply the best codec right now. Able to beat HEVC and AV1. But the real question. Is there a chance that the codec is going to actually be usable for anything other than just testing any time soon? Browser support, player support?
Any kind of hope?
Vin is offline   Reply With Quote
Old 9th January 2019, 18:06   #107  |  Link
Selur
Registered User
 
Selur's Avatar
 
Join Date: Oct 2001
Location: Germany
Posts: 5,754
decoding support in ffmpeg/libav would be great
__________________
Hybrid here in the forum, homepage
Selur is offline   Reply With Quote
Old 9th January 2019, 18:11   #108  |  Link
nevcairiel
Registered Developer
 
Join Date: Mar 2010
Location: Hamburg/Germany
Posts: 9,534
If you want widespread decode support, there should be a royalty free license for decoding-only. Let content distribution pay the bills.

But there also is no content, and without getting any major content distributor on board it's mostly irrelevant anyway.
__________________
LAV Filters - open source ffmpeg based media splitter and decoders
nevcairiel is online now   Reply With Quote
Old 10th January 2019, 10:55   #109  |  Link
hajj_3
Registered User
 
Join Date: Mar 2004
Posts: 866
Quote:
Originally Posted by Vin View Post
XVC is simply the best codec right now. Able to beat HEVC and AV1. But the real question. Is there a chance that the codec is going to actually be usable for anything other than just testing any time soon? Browser support, player support?
Any kind of hope?
H.266/VVC is due to be ratified in October 2020, that will provide a large compression advantage over AV1. If the creator of XVC wants to make some money then he should patent any tools that are great that he has created then submit those tools to the MPEG-LA for inclusion in the H.266/VVC standard. He could earn a decent amount from that and a lot of people would benefit due to how widespread the codec will be.
hajj_3 is offline   Reply With Quote
Old 12th January 2019, 14:13   #110  |  Link
iwod
Registered User
 
Join Date: Apr 2002
Posts: 741
Quote:
Originally Posted by hajj_3 View Post
H.266/VVC is due to be ratified in October 2020, that will provide a large compression advantage over AV1. If the creator of XVC wants to make some money then he should patent any tools that are great that he has created then submit those tools to the MPEG-LA for inclusion in the H.266/VVC standard. He could earn a decent amount from that and a lot of people would benefit due to how widespread the codec will be.
I think many part of xvc are what VVC will be, so it is like a head start into a commercial implementation.
iwod is offline   Reply With Quote
Old 20th January 2019, 17:21   #111  |  Link
Gravitator
Registered User
 
Join Date: May 2014
Posts: 155
Have a fresh build? And advise good settings for encoding in the 8000kbit/s range (Park_Joy).
__________________
Win10x64, Pentium E6600, GTX 750 2GB, DDR3 8GB.
Gravitator is offline   Reply With Quote
Old 21st January 2019, 14:30   #112  |  Link
jonatans
Registered User
 
Join Date: Oct 2017
Posts: 49
Fresh build of xvc for Windows x64 here: https://drive.google.com/file/d/1MOZ...ew?usp=sharing

Let me know if you would like a build for a different platform (or if you would like to use ffmpeg with xvc support instead).

For Park_Joy, 8 mbps you should probably be using around QP 27 for 720p and QP 30 for 1080p.

I would suggest -speed-mode 2 if you want the result reasonably fast, or -speed-mode 1 if you want the highest quality.

Example command line:
xvcenc.exe -input-file park_joy_420_720p50.y4m -speed-mode 2 -qp 27 -threads 16 -rec-file rec.y4m -output-file enc.xvc -verbose 1

Took around 30 minutes to encode on my laptop and gave bitrate of 7.7 mbps.
__________________
Jonatan Samuelsson
Co-founder and CEO at Divideon

www.divideon.com | xvc.io
jonatans is offline   Reply With Quote
Old 21st January 2019, 15:33   #113  |  Link
Gravitator
Registered User
 
Join Date: May 2014
Posts: 155
And the modified ffmpeg?
__________________
Win10x64, Pentium E6600, GTX 750 2GB, DDR3 8GB.
Gravitator is offline   Reply With Quote
Old 21st January 2019, 16:05   #114  |  Link
jonatans
Registered User
 
Join Date: Oct 2017
Posts: 49
Fresh ffmpeg with xvc support: https://drive.google.com/file/d/1Ywu...ew?usp=sharing

Example command line:
ffmpeg.exe -i park_joy_420_720p50.y4m -c:v libxvc -speed-mode 2 -qp 27 -threads 16 enc.mp4
__________________
Jonatan Samuelsson
Co-founder and CEO at Divideon

www.divideon.com | xvc.io
jonatans is offline   Reply With Quote
Old 21st January 2019, 17:02   #115  |  Link
Gravitator
Registered User
 
Join Date: May 2014
Posts: 155
Correct...

-speed-mode <0..2>
0: Placebo
1: Slow (default)
2: Fast
3: Faster
----------------------------------
Add the build number to the info field?
__________________
Win10x64, Pentium E6600, GTX 750 2GB, DDR3 8GB.

Last edited by Gravitator; 21st January 2019 at 17:07.
Gravitator is offline   Reply With Quote
Old 22nd January 2019, 08:25   #116  |  Link
kanaka
Registered User
 
Join Date: Jan 2019
Posts: 13
Is any tool to repack file.xvc do file.mp4 and file.mp4 to file.xvc?
kanaka is offline   Reply With Quote
Old 22nd January 2019, 08:48   #117  |  Link
LigH
German doom9/Gleitz SuMo
 
LigH's Avatar
 
Join Date: Oct 2001
Location: Germany, rural Altmark
Posts: 5,755
The MP4 container will probably not accept xvc content officially, it has relatively strict specifications. The ffmpeg linked above by jonatans may do so due to a high similarity to other MPEG video content formats. (Please note the difference between a container format and a content format; .mp4 is a container, .xvc is a raw video content stream.)

It's more likely that MKV may accept xvc content some day, but check their changelogs if a current version does. Version 30.1.0 "Forever And More" (2019-01-05) did not yet announce that in their docs/NEWS.txt of the MKVtoolnixGUI installation.

Disclaimer: Statements above are my humble opinions, I may be wrong.
__________________

New German Gleitz board
MediaFire: x264 | x265 | VPx | AOM | Xvid

Last edited by LigH; 22nd January 2019 at 08:53.
LigH is offline   Reply With Quote
Old 23rd January 2019, 14:05   #118  |  Link
kanaka
Registered User
 
Join Date: Jan 2019
Posts: 13
Quote:
Originally Posted by LigH View Post
Please note the difference between a container format and a content format; .mp4 is a container, .xvc is a raw video content stream

I know difference, but I have script playxvc.bat
Quote:
xvcdec.exe -bitstream-file %1 -output-file - | mpv.exe -
Dblclick on xvc file play this file in mpv. I cant do this with mp4 file.
kanaka is offline   Reply With Quote
Old 23rd January 2019, 14:26   #119  |  Link
kanaka
Registered User
 
Join Date: Jan 2019
Posts: 13
I've made tests of this codec (version from git, 18 january). It seems that xvc codec dont keep the same quality.

http://screenshotcomparison.com/comparison/128501

av1 q 36 vs xvc q 30 (and still too much blur). Other movies was acceptable.
I can't compare size becouse encoding was interrupted
kanaka is offline   Reply With Quote
Old 23rd January 2019, 14:40   #120  |  Link
LigH
German doom9/Gleitz SuMo
 
LigH's Avatar
 
Join Date: Oct 2001
Location: Germany, rural Altmark
Posts: 5,755
Well, yes ... playxvc.bat uses xvcdec to decode *.xvc to an intermediate format mpv recognizes immediately. I would assume Y4M. But if you have an xvc video stream multiplexed in an MP4 container, xvcdec won't recognize the xvc video content stream inside the MP4 container. You would have to demultiplex it from the MP4 first, then decode the raw xvc content, and then forward it to the player ... very complicated.

Instead, use the ffplay inside ffmpeg_xvc20190121.zip provided by jonathans.
__________________

New German Gleitz board
MediaFire: x264 | x265 | VPx | AOM | Xvid
LigH is offline   Reply With Quote
Reply

Tags
codec, compression, video codec, video encoding, xvc

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 10:07.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2019, vBulletin Solutions Inc.