With
ffmpeg -vcodec h264_v4l2m2m -i
http://192.168.1.50:8001/+1:0:19:401:4: ... 0000:0:0:0: -vcodec mpeg4 -s 320x240 /tmp/test.mp4
log:
Input #0, mpegts, from '
http://192.168.1.50:8001/+1:0:19:401:4: ... 0000:0:0:0:':
Duration: N/A, start: 13552.700422, bitrate: N/A
Program 1025
Stream #0:0[0x78]: 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[0x82](fra): Audio: eac3 ([6][0][0][0] / 0x0006), 48000 Hz, 5.1(side), fltp, 192 kb/s
Stream #0:2[0x83](fra): Audio: eac3 ([6][0][0][0] / 0x0006), 48000 Hz, stereo, fltp, 96 kb/s (visual impaired)
Stream #0:3[0x84](qaa): Audio: eac3 ([6][0][0][0] / 0x0006), 48000 Hz, stereo, fltp, 128 kb/s
Stream #0:4[0x8c](fra): Subtitle: dvb_subtitle ([6][0][0][0] / 0x0006) (hearing impaired)
Stream #0:5[0x8d](fra): Subtitle: dvb_subtitle ([6][0][0][0] / 0x0006)
Stream #0:6[0xaa]: Unknown: none ([5][0][0][0] / 0x0005)
Stream #0:7[0xab]: Unknown: none ([11][0][0][0] / 0x000B)
Program 1026
Program 1031
Program 1045
Program 1046
File '/tmp/test.mp4' already exists. Overwrite ? [y/N] y
[h264_v4l2m2m @ 0x30374a0] driver 'meson-vdec' on card 'AMLogic Video Decoder'
[h264_v4l2m2m @ 0x30374a0] Using device /dev/video0
[h264_v4l2m2m @ 0x30374a0] driver 'meson-vdec' on card 'AMLogic Video Decoder'
Stream mapping:
Stream #0:0 -> #0:0 (h264 (h264_v4l2m2m) -> mpeg4 (native))
Stream #0:1 -> #0:1 (eac3 (native) -> aac (native))
Press [q] to stop, [?] for help
[aac @ 0x30324a0] Using a PCE to encode channel layout
Output #0, mp4, to '/tmp/test.mp4':
Metadata:
encoder : Lavf58.12.100
Stream #0:0: Video: mpeg4 (mp4v / 0x7634706D), yuv420p, 320x240, q=2-31, 200 kb/s, 25 fps, 12800 tbn, 25 tbc
Metadata:
encoder : Lavc58.18.100 mpeg4
Side data:
cpb: bitrate max/min/avg: 0/0/200000 buffer size: 0 vbv_delay: -1
Stream #0:1(fra): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, 5.1(side), fltp, 394 kb/s
Metadata:
encoder : Lavc58.18.100 aac
frame= 12 fps=0.0 q=2.0 size= 0kB time=00:00:00.81 bitrate= 0.4kbits/s dup=11 drop=0 speed=0.848x
and freeze, ffmpeg is always up in memory but don't mouve ( wotks with vcodec h264 )
with files :
https://download.blender.org/durian/mov ... 0.720p.mkv
ffmpeg -vcodec h264_v4l2m2m -i Sintel.2010.720p.mkv -f rawvideo output_nv12
log:
Stream mapping:
Stream #0:0 -> #0:0 (h264 (h264_v4l2m2m) -> rawvideo (native))
Press [q] to stop, [?] for help
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
[h264_v4l2m2m @ 0x1e4a5e0] capture: NM12 20 buffers initialized: 1280x0544, sizeimage 00720896, bytesperline 00001280
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
Last message repeated 25 times
detected 4 logical cores
[graph 0 input from stream 0:0 @ 0x1e41100] Setting 'video_size' to value '1280x544'
[graph 0 input from stream 0:0 @ 0x1e41100] Setting 'pix_fmt' to value '23'
[graph 0 input from stream 0:0 @ 0x1e41100] Setting 'time_base' to value '1/1000'
[graph 0 input from stream 0:0 @ 0x1e41100] Setting 'pixel_aspect' to value '1/1'
[graph 0 input from stream 0:0 @ 0x1e41100] Setting 'sws_param' to value 'flags=2'
[graph 0 input from stream 0:0 @ 0x1e41100] Setting 'frame_rate' to value '24/1'
[graph 0 input from stream 0:0 @ 0x1e41100] w:1280 h:544 pixfmt:nv12 tb:1/1000 fr:24/1 sar:1/1 sws_param:flags=2
[AVFilterGraph @ 0x1e9bff0] query_formats: 3 queried, 2 merged, 0 already done, 0 delayed
Output #0, rawvideo, to 'output_nv12':
Metadata:
encoder : Lavf58.12.100
Chapter #0:0: start 0.000000, end 103.125000
Metadata:
title : Chapter 01
Chapter #0:1: start 103.125000, end 148.667000
Metadata:
title : Chapter 02
Chapter #0:2: start 148.667000, end 349.792000
Metadata:
title : Chapter 03
Chapter #0:3: start 349.792000, end 437.208000
Metadata:
title : Chapter 04
Chapter #0:4: start 437.208000, end 472.075000
Metadata:
title : Chapter 05
Chapter #0:5: start 472.075000, end 678.833000
Metadata:
title : Chapter 06
Chapter #0:6: start 678.833000, end 744.083000
Metadata:
title : Chapter 07
Chapter #0:7: start 744.083000, end 888.032000
Metadata:
title : Chapter 08
Stream #0:0(eng), 0, 1/24: Video: rawvideo, 1 reference frame (NV12 / 0x3231564E), nv12(left), 1280x544 [SAR 1:1 DAR 40:17], 0/1, q=2-31, 200540 kb/s, 24 fps, 24 tbn, 24 tbc
Metadata:
encoder : Lavc58.18.100 rawvideo
Clipping frame in rate conversion by 0.000008
The same ffmpeg freeze ( wotks with vcodec h264 )