I went here:-
https://player.stv.tv/episode/48d2/sony-commons
to get this:-
https://manifest.prod.boltdns.net/manifest/v1/dash/live-baseurl/bccenc/6204867266001/b...QzMzdkNDNjNg==
and used yt-dlp to download an mp4 and m4a file of 563 parts
The manifest response had this between <cenc: pssh>:-
which I used at getwvkeys - to provide:-Code:AAAAVnBzc2gAAAAA7e+LqXnWSs6jyCfc1R0h7QAAADYIARIQr3ljevwPRLO70nM7c1OFPRoNd2lkZXZpbmVfdGVzdCIIMTIzNDU2NzgyB2RlZmF1bHQ=
Here I get stuck because any combination I seem to try with bento4 mp4decrypt does nothing.Code:af79637afc0f44b3bbd2733b7353853d:25a89c8c61df0f8f760d3fb5f2b3543c
typically:_
writes a zero byte output file.Code:./mp4decrypt --show-progress --key 1:25a89c8c61df0f8f760d3fb5f2b3543c /home/angela/input.mp4 /homeangela/output.mp4
Where am I going wrong?
I made prat fall. I'd moved the downloaded mp4 with a long file name to something shorter ~ input.mp4 Somehow that file became zero bytes?? Just re-downloased and it decrypted fine. I'll leave this here with egg on my face!
		
			+ Reply to Thread
			
		
		
		
			
	
	
				Results 1 to 15 of 15
			
		- 
	Last edited by A_n_g_e_l_a; 20th Feb 2022 at 09:39. Reason: Found my error 
- 
	Correct command-line: 
 
 Place "mp4decrypt.exe" and "input.mp4" in the same folder.mp4decrypt --key af79637afc0f44b3bbd2733b7353853d:25a89c8c61df0f8f7 60d3fb5f2b3543c input.mp4 output.mp4
- 
	
- 
	Decrypting without writing KID, that's interesting 
- 
	So flushed with success I went on to episode 2! 
 
 And got this with three sets of keyid:keys and none seem work.
 
 
 [Attachment 63468 - Click to enlarge]
 
 And @ridibunda suggested the keys in the form <KID:KEY> whereas i found only <1:KEY> to work - I'm on linux - is mp4decrypt different in this incarnation?
 
 Now thoroughly confused.  
- 
	usage: mp4decrypt [options] <input> <output> 
 Options are:
 --show-progress : show progress details
 --key <id>:<k>
 <id> is either a track ID in decimal or a 128-bit KID in hex,
 <k> is a 128-bit key in hex
 (several --key options can be used, one for each track or KID)
 note: for dcf files, use 1 as the track index
 note: for Marlin IPMP/ACGK, use 0 as the track ID
 note: KIDs are only applicable to some encryption methods like MPEG-CENC
 --fragments-info <filename>
 Decrypt the fragments read from <input>, with track info read
 from <filename>.
- 
	
- 
	
- 
	on linux 
 Is standard. It's confusing I know, and I've had to show exampes to others who refuse to believe it's the right syntax. <kid:key> may work for windows users, but <1:key> is the linux way. Especially with mp4decrypt, in fact all the bento4 tools, added to path.Code:mp4decrypt --key 1:<key> <encrypted file> <decrypted name> 
- 
	As A_n_g_e_l_a posted, the id can be either specified by the track id or the kid in hex. 
 the majority of times i decrypt it is with the kid:key not 1:key and thats on linux.
 there are some sites that you need to use 1:key as the kid doesnt match whats in the encrypted file but the key still decrypts but theyre in the minority.
 
 the other problem with using 1:key is that if the key is incorrect you wont get a notification saying the decryption has failed and if you run mp4info on the output file, it doesnt show the [ENCRYPTED] tag, so you assume that its been decrypted but then you will get errors when trying to mux it.
 At least with the kid:key method it will still show the [ENCRYPTED] tag if the kid doesnt match.
 
 id be using kid:key first on either windows or linux and only using 1:key on specific sites or for troubleshooting/testing.
- 
	I think I got lucky with my first decrypt using 1:key. I hadn't understood Ghost's site so hadn't set everything there correctly. But my first series of attempts finally worked with 1:key. KID:KEY didn't seem to work at all. When I sent my Ghost query properly the full KiD:Key worked. 
 
 I moved on to Channel 5 and surprised myself when that worked too!
 
 Now pondering what is needed for All4; happy days!
- 
	
 All true, but I've repeatedly faced
 mp4decrypt --key <kid:key> <encrypted file> <decrypted file>
 not work at all with content from all4, rte, ITV and ABC iView (from memory.)
 instead
 mp4decrypt --key 1:<key> <encrypted file> <decrypted file>
 worked, with a variance of the integer after --key on ABC iView.
- 
	
Similar Threads
- 
  Decrypting a cenc encrypted video???By leaderrocks in forum Video Streaming DownloadingReplies: 11Last Post: 9th Jun 2023, 19:32
- 
  Help Decrypting DPD.By mikenuun in forum Video Streaming DownloadingReplies: 3Last Post: 7th Jan 2022, 11:31
- 
  decrypting the video with keysBy jamkiya in forum Video Streaming DownloadingReplies: 4Last Post: 30th Aug 2021, 03:11
- 
  Need help decrypting this videoBy KyoGo in forum Video Streaming DownloadingReplies: 6Last Post: 18th Jun 2021, 14:32
- 
  Help Decrypting VTT SubitileBy thegeek in forum SubtitleReplies: 2Last Post: 26th Apr 2021, 22:56


 
		
		 View Profile
				View Profile
			 View Forum Posts
				View Forum Posts
			 Private Message
				Private Message
			 
 
			
			
 Quote
 Quote

 Visit Homepage
				Visit Homepage
			 
						