把ffserver push进android文件系统并测试下
2013-08-23 18:18
375 查看
这个ffserver不是我编译的,貌似用arm-linux工具链可以直接编译,下回来试试,能不能再android上跑呢?
https://code.google.com/p/rxwen-blog-stuff/downloads/detail?name=ffserver&can=2&q= 人家的
http://rxwen.blogspot.com/ 人家博客
https://code.google.com/p/rmdmakefiles/source/browse/ 人家还有编译系统
G:\>adb push ffserver 192.168.1.108:5555/zhangbin/
error: more than one device and emulator
G:\>adb push ffserver 192.168.1.108:5555
error: more than one device and emulator
G:\>adb push ffserver /zhangbin/
error: more than one device and emulator
G:\>adb push ffserver /sdcard
error: more than one device and emulator
G:\>adb push ffserver 192.168.1.108:5555
error: more than one device and emulator
G:\>adb push ffserver 192.168.1.108:5555/
error: more than one device and emulator
G:\>adb devices
List of devices attached
0146A07E02014015 device
192.168.1.108:5555 device
G:\>adb push ffserver 192.168.1.108:5555
error: more than one device and emulator
G:\>adb devices
List of devices attached
192.168.1.108:5555 device
到底应该怎么指定设备名呢????
G:\>adb push ffserver /zhangbin/
2482 KB/s (9414756 bytes in 3.704s)
G:\>
root@android:/ # cd zhangbin
root@android:/zhangbin #
root@android:/zhangbin #
root@android:/zhangbin # ls
ffserver
root@android:/zhangbin # ls -al
-rw-rw-rw- root root 9414756 2013-08-23 17:42 ffserver
root@android:/zhangbin # chmod 777 *
root@android:/zhangbin # ls
ffserver
还真可以跑ffserver
root@android:/zhangbin # ./ffserver
ffserver version 0.8, Copyright (c) 2000-2011 the FFmpeg developers
built on Jun 23 2011 09:52:28 with gcc 4.5.2
这是编译参数
configuration: --arch=arm --cross-prefix=arm-none-linux-gnueabi- --extra-ldflags=-static --target-os=linux
libavutil 51. 9. 1 / 51. 9. 1
libavcodec 53. 7. 0 / 53. 7. 0
libavformat 53. 4. 0 / 53. 4. 0
libavdevice 53. 1. 1 / 53. 1. 1
libavfilter 2. 23. 0 / 2. 23. 0
libswscale 2. 0. 0 / 2. 0. 0
/etc/ffserver.conf: No such file or directory 配置文件要指定,跑跑才行吧。 要不还是不确定ffserver到底是不是能在android上真的跑起来啊。
Incorrect config file - exiting.
1|root@android:/zhangbin #
root@android:/zhangbin # ./ffserver
ffserver version 0.8, Copyright (c) 2000-2011 the FFmpeg developers
built on Jun 23 2011 09:52:28 with gcc 4.5.2
configuration: --arch=arm --cross-prefix=arm-none-linux-gnueabi- --extra-ldflags=-static --target-os=linux
libavutil 51. 9. 1 / 51. 9. 1
libavcodec 53. 7. 0 / 53. 7. 0
libavformat 53. 4. 0 / 53. 4. 0
libavdevice 53. 1. 1 / 53. 1. 1
libavfilter 2. 23. 0 / 2. 23. 0
libswscale 2. 0. 0 / 2. 0. 0
/etc/ffserver.conf: No such file or directory
Incorrect config file - exiting.
1|root@android:/zhangbin # ls
ffserver
ffserver.conf
root@android:/zhangbin # ./ffserver -f ffserver.conf
ffserver version 0.8, Copyright (c) 2000-2011 the FFmpeg developers
built on Jun 23 2011 09:52:28 with gcc 4.5.2
configuration: --arch=arm --cross-prefix=arm-none-linux-gnueabi- --extra-ldflags=-static --target-os=linux
libavutil 51. 9. 1 / 51. 9. 1
libavcodec 53. 7. 0 / 53. 7. 0
libavformat 53. 4. 0 / 53. 4. 0
libavdevice 53. 1. 1 / 53. 1. 1
libavfilter 2. 23. 0 / 2. 23. 0
libswscale 2. 0. 0 / 2. 0. 0
Fri Aug 23 10:50:51 2013 Opening file '/data/1.mp4'
Fri Aug 23 10:50:51 2013 Opening file '/data/1.mp3'
Fri Aug 23 10:50:51 2013 [mp3 @ 0x25face0]max_analyze_duration 5000000 reached at 5015510
bind(port 8090): Address family not supported by protocol
Fri Aug 23 10:50:51 2013 Could not start server
1|root@android:/zhangbin #
http://stackoverflow.com/questions/8906904/ffserver-bindport-8090-address-family-not-supported-by-protocol
http://stackoverflow.com/questions/14860648/bind-address-family-not-supported-by-protocol
这个错误 bind(port 8090): Address family not supported by protocol
The address family should be AF_INET in case IPv4 or AF_INET6 in case IPv6. It seems that the sin_family member of the address struct
is not assigned a valid value. Please check it.
这是ffserver的bug么????
http://ro-lookandfeel.blogspot.co.uk/2012/10/bind-address-family-not-supported-by.html
EDNESDAY, OCTOBER 31, 2012
Trying to get ROLF running on a Raspberry Pi, I installed Debian Wheezy, but then found that my vnc server version of ROLF doesn't start up.
I've boiled the problem down to a minimal program that works fine on 2.6.32.6, but not on "Linux raspberrypi 3.2.27+ #250 PREEMPT Thu Oct 18 19:03:02 BST 2012 armv6l GNU/Linux" or "Linux Microknoppix 3.4.9 #34 SMP PREEMPT Fri Aug 17 06:30:04 CEST 2012 i686
GNU/Linux", so presumably there's a change in a major version. All I have to do is find out what it is...
Update: It seems someone turned on the "check for idiot programmers" flag in the kernel; fix: addr.sin_family = AF_INET;
POSTED BY SIMON AT 2:34
PM
https://code.google.com/p/rxwen-blog-stuff/downloads/detail?name=ffserver&can=2&q= 人家的
http://rxwen.blogspot.com/ 人家博客
https://code.google.com/p/rmdmakefiles/source/browse/ 人家还有编译系统
G:\>adb push ffserver 192.168.1.108:5555/zhangbin/
error: more than one device and emulator
G:\>adb push ffserver 192.168.1.108:5555
error: more than one device and emulator
G:\>adb push ffserver /zhangbin/
error: more than one device and emulator
G:\>adb push ffserver /sdcard
error: more than one device and emulator
G:\>adb push ffserver 192.168.1.108:5555
error: more than one device and emulator
G:\>adb push ffserver 192.168.1.108:5555/
error: more than one device and emulator
G:\>adb devices
List of devices attached
0146A07E02014015 device
192.168.1.108:5555 device
G:\>adb push ffserver 192.168.1.108:5555
error: more than one device and emulator
G:\>adb devices
List of devices attached
192.168.1.108:5555 device
到底应该怎么指定设备名呢????
G:\>adb push ffserver /zhangbin/
2482 KB/s (9414756 bytes in 3.704s)
G:\>
root@android:/ # cd zhangbin
root@android:/zhangbin #
root@android:/zhangbin #
root@android:/zhangbin # ls
ffserver
root@android:/zhangbin # ls -al
-rw-rw-rw- root root 9414756 2013-08-23 17:42 ffserver
root@android:/zhangbin # chmod 777 *
root@android:/zhangbin # ls
ffserver
还真可以跑ffserver
root@android:/zhangbin # ./ffserver
ffserver version 0.8, Copyright (c) 2000-2011 the FFmpeg developers
built on Jun 23 2011 09:52:28 with gcc 4.5.2
这是编译参数
configuration: --arch=arm --cross-prefix=arm-none-linux-gnueabi- --extra-ldflags=-static --target-os=linux
libavutil 51. 9. 1 / 51. 9. 1
libavcodec 53. 7. 0 / 53. 7. 0
libavformat 53. 4. 0 / 53. 4. 0
libavdevice 53. 1. 1 / 53. 1. 1
libavfilter 2. 23. 0 / 2. 23. 0
libswscale 2. 0. 0 / 2. 0. 0
/etc/ffserver.conf: No such file or directory 配置文件要指定,跑跑才行吧。 要不还是不确定ffserver到底是不是能在android上真的跑起来啊。
Incorrect config file - exiting.
1|root@android:/zhangbin #
root@android:/zhangbin # ./ffserver
ffserver version 0.8, Copyright (c) 2000-2011 the FFmpeg developers
built on Jun 23 2011 09:52:28 with gcc 4.5.2
configuration: --arch=arm --cross-prefix=arm-none-linux-gnueabi- --extra-ldflags=-static --target-os=linux
libavutil 51. 9. 1 / 51. 9. 1
libavcodec 53. 7. 0 / 53. 7. 0
libavformat 53. 4. 0 / 53. 4. 0
libavdevice 53. 1. 1 / 53. 1. 1
libavfilter 2. 23. 0 / 2. 23. 0
libswscale 2. 0. 0 / 2. 0. 0
/etc/ffserver.conf: No such file or directory
Incorrect config file - exiting.
1|root@android:/zhangbin # ls
ffserver
ffserver.conf
root@android:/zhangbin # ./ffserver -f ffserver.conf
ffserver version 0.8, Copyright (c) 2000-2011 the FFmpeg developers
built on Jun 23 2011 09:52:28 with gcc 4.5.2
configuration: --arch=arm --cross-prefix=arm-none-linux-gnueabi- --extra-ldflags=-static --target-os=linux
libavutil 51. 9. 1 / 51. 9. 1
libavcodec 53. 7. 0 / 53. 7. 0
libavformat 53. 4. 0 / 53. 4. 0
libavdevice 53. 1. 1 / 53. 1. 1
libavfilter 2. 23. 0 / 2. 23. 0
libswscale 2. 0. 0 / 2. 0. 0
Fri Aug 23 10:50:51 2013 Opening file '/data/1.mp4'
Fri Aug 23 10:50:51 2013 Opening file '/data/1.mp3'
Fri Aug 23 10:50:51 2013 [mp3 @ 0x25face0]max_analyze_duration 5000000 reached at 5015510
bind(port 8090): Address family not supported by protocol
Fri Aug 23 10:50:51 2013 Could not start server
1|root@android:/zhangbin #
http://stackoverflow.com/questions/8906904/ffserver-bindport-8090-address-family-not-supported-by-protocol
http://stackoverflow.com/questions/14860648/bind-address-family-not-supported-by-protocol
这个错误 bind(port 8090): Address family not supported by protocol
The address family should be AF_INET in case IPv4 or AF_INET6 in case IPv6. It seems that the sin_family member of the address struct
is not assigned a valid value. Please check it.
up vote1down voteaccepted | Use AF_INETinstead of htons(AF_INET)to initialize sin_family. |
http://ro-lookandfeel.blogspot.co.uk/2012/10/bind-address-family-not-supported-by.html
EDNESDAY, OCTOBER 31, 2012
bind: Address family not supported by protocol
Trying to get ROLF running on a Raspberry Pi, I installed Debian Wheezy, but then found that my vnc server version of ROLF doesn't start up.I've boiled the problem down to a minimal program that works fine on 2.6.32.6, but not on "Linux raspberrypi 3.2.27+ #250 PREEMPT Thu Oct 18 19:03:02 BST 2012 armv6l GNU/Linux" or "Linux Microknoppix 3.4.9 #34 SMP PREEMPT Fri Aug 17 06:30:04 CEST 2012 i686
GNU/Linux", so presumably there's a change in a major version. All I have to do is find out what it is...
Update: It seems someone turned on the "check for idiot programmers" flag in the kernel; fix: addr.sin_family = AF_INET;
#include <sys/types.h> #include <sys socket.h> #include <netinet/in.h> #include <netinet/tcp.h> int main() { int vnc_server; int port = 2008; struct sockaddr_in addr = { 0 }; addr.sin_family = htons( AF_INET ); addr.sin_port = htons( port ); if (-1 == (vnc_server = socket( AF_INET, SOCK_STREAM, 0 ))) perror( "socket" ); if (0 != bind( vnc_server, (struct sockaddr*) &addr, sizeof( addr ) )) perror( "bind" ); return 0; }
POSTED BY SIMON AT 2:34
PM
相关文章推荐
- android 6.0 monkey以及文件系统测试脚本
- 【转】【Android测试技巧】01. root后adb shell默认不是root用户时,如何将文件放入手机系统中
- C2DM原理和入门(一种面向Android系统的server push方式)
- 一个ffserver的测试配置文件
- 【Android测试技巧】01. root后adb shell默认不是root用户时,如何将文件放入手机系统中
- Android手机root后push一个文件到系统目录时报错adbd cannot run as root in production builds
- Linux - 两个Linux文件系统性能测试工具
- FLV视频直播系统-----利用ffmpeg+ffserver搭建最简单的FLV视频直播系统(ubuntu)
- Android文件系统深入剖析
- 如何解包/编辑/打包android系统的boot.img文件
- “在本地计算机无法启动Server服务,错误2:系统找不到指定的文件”问题
- android系统预制app/bin/.so文件及文件夹
- 在Ubuntu上为Android系统内置Java应用程序测试Application Frameworks层的硬件服务
- 调用Android系统安装的软件打开文件,程序停止运行
- android 单通道多应用Push系统的设计与实现
- 使用Android系统提供的DownloadManager来下载文件
- Android&nbsp;源码编译&nbsp;文件系统制作
- 基于Android2.3.5系统:Android init.rc文件浅析
- RH413-Linux系统下的SUID文件权限测试
- Android系统进程间通信(IPC)机制Binder中的Client获得Server远程接口过程源代码分析