Raspberry Pi 4 FFMPEG is not working
Hello. This is my first time on ffmpeg mailinglist, so i'm in deep water.... I just got my Raspberry Pi 4 (RPi4) and i'm trying to encode with FFMPEG. I'm using "Buster" OS I already have a RPi3 with FFMPEG and it works fine. (OS = Stretch). I have downloaded all dependicies and ffmpeg is working So I have compiled FFMPEG with the exact same setting in configure:
|configuration: --arch=armel --target-os=linux --enable-gpl --enable-omx --enable-omx-rpi --enable-nonfree --enable-mmal|
|I have then used the same test file 'test.ts' containing 3 tracks: 0:0 video 264, 0:1 audio mp2, 0:3 teletext. | |I have startet the encoder with this commandline:
||ffmpeg -fflags +igndts -ss 00:01:00 -c:v h264_mmal -i 'test.ts' -to 00:05:00 -map 0:0 -map 0:1 -c:v h264_omx -b:v 1500k -flags +global_header -c:a:0 copy 'test.mp4'|
|But no mather what i do FFMPEG is hanging right after the first encoder line and the sreen looks like this:| |[h264 @ 0x2d950e0] decode_slice_header error [h264 @ 0x2d950e0] no frame! [mpegts @ 0x2d904b0] PES packet size mismatch Last message repeated 1 times Input #0, mpegts, from 'test.ts': Duration: 00:11:20.09, start: 789.536711, bitrate: 11924 kb/s Program 101 Metadata: service_name : DR1 service_provider: YouSee Stream #0:0[0x456]: Video: h264 (High) ([27][0][0][0] / 0x001B), yuv420p(tv, bt709, top first), 1920x1080 [SAR 1:1 DAR 16:9], 25 fps, 25 tbr, 90k tbn, 50 tbc Stream #0:1[0x457](dan): Audio: mp2 ([3][0][0][0] / 0x0003), 48000 Hz, stereo, fltp, 384 kb/s Stream #0:2[0x458](dan): Subtitle: dvb_teletext ([6][0][0][0] / 0x0006) File 'test.mp4' already exists. Overwrite ? [y/N] y Stream mapping: Stream #0:0 -> #0:0 (h264 (h264_mmal) -> h264 (h264_omx)) Stream #0:1 -> #0:1 (copy) Press [q] to stop, [?] for help [h264_mmal @ 0x2e097b0] Did not get output frame from MMAL. Error while decoding stream #0:0: Unknown error occurred [h264_mmal @ 0x2e097b0] Changing output format. [h264_omx @ 0x2e28660] Using OMX.broadcom.video_encode:32:22.77 bitrate= -0.0kbits/s speed=N/A Output #0, mp4, to 'test.mp4': Metadata: encoder : Lavf58.28.101 Stream #0:0: Video: h264 (h264_omx) (avc1 / 0x31637661), yuv420p, 1920x1080 [SAR 1:1 DAR 16:9], q=2-31, 1500 kb/s, 25 fps, 12800 tbn, 25 tbc Metadata: encoder : Lavc58.53.101 h264_omx Stream #0:1(dan): Audio: mp2 (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 384 kb/s [mp4 @ 0x2dcc330] Non-monotonous DTS in output stream 0:0; previous: 0, current: 0; changing to 1. This may result in incorrect timestamps in the output file. Fame= 36 fps= 24 q=-0.0 size= 0kB time=00:00:01.32 bitrate= 0.3kbits/s dup=34 drop=0 speed=0.862x I can't figure this out as it is working on RPi3. I have turned off 4K and analog output and that did't make a change. Also tried with out the flags. So is it me doing something wrong or is it because, that RPi4 has a new Broadcom Video chip and FFMPEG is not ready to use it yet?| |Best ragards RAJensen | ||
participants (1)
-
Robin A. Jensen