[FFmpeg-user] attempting to transcode mpegts file to h264 mp4 using mpeg2_v4l2m2m and h264_v4l2m2m problem with ts is 1080i

Bob Rozelle rwrozelle at gmail.com
Fri Mar 12 19:29:37 EET 2021


I've setup a Raspberry 3b and using it for transcoding, for example:

ffmpeg -y -hwaccel auto -c:v mpeg2_v4l2m2m -i temp.ts -movflags faststart
-ignore_unknown -start_at_zero -sn -b:v 8M -maxrate 8M -bufsize 16M -c:v
h264_v4l2m2m -codec:a aac temp_v4l2m2m_v4l2m2m.mp4

This works great when the mpegts file is 720p.  However, if the input
mpegts is 1080i, the image appears to have the colors offset vertically.
I've attached a jpg grab as an example of what it looks like.

So, is this a user error (not putting in the correct command line
parameters)?  A hardware problem? A hardware driver problem?  A ffmpeg
problem?  A limitation and stop attempting to transcode 1080i with v4l2m2m ?

Any help is appreciated,
Bob
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 1080i.jpeg
Type: image/jpeg
Size: 207725 bytes
Desc: not available
URL: <https://ffmpeg.org/pipermail/ffmpeg-user/attachments/20210312/c992a623/attachment.jpeg>


More information about the ffmpeg-user mailing list