Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

hevc main 10 offline transcode to high fails #16

Closed
Fabian1601 opened this issue Nov 11, 2021 · 29 comments
Closed

hevc main 10 offline transcode to high fails #16

Fabian1601 opened this issue Nov 11, 2021 · 29 comments

Comments

@Fabian1601
Copy link

Fabian1601 commented Nov 11, 2021

hello alex,

when i try to transcode hevc main 10 offline the conversion always fails and it creates me a 0mb mp4 file.
in the "offline transcoding list" it says "done".
but if i choose "medium" as resolution it creates the correct file.
are you already aware of the error?

greetings

I have attached the log file from the conversion of the film in high and medium resolution
ffmpeg.log
gs

@AlexPresso
Copy link
Owner

Hello Fabian,

Yes, I'm aware of an issue related to HEVC transcoding (even real-time transcoding), it's not directly related to the patcher (it's related to the wrapper), but I'm planning to fix it when I have time.

Could you put the content of your log file in a gist instead of a file please ?

Greetings

@Fabian1601
Copy link
Author

hello alex,

here as gist.

https://gist.github.com/Fabian1601/e24a8695891a1d695dde9e90862227ed

greetings

@AlexPresso
Copy link
Owner

AlexPresso commented Nov 15, 2021

Hi,

Thank you for the logs, it will help me fix the wrapper and make it capable of wrapping Advanced Media Extensions.
I'll need some time to do it, but until then, I'll keep the following issue opened and mention it in a future pull request.

Greetings

@pacifikballa
Copy link

pacifikballa commented Mar 9, 2022

AlexPresso,

Here is the link. Its good for a day.

http://gofile.me/6OElE/a0qvKsHty

@AlexPresso
Copy link
Owner

Thank you for the link, you said earlier:

Maybe I can upload my patched file or wrapper so u can compare? I've never done that before though so wouldn't know where to start.

Do you mean you edited the wrapper downloaded by the script (/var/packages/VideoStation/target/bin/ffmpeg) ?

@pacifikballa
Copy link

Thank you for the link, you said earlier:

Maybe I can upload my patched file or wrapper so u can compare? I've never done that before though so wouldn't know where to start.

Do you mean you edited the wrapper downloaded by the script (/var/packages/VideoStation/target/bin/ffmpeg) ?

I didn't edit anything. Just figured since it is all working for me, somehow mine may differ from yours.

@AlexPresso
Copy link
Owner

AlexPresso commented Mar 10, 2022

Oh okay, I understand
No the patch procedure is the same for everyone, my script is downloading the wrapper directly from source, without editing it ;)

@pacifikballa
Copy link

Oh okay, I understand No the patch procedure is the same for everyone, my script is downloading the wrapper directly from source, without editing it ;)

Ok gotcha.....well, i'm not sure what i did, but everything i have is working...i tested it all. HEVC with DTS/Atmos, EAC3, AAC, h264/h265...u name it, i got it, and it all works. How did that download go? Did the movie play for u?

@AlexPresso
Copy link
Owner

I was able to download the file but unfortunately it didn't play on my DS218Play, I'm still trying to understand why it fails

@pacifikballa
Copy link

pacifikballa commented Mar 11, 2022 via email

@findstevehere
Copy link

findstevehere commented Mar 11, 2022

thanks guys for all the work on this stuff to make VS much much more usable, but wondering what should simple people do like myself do.....who arent that savvy with command line or terminal commands and there's two duelling people now with two different methods of patching, with the seemingly more complicated, nebulas also seems to work better with H265, while Alex's, which I successfully did last time before the recent VS update because it's much simpler, but H265 doesnt seem to work consistently. I really wish someone would do a video or something, because these instructions are rarely complete....never gives you step by step instructions on every step and then others chime in about installing Putty or something and then just paste or use this command when, blah blah blah....and someone like pacific gives links to other files and edits or whatever.....it's seriously nuts for regular people like myself, not so command savvy trying to wade through all this and months and months, if not years of comments and conversations and trying to get a handle on the best route to go. someone needs to simplify or collate all this for the ordinary folks to be able to decipher and implement.
thanks

@AlexPresso
Copy link
Owner

AlexPresso commented Mar 11, 2022

@findstevehere I think you sent this message to the wrong chan ;) this is the issue page of my patcher, not the gist

@ja-vivanco
Copy link

In my case it fails when transcoding H265 in high quality AND using hardware transcoding. If you disable hardware transcoding it works with high and medium quality.

I have patched synocodec tool with https://github.com/dmc31a42/synocodectool-patch

@Fabian1601
Copy link
Author

Fabian1601 commented Apr 17, 2022 via email

@ja-vivanco
Copy link

You have to use Alex's script anyway, because even if hevec transcoding don't fully work, it still some quite common audio codecs that Videso Station native ffmepeg do not support, so my setup.

  1. Install Video Station
  2. Install community ffmpeg
  3. use synocodectool patch and apply the path to the all of 3 suggested location.
  4. use Alex Video Station patch

Option 1 Now, if you really need Hevc transcoding at high quality go to Video Station -> configuration -> Advanced and disable transcoding. Obvisly you CPU needs to be good enough to process the transcoding without hardware acceleration

Option 2 Just select medium quality in the configuration of the app, DS video for your phone or TV.

@findstevehere
Copy link

You have to use Alex's script anyway, because even if hevec transcoding don't fully work, it still some quite common audio codecs that Videso Station native ffmepeg do not support, so my setup.

  1. Install Video Station
  2. Install community ffmpeg
  3. use synocodectool patch and apply the path to the all of 3 suggested location.
  4. use Alex Video Station patch

Option 1 Now, if you really need Hevc transcoding at high quality go to Video Station -> configuration -> Advanced and disable transcoding. Obvisly you CPU needs to be good enough to process the transcoding without hardware acceleration

Option 2 Just select medium quality in the configuration of the app, DS video for your phone or TV.

@findstevehere
Copy link

huh? Alex patch gets error - "error" install ffmpeg"
what is synocodectool patch and 3 locations?

@AlexPresso
Copy link
Owner

@findstevehere could you run the following steps and send the output please:

  • Connect to your NAS using SSH (admin user required) (help)
  • Use the command sudo -i to switch to root user
  • ls -al /var/packages

@AlexPresso
Copy link
Owner

@findstevehere did you have the time to check my previous comment ?

@findstevehere
Copy link

hey thanks, will try later today and post.

@ja-vivanco
Copy link

hey thanks, will try later today and post.

huh? Alex patch gets error - "error" install ffmpeg" what is synocodectool patch and 3 locations?

Have you installed synocummunity ffmpeg before applying AlexPresso patch?

@AlexPresso
Copy link
Owner

@Fabian1601 Did you have the time to check if the problem is fixed by the CodecPack's patch ?

@Fabian1601
Copy link
Author

Hello alex,

Give me a moment and I will test it.
Unfortunately, it takes me a few hours to re-index the videos after reinstalling VS (it also checks all the files again when it gets the database).
I will report as soon as it is ready

@Fabian1601
Copy link
Author

So, I reset everything to original and ran your script over it.
Playback works great.
But offline transcoding aborts every time with "the network connection is unstable...".

@Fabian1601
Copy link
Author

@AlexPresso
Copy link
Owner

Moved to #36

@findstevehere
Copy link

@findstevehere could you run the following steps and send the output please:

  • Connect to your NAS using SSH (admin user required) (help)
  • Use the command sudo -i to switch to root user
  • ls -al /var/packages

I get no such file or directory

MacBook-Air:~ root# ls -al /var/packages
ls: /var/packages: No such file or directory
MacBook-Air:~ root#

@findstevehere
Copy link

@findstevehere could you run the following steps and send the output please:

  • Connect to your NAS using SSH (admin user required) (help)
  • Use the command sudo -i to switch to root user
  • ls -al /var/packages

I get no such file or directory

MacBook-Air:~ root# ls -al /var/packages ls: /var/packages: No such file or directory MacBook-Air:~ root#

also not showing any ffmpeg log files at all or directory

MacBook-Air:tmp root# ls -al | grep ffmpeg
MacBook-Air:tmp root# tail -200 ffmpeg.log
tail: ffmpeg.log: No such file or directory
MacBook-Air:tmp root#

@AlexPresso
Copy link
Owner

AlexPresso commented May 17, 2022

Please follow meticulously every step from this link: https://kb.synology.com/en-global/DSM/tutorial/How_to_login_to_DSM_with_root_permission_via_SSH_Telnet

The reason it's not working is because you're executing the patch on your Mac (like you are trying to patch your mac). But it's not what you want to do. You want to patch your Synology NAS, and to do that, you need to connect to your NAS (through SSH) before executing the command to run the patch. If you don't follow the above steps, the patch won't work at all.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants