Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- pi@raspberrypi ~/git/omxtx $ sudo omxtx -x -r 480x320 /home/pi/test10.ts /home/pi/test10m.mkv
- Input #0, mpegts, from '/home/pi/test10.ts':
- Duration: 00:01:39.81, start: 0.254489, bitrate: 26053 kb/s
- Program 1
- Stream #0.0[0x810]: Video: mpeg2video (Main), yuv420p, 1440x1080 [PAR 4:3 DAR 16:9], 25000 kb/s, 29.97 fps, 29.97 tbr, 90k tbn, 59.94 tbc
- Stream #0.1[0x814]: Audio: mp2, 48000 Hz, 2 channels, s16p, 384 kb/s
- Found a video at index 0
- Frame size: 1440x1080
- Found stream 0, context 0x1dc5440
- Found stream 1, context 0x1dc7340
- OMX_Init() completed at 1399.
- OMX_GetHandle(&dec, DECNAME, &ctx, &decevents) completed at 1400.
- OMX_GetHandle(&enc, ENCNAME, &ctx, &encevents) completed at 1401.
- OMX_GetHandle(&rsz, RSZNAME, &ctx, &rszevents) completed at 1402.
- OMX_GetHandle(&dei, DEINAME, &ctx, &genevents) completed at 1403.
- Obtained handles. 0x1dc3ae0 decode, 0x1dc7b30 encode
- OMX_GetParameter(dec, OMX_IndexParamVideoInit, porttype) completed at 1412.
- Found 2 ports, starting at 130 (82) on decoder
- OMX_GetParameter(enc, OMX_IndexParamVideoInit, porttype) completed at 1417.
- Found 2 ports, starting at 200 (c8) on encoder
- OMX_GetParameter(rsz, OMX_IndexParamImageInit, porttype) completed at 1422.
- Found 2 ports, starting at 60(3c) on resizer
- OMX_SendCommand(dec, OMX_CommandPortDisable, PORT_DEC, NULL) completed at 1427.
- OMX_SendCommand(dec, OMX_CommandPortDisable, PORT_DEC+1, NULL) completed at 1428.
- OMX_SendCommand(enc, OMX_CommandPortDisable, PORT_ENC, NULL) completed at 1429.
- OMX_SendCommand(enc, OMX_CommandPortDisable, PORT_ENC+1, NULL) completed at 1430.
- OMX_SendCommand(rsz, OMX_CommandPortDisable, PORT_RSZ, NULL) completed at 1433.
- OMX_SendCommand(rsz, OMX_CommandPortDisable, PORT_RSZ+1, NULL) completed at 1435.
- OMX_GetParameter(dec, OMX_IndexParamPortDefinition, portdef) completed at 1439.
- Mapping codec ID 2 (2)
- Mapping codec 2 to 2
- Mapping codec ID 2 (2)
- OMX_SetParameter(dec, OMX_IndexParamPortDefinition, portdef) completed at 1450.
- Codecs supported:
- Index: 0
- Codec: 0 (0)
- Colour: 0
- Framerate: 0 (0.000000)
- Levels supported:
- Index: 0
- Profile: 1
- Level: 256
- Levels supported:
- Index: 1
- Profile: 32768
- Level: 256
- OMX_GetParameter(handle, OMX_IndexParamPortDefinition, portdef) completed at 215.
- Port 130 is input, disabled
- Wants 20 bufs, needs 1, size 81920, enabled: 0, pop: 0, aligned 16
- Video type is currently:
- MIME: (null)
- Native: (nil)
- Width: 1440
- Height: 1080
- Stride: 0
- SliceHeight: 0
- Bitrate: 0
- Framerate: 0 (0); (0.000000)
- Error hiding: 0
- Codec: 2
- Colour: 0
- OMX_GetParameter(handle, OMX_IndexParamPortDefinition, portdef) completed at 215.
- Port 131 is output, disabled
- Wants 1 bufs, needs 1, size 2350080, enabled: 0, pop: 0, aligned 16
- Video type is currently:
- MIME: (null)
- Native: (nil)
- Width: 1440
- Height: 1080
- Stride: 1440
- SliceHeight: 1088
- Bitrate: 0
- Framerate: 0 (0); (0.000000)
- Error hiding: 0
- Codec: 0
- Colour: 20
- OMX_GetParameter(handle, OMX_IndexParamPortDefinition, portdef) completed at 215.
- Port 60 is input, disabled
- Wants 1 bufs, needs 1, size 10240, enabled: 0, pop: 0, aligned 16
- Image type is currently:
- MIME: (null)
- Native: (nil)
- Width: 160
- Height: 16
- Stride: 640
- SliceHeight: 16
- Error hiding: 0
- Codec: 0
- Colour: 2130706433
- OMX_GetParameter(handle, OMX_IndexParamPortDefinition, portdef) completed at 215.
- Port 61 is output, disabled
- Wants 1 bufs, needs 1, size 10240, enabled: 0, pop: 0, aligned 16
- Image type is currently:
- MIME: (null)
- Native: (nil)
- Width: 160
- Height: 16
- Stride: 640
- SliceHeight: 16
- Error hiding: 0
- Codec: 0
- Colour: 2130706433
- OMX_GetParameter(handle, OMX_IndexParamPortDefinition, portdef) completed at 215.
- Port 200 is input, disabled
- Wants 1 bufs, needs 1, size 15360, enabled: 0, pop: 0, aligned 16
- Video type is currently:
- MIME: (null)
- Native: (nil)
- Width: 160
- Height: 64
- Stride: 160
- SliceHeight: 64
- Bitrate: 0
- Framerate: 1966080 (1e0000); (30.000000)
- Error hiding: 0
- Codec: 0
- Colour: 20
- OMX_GetParameter(handle, OMX_IndexParamPortDefinition, portdef) completed at 215.
- Port 201 is output, disabled
- Wants 1 bufs, needs 1, size 65536, enabled: 0, pop: 0, aligned 16
- Video type is currently:
- MIME: (null)
- Native: (nil)
- Width: 160
- Height: 64
- Stride: 160
- SliceHeight: 64
- Bitrate: 0
- Framerate: 1966080 (1e0000); (30.000000)
- Error hiding: 0
- Codec: 4
- Colour: 0
- OMX_SendCommand(dec, OMX_CommandStateSet, OMX_StateIdle, NULL) completed at 1514.
- OMX_SendCommand(rsz, OMX_CommandStateSet, OMX_StateIdle, NULL) completed at 1517.
- OMX_GetParameter(h, OMX_IndexParamPortDefinition, portdef) completed at 724.
- OMX_SendCommand(h, OMX_CommandPortEnable, port, NULL) completed at 727.
- Allocated a buffer of 81920 bytes
- OMX_UseBuffer(h, end, port, NULL, portdef->nBufferSize, buf) completed at 737.
- Allocated a buffer of 81920 bytes
- OMX_UseBuffer(h, end, port, NULL, portdef->nBufferSize, buf) completed at 737.
- Allocated a buffer of 81920 bytes
- OMX_UseBuffer(h, end, port, NULL, portdef->nBufferSize, buf) completed at 737.
- Allocated a buffer of 81920 bytes
- OMX_UseBuffer(h, end, port, NULL, portdef->nBufferSize, buf) completed at 737.
- Allocated a buffer of 81920 bytes
- OMX_UseBuffer(h, end, port, NULL, portdef->nBufferSize, buf) completed at 737.
- Allocated a buffer of 81920 bytes
- OMX_UseBuffer(h, end, port, NULL, portdef->nBufferSize, buf) completed at 737.
- Allocated a buffer of 81920 bytes
- OMX_UseBuffer(h, end, port, NULL, portdef->nBufferSize, buf) completed at 737.
- Allocated a buffer of 81920 bytes
- OMX_UseBuffer(h, end, port, NULL, portdef->nBufferSize, buf) completed at 737.
- Allocated a buffer of 81920 bytes
- OMX_UseBuffer(h, end, port, NULL, portdef->nBufferSize, buf) completed at 737.
- Allocated a buffer of 81920 bytes
- OMX_UseBuffer(h, end, port, NULL, portdef->nBufferSize, buf) completed at 737.
- Allocated a buffer of 81920 bytes
- OMX_UseBuffer(h, end, port, NULL, portdef->nBufferSize, buf) completed at 737.
- Allocated a buffer of 81920 bytes
- OMX_UseBuffer(h, end, port, NULL, portdef->nBufferSize, buf) completed at 737.
- Allocated a buffer of 81920 bytes
- OMX_UseBuffer(h, end, port, NULL, portdef->nBufferSize, buf) completed at 737.
- Allocated a buffer of 81920 bytes
- OMX_UseBuffer(h, end, port, NULL, portdef->nBufferSize, buf) completed at 737.
- Allocated a buffer of 81920 bytes
- OMX_UseBuffer(h, end, port, NULL, portdef->nBufferSize, buf) completed at 737.
- Allocated a buffer of 81920 bytes
- OMX_UseBuffer(h, end, port, NULL, portdef->nBufferSize, buf) completed at 737.
- Allocated a buffer of 81920 bytes
- OMX_UseBuffer(h, end, port, NULL, portdef->nBufferSize, buf) completed at 737.
- Allocated a buffer of 81920 bytes
- OMX_UseBuffer(h, end, port, NULL, portdef->nBufferSize, buf) completed at 737.
- Allocated a buffer of 81920 bytes
- OMX_UseBuffer(h, end, port, NULL, portdef->nBufferSize, buf) completed at 737.
- Allocated a buffer of 81920 bytes
- OMX_UseBuffer(h, end, port, NULL, portdef->nBufferSize, buf) completed at 737.
- OMX_SendCommand(dec, OMX_CommandStateSet, OMX_StateExecuting, NULL) completed at 1525.
- Decoder 0x1dc3ae0 port 131 settings changed.
- OMX_GetParameter(handle, OMX_IndexParamPortDefinition, portdef) completed at 215.
- Port 131 is output, disabled
- Wants 1 bufs, needs 1, size 2350080, enabled: 0, pop: 0, aligned 16
- Video type is currently:
- MIME: (null)
- Native: (nil)
- Width: 1440
- Height: 1080
- Stride: 1440
- SliceHeight: 1088
- Bitrate: 0
- Framerate: 1964115 (1df853); (29.970016)
- Error hiding: 0
- Codec: 0
- Colour: 20
- Decoder has changed settings. Setting up encoder.
- OMX_GetParameter(dec, OMX_IndexParamPortDefinition, portdef) completed at 861.
- OMX_GetParameter(rsz, OMX_IndexParamPortDefinition, imgportdef) completed at 916.
- OMX_SetParameter(rsz, OMX_IndexParamPortDefinition, imgportdef) completed at 930.
- Frame size: 480x320, scale factor 480
- OMX_SetParameter(rsz, OMX_IndexParamPortDefinition, imgportdef) completed at 954.
- OMX_GetParameter(rsz, OMX_IndexParamPortDefinition, imgportdef) completed at 957.
- OMX_SetParameter(enc, OMX_IndexParamPortDefinition, portdef) completed at 971.
- OMX_SetupTunnel(prev, pp, rsz, PORT_RSZ) completed at 997.
- OMX_SendCommand(enc, OMX_CommandStateSet, OMX_StateIdle, NULL) completed at 1001.
- OMX_GetParameter(handle, OMX_IndexParamPortDefinition, portdef) completed at 215.
- Port 61 is output, disabled
- Wants 1 bufs, needs 1, size 230400, enabled: 0, pop: 0, aligned 16
- Image type is currently:
- MIME: (null)
- Native: (nil)
- Width: 480
- Height: 320
- Stride: 480
- SliceHeight: 320
- Error hiding: 0
- Codec: 0
- Colour: 20
- OMX_GetParameter(handle, OMX_IndexParamPortDefinition, portdef) completed at 215.
- Port 200 is input, disabled
- Wants 1 bufs, needs 1, size 2350080, enabled: 0, pop: 0, aligned 16
- Video type is currently:
- MIME: (null)
- Native: (nil)
- Width: 480
- Height: 320
- Stride: 480
- SliceHeight: 320
- Bitrate: 0
- Framerate: 1964115 (1df853); (29.970016)
- Error hiding: 0
- Codec: 0
- Colour: 20
- OMX_SetupTunnel(prev, pp, enc, PORT_ENC) completed at 1004.
- OMX_SetParameter(enc, OMX_IndexParamPortDefinition, portdef) completed at 1020.
- OMX_SetParameter(enc, OMX_IndexParamVideoBitrate, bitrate) completed at 1026.
- OMX_SetParameter(enc, OMX_IndexParamVideoPortFormat, pfmt) completed at 1048.
- OMX_SetParameter(enc, OMX_IndexConfigVideoFramerate, framerate) completed at 1053.
- OMX_GetParameter(enc, OMX_IndexParamVideoProfileLevelCurrent, level) completed at 1069.
- Current level: 2048
- Current profile: 8
- OMX_SetParameter(enc, OMX_IndexParamVideoProfileLevelCurrent, level) completed at 1073.
- OMX_GetParameter(h, OMX_IndexParamPortDefinition, portdef) completed at 724.
- OMX_SendCommand(h, OMX_CommandPortEnable, port, NULL) completed at 727.
- Allocated a buffer of 2350080 bytes
- OMX_UseBuffer(h, end, port, NULL, portdef->nBufferSize, buf) completed at 737.
- OMX_SendCommand(dec, OMX_CommandPortEnable, PORT_DEC+1, NULL) completed at 1076.
- Resizer 0x1dc4e30 port 61 settings changed.
- OMX_GetParameter(handle, OMX_IndexParamPortDefinition, portdef) completed at 215.
- Port 61 is output, disabled
- Wants 1 bufs, needs 1, size 230400, enabled: 0, pop: 0, aligned 16
- Image type is currently:
- MIME: (null)
- Native: (nil)
- Width: 480
- Height: 320
- Stride: 480
- SliceHeight: 320
- Error hiding: 0
- Codec: 0
- Colour: 20
- OMX_SendCommand(rsz, OMX_CommandPortEnable, PORT_RSZ, NULL) completed at 1079.
- OMX_SendCommand(rsz, OMX_CommandPortEnable, PORT_RSZ+1, NULL) completed at 1081.
- OMX_SendCommand(enc, OMX_CommandPortEnable, PORT_ENC, NULL) completed at 1084.
- OMX_SendCommand(rsz, OMX_CommandStateSet, OMX_StateExecuting, NULL) completed at 1120.
- OMX_SendCommand(enc, OMX_CommandStateSet, OMX_StateExecuting, NULL) completed at 1122.
- Encoder 0x1dc7b30 port 201 settings changed.
- OMX_GetParameter(handle, OMX_IndexParamPortDefinition, portdef) completed at 215.
- Port 201 is output, enabled
- Wants 1 bufs, needs 1, size 2350080, enabled: 1, pop: 1, aligned 16
- Video type is currently:
- MIME: (null)
- Native: (nil)
- Width: 480
- Height: 320
- Stride: 0
- SliceHeight: 0
- Bitrate: 2097152
- Framerate: 1964115 (1df853); (29.970016)
- Error hiding: 0
- Codec: 7
- Colour: 0
- OMX_FillThisBuffer(enc, encbufs) completed at 1124.
- OMX_GetParameter(handle, OMX_IndexParamPortDefinition, portdef) completed at 215.
- Port 130 is input, enabled
- Wants 20 bufs, needs 1, size 81920, enabled: 1, pop: 1, aligned 16
- Video type is currently:
- MIME: (null)
- Native: (nil)
- Width: 1440
- Height: 1080
- Stride: 0
- SliceHeight: 0
- Bitrate: 0
- Framerate: 0 (0); (0.000000)
- Error hiding: 0
- Codec: 2
- Colour: 0
- OMX_GetParameter(handle, OMX_IndexParamPortDefinition, portdef) completed at 215.
- Port 131 is output, enabled
- Wants 0 bufs, needs 0, size 2350080, enabled: 1, pop: 1, aligned 16
- Video type is currently:
- MIME: (null)
- Native: (nil)
- Width: 1440
- Height: 1080
- Stride: 1440
- SliceHeight: 1088
- Bitrate: 0
- Framerate: 1964115 (1df853); (29.970016)
- Error hiding: 0
- Codec: 0
- Colour: 20
- OMX_GetParameter(handle, OMX_IndexParamPortDefinition, portdef) completed at 215.
- Port 60 is input, enabled
- Wants 0 bufs, needs 0, size 2350080, enabled: 1, pop: 1, aligned 16
- Image type is currently:
- MIME: (null)
- Native: (nil)
- Width: 1440
- Height: 1088
- Stride: 1440
- SliceHeight: 1088
- Error hiding: 0
- Codec: 0
- Colour: 20
- OMX_GetParameter(handle, OMX_IndexParamPortDefinition, portdef) completed at 215.
- Port 61 is output, enabled
- Wants 1 bufs, needs 1, size 230400, enabled: 1, pop: 1, aligned 16
- Image type is currently:
- MIME: (null)
- Native: (nil)
- Width: 480
- Height: 320
- Stride: 480
- SliceHeight: 320
- Error hiding: 0
- Codec: 0
- Colour: 20
- OMX_GetParameter(handle, OMX_IndexParamPortDefinition, portdef) completed at 215.
- Port 200 is input, enabled
- Wants 1 bufs, needs 1, size 230400, enabled: 1, pop: 1, aligned 16
- Video type is currently:
- MIME: (null)
- Native: (nil)
- Width: 480
- Height: 320
- Stride: 480
- SliceHeight: 320
- Bitrate: 0
- Framerate: 0 (0); (0.000000)
- Error hiding: 0
- Codec: 0
- Colour: 20
- OMX_GetParameter(handle, OMX_IndexParamPortDefinition, portdef) completed at 215.
- Port 201 is output, enabled
- Wants 1 bufs, needs 1, size 2350080, enabled: 1, pop: 1, aligned 16
- Video type is currently:
- MIME: (null)
- Native: (nil)
- Width: 480
- Height: 320
- Stride: 0
- SliceHeight: 0
- Bitrate: 2097152
- Framerate: 1964115 (1df853); (29.970016)
- Error hiding: 0
- Codec: 7
- Colour: 0
- Found a codec at 0xb68e3ffc
- Defaults: output stream: 1/90000, input stream: 1/90000, input codec: 1001/60000, output codec: 0/1, output framerate: 0/0, input framerate: 30000/1001, ticks: 1; 2 254489/0
- Defaults: output stream: 1/90000, input stream: 1/90000, input codec: 1001/60000, output codec: 1001/60000, output framerate: 30000/1001, input framerate: 30000/1001
- Time base: 1/90000, fps 30000/1001
- Input:
- Input #0, mpegts, from '/home/pi/test10.ts':
- Duration: 00:01:39.81, start: 0.254489, bitrate: 26053 kb/s
- Program 1
- Stream #0.0[0x810]: Video: mpeg2video (Main), yuv420p, 1440x1080 [PAR 4:3 DAR 16:9], 25000 kb/s, 29.97 fps, 29.97 tbr, 90k tbn, 59.94 tbc
- Stream #0.1[0x814]: Audio: mp2, 48000 Hz, 2 channels, s16p, 384 kb/s
- Output:
- Output #0, matroska, to '/home/pi/test10m.mkv':
- Stream #0.0: Video: libx264, 480x320, q=-1--1, 2097 kb/s, 29.97 fps, 29.97 tbr, 90k tbn, 59.94 tbc
- Stream #0.1: Audio: mp2, 48000 Hz, 2 channels, s16p, 384 kb/s
- New SPS, length 18
- New PPS, length 9
- Writing initial frame buffer contents out... ...done. Wrote 2 frames.
- Processed 2994 frames in 76 seconds; 39f/s: 51
- In exit handler, after 2994 frames:
- OMX_GetParameter(handle, OMX_IndexParamPortDefinition, portdef) completed at 215.
- Port 130 is input, enabled
- Wants 20 bufs, needs 1, size 81920, enabled: 1, pop: 1, aligned 16
- Video type is currently:
- MIME: (null)
- Native: (nil)
- Width: 1440
- Height: 1080
- Stride: 0
- SliceHeight: 0
- Bitrate: 0
- Framerate: 0 (0); (0.000000)
- Error hiding: 0
- Codec: 2
- Colour: 0
- OMX_GetParameter(handle, OMX_IndexParamPortDefinition, portdef) completed at 215.
- Port 131 is output, enabled
- Wants 0 bufs, needs 0, size 2350080, enabled: 1, pop: 1, aligned 16
- Video type is currently:
- MIME: (null)
- Native: (nil)
- Width: 1440
- Height: 1080
- Stride: 1440
- SliceHeight: 1088
- Bitrate: 0
- Framerate: 1964115 (1df853); (29.970016)
- Error hiding: 0
- Codec: 0
- Colour: 20
- OMX_GetParameter(handle, OMX_IndexParamPortDefinition, portdef) completed at 215.
- Port 200 is input, enabled
- Wants 1 bufs, needs 1, size 230400, enabled: 1, pop: 1, aligned 16
- Video type is currently:
- MIME: (null)
- Native: (nil)
- Width: 480
- Height: 320
- Stride: 480
- SliceHeight: 320
- Bitrate: 0
- Framerate: 0 (0); (0.000000)
- Error hiding: 0
- Codec: 0
- Colour: 20
- OMX_GetParameter(handle, OMX_IndexParamPortDefinition, portdef) completed at 215.
- Port 201 is output, enabled
- Wants 1 bufs, needs 1, size 2350080, enabled: 1, pop: 1, aligned 16
- Video type is currently:
- MIME: (null)
- Native: (nil)
- Width: 480
- Height: 320
- Stride: 0
- SliceHeight: 0
- Bitrate: 2097152
- Framerate: 1964115 (1df853); (29.970016)
- Error hiding: 0
- Codec: 7
- Colour: 0
- Decoder state: 3
- Encoder state: 3
- OMX_GetParameter(handle, OMX_IndexParamPortDefinition, portdef) completed at 215.
- Port 130 is input, enabled
- Wants 20 bufs, needs 1, size 81920, enabled: 1, pop: 1, aligned 16
- Video type is currently:
- MIME: (null)
- Native: (nil)
- Width: 1440
- Height: 1080
- Stride: 0
- SliceHeight: 0
- Bitrate: 0
- Framerate: 0 (0); (0.000000)
- Error hiding: 0
- Codec: 2
- Colour: 0
- OMX_GetParameter(handle, OMX_IndexParamPortDefinition, portdef) completed at 215.
- Port 131 is output, enabled
- Wants 0 bufs, needs 0, size 2350080, enabled: 1, pop: 1, aligned 16
- Video type is currently:
- MIME: (null)
- Native: (nil)
- Width: 1440
- Height: 1080
- Stride: 1440
- SliceHeight: 1088
- Bitrate: 0
- Framerate: 1964115 (1df853); (29.970016)
- Error hiding: 0
- Codec: 0
- Colour: 20
- OMX_GetParameter(handle, OMX_IndexParamPortDefinition, portdef) completed at 215.
- Port 200 is input, enabled
- Wants 1 bufs, needs 1, size 230400, enabled: 1, pop: 1, aligned 16
- Video type is currently:
- MIME: (null)
- Native: (nil)
- Width: 480
- Height: 320
- Stride: 480
- SliceHeight: 320
- Bitrate: 0
- Framerate: 0 (0); (0.000000)
- Error hiding: 0
- Codec: 0
- Colour: 20
- OMX_GetParameter(handle, OMX_IndexParamPortDefinition, portdef) completed at 215.
- Port 201 is output, enabled
- Wants 1 bufs, needs 1, size 2350080, enabled: 1, pop: 1, aligned 16
- Video type is currently:
- MIME: (null)
- Native: (nil)
- Width: 480
- Height: 320
- Stride: 0
- SliceHeight: 0
- Bitrate: 2097152
- Framerate: 1964115 (1df853); (29.970016)
- Error hiding: 0
- Codec: 7
- Colour: 0
- Decoder state: 3
- Encoder state: 3
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement