[Live-devel] RTSP/1.0 404 File Not Found, Or In Incorrect Format

Tony Griffen tonygriffen at gmail.com
Wed Jan 2 13:26:38 PST 2013


Hi,

I have read many thread on the dreaded message "RTSP/1.0 404 File Not
Found, Or In Incorrect Format" when trying to stream from
Live555MediaServer, yet I was not able to find any solution. Below I
attach output from openRTSP client, strace from live555MediaServer,
directory structure, and live555MediaServer version output. I even
copied the binary to the same directory as the file I am trying to
stream and am invoking it with ./live555MediaServer from that
directory.

Nothing helps. I have spent so many hours on this, I have no idea what
is going on. Any suggestions will be appreciated.

Thanks,

t.

*** openRTSP report:

Sending request: DESCRIBE rtsp://10.0.100.51/welcome.wav RTSP/1.0
CSeq: 3
User-Agent: openRTSP (LIVE555 Streaming Media v2012.02.04)
Accept: application/sdp
Received 101 new bytes of response data.
Received a complete DESCRIBE response:
RTSP/1.0 404 File Not Found, Or In Incorrect Format
CSeq: 3

*** strace on the server:

select(5, [3 4], [], [], {0, 9972})     = 1 (in [3], left {0, 8117})
accept(3, {sa_family=AF_INET, sin_port=htons(58106),
sin_addr=inet_addr("10.0.100.201")}, [16]) = 5
fcntl64(5, F_GETFL)                     = 0x2 (flags O_RDWR)
fcntl64(5, F_SETFL, O_RDWR|O_NONBLOCK)  = 0
getsockopt(5, SOL_SOCKET, SO_SNDBUF, [102400], [4]) = 0
getsockopt(5, SOL_SOCKET, SO_SNDBUF, [102400], [4]) = 0
gettimeofday({1357160101, 791935}, NULL) = 0
gettimeofday({1357160101, 792016}, NULL) = 0
gettimeofday({1357160101, 792037}, NULL) = 0
select(6, [3 4 5], [], [], {0, 7737})   = 1 (in [5], left {0, 7735})
recvfrom(5, "OPTIONS rtsp://10.0.100.51/welco"..., 10000, 0,
{sa_family=0xfe08 /* AF_??? */,
sa_data="\212\0\fp/\10\334\307/\10\360r/\10"}, [0]) = 120
gettimeofday({1357160101, 792173}, NULL) = 0
time(NULL)                              = 1357160101
send(5, "RTSP/1.0 200 OK\r\nCSeq: 2\r\nDate: "..., 152, 0) = 152
gettimeofday({1357160101, 792286}, NULL) = 0
gettimeofday({1357160101, 792306}, NULL) = 0
select(6, [3 4 5], [], [], {0, 7468})   = 1 (in [5], left {0, 7282})
recvfrom(5, "DESCRIBE rtsp://10.0.100.51/welc"..., 10000, 0,
{sa_family=0xfe08 /* AF_??? */,
sa_data="\212\0\fp/\10\334\307/\10\360r/\10"}, [0]) = 146
gettimeofday({1357160101, 792617}, NULL) = 0
open("welcome.wav", O_RDONLY|O_LARGEFILE) = 6
close(6)                                = 0
open("welcome.wav", O_RDONLY|O_LARGEFILE) = 6
fstat64(6, {st_mode=S_IFREG|0644, st_size=582038, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1,
0) = 0xb77ad000
read(6, "RIFF\216\341\10\0WAVEfmt
\20\0\0\0\1\0\2\0D\254\0\0\20\261\2\0"..., 4096) = 4096
close(6)                                = 0
munmap(0xb77ad000, 4096)                = 0
time(NULL)                              = 1357160101
send(5, "RTSP/1.0 404 File Not Found, Or "..., 101, 0) = 101
gettimeofday({1357160101, 793091}, NULL) = 0
gettimeofday({1357160101, 793110}, NULL) = 0
select(6, [3 4 5], [], [], {0, 6664})   = 1 (in [5], left {0, 6433})
recvfrom(5, "", 10000, 0, {sa_family=0xfe08 /* AF_??? */,
sa_data="\212\0\fp/\10\334\307/\10\360r/\10"}, [0]) = 0
gettimeofday({1357160101, 793459}, NULL) = 0
close(5)                                = 0

*** Directory structure:

[/var/live555]
# ls -la
drwxr-xr-x.  2 root root   4096 Jan  2 12:32 .
drwxr-xr-x. 27 root root   4096 Jan  2 10:45 ..
-rwxr-xr-x.  1 root root  20413 Jan  2 11:47 live555MediaServer
-rw-r--r--.  1 ftp  ftp  582038 Jan  2 11:07 welcome.wav

*** live555MediaServer version output:

LIVE555 Media Server
        version 0.74 (LIVE555 Streaming Media library version 2012.02.04)


More information about the live-devel mailing list