Jump to content


Photo

Is it possible to compress recorded movies ?


  • Please log in to reply
30 replies to this topic

#1 Youpla

  • Senior Member
  • 47 posts

0
Neutral

Posted 11 April 2021 - 14:22

Hello,

In order to gain space on my HDD, I've started to use my PC to re-encode some of my recorded movies in a lower quality (ffmpeg + SMB shared folder, or Handbrake if I don't need subtitles).

I was wondering if it was possible to use the transcode capabilities of the enigma2 devices to do the same thing without the need for a third-party PC.

Does such a plugin already exist ?
If not, is it something that could be done ?

Regards,
Youpla.


VU+ DUO²  - OpenPLI 7.3 8.1 back to 7.3 for now.


Re: Is it possible to compress recorded movies ? #2 Dimitrij

  • PLi® Core member
  • 9,964 posts

+334
Excellent

Posted 12 April 2021 - 05:26

Not. Tests were carried out. Using ffmpeg for transcoding in the enigma itself leads to a lack of memory.


GigaBlue UHD Quad 4K /Lunix3-4K/Solo 4K


Re: Is it possible to compress recorded movies ? #3 rantanplan

  • PLi® Contributor
  • 1,756 posts

+81
Good

Posted 12 April 2021 - 11:43

It is much easier and certainly faster to edit the recordings on the PC.
If the receiver has mastered hardware transcoding, the stream could also be saved and thus achieve a form of compression.
Would even be variable to a limited extent.
I think software is unlikely.
But if this is desired, then you would have to adjust ffmpeg again in develop accordingly. Then leads to significantly larger ffmpeg again.

greetings



Re: Is it possible to compress recorded movies ? #4 Youpla

  • Senior Member
  • 47 posts

0
Neutral

Posted 12 April 2021 - 13:31

Thx for your answers.
 

Not. Tests were carried out. Using ffmpeg for transcoding in the enigma itself leads to a lack of memory.

 

I did'nt mean using ffmpeg on the device.
My point is : if a device can do hardware transcoding and send the stream over a network, it may also be able to simply store the stream on it's own HDD, right ?

 

If the receiver has mastered hardware transcoding, the stream could also be saved and thus achieve a form of compression.

Yes, this is what I meant. 


Edited by Youpla, 12 April 2021 - 13:31.

VU+ DUO²  - OpenPLI 7.3 8.1 back to 7.3 for now.


Re: Is it possible to compress recorded movies ? #5 WanWizard

  • PLi® Core member
  • 68,303 posts

+1,718
Excellent

Posted 12 April 2021 - 13:36

My point is : if a device can do hardware transcoding and send the stream over a network, it may also be able to simply store the stream on it's own HDD, right ?

 

Technically, that should be possible, yes. But virtually impossible to do with a plugin, as you need access to the low-level C code of Enigma.

 

The simplest way to test it, is to do a wget or curl request of a transcoding URL on the commandline, write the result to a file, and see if you can play the result.


Currently in use: VU+ Duo 4K (2xFBC S2), VU+ Solo 4K (1xFBC S2), uClan Usytm 4K Pro (S2+T2), Octagon SF8008 (S2+T2), Zgemma H9.2H (S2+T2)

Due to my bad health, I will not be very active at times and may be slow to respond. I will not read the forum or PM on a regular basis.

Many answers to your question can be found in our new and improved wiki.


Re: Is it possible to compress recorded movies ? #6 doglover

  • Rytec EPG Team
  • 16,974 posts

+635
Excellent

Posted 12 April 2021 - 15:49

Tried something.  It worked

curl.exe "http://hd2400:8001/file?file=/home/Movie/Opnames/Detectives/Hunters%20%28S1E1%29.ts?bitrate=4000000&width=1280&height=720&aspectratio=2&interlaced=0" -o D:\Temp\test.ts

And the file plays, and is transcoded.

I assume you can play around with the bitrate, etc.

 

Small problem though.  Audio is not recognized


Edited by doglover, 12 April 2021 - 15:54.

~~Rytec Team~~
Maxytec Multibox SE OpenPli (used as mediaplayer)
Mutant HD2400 OpenPli
Vu+ Duo OpenPli (backup)

Synology NAS

Sat: 13E, 19.2E, 23.5E and 28.2E
*Pli/Rytec EPG POWERED*


Re: Is it possible to compress recorded movies ? #7 WanWizard

  • PLi® Core member
  • 68,303 posts

+1,718
Excellent

Posted 12 April 2021 - 16:22

Small problem though.  Audio is not recognized

 

By what?


Currently in use: VU+ Duo 4K (2xFBC S2), VU+ Solo 4K (1xFBC S2), uClan Usytm 4K Pro (S2+T2), Octagon SF8008 (S2+T2), Zgemma H9.2H (S2+T2)

Due to my bad health, I will not be very active at times and may be slow to respond. I will not read the forum or PM on a regular basis.

Many answers to your question can be found in our new and improved wiki.


Re: Is it possible to compress recorded movies ? #8 doglover

  • Rytec EPG Team
  • 16,974 posts

+635
Excellent

Posted 12 April 2021 - 17:34

VLC.  Did not try on the receiver.

(Not that I ever want to use this,  I was just intrigued by the method.)


~~Rytec Team~~
Maxytec Multibox SE OpenPli (used as mediaplayer)
Mutant HD2400 OpenPli
Vu+ Duo OpenPli (backup)

Synology NAS

Sat: 13E, 19.2E, 23.5E and 28.2E
*Pli/Rytec EPG POWERED*


Re: Is it possible to compress recorded movies ? #9 betacentauri

  • PLi® Core member
  • 7,185 posts

+323
Excellent

Posted 12 April 2021 - 18:05

Maybe related to the box. At least et10000 cannot handle HDMI IN with audio properly which also uses afaik the encoder. hd2400 maybe have similar problems.


Edited by betacentauri, 12 April 2021 - 18:05.

Xtrend ET-9200, ET-8000, ET-10000, OpenPliPC on Ubuntu 12.04

Re: Is it possible to compress recorded movies ? #10 rantanplan

  • PLi® Contributor
  • 1,756 posts

+81
Good

Posted 12 April 2021 - 18:13

But the transcoding stream can be redirected internally and then saved.
It was already described somewhere, or am I wrong.



Re: Is it possible to compress recorded movies ? #11 WanWizard

  • PLi® Core member
  • 68,303 posts

+1,718
Excellent

Posted 12 April 2021 - 18:20

If you can watch the stream, you can save it.

 

The transcoder produces H.264 MPEG-4 AVC video, and ADTS audio (AAC with a minimal header)


Currently in use: VU+ Duo 4K (2xFBC S2), VU+ Solo 4K (1xFBC S2), uClan Usytm 4K Pro (S2+T2), Octagon SF8008 (S2+T2), Zgemma H9.2H (S2+T2)

Due to my bad health, I will not be very active at times and may be slow to respond. I will not read the forum or PM on a regular basis.

Many answers to your question can be found in our new and improved wiki.


Re: Is it possible to compress recorded movies ? #12 betacentauri

  • PLi® Core member
  • 7,185 posts

+323
Excellent

Posted 12 April 2021 - 18:24

You can do something like Doglover did via telnet on the box.

Afaik there is no functionality implemented at the moment to do the same via e2 GUI. It might be possible to implement it, but you need to find someone implementing it. And transcoding mechanism is quite instable and difficult to implement.


Xtrend ET-9200, ET-8000, ET-10000, OpenPliPC on Ubuntu 12.04

Re: Is it possible to compress recorded movies ? #13 rantanplan

  • PLi® Contributor
  • 1,756 posts

+81
Good

Posted 12 April 2021 - 19:24

https://github.com/O...3cda4b0dd10b34a

 

Sorry for the reference to the OpenVix, but I'm more concerned with the text. The 'tap' handler also exists in the pli. With this idea it should be possible to record directly from the stream.
It is clear that the compression always takes up the duration of the original.



Re: Is it possible to compress recorded movies ? #14 Youpla

  • Senior Member
  • 47 posts

0
Neutral

Posted 12 April 2021 - 20:15

Small problem though.  Audio is not recognized

Thank you for testing. I transcoded the same way you did and it worked and I got the sound.

My issue is that the transcoded stream does not contain secondary audio streams and subtitles. I don't know what program is in charge for transcoding. Can it be configured to include all audio streams and subtitles ?

Other issue is that it's very slow (curl telling me 7 hours for a 1mn30 film) but I'll blame Cygwin for this one because I see no reason why it should take more than the duration of the film.


VU+ DUO²  - OpenPLI 7.3 8.1 back to 7.3 for now.


Re: Is it possible to compress recorded movies ? #15 doglover

  • Rytec EPG Team
  • 16,974 posts

+635
Excellent

Posted 13 April 2021 - 07:51

This audio thing could be to the receiver and the transcoding chip into it.  (I am using a Mutant HD2400)

 

If you got audio, fine.

 

With transcoding you always lose secondary streams and subtitles.  It is maybe possible, but I do not know the parameters you have to pass to the transcoding stream to enable this.

Maybe some-else knows?

 

PS: My first try was also in Cygwin, but I stopped it.

The second test was done in a command box on my windows machine.


Edited by doglover, 13 April 2021 - 07:52.

~~Rytec Team~~
Maxytec Multibox SE OpenPli (used as mediaplayer)
Mutant HD2400 OpenPli
Vu+ Duo OpenPli (backup)

Synology NAS

Sat: 13E, 19.2E, 23.5E and 28.2E
*Pli/Rytec EPG POWERED*


Re: Is it possible to compress recorded movies ? #16 Youpla

  • Senior Member
  • 47 posts

0
Neutral

Posted 13 April 2021 - 20:01

Turns out that the duration of the transcoding is indeed the duration of the movie. 
Curl's estimated time is wrong because it is based on the Content-Length response header it receives from the HTTP server. And this header corresponds to the original movie size, not the transcoded one (obviously).

  • Accept-Ranges: bytes
  • Connection: Close
  • Content-Length: 3963437432 -> original file's size is 4Go 
  • Content-Type: video/mpeg
  • Server: Streamproxy

Conclusion : the result is pretty disappointing and not suitable for long term preservation. Lot of compression artifacts when the picture is moving fast. :(
+ it only includes one audio stream and no subtitle, as I said before.
 

Not. Tests were carried out. Using ffmpeg for transcoding in the enigma itself leads to a lack of memory.

What about giving it another shot, since the new boxes have several Gigas of RAM and flash memory ?
Would it be possible to have ffmeg included in OpenPLI ?


Edited by Youpla, 13 April 2021 - 20:10.

VU+ DUO²  - OpenPLI 7.3 8.1 back to 7.3 for now.


Re: Is it possible to compress recorded movies ? #17 WanWizard

  • PLi® Core member
  • 68,303 posts

+1,718
Excellent

Posted 13 April 2021 - 20:47

ffmpeg is in the feed, if it isn't installed.


Currently in use: VU+ Duo 4K (2xFBC S2), VU+ Solo 4K (1xFBC S2), uClan Usytm 4K Pro (S2+T2), Octagon SF8008 (S2+T2), Zgemma H9.2H (S2+T2)

Due to my bad health, I will not be very active at times and may be slow to respond. I will not read the forum or PM on a regular basis.

Many answers to your question can be found in our new and improved wiki.


Re: Is it possible to compress recorded movies ? #18 betacentauri

  • PLi® Core member
  • 7,185 posts

+323
Excellent

Posted 13 April 2021 - 22:12

You really want to transcode on the box in software? You need very much CPU power to do it.
You can try, but I don’t believe it will be fast (less than real-time).
Xtrend ET-9200, ET-8000, ET-10000, OpenPliPC on Ubuntu 12.04

Re: Is it possible to compress recorded movies ? #19 Youpla

  • Senior Member
  • 47 posts

0
Neutral

Posted 13 April 2021 - 23:11

ffmpeg is in the feed, if it isn't installed.

 

Indeed, but it's compiled with no hardware video encoding support :

root@vuduo2:~# ffmpeg -hwaccels -hide_banner
Hardware acceleration methods:

 

You really want to transcode on the box in software? You need very much CPU power to do it.
You can try, but I don’t believe it will be fast (less than real-time).

 

It may be possible do compile ffmpeg with harware encoding suppport at least for devices reliying on the same VideoCore IV GPU as the Raspberry Pi (broadcom MIPS chips).


VU+ DUO²  - OpenPLI 7.3 8.1 back to 7.3 for now.


Re: Is it possible to compress recorded movies ? #20 betacentauri

  • PLi® Core member
  • 7,185 posts

+323
Excellent

Posted 14 April 2021 - 06:33

That’s the problem. E.g. your duo2 has no hardware acceleration support for video encoding. At least none which ffmpeg can use. The transcoding mechanism can’t be used by ffmpeg.
Xtrend ET-9200, ET-8000, ET-10000, OpenPliPC on Ubuntu 12.04


1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users