SHOW:
|
|
- or go back to the newest paste.
| 1 | ffmpeg -re -f v4l2 -i /dev/video0 -s 320x240 -r 29.97 \ | |
| 2 | -vcodec libx264 -pix_fmt yuv420p -s 320x240 \ | |
| 3 | -c:v libx264 -crf 27 \ | |
| 4 | -tune zerolatency -profile:v baseline -level 30 -flags +global_header \ | |
| 5 | -f rtp rtp://127.0.0.1:4008 > test.sdp | |
| 6 | ||
| 7 | ##WORKS | |
| 8 | ffplay rtp://localhost:4008 | |
| 9 | ||
| 10 | ##copying test.sdp to another machine and running | |
| 11 | ffplay -i test.sdp | |
| 12 | ||
| 13 | produces an error: | |
| 14 | ||
| 15 | Could not find codec parameters for stream 0 (Video: h264): unspecified size | |
| 16 | Consider increasing 'analyzeduration' and 'probesize' | |
| 17 | - | Consider increasing 'analyzeduration' and 'probesize' |
| 17 | + | |
| 18 | the contents of | |
| 19 | test.sdp: | |
| 20 | v=0 | |
| 21 | o=- 0 0 IN IP4 127.0.0.1 | |
| 22 | s=No Name | |
| 23 | c=IN IP4 192.168.1.6 | |
| 24 | t=0 0 | |
| 25 | a=tool:libavformat 55.4.101 | |
| 26 | m=video 4008 RTP/AVP 96 | |
| 27 | a=rtpmap:96 H264/90000 | |
| 28 | a=fmtp:96 packetization-mode=1; sprop-parameter-sets=Z0LAHtkBQfoQAAAGQAABdqjxYuSA,aMuFLIA=; profile-level-id=42C01E | |
| 29 | ||
| 30 | complete output of the command | |
| 31 | $ ffplay -i test.sdp -analyzeduration 99999 -debug 5 | |
| 32 | ||
| 33 | output: | |
| 34 | ffplay -i test.sdp -analyzeduration 9999 -debug 5 | |
| 35 | ffplay version git-2013-05-13-4383e1b Copyright (c) 2003-2013 the FFmpeg developers | |
| 36 | built on May 13 2013 16:04:47 with gcc 4.6 (Ubuntu/Linaro 4.6.3-1ubuntu5) | |
| 37 | configuration: --enable-gpl --enable-libass --enable-libfaac --enable-libfdk-aac --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libspeex --enable-librtmp --enable-libtheora --enable-libvorbis --enable-libvpx --enable-x11grab --enable-libx264 --enable-nonfree --enable-version3 --enable-libopus | |
| 38 | libavutil 52. 30.100 / 52. 30.100 | |
| 39 | libavcodec 55. 9.100 / 55. 9.100 | |
| 40 | libavformat 55. 7.100 / 55. 7.100 | |
| 41 | libavdevice 55. 0.100 / 55. 0.100 | |
| 42 | libavfilter 3. 65.100 / 3. 65.100 | |
| 43 | libswscale 2. 3.100 / 2. 3.100 | |
| 44 | libswresample 0. 17.102 / 0. 17.102 | |
| 45 | libpostproc 52. 3.100 / 52. 3.100 | |
| 46 | [sdp @ 0xb2401980] Format sdp probed with size=2048 and score=500 | |
| 47 | [sdp @ 0xb2401980] video codec set to: h264 | |
| 48 | [NULL @ 0xb24005e0] RTP Packetization Mode: 1 | |
| 49 | [NULL @ 0xb24005e0] Extradata set to 0xb2402500 (size: 34)! | |
| 50 | [NULL @ 0xb24005e0] RTP Profile IDC: 42 Profile IOP: c0 Level: 1e | |
| 51 | [sdp @ 0xb2401980] File position before avformat_find_stream_info() is 258 | |
| 52 | [h264 @ 0xb24005e0] sps:0 profile:66/30 poc:2 ref:3 20x15 FRM 8B8 crop:0/0/0/0 VUI 420 100/5994 b8 reo:-1 | |
| 53 | [h264 @ 0xb24005e0] pps:0 sps:0 CAVLC slice_groups:1 ref:3/1 qp:27/26/-2/-2 LPAR | |
| 54 | [h264 @ 0xb24005e0] sps:0 profile:66/30 poc:2 ref:3 20x15 FRM 8B8 crop:0/0/0/0 VUI 420 100/5994 b8 reo:-1 | |
| 55 | [h264 @ 0xb24005e0] pps:0 sps:0 CAVLC slice_groups:1 ref:3/1 qp:27/26/-2/-2 LPAR | |
| 56 | [sdp @ 0xb2401980] Could not find codec parameters for stream 0 (Video: h264): unspecified size | |
| 57 | Consider increasing the value for the 'analyzeduration' and 'probesize' options | |
| 58 | [sdp @ 0xb2401980] File position after avformat_find_stream_info() is 258 | |
| 59 | test.sdp: could not find codec parameters | |
| 60 | [AVIOContext @ 0xb24004a0] Statistics: 258 bytes read, 0 seeks |