Local Content (cell phone mp4) won't playback if recorded in portrait

Just started using Channels so may be doing something wrong.

My local content (recorded on cell phone) won't playback if it was recorded in portrait mode but will play back if it was recorded in landscape mode. Same phone, same day few minutes apart

Here's the log of a successful playback (lanscape) and an unsuccessful one (portrait).

Any suggestions?

2022/09/01 22:16:41.281361 [ENC] Next segment to pre-encode of 18 is 15.497457963s from the last request of 3
2022/09/01 22:16:41.281906 [ENC] Starting encoder for 20210924_125444.mp4 in /media/mint/Media/channels-dvr/Streaming/file65-ip192.168.0.5-151155574/encoder-18-4165217133 at 18 (17.563786) (encoder=h264_vaapi, resolution=1080, deinterlacer=hardware, bitrate=9844, segment_size=0.01)
2022/09/01 22:16:41.885350 [ENC] Encoder stopped for 20210924_125444.mp4 in /media/mint/Media/channels-dvr/Streaming/file65-ip192.168.0.5-151155574/encoder-18-4165217133 after starting from 18 without encoding any segments
2022/09/01 22:16:41.885764 [ENC] Starting encoder for 20210924_125444.mp4 in /media/mint/Media/channels-dvr/Streaming/file65-ip192.168.0.5-151155574/encoder-18-211047799 at 18 (17.563786) (encoder=h264_vaapi, resolution=1080, deinterlacer=hardware, bitrate=9844, segment_size=0.01)
2022/09/01 22:16:42.481809 [ENC] Encoder stopped for 20210924_125444.mp4 in /media/mint/Media/channels-dvr/Streaming/file65-ip192.168.0.5-151155574/encoder-18-211047799 after starting from 18 without encoding any segments. Marked segment as failed.
2022/09/01 22:17:00.445550 [ENC] Next segment to pre-encode of 7 is 7.002148253s from the last request of 0
2022/09/01 22:17:00.446297 [ENC] Starting encoder for 20210924_130742.mp4 in /media/mint/Media/channels-dvr/Streaming/file66-ip192.168.0.5-3543062880/encoder-7-4034064052 at 7 (6.001841) (encoder=h264_vaapi, resolution=1080, deinterlacer=hardware, bitrate=9844, segment_size=0.01)
2022/09/01 22:17:00.492022 [HLS] ffmpeg: file66-ip192.168.0.5: Impossible to convert between the formats supported by the filter 'graph 0 input from stream 0:0' and the filter 'auto_scaler_0'
2022/09/01 22:17:00.492076 [HLS] ffmpeg: file66-ip192.168.0.5: Error reinitializing filters!
2022/09/01 22:17:00.492085 [HLS] ffmpeg: file66-ip192.168.0.5: Failed to inject frame into filter network: Function not implemented
2022/09/01 22:17:00.492092 [HLS] ffmpeg: file66-ip192.168.0.5: Error while processing the decoded data for stream #0:0
2022/09/01 22:17:00.645495 [ENC] Encoder stopped for 20210924_130742.mp4 in /media/mint/Media/channels-dvr/Streaming/file66-ip192.168.0.5-3543062880/encoder-7-4034064052 after starting from 7 without encoding any segments
2022/09/01 22:17:00.645627 [ENC] Next segment to pre-encode of 7 is 7.002148253s from the last request of 0
2022/09/01 22:17:00.646296 [ENC] Starting encoder for 20210924_130742.mp4 in /media/mint/Media/channels-dvr/Streaming/file66-ip192.168.0.5-3543062880/encoder-7-3976229316 at 7 (6.001841) (encoder=h264_vaapi, resolution=1080, deinterlacer=hardware, bitrate=9844, segment_size=0.01)
2022/09/01 22:17:00.691789 [HLS] ffmpeg: file66-ip192.168.0.5: Impossible to convert between the formats supported by the filter 'graph 0 input from stream 0:0' and the filter 'auto_scaler_0'
2022/09/01 22:17:00.693081 [HLS] ffmpeg: file66-ip192.168.0.5: Error reinitializing filters!
2022/09/01 22:17:00.693100 [HLS] ffmpeg: file66-ip192.168.0.5: Failed to inject frame into filter network: Function not implemented
2022/09/01 22:17:00.693105 [HLS] ffmpeg: file66-ip192.168.0.5: Error while processing the decoded data for stream #0:0
2022/09/01 22:17:00.845651 [ENC] Encoder stopped for 20210924_130742.mp4 in /media/mint/Media/channels-dvr/Streaming/file66-ip192.168.0.5-3543062880/encoder-7-3976229316 after starting from 7 without encoding any segments. Marked segment as failed.
2022/09/01 22:17:00.845780 [ENC] Next segment to pre-encode of 8 is 8.002455146s from the last request of 0
2022/09/01 22:17:00.846403 [ENC] Starting encoder for 20210924_130742.mp4 in /media/mint/Media/channels-dvr/Streaming/file66-ip192.168.0.5-3543062880/encoder-8-2712745986 at 8 (7.002148) (encoder=h264_vaapi, resolution=1080, deinterlacer=hardware, bitrate=9844, segment_size=0.01)

Try changing from hardware deinterlacer to linear

While this may let them play, in my experience they will play sideways so it’s not really a fix. I have mentioned this problem with portrait mode before with no response from the devs

Thanks that fixed it. Mine played correctly, at least the few I checked.

Do you know if that would have any detrimental effect on the server performance?

I run Channels on a Intel I5-3470s running Linux.

I don’t think so but my server is pretty overkill, linear must be used in my setup in order to remote stream my atsc3 hdhr4k channels. I run an i5-10400 Linux and didn’t notice any difference.

Curious what your client is? My shield tv has them sideways so maybe it’s a android issue

Onn Android TV box from walmart and apple tv. Although I didn't try on apple with deinterlacer on hardware.

1 Like

I'm working on a fix for this with the vaapi hardware encoder. We've identified the underlying issue that is prevent it from working.

The latest DVR pre-release now can handle iPhone recordings at any orientation with the vaapi hardware encoder.