[APP] ffmpeg w/ srf decryption and hw aes [E/F/(H)/J/K]

Here are software that related with Samsung H series TVs.
Post Reply

User avatar
bugficks
Official SamyGO Developer
Posts: 1037
Joined: Tue Jun 25, 2013 3:56 pm

[APP] ffmpeg w/ srf decryption and hw aes [E/F/(H)/J/K]

Post by bugficks » Sat Apr 01, 2017 10:04 am

ffmpeg patches that add srf decryption and hw aes (libnettle)

-for H libFixedKey is required

.key file has to be in same directory as .srf

Code: Select all

xxx/bla.srf
xxx/bla.key
ffmpeg -i 20130901195758.srf -codec copy -y output.tsShow

Code: Select all

ffmpeg version 3.2.4 [SamyGO] Copyright (c) 2000-2017 the FFmpeg developers
  srf decryption v0.1.1 (c) 2016-2017 bugficks@samygo
  built with gcc 6.3.0 (Rev2, Built by MSYS2 project)
  configuration: --enable-libx264 --enable-libx265 --enable-librtmp --enable-libtheora --enable-opencl --enable-opengl --enable-gnutls --enable-gpl --enable-nonfree --enable-version3
  libavutil      55. 34.101 / 55. 34.101
  libavcodec     57. 64.101 / 57. 64.101
  libavformat    57. 56.101 / 57. 56.101
  libavdevice    57.  1.100 / 57.  1.100
  libavfilter     6. 65.100 /  6. 65.100
  libswscale      4.  2.100 /  4.  2.100
  libswresample   2.  3.100 /  2.  3.100
  libpostproc    54.  1.100 / 54.  1.100
[mpegts @ 0000000000fddf80] PES packet size mismatch
    Last message repeated 3 times
[mpegts @ 0000000000fddf80] Could not find codec parameters for stream 5 (Unknown: none ([5][0][0][0] / 0x0005)): unknown codec
Consider increasing the value for the 'analyzeduration' and 'probesize' options
Input #0, mpegts, from '20130901195758.srf':
  Duration: 00:00:13.41, start: 33303.704389, bitrate: 8433 kb/s
  Program 5001
  Program 5002
    Stream #0:0[0x899]: Video: h264 (High) ([27][0][0][0] / 0x001B), yuv420p(tv, bt709, progressive), 1280x720 [SAR 1:1 DAR 16:9], 50 fps, 50 tbr, 90k tbn, 100 tbc
    Stream #0:1[0x8a3](ger): Audio: mp2 ([4][0][0][0] / 0x0004), 48000 Hz, stereo, s16p, 160 kb/s (clean effects)
    Stream #0:2[0x8a4](eng): Audio: mp2 ([4][0][0][0] / 0x0004), 48000 Hz, stereo, s16p, 192 kb/s (clean effects)
    Stream #0:3[0x8c1](ger): Audio: ac3 ([6][0][0][0] / 0x0006), 48000 Hz, stereo, fltp, 448 kb/s (clean effects)
    Stream #0:4[0x8fd](ger,ger): Subtitle: dvb_teletext ([6][0][0][0] / 0x0006)
    Stream #0:5[0x1f41]: Unknown: none ([5][0][0][0] / 0x0005)
  Program 5004
  Program 5005
Output #0, mpegts, to 'output.ts':
  Metadata:
    encoder         : Lavf57.56.101
    Stream #0:0: Video: h264 (High) ([27][0][0][0] / 0x001B), yuv420p(tv, bt709, progressive), 1280x720 [SAR 1:1 DAR 16:9], q=2-31, 50 fps, 50 tbr, 90k tbn, 90k tbc
    Stream #0:1(ger): Audio: mp2 ([4][0][0][0] / 0x0004), 48000 Hz, stereo, 160 kb/s (clean effects)
Stream mapping:
  Stream #0:0 -> #0:0 (copy)
  Stream #0:1 -> #0:1 (copy)
Press [q] to stop, [?] for help
[mpegts @ 0000000000fddf80] PES packet size mismatch
frame=  631 fps=0.0 q=-1.0 Lsize=   11890kB time=00:00:13.31 bitrate=7316.0kbits/s speed= 118x
video:10713kB audio:246kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 8.495028%

crypto_bench windows x64Show

Code: Select all

w/o hw aes:
lavu       AES-128      size: 1048576  runs:   1024  time:   17.688 +- 1.377

w/ hw aes:
lavu       AES-128      size: 1048576  runs:   1024  time:    7.970 +- 0.930
Changelog
0.1.1
  • initial version
0.1.3
  • .key file can be specified using -cryptokey path/to/xxx.key
  • added workaround for srf w/ zero channel audio streams
ffmpeg-3.3-samygo-0.1.3.zip
You do not have the required permissions to view the files attached to this post.

prisonbreak1988
SamyGO Project Donor
Posts: 118
Joined: Wed Sep 18, 2013 5:32 pm
Location: sweden

Re: [APP] ffmpeg w/ srf decryption and hw aes [E/F/(H)/J/K]

Post by prisonbreak1988 » Sat Apr 01, 2017 1:16 pm

thanks! can you explain how do i get it to work for dummies like me. i have copy the files from hdd to the laptop. i want to decrypt the files i have record from my tv j series. i have windows 10 on my laptop.
have UE40ES7005 and UE48JS9005QXXE fw 1470

User avatar
bugficks
Official SamyGO Developer
Posts: 1037
Joined: Tue Jun 25, 2013 3:56 pm

Re: [APP] ffmpeg w/ srf decryption and hw aes [E/F/(H)/J/K]

Post by bugficks » Sat Apr 01, 2017 5:13 pm

sure, wait for sectroyer to release root for J. then use my included pvr key dumper for J/K and ffmpeg to decrypt on tv or compile ffmpeg w/ patch for windows yourself.

prisonbreak1988
SamyGO Project Donor
Posts: 118
Joined: Wed Sep 18, 2013 5:32 pm
Location: sweden

Re: [APP] ffmpeg w/ srf decryption and hw aes [E/F/(H)/J/K]

Post by prisonbreak1988 » Sat Apr 01, 2017 6:12 pm

Ok thanks for your answer bugficks!
have UE40ES7005 and UE48JS9005QXXE fw 1470

Steiner
SamyGO Project Donor
Posts: 34
Joined: Sun Jul 17, 2016 12:11 pm
Location: Slovakia

Re: [APP] ffmpeg w/ srf decryption and hw aes [E/F/(H)/J/K]

Post by Steiner » Wed Apr 26, 2017 10:26 am

bugficks wrote:
Sat Apr 01, 2017 5:13 pm
... wait for sectroyer to release root for J. ...
Root even with oscam in JU6872 installed and everything works fine, thanks to all of you ;)
bugficks wrote:
Sat Apr 01, 2017 5:13 pm
... or compile ffmpeg w/ patch for windows yourself.
I still want to ask if someone has ffmpeg for windows with this patch?

User avatar
bugficks
Official SamyGO Developer
Posts: 1037
Joined: Tue Jun 25, 2013 3:56 pm

Re: [APP] ffmpeg w/ srf decryption and hw aes [E/F/(H)/J/K]

Post by bugficks » Thu Apr 27, 2017 9:48 am

updated 1st post, patch v0.1.3

starlord
Posts: 1
Joined: Sun Jul 16, 2017 2:41 pm

Re: [APP] ffmpeg w/ srf decryption and hw aes [E/F/(H)/J/K]

Post by starlord » Sun Jul 16, 2017 4:01 pm

I would like to use the patch with windows and i have two questions:

1.Is it possible to use the ffmpeg patch with winff? if yes, how can i add the patch to the application and how can i use it?

2.If it´s not possible. how can i add the patch to ffmpeg and how can I convert my recordings?

Thx for your help

Bethel
Posts: 1
Joined: Wed Aug 16, 2017 10:30 am

Re: [APP] ffmpeg w/ srf decryption and hw aes [E/F/(H)/J/K]

Post by Bethel » Wed Aug 23, 2017 8:28 am

starlord wrote:
Sun Jul 16, 2017 4:01 pm
how can I convert my recordings?

Thx for your help
Hey, I'd like to know how to convert recording too. is there a tutorial anywhere guys?

Post Reply

Return to “[H] Software”