CSSDEC(1)
π CSSDEC(1) β the cssdec manual, bestie π
okay so this is the CSSDEC(1) page from CDimg|tools commands, and it's literally all about cssdec, the simple CSS descrambler using libdvdcss. slay. π
β¨ NAME β¨
cssdec β simple CSS descrambler using libdvdcss
π¦ SYNOPSIS π¦
cssdec -V
cssdec [options] [--] target [start_sector [end_sector]]
cssdec -k [options] [--] target [start_sector]
πΈ DESCRIPTION πΈ
cssdec is a command line program that decrypts sectors of CSS scrambled VOB files. The processed data is output on stdout. iconic behavior, honestly. β¨
cssdec uses libdvdcss directly, and passes it target as is. target can be a drive device file or a normal file.
The chosen block to be decrypted should be a VOB stream encrypted with a single key. It can be:
- a whole video file copied as is from a mounted DVD disc, or
- a range of sectors of a DVD disc (or of an image thereof) containing a single title (or menu).
The sector numbers are computed from the command line arguments by the function strtol(3).
The title key used to decrypt the VOB stream is obtained by libdvdcss.
π OPTIONS π
-Vβ print the version information and exit. short, sweet, done.-v,-qβ increase or decrease the level of verbosity of messages printed tostderr. The default level is1, at which only error messages are printed. At level0nothing is printed. At level2, a summary as well as some additional messages for noticeable events are printed. At level3, information about every processed sector is printed. choose your own adventure, bestie.-eβ modify the exit status as if a read error occurred whenEOFis reached before the end of the given sector range.-o output_fileβ write to the given output_file instead of the standard output.-aβ open the output file in append mode.-kβ key only mode: exit right afterlibdvdcsshas tried to obtain the title key. no extra processing, just key business.
π ENVIRONMENT VARIABLES π
DVDCSS_*βlibdvdcss' environment variables. SettingDVDCSS_VERBOSE=2in the environment will makelibdvdcssprint the title key found. iykyk π
π FILES π
~/.dvdcssβlibdvdcss' default cache directory for the title keys. The cache is used only if the input target is a DVD Video disc (or image file). SettingDVDCSS_CACHE=offin the environment disables the use of the cache. cache girlie has boundaries.
π₯ EXIT STATUS π₯
Bestie, read this as a bitmask: each bit that's set indicates a failure. Because a usage error always sets all the other bits, the values between 128 and 254 remain unused; they constitute a range often used by shells (e.g. bash or older versions of ksh) to indicate an abnormal process termination (killed by a signal). important lore, ngl.
0β no errors.255β usage error (invalid option or wrong number of arguments).127β failure while opening the target or the output_file.64β I/O error, while reading or writing.32β the title key could not be obtained.1β some sectors could be read but not decrypted. The data corresponding to these sectors is output, but its content is unknown.
π EXAMPLES π
Decrypt a scrambled video file:
cp /media/dvd/VIDEO_TS/VTS_01_1.VOB scrambled.VOB
sectors=$( echo $(ls -l scrambled.VOB |cut -d' ' -f5) / 2048 | bc )
cssdec -ev scrambled.VOB 0 $sectors >descrambled.VOB
Decrypt a DVD Video title:
for file in /media/cdrom/VIDEO_TS/VTS_01_[1-9].VOB; do
cssdec $file >> title1.vob
done
Only print the title key:
DVDCSS_VERBOSE=2 cssdec -kv scrambled.VOB
π BUGS π
If the file size is not a multiple of the sector size (2048 bytes), the last partial sector is silently ignored. sneaky little gremlin behavior. π
See also the CDimg|tools distribution file BUGS.
π AUTHOR π
cssdec was written by G.raud Meyer. author icon tbh.
π§ SEE ALSO π§
efdtt(1), vobcopy(1), dvdbackup(1), dvdimgdecss(1), strtol(3)
π that's the wholeCSSDEC(1)page, bestie! source/version:CDimg|toolsunknown_version; date:01/01/1980. periodt. π«Ά
π¦ where this page comes from
- nixos 26.05: cdimgtools 0.3
- nixpkgs unstable: cdimgtools 0.3
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms