I've try to run ffmpeg+raw2gmv+raw2gmv directly on my KT but it didn't work.
First run ffmpeg+raw2gmv+nc on KT5:
Code:
./ffmpeg -i tj.mp4 -pix_fmt gray -f rawvideo -s 800x450 -|./raw2gmv | /mnt/us/nc -l 5555
Result:
Code:
ffmpeg version N-44781-g299c0b3 Copyright (c) 2000-2012 the FFmpeg developers
built on Sep 27 2012 14:26:04 with gcc 4.6.3 (Sourcery CodeBench Lite 2012.03-57)
configuration: --enable-cross-compile --cross-prefix=/home/ppoo/CodeSourcery/Sourcery_CodeBench_Lite_for_ARM_GNU_Linux/bin/ --sysroot=/root/sbox2/sysroot_soft --host-cc=/usr/bin/gcc --arch=arm --target-os=linux --extra-cflags=-fPIC --enable-static --enable-shared --prefix=/home/ppoo/Downloads/ffmpeg/kindle_sf --disable-doc --enable-gpl --enable-nonfree --enable-ffmpeg --enable-ffplay --disable-ffserver --enable-postproc --enable-swscale --enable-indevs --enable-outdevs --enable-pthreads --disable-zlib --disable-armv6 --disable-neon --disable-armvfp
libavutil 51. 73.101 / 51. 73.101
libavcodec 54. 59.100 / 54. 59.100
libavformat 54. 28.101 / 54. 28.101
libavdevice 54. 2.101 / 54. 2.101
libavfilter 3. 17.100 / 3. 17.100
libswscale 2. 1.101 / 2. 1.101
libswresample 0. 15.100 / 0. 15.100
libpostproc 52. 0.100 / 52. 0.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'tj.mp4':
Metadata:
major_brand : mp42
minor_version : 0
compatible_brands: isomavc1mp42
creation_time : 1940-04-15 12:23:10
Duration: 00:06:46.59, start: 0.000000, bitrate: 332 kb/s
Stream #0:0(und): Audio: aac (mp4a / 0x6134706D), 44100 Hz, mono, s16, 54 kb/s
Metadata:
creation_time : 1940-04-15 12:23:10
handler_name : (C) 2007 Google Inc. v08.13.2007.
Stream #0:1(und): Video: h264 (Constrained Baseline) (avc1 / 0x31637661), yuv420p, 320x240 [SAR 1:1 DAR 4:3], 275 kb/s, 29.92 fps, 29.92 tbr, 29924 tbn, 59.85 tbc
Metadata:
creation_time : 1940-04-15 12:23:10
handler_name : (C) 2007 Google Inc. v08.13.2007.
Output #0, rawvideo, to 'pipe:':
Metadata:
major_brand : mp42
minor_version : 0
compatible_brands: isomavc1mp42
encoder : Lavf54.28.101
Stream #0:0(und): Video: rawvideo (Y800 / 0x30303859), gray, 800x450 [SAR 3:4 DAR 4:3], q=2-31, 200 kb/s, 90k tbn, 29.92 tbc
Metadata:
creation_time : 1940-04-15 12:23:10
handler_name : (C) 2007 Google Inc. v08.13.2007.
Stream mapping:
Stream #0:1 -> #0:0 (h264 -> rawvideo)
Press [q] to stop, [?] for help
Then open new ssh session and run(
on KT too):
PHP Code:
nc localhost 48850
And result:
Code:
ffmpeg version N-44781-g299c0b3 Copyright (c) 2000-2012 the FFmpeg developers
built on Sep 27 2012 14:26:04 with gcc 4.6.3 (Sourcery CodeBench Lite 2012.03-57)
configuration: --enable-cross-compile --cross-prefix=/home/ppoo/CodeSourcery/Sourcery_CodeBench_Lite_for_ARM_GNU_Linux/bin/ --sysroot=/root/sbox2/sysroot_soft --host-cc=/usr/bin/gcc --arch=arm --target-os=linux --extra-cflags=-fPIC --enable-static --enable-shared --prefix=/home/ppoo/Downloads/ffmpeg/kindle_sf --disable-doc --enable-gpl --enable-nonfree --enable-ffmpeg --enable-ffplay --disable-ffserver --enable-postproc --enable-swscale --enable-indevs --enable-outdevs --enable-pthreads --disable-zlib --disable-armv6 --disable-neon --disable-armvfp
libavutil 51. 73.101 / 51. 73.101
libavcodec 54. 59.100 / 54. 59.100
libavformat 54. 28.101 / 54. 28.101
libavdevice 54. 2.101 / 54. 2.101
libavfilter 3. 17.100 / 3. 17.100
libswscale 2. 1.101 / 2. 1.101
libswresample 0. 15.100 / 0. 15.100
libpostproc 52. 0.100 / 52. 0.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'tj.mp4':
Metadata:
major_brand : mp42
minor_version : 0
compatible_brands: isomavc1mp42
creation_time : 1940-04-15 12:23:10
Duration: 00:06:46.59, start: 0.000000, bitrate: 332 kb/s
Stream #0:0(und): Audio: aac (mp4a / 0x6134706D), 44100 Hz, mono, s16, 54 kb/s
Metadata:
creation_time : 1940-04-15 12:23:10
handler_name : (C) 2007 Google Inc. v08.13.2007.
Stream #0:1(und): Video: h264 (Constrained Baseline) (avc1 / 0x31637661), yuv420p, 320x240 [SAR 1:1 DAR 4:3], 275 kb/s, 29.92 fps, 29.92 tbr, 29924 tbn, 59.85 tbc
Metadata:
creation_time : 1940-04-15 12:23:10
handler_name : (C) 2007 Google Inc. v08.13.2007.
Output #0, rawvideo, to 'pipe:':
Metadata:
major_brand : mp42
minor_version : 0
compatible_brands: isomavc1mp42
encoder : Lavf54.28.101
Stream #0:0(und): Video: rawvideo (Y800 / 0x30303859), gray, 800x450 [SAR 3:4 DAR 4:3], q=2-31, 200 kb/s, 90k tbn, 29.92 tbc
Metadata:
creation_time : 1940-04-15 12:23:10
handler_name : (C) 2007 Google Inc. v08.13.2007.
Stream mapping:
Stream #0:1 -> #0:0 (h264 -> rawvideo)
Press [q] to stop, [?] for help
invalid connection to [127.0.0.1] from (UNKNOWN) [127.0.0.1] 39718
I got nc port from netstat:
Code:
[root@kindle gmplayer]# netstat -ntpl
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 127.0.0.1:20450 0.0.0.0:* LISTEN 1137/webreader
tcp 4 0 127.0.0.1:9101 0.0.0.0:* LISTEN 1224/cvm
tcp 0 0 0.0.0.0:48850 0.0.0.0:* LISTEN 25146/nc
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 684/dropbear
tcp 0 0 0.0.0.0:40317 0.0.0.0:* LISTEN 1026/phd