Can I use a Synology NAS to encode video with FFmpeg?
I record a few hours of video footage every day, and then encode it on my computer which takes many, many hours. The CPU usage goes up to a level where I can't use my computer with ease.
Since I have a Synology DS415+ NAS
with an Intel Quad-Core Processor @ 2.4 GHz, I got the idea that perhaps it could do both the storage and encoding of my videos.
I use FFmpeg
, and have these questions:
- Is it possible to run FFmpeg on the Synology NAS via a Terminal SSH service?
- If so, where do I place the binary/install it?
- Can I also install codecs for use, such as
x265
(HEVC)? - How do I navigate to the folder where the videos are stored in SSH so that I can run my FFmpeg script?
ffmpeg nas synology
add a comment |
I record a few hours of video footage every day, and then encode it on my computer which takes many, many hours. The CPU usage goes up to a level where I can't use my computer with ease.
Since I have a Synology DS415+ NAS
with an Intel Quad-Core Processor @ 2.4 GHz, I got the idea that perhaps it could do both the storage and encoding of my videos.
I use FFmpeg
, and have these questions:
- Is it possible to run FFmpeg on the Synology NAS via a Terminal SSH service?
- If so, where do I place the binary/install it?
- Can I also install codecs for use, such as
x265
(HEVC)? - How do I navigate to the folder where the videos are stored in SSH so that I can run my FFmpeg script?
ffmpeg nas synology
1
That's possible. See forum.synology.com/enu/viewtopic.php?t=64609 and serverfault.com/questions/69128/…
– sawdust
Dec 4 '15 at 20:02
I've seen at least one modifiedffmpeg
binary allegedly provided by Synology, but it violates the GPL, and I'm unsure what modifications they've made (naturally they didn't provide any patches to FFmpeg to share due to the typical corporate mindset). However, I don't see any reason why you couldn't compile it yourself.
– llogan
Dec 4 '15 at 20:48
Just for reference, I successfully used the utility in the first link ("PoisonConvert") to encode videos tox264
on my Synology DS415. It was incredibly slow however, and hardly worth the effort on that particular device's CPU.
– Winterflags
Oct 17 '16 at 13:34
Synology Diskstations have low power CPUs so it lasts very long to convert videos with them. Here you can see in the column "PhotoStation" how long it took to convert photos and videos: synology-wiki.de/index.php/… compared to other models. But finally a Rackstation or QNAP has much more performance.
– mgutt
Jan 19 '17 at 14:20
add a comment |
I record a few hours of video footage every day, and then encode it on my computer which takes many, many hours. The CPU usage goes up to a level where I can't use my computer with ease.
Since I have a Synology DS415+ NAS
with an Intel Quad-Core Processor @ 2.4 GHz, I got the idea that perhaps it could do both the storage and encoding of my videos.
I use FFmpeg
, and have these questions:
- Is it possible to run FFmpeg on the Synology NAS via a Terminal SSH service?
- If so, where do I place the binary/install it?
- Can I also install codecs for use, such as
x265
(HEVC)? - How do I navigate to the folder where the videos are stored in SSH so that I can run my FFmpeg script?
ffmpeg nas synology
I record a few hours of video footage every day, and then encode it on my computer which takes many, many hours. The CPU usage goes up to a level where I can't use my computer with ease.
Since I have a Synology DS415+ NAS
with an Intel Quad-Core Processor @ 2.4 GHz, I got the idea that perhaps it could do both the storage and encoding of my videos.
I use FFmpeg
, and have these questions:
- Is it possible to run FFmpeg on the Synology NAS via a Terminal SSH service?
- If so, where do I place the binary/install it?
- Can I also install codecs for use, such as
x265
(HEVC)? - How do I navigate to the folder where the videos are stored in SSH so that I can run my FFmpeg script?
ffmpeg nas synology
ffmpeg nas synology
edited Sep 4 '16 at 13:25
Winterflags
asked Dec 4 '15 at 19:03
WinterflagsWinterflags
3831830
3831830
1
That's possible. See forum.synology.com/enu/viewtopic.php?t=64609 and serverfault.com/questions/69128/…
– sawdust
Dec 4 '15 at 20:02
I've seen at least one modifiedffmpeg
binary allegedly provided by Synology, but it violates the GPL, and I'm unsure what modifications they've made (naturally they didn't provide any patches to FFmpeg to share due to the typical corporate mindset). However, I don't see any reason why you couldn't compile it yourself.
– llogan
Dec 4 '15 at 20:48
Just for reference, I successfully used the utility in the first link ("PoisonConvert") to encode videos tox264
on my Synology DS415. It was incredibly slow however, and hardly worth the effort on that particular device's CPU.
– Winterflags
Oct 17 '16 at 13:34
Synology Diskstations have low power CPUs so it lasts very long to convert videos with them. Here you can see in the column "PhotoStation" how long it took to convert photos and videos: synology-wiki.de/index.php/… compared to other models. But finally a Rackstation or QNAP has much more performance.
– mgutt
Jan 19 '17 at 14:20
add a comment |
1
That's possible. See forum.synology.com/enu/viewtopic.php?t=64609 and serverfault.com/questions/69128/…
– sawdust
Dec 4 '15 at 20:02
I've seen at least one modifiedffmpeg
binary allegedly provided by Synology, but it violates the GPL, and I'm unsure what modifications they've made (naturally they didn't provide any patches to FFmpeg to share due to the typical corporate mindset). However, I don't see any reason why you couldn't compile it yourself.
– llogan
Dec 4 '15 at 20:48
Just for reference, I successfully used the utility in the first link ("PoisonConvert") to encode videos tox264
on my Synology DS415. It was incredibly slow however, and hardly worth the effort on that particular device's CPU.
– Winterflags
Oct 17 '16 at 13:34
Synology Diskstations have low power CPUs so it lasts very long to convert videos with them. Here you can see in the column "PhotoStation" how long it took to convert photos and videos: synology-wiki.de/index.php/… compared to other models. But finally a Rackstation or QNAP has much more performance.
– mgutt
Jan 19 '17 at 14:20
1
1
That's possible. See forum.synology.com/enu/viewtopic.php?t=64609 and serverfault.com/questions/69128/…
– sawdust
Dec 4 '15 at 20:02
That's possible. See forum.synology.com/enu/viewtopic.php?t=64609 and serverfault.com/questions/69128/…
– sawdust
Dec 4 '15 at 20:02
I've seen at least one modified
ffmpeg
binary allegedly provided by Synology, but it violates the GPL, and I'm unsure what modifications they've made (naturally they didn't provide any patches to FFmpeg to share due to the typical corporate mindset). However, I don't see any reason why you couldn't compile it yourself.– llogan
Dec 4 '15 at 20:48
I've seen at least one modified
ffmpeg
binary allegedly provided by Synology, but it violates the GPL, and I'm unsure what modifications they've made (naturally they didn't provide any patches to FFmpeg to share due to the typical corporate mindset). However, I don't see any reason why you couldn't compile it yourself.– llogan
Dec 4 '15 at 20:48
Just for reference, I successfully used the utility in the first link ("PoisonConvert") to encode videos to
x264
on my Synology DS415. It was incredibly slow however, and hardly worth the effort on that particular device's CPU.– Winterflags
Oct 17 '16 at 13:34
Just for reference, I successfully used the utility in the first link ("PoisonConvert") to encode videos to
x264
on my Synology DS415. It was incredibly slow however, and hardly worth the effort on that particular device's CPU.– Winterflags
Oct 17 '16 at 13:34
Synology Diskstations have low power CPUs so it lasts very long to convert videos with them. Here you can see in the column "PhotoStation" how long it took to convert photos and videos: synology-wiki.de/index.php/… compared to other models. But finally a Rackstation or QNAP has much more performance.
– mgutt
Jan 19 '17 at 14:20
Synology Diskstations have low power CPUs so it lasts very long to convert videos with them. Here you can see in the column "PhotoStation" how long it took to convert photos and videos: synology-wiki.de/index.php/… compared to other models. But finally a Rackstation or QNAP has much more performance.
– mgutt
Jan 19 '17 at 14:20
add a comment |
1 Answer
1
active
oldest
votes
Here's some info from 2018 on the Synology forum
I found out to make use of hardware acceleration (vaapi) you need to
pass in certain flag explicitly for it work. Also I only got it
working after using root access, probably some permission issue there.
Anyway I got it work with below commands, you may modify the in/out
file path and give it a shot:
# root access
sudo -i
# using the same ffmpeg-vaapi in DSM6 video station, encode at 3Mbps VBR
/var/packages/VideoStation/target/bin/ffmpeg-vaapi -vaapi_device /dev/dri/renderD128 -i input.mp4 -vf 'format=nv12,hwupload' -c:v h264_vaapi -b:v 3M output.mp4
add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "3"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1009240%2fcan-i-use-a-synology-nas-to-encode-video-with-ffmpeg%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
Here's some info from 2018 on the Synology forum
I found out to make use of hardware acceleration (vaapi) you need to
pass in certain flag explicitly for it work. Also I only got it
working after using root access, probably some permission issue there.
Anyway I got it work with below commands, you may modify the in/out
file path and give it a shot:
# root access
sudo -i
# using the same ffmpeg-vaapi in DSM6 video station, encode at 3Mbps VBR
/var/packages/VideoStation/target/bin/ffmpeg-vaapi -vaapi_device /dev/dri/renderD128 -i input.mp4 -vf 'format=nv12,hwupload' -c:v h264_vaapi -b:v 3M output.mp4
add a comment |
Here's some info from 2018 on the Synology forum
I found out to make use of hardware acceleration (vaapi) you need to
pass in certain flag explicitly for it work. Also I only got it
working after using root access, probably some permission issue there.
Anyway I got it work with below commands, you may modify the in/out
file path and give it a shot:
# root access
sudo -i
# using the same ffmpeg-vaapi in DSM6 video station, encode at 3Mbps VBR
/var/packages/VideoStation/target/bin/ffmpeg-vaapi -vaapi_device /dev/dri/renderD128 -i input.mp4 -vf 'format=nv12,hwupload' -c:v h264_vaapi -b:v 3M output.mp4
add a comment |
Here's some info from 2018 on the Synology forum
I found out to make use of hardware acceleration (vaapi) you need to
pass in certain flag explicitly for it work. Also I only got it
working after using root access, probably some permission issue there.
Anyway I got it work with below commands, you may modify the in/out
file path and give it a shot:
# root access
sudo -i
# using the same ffmpeg-vaapi in DSM6 video station, encode at 3Mbps VBR
/var/packages/VideoStation/target/bin/ffmpeg-vaapi -vaapi_device /dev/dri/renderD128 -i input.mp4 -vf 'format=nv12,hwupload' -c:v h264_vaapi -b:v 3M output.mp4
Here's some info from 2018 on the Synology forum
I found out to make use of hardware acceleration (vaapi) you need to
pass in certain flag explicitly for it work. Also I only got it
working after using root access, probably some permission issue there.
Anyway I got it work with below commands, you may modify the in/out
file path and give it a shot:
# root access
sudo -i
# using the same ffmpeg-vaapi in DSM6 video station, encode at 3Mbps VBR
/var/packages/VideoStation/target/bin/ffmpeg-vaapi -vaapi_device /dev/dri/renderD128 -i input.mp4 -vf 'format=nv12,hwupload' -c:v h264_vaapi -b:v 3M output.mp4
answered Jan 23 at 19:44
hamx0rhamx0r
1112
1112
add a comment |
add a comment |
Thanks for contributing an answer to Super User!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1009240%2fcan-i-use-a-synology-nas-to-encode-video-with-ffmpeg%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
1
That's possible. See forum.synology.com/enu/viewtopic.php?t=64609 and serverfault.com/questions/69128/…
– sawdust
Dec 4 '15 at 20:02
I've seen at least one modified
ffmpeg
binary allegedly provided by Synology, but it violates the GPL, and I'm unsure what modifications they've made (naturally they didn't provide any patches to FFmpeg to share due to the typical corporate mindset). However, I don't see any reason why you couldn't compile it yourself.– llogan
Dec 4 '15 at 20:48
Just for reference, I successfully used the utility in the first link ("PoisonConvert") to encode videos to
x264
on my Synology DS415. It was incredibly slow however, and hardly worth the effort on that particular device's CPU.– Winterflags
Oct 17 '16 at 13:34
Synology Diskstations have low power CPUs so it lasts very long to convert videos with them. Here you can see in the column "PhotoStation" how long it took to convert photos and videos: synology-wiki.de/index.php/… compared to other models. But finally a Rackstation or QNAP has much more performance.
– mgutt
Jan 19 '17 at 14:20