triangle-stream
Posts: 3
Joined: Wed Aug 14, 2019 11:20 am

Video files not played/freezed when forcing 1080i50 - Raspberry Pi 4

Wed Aug 14, 2019 11:40 am

Hi there!

I'm facing an endless problem with my Raspberry Pi 4 (1GB) (I also have a Raspi 3 B+).
Both of them are "forced" to work in 1080i50 because the right CEA mode 20 was not available under raspi-config (no interlaced mode was available).
Both of the raspi are connected to a video switcher (working on 1080i50) via HDMI ports; both of them with the same OS version (Buster, last update).

The problem is that, on the Raspi 4, when i try to play a video file (.mp4, .flv, RTMP, 720p, 1080p, 1080i, everything) with omxplayer or ffplay, the video freezes on the first frame until i stop the process (ctrl+c). The only way to achieve a different result was playing a 1080i50 RTMP stream (wich i was able to see clean on other devices): in this case i have a video that plays at something like 1fps.

With the same setup, and same video files and players, the Raspi 3 B+ works really good without any problem.

On te Raspi 4 i tried to: disable GL, disable 4K60 and any other advice i found on this forum and also on github etc. Nothing worked for me.

At this point i tried to clone the SD card (same model, same size) from Raspi 3 B+ to Raspi4: everything worked good. But the video player in HDMI forced mode does not work. Same problems.

Does anyone know this issue? I have no problems on Raspi 4 when i set a resolution from the raspi-config , and every video file is played properly, but i need that the raspi MUST be on 1080i50. Why the same thing, same os, same config, same everything, works differently on Raspi 4?


Thanks for any kind of help! :)
Last edited by triangle-stream on Wed Aug 14, 2019 1:01 pm, edited 1 time in total.

dom
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 5664
Joined: Wed Aug 17, 2011 7:41 pm
Location: Cambridge

Re: Video files not played/freezed when forcing 1080i50 - Raspberry Pi 4

Wed Aug 14, 2019 12:18 pm

Can you post what you've added to config.txt to force the reolution and what you type in to launch omxplayer (or ffmplay)
Ideally reproduce the problem with a publicly available sample video file.

triangle-stream
Posts: 3
Joined: Wed Aug 14, 2019 11:20 am

Re: Video files not played/freezed when forcing 1080i50 - Raspberry Pi 4

Wed Aug 14, 2019 12:29 pm

Hello Dom, and thank you for your reply!

The config.txt file has this entries:

Code: Select all

disable_overscan=1
hdmi_force_hotplug=1
hdmi_group=1
hdmi_mode=20
dtparam=audio=on
max_framebuffers=2
[all]
enable_uart=0
gpu_mem=256
I tried to play a .mp4 file hosted on a CDN - available at http://cdn.mainstreaming.tv/vodprogress ... 128000.mp4

The commands used for playing the file are simply:
(FFMPEG)

Code: Select all

 ffplay http://cdn.mainstreaming.tv/vodprogressive/TiRcOn3-h264_main_42_720_1280_2300000_aac_128000.mp4 
(OMXPLAYER)

Code: Select all

 omxplayer http://cdn.mainstreaming.tv/vodprogressive/TiRcOn3-h264_main_42_720_1280_2300000_aac_128000.mp4 
and

Code: Select all

 omxplayer -o hdmihttp://cdn.mainstreaming.tv/vodprogressive/TiRcOn3-h264_main_42_720_1280_2300000_aac_128000.mp4 
On FFMPEG side, video is not played at all, and ffplay is stuck after the configuration infos; when playing it with omxplayer, video plays at 1-2 fps.

dom
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 5664
Joined: Wed Aug 17, 2011 7:41 pm
Location: Cambridge

Re: Video files not played/freezed when forcing 1080i50 - Raspberry Pi 4

Wed Aug 14, 2019 1:34 pm

Are you saying your video switcher doesn't support 1080p50/60 ?

I can reproduce the omxplayer issue, but running on Pi4 without fkms is legacy use and isn't high on the priority list.
Getting fkms to support interlace might be an option, but I'm not sure how much support linux generally has for interlaced output.

Probably best to create an issue here: https://github.com/raspberrypi/firmware/issues so the right devs will see it.

I feel there are two issues here.
Something interferes with omxplayer output in non-fkms interlaced modes on pi4 (possibly incorrect vsync interrupts).
FKMS doesn't support interlaced modes.

triangle-stream
Posts: 3
Joined: Wed Aug 14, 2019 11:20 am

Re: Video files not played/freezed when forcing 1080i50 - Raspberry Pi 4

Thu Aug 15, 2019 9:53 am

Thank you Dom.

I'm not saying my switcher doesn't support 1080p50 or 60, but the 1080i50 format is the only one in common with any other device (the switcher need all the setup is on the same format).

I've added this issue on github, thank you for your advice. Is there anything i can do in order to use my raspi4 in this setup and with this configuration? I feel disappointed because the older version, 3 B+, is working like a charm while the raspi4 (that is also more expensive) can't be used.

I hope someone will find a solution for this issue, in the meantime i'll buy another raspi 3 b+ :)

matias
Posts: 10
Joined: Mon Jun 11, 2012 1:08 pm

Re: Video files not played/freezed when forcing 1080i50 - Raspberry Pi 4

Sun Sep 29, 2019 6:09 am

The lack of interlaced modes in the new driver is a very severe problem from broadcast television point of view. I'm opting for adding interlaced PAL and NTSC modes too.

Return to “Troubleshooting”