Forums
Games
Cyberpunk 2077 Thronebreaker: The Witcher Tales GWENT®: The Witcher Card Game The Witcher 3: Wild Hunt The Witcher 2: Assassins of Kings The Witcher The Witcher Adventure Game
Jobs Store Support Log in Register
Forums - CD PROJEKT RED
Menu
Forums - CD PROJEKT RED
  • Hot Topics
  • NEWS
  • GENERAL
    SUGGESTIONS
  • STORY
    MAIN JOBS SIDE JOBS GIGS
  • GAMEPLAY
  • TECHNICAL
    PC XBOX PLAYSTATION
  • COMMUNITY
    FAN ART (THE WITCHER UNIVERSE) FAN ART (CYBERPUNK UNIVERSE) OTHER GAMES
  • RED Tracker
    The Witcher Series Cyberpunk GWENT
FAN ART (THE WITCHER UNIVERSE)
FAN ART (CYBERPUNK UNIVERSE)
OTHER GAMES
Menu

Register

Video and audio codecs and tools

+
Prev
  • 1
  • 2
  • 3
Next
First Prev 2 of 3

Go to page

Next Last
Gilrond-i-Virdan

Gilrond-i-Virdan

Forum veteran
#21
Dec 28, 2014
About the progress of still images encoding with Daala (i.e. an alternative to JPEG and WebP):
http://people.xiph.org/~xiphmont/demo/daala/update1.shtml
 
sidspyker

sidspyker

Ex-moderator
#22
Dec 29, 2014
Yeah I was looking at it yesterday, Daala dropped their earlier theoretical *forgot the name* thing which they planned to used instead of regular DCT
 
Gilrond-i-Virdan

Gilrond-i-Virdan

Forum veteran
#23
Jan 20, 2015
Presentation by Timothy Terriberry about Daala at Linux.conf.au 2015:


Looks like Daala release will be sometime in 2016.
 
Last edited: Jan 20, 2015
Gilrond-i-Virdan

Gilrond-i-Virdan

Forum veteran
#24
Jan 25, 2015
@sidspyker : Can you please rename the thread into something like "Video and audio codecs and tools".

By the way, are you familiar with Bink audio and video? Why is anyone using it instead of let's say VP9 and Opus? I red somewhere that the Linux version of Tex Murphy - Tesla Effect is delayed because they can't make Bink2 work with Unity on Linux. My question was - What?.. Why do they use that altogether?
 
Last edited: Jan 25, 2015
G

GuyNwah

Ex-moderator
#25
Jan 25, 2015
Gilrond said:
@sidspyker : Can you please rename the thread into something like "Video and audio codecs and tools".

By the way, are you familiar with Bink audio and video? Why is anyone using it instead of let's say VP9 and Opus? I red somewhere that the Linux version of Tex Murphy - Tesla Effect is delayed because they can't make Bink2 work with Unity on Linux. My question was - What?.. Why do they use that altogether?
Click to expand...
There is no good reason for using Bink other than Bink is exactly a tool that a developer can use to deliver full-motion video using the same toolset on Windows, Mac OS X, and consoles all the way back to the original Xbox. That is, when you are developing software that you intend to sell for a profit, actually a damned good reason.
 
Gilrond-i-Virdan

Gilrond-i-Virdan

Forum veteran
#26
Jan 25, 2015
I don't really see benefits of Bink when other and better decoders can work on all the same platforms as well. And in this case they even can work with Unity better. Original Xbox? You mean one before 360? I don't think anyone is concerned about targeting that.
 
Last edited: Jan 25, 2015
G

GuyNwah

Ex-moderator
#27
Jan 25, 2015
Gilrond said:
I don't really see benefits of Bink when other and better decoders can work on all the same platforms as well. And in this case they even can work with Unity better. Original Xbox? You mean one before 360? I don't think anyone is concerned about targeting that.
Click to expand...
Can you get VP9 today and provide a substantiated claim that it will run on multiple current gaming platforms and provide tech support on demand for it? No.

Developers who are in this to make a profit and answerable to officers and directors are constrained to those tools that meet their needs now and that they can obtain now and support now. Not whenever an organization of volunteers finishes software that takes somebody else's needs into account.

Developers have been using Bink and RAD Tools since 1999, on more than 6,000 titles, and Smacker since 1994. That's a lot of successful experience for a competitor that is not yet available and does not meet their needs to overcome.

The argument that nobody writes for original Xbox anymore is true but irrelevant. The point is rather that media prepared for Bink going back that far, for that matter going back to 1999, is still usable with modern Bink, without time, effort, and money spent on conversion that does not generate revenue.
 
Last edited: Jan 25, 2015
Gilrond-i-Virdan

Gilrond-i-Virdan

Forum veteran
#28
Jan 26, 2015
I see no reason why VP9 can't be available on lot's of platforms (through ffmpeg for instance). It's a stable codec and I bet has way better technical support than Bink can ever have. If there are any bugs with it, they are fixed. You can apply those patches right away since you have the code. Try reporting bugs in Bink and wait for 2 years for them to fix it?

The point about Xbox is indeed irrelevant. It can go as far as it wants but no sane development would worry about archaic museum type platforms.

About costs - paying codec licenses is always expensive for any commercial project. And the bigger is its scale, the bigger is the toll. So it doesn't make any sense to ever use proprietary codecs when free ones especially surpass them technically. A lot of developers actually realize that and use Opus and VP8 (now VP9) just fine. Example with CDPR was already brought above. For audio they used Vorbis and CELT (Opus predecessor) in Witcher 1 and 2 respectively. Not sure what they used for video. So it's quite natural to expect them to use free codecs in TW3 as well.
 
Last edited: Jan 26, 2015
sidspyker

sidspyker

Ex-moderator
#29
Jan 26, 2015
VP9? The decoder will kill the CPU on the consoles. Hell even PC CPUs aren't doing so good with it presently.

---------- Updated at 07:32 AM ----------

It's not like games haven't ever used 'free' codecs, I remember NFS Most Wanted(2005) used VP6 for example. Bink provides crossplatform support, relatively easy tools that give back a decent quality and most importantly, decoding doesn't destroy the CPU(VP9 does).

The only way something like that could run on weaker CPUs would be having a dedicated H/W decoder.
 
Gilrond-i-Virdan

Gilrond-i-Virdan

Forum veteran
#30
Jan 26, 2015
Didn't VP9 try to reduce algorithmic complexity? But I didn't really compare it to VP8 so not sure how much more demanding it is. May be they are more bent on stronger compression at the cost of computational resources. But it can have various parameters to adjust it probably (balancing it more to faster decoding and larger size). If VP9 is too expensive, VP8 can be more suitable for consoles.

Daala for example aims to reduce computational cost, it's one of the critical goals for the project. Hardware decoding of course helps, but I doubt any hardware has dedicated Bink decoders. On the other hand recent Nvidia and Intel chips already provide VP9 hardware decoders if I'm not mistaken. Not sure about AMD though.
 
Last edited: Jan 26, 2015
G

GuyNwah

Ex-moderator
#31
Jan 26, 2015
Where have you heard that current CPUs provide hardware support for VP9? Qualcomm and nVidia have VP8 support, and MediaTek has a VP9 chip, but Intel?

Unfortunately, there's a lot of industry that doesn't really care whether a technology is freely licensed. The cost of licensing is negligible compared to the cost of engineering and the cost of delays. And HEVC (H.265) burns VP9 on performance and has already been adopted for 4K Blu-Ray, Windows 10, and a few others.
 
Gilrond-i-Virdan

Gilrond-i-Virdan

Forum veteran
#32
Jan 26, 2015
I didn't really test it, since I'm not using Intel GPU, but here is what I saw:
http://techreport.com/news/27677/new-intel-igp-drivers-add-h-265-vp9-hardware-decode-support

If that's a pure driver change, then how is that hardware accelerated? And if not, it means that hardware has some features to support it and driver just enables them. No idea what they mean by "partial" support there. May be something similar to ARM Neon?

---------- Updated at 03:54 AM ----------

HEVC doesn't surpass it on performance, they improve decoders rather in parallel. HEVC is adopted more at this stage simply because of the MPEG-LA cartel reach and passive approach that Google took to defend VPx against patent attacks. It's too late to fix things from PR perspective (see that presentation about Daala about this). That's why Xiph and Mozilla are taking another approach and proactively defending their codecs.
 
Last edited: Jan 26, 2015
G

GuyNwah

Ex-moderator
#33
Jan 26, 2015
Gilrond said:
I didn't really test it, since I'm not using Intel GPU, but here is what I saw:
http://techreport.com/news/27677/new-intel-igp-drivers-add-h-265-vp9-hardware-decode-support

If that's a pure driver change, than how is that hardware accelerated? And if not, it means that hardware has some features to support it and driver just enables them. No idea what they mean by "partial" support there. May be something similar to ARM Neon?
Click to expand...
The way I read that is they have instructions that are useful in HEVC, VP9, and some of OpenCL and OpenGL processing, and the driver adds support for functions that can use these instructions. Not that they have put a decoder targeted to any specific media technology in the GPU.

It may be similar to AMD NEON without being quite so purpose-built as NEON is.

And HEVC has repeatedly exceeded VP9 performance in testing conducted by multiple laboratories. Not by a small difference, either. Accusations that this is done to further the ends of a cartel lack support. VP9 is simply too little, too late.
 
Gilrond-i-Virdan

Gilrond-i-Virdan

Forum veteran
#34
Jan 26, 2015
Any testing reflects decoders which they used at the time, decoders performance isn't set in stone, so I don't expect HEVC to have any advantage here, they are quite comparable in potential (most of the ideas they use are the same) so decoders won't be very different from each other when they'll reach their full optimization. Its main advantage isn't technical at all and that one isn't fixable at this point. At least not easily.
 
Last edited: Jan 26, 2015
sidspyker

sidspyker

Ex-moderator
#35
Jan 26, 2015
Currently HEVC is leading in both quality and performance and I mean both encoding and decoding. VPX did make a few changes decoding side like FINALLY adding multithreading but I don't think they've done multithreading on the encoder side yet, didn't see a commit for it.
 
Gilrond-i-Virdan

Gilrond-i-Virdan

Forum veteran
#36
Jan 26, 2015
sidspyker said:
Currently HEVC is leading in both quality and performance and I mean both encoding and decoding.
Click to expand...
They are going to race each other. It's good to separate the codec (i.e. spec) and encoders / decoders. Codec can be fixed, while the later can have better and better implementations. As I said, I don't see HEVC having any better potential than VP9. They are pretty similar in many aspects (i.e. codecs are similar) so their encoders / decoders can't have a significantly different theoretical performance ceiling as well. Daala is another story since it's conceptually a very different codec to begin with, so it can actually surpass them in performance quite a lot.

Also, there is some development on VP10 already.
 
sidspyker

sidspyker

Ex-moderator
#37
Jan 26, 2015
Yeah it's just that with H264 it became synonymous with x264 because that was the leading encoder and easily the best so it's a force of habit :p

Anyway, x265 I mean is doing pretty damn great right now. It obviously is more complex and takes more time than x264 to encode the same clips and the results aren't "definitely" better but it's getting there.

VP9 on the other hand, the encoder is slow(both official or otherwise) as hell and the quality, well I haven't seen a big difference on the current one.
 
Gilrond-i-Virdan

Gilrond-i-Virdan

Forum veteran
#38
Jan 27, 2015
Some info on Intel's hardware VP8 support in Broadwell:

http://www.phoronix.com/scan.php?page=news_item&px=MTYzNDA
http://www.phoronix.com/scan.php?page=news_item&px=MTc0NDc

It's mostly about VA-API, but it mentions Broadwell as supporting it (may be same partial support like above).

---------- Updated at 05:54 PM ----------

Here is another source: http://wccftech.com/intel-broadwell-significant-graphic-enhancements-haswell/

The Broadwell GPU itself will be based on the 8th Gen Architecture and will have 48 EUs which is 20% more than Haswell. They will support Dx 11.1, Open GL 4.2 and CL 1.2/2. It will also support the now dated Quick Sync and Clear Video technologies while adding new features such as SVC Hardware Accelerated Decoder and VP8 Hardware Decoder.

Now the new information we received states that GT2 chips will have 24 EUs while GT3e chips will have 48 EUs. Other improvements include increased GPU cache size, Better Hi-Z and tessellation, increased pixel clock fill rate and the hardware support for 2x MultiSample Anti Aliasing.

The GPU now uses VP8 open source codec to perform full hardware acceleration of VP8 streams. The Scalable Video Codec (SVC) now has High Profile specification. The SVC High Profile removes some SVC baseline restrictions, and implements support for arbitrary video resolution and cropping. Additionally, Broadwell processors with GT3 graphics incorporate extra circuitry for faster Intel Quick Sync. Now H Series Processors wil have a max display of 4096×2304 @60Hz while U series will have resolution of 3840×2160. Y series will have the same resolution as U but be limited to one display. Panel Self Refresh and Low Power Single Pipe features have been added while VGA and LVDS interfaces eliminated from on-chip GPU. Like Haswell processors, Broadwell parts support DirectX 11.1 and OpenCL 1.2 APIs. Intel is also going to add support for OpenCL 2.0 on some SKUs, and for OpenGL 4.2.
Click to expand...
So VP8 support is on track. Nothing about VP9 yet though.
 
  • RED Point
Reactions: GuyNwah
Gilrond-i-Virdan

Gilrond-i-Virdan

Forum veteran
#39
Jan 29, 2015
A short script to convert all audio in the current directory (with given extension passed as parameter) to Opus (mostly for music, bitrate is set to 140 Kbps). Note: metadata is ignored unless the source if FLAC.

all_to_opus.sh
Code:
#!/bin/bash

ext="$1"
if [ -z "$ext" ]
then
   echo "Error, no source extension provided!"
   exit 1
fi

mkfifo wavpipe
for source in *.${ext}
do
   if [[ "$ext" != "wav" ]] && [[ "$ext" != "flac" ]] 
   then
      mpv -quiet -no-video -vo null -ao pcm:waveheader:file="wavpipe" "$source" &
   else
      cat "$source" > wavpipe &
   fi

   opusenc --bitrate 140 wavpipe "${source%.*}.opus"
done
rm wavpipe
 
Last edited: Jan 29, 2015
Gilrond-i-Virdan

Gilrond-i-Virdan

Forum veteran
#40
Jan 30, 2015
A simple way to extract audio from Cyberia blobs (this ignores all markers - just splits the file by the header assuming there is nothing in between). A better way would be to write a proper parser in some normal language like C++:

extract_voc.sh
Code:
#!/bin/bash

source="$1"
source_size=$(stat -c %s "$source")

offsets=( $(grep --only-matching --byte-offset --binary --text Creative "$source" | cut -d : -f 1) )

for ((i=0; i<${#offsets[@]}; i++))
do
   left=${offsets[$i]}

   if ((i == ${#offsets[@]} - 1))
   then
      right=$source_size
   else
      right=${offsets[$((i+1))]}
   fi

   dd skip=$left count=$(($right - $left)) if=$source of=${source%.*}_${i}.voc bs=1
done
 
Last edited: Jan 30, 2015
Prev
  • 1
  • 2
  • 3
Next
First Prev 2 of 3

Go to page

Next Last
Share:
Facebook Twitter Reddit Pinterest Tumblr WhatsApp Email Link
  • English
    English Polski (Polish) Deutsch (German) Русский (Russian) Français (French) Português brasileiro (Brazilian Portuguese) Italiano (Italian) 日本語 (Japanese) Español (Spanish)

STAY CONNECTED

Facebook Twitter YouTube
CDProjekt RED Mature 17+
  • Contact administration
  • User agreement
  • Privacy policy
  • Cookie policy
  • Press Center
© 2018 CD PROJEKT S.A. ALL RIGHTS RESERVED

The Witcher® is a trademark of CD PROJEKT S. A. The Witcher game © CD PROJEKT S. A. All rights reserved. The Witcher game is based on the prose of Andrzej Sapkowski. All other copyrights and trademarks are the property of their respective owners.

Forum software by XenForo® © 2010-2020 XenForo Ltd.