FAQ  •  Register  •  Login

Crop video

<<

residend

Serviio newbie

Posts: 6

Joined: Mon May 16, 2016 12:56 pm

Post Thu Jun 04, 2020 4:23 pm

Crop video

Hello!

Can serviio crop a video (black stripes above and below)?

I know how to do this using the command line in ffmpeg, but where to enter it in the profile?


offtop: how to play all videos in a row from dlna share ?

fnx.
<<

atc98092

User avatar

DLNA master

Posts: 4019

Joined: Fri Aug 17, 2012 10:22 pm

Location: Washington (the state)

Post Thu Jun 04, 2020 5:19 pm

Re: Crop video

No Serviio cannot alter the aspect ratio of the video. On occasion some displays/players might not process the aspect ratio correctly, and something can be applied via the profile. But that's only if the video needs transcoding in the first place. If you player doesn't require the video to be transcoded, then there's nothing that can be done from the Serviio end.

Continuous playback is a function of the player, not Serviio. Not all players can do so.
Dan

Samsung NU7100 4K TV, Samsung JU7100 4K TV, Sony BDP-S3500, Sharp 4K Roku TV, Insignia Roku TV, Roku Ultra, Premiere and Stick, Nvidia Shield, Yamaha RX-V583 AVR.
Primary server: Intel i5-6400, 8 gig ram, Windows 10 Pro, 22 TB hard drive space | Test server Windows 10 Pro, AMD Phenom II X4 965, 8 gig ram

HOWTO: Enable debug logging HOWTO: Identify media file contents
<<

residend

Serviio newbie

Posts: 6

Joined: Mon May 16, 2016 12:56 pm

Post Tue Jun 09, 2020 1:19 pm

Re: Crop video

Can I use in transcoding profile ffmpeg command? Or maby I can this in other config file?
<<

atc98092

User avatar

DLNA master

Posts: 4019

Joined: Fri Aug 17, 2012 10:22 pm

Location: Washington (the state)

Post Tue Jun 09, 2020 1:37 pm

Re: Crop video

residend wrote:Can I use in transcoding profile ffmpeg command? Or maby I can this in other config file?

The profiles cannot by themselves alter the FFMPEG command beyond what Serviio has programmed in. This support page shows everything that can be included in a transcoding portion of a profile. If it's not listed here, then you can't add anything additional. https://www.serviio.org/index.php?optio ... icle&id=24
Dan

Samsung NU7100 4K TV, Samsung JU7100 4K TV, Sony BDP-S3500, Sharp 4K Roku TV, Insignia Roku TV, Roku Ultra, Premiere and Stick, Nvidia Shield, Yamaha RX-V583 AVR.
Primary server: Intel i5-6400, 8 gig ram, Windows 10 Pro, 22 TB hard drive space | Test server Windows 10 Pro, AMD Phenom II X4 965, 8 gig ram

HOWTO: Enable debug logging HOWTO: Identify media file contents
<<

DenyAll

DLNA master

Posts: 2257

Joined: Fri Mar 08, 2013 11:16 pm

Location: Adelaide, Australia

Post Sun Jun 21, 2020 8:10 am

Re: Crop video

I think the OP is discussing letterboxing (black bars above and below the video) and yes, Serviio can support it.

If you add DAR="16:9" to any standard transcoding block, Serviio will add black bars to the top and bottom for any source video which has a aspect ratio that is higher than 16:9. For example:

  Code:
<Video targetContainer="mpegts" targetVCodec="mpeg2video" targetACodec="ac3" aBitrate="384" DAR="16:9" maxWidth="1920" maxHeight="1080">
   <Matches container="*" widthGreaterThan="1920" />
   <Matches container="mp4" vCodec="h264" profile="high" levelGreaterThan="3.2" />
   <Matches container="matroska" />
   <Matches container="*" vCodec="h265" />
</Video>
will transcode any video matched any the "Matches" statements and add black bars top and bottom if needed to maintain the original aspect ratio.

ps. Your TV may undo this if it is set to stretch or pan modes.
DenyAll
Panasonic Viera FX800A | Panasonic Viera CS610A | Sony PS4 | Sony PS3 | Panasonic DMP-BD79 | Yamaha RX-V500D | iPad | Windows 10 | Serviio 1.10.1 Pro
WinHelper | MediaInfo

Beta Tester, Moderator
Please do not PM me for support as any solution cannot be shared with others.

Return to Transcoding

Who is online

Users browsing this forum: No registered users and 3 guests

cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software for PTF.