Joe-Palmer / rtmplite

Automatically exported from code.google.com/p/rtmplite
0 stars 0 forks source link

Uplink with ffmpeg: playback with ffplay, vlc and rtmpdump fails #35

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
I uplink using ffmpeg...
ffmpeg -i somevideo.mp4 -re -vcodec copy -acodec copy -f flv 
rtmp://localhost/live/livestream

In this case the video is H264/MP3 and known to work with other live rtmp 
streaming software e.g. Wowza and rtmpd.

If I try to connect to the stream using VLC using...
vlc -vvv rtmp://localhost/live/livestream

I get the following error report...

[0x1b6df00] main input debug: `rtmp://localhost/live/livestream' gives access 
`rtmp' demux `' path `localhost/live/livestream'
[0x1b6df00] main input debug: creating demux: access='rtmp' demux='' 
path='localhost/live/livestream'
[0x1f3a810] main demux debug: looking for access_demux module: 0 candidates
[0x1f3a810] main demux debug: no access_demux module matched "rtmp"
[0x1f3a810] main demux debug: TIMER module_need() : 0.165 ms - Total 0.165 ms / 
1 intvls (Avg 0.165 ms)
[0x1b6df00] main input debug: creating access 'rtmp' 
path='localhost/live/livestream'
[0x1f3a9c0] main access debug: looking for access module: 1 candidate
[0x1f3a9c0] access_avio access debug: Opening 'rtmp://localhost/live/livestream'
Warning: call to rand()
Warning: call to rand()
Warning: call to rand()
Warning: call to rand()
Closing connection: NetStream.Play.StreamNotFound
[0x1f3a9c0] access_avio access error: Failed to open url using libavformat
[0x1f3a9c0] main access debug: no access module matching "rtmp" could be loaded
[0x1f3a9c0] main access debug: TIMER module_need() : 81.128 ms - Total 81.128 
ms / 1 intvls (Avg 81.128 ms)
[0x1b6df00] main input error: open of `rtmp://localhost/live/livestream' 
failed: (null)

If I open with ffplay...
ffplay rtmp://localhost/live/livestream

I get the following error report...

Closing connection: NetStream.Play.StreamNotFound
rtmp://localhost/live/livestream: Operation not permitted

If I connect using rtmpdump piped into ffplay...
rtmpdump -r rtmp://localhost/live/livestream -q -o - -v | ffplay -

I get only sound, no picture, and the following error report...

[h264 @ 0x22ccc80]no frame!
[flv @ 0x22a86b0]invalid stream
[h264 @ 0x22ccc80]no frame!
    Last message repeated 4 times
[h264 @ 0x22ccc80]slice type too large (0) at 0 0
[h264 @ 0x22ccc80]decode_slice_header error
[h264 @ 0x22ccc80]no frame!
(repeated)

Original issue reported on code.google.com by sblandf...@gmail.com on 22 Feb 2011 at 3:19