Transcoding rtsp streamed mp4 to h.264 (rtsp

Transcoding rtsp streamed mp4 to h.264 (rtsp

Support ForumCategory: Installation and Basic OperationTranscoding rtsp streamed mp4 to h.264 (rtsp
maves asked 9 years ago
I am trying to isolate a problem with decode of rtsp streamed mp4 data through EMS. As part of this process I am attempting to use evo-avconv (with the intention of using launchprocess eventually) to convert an rtsp streamed mp4 version of the standard big bunny video at 640 res. I am using vlc as rtsp server. Where am I going wrong with this command-line implementation of the conversion?
$ /bin//evo-avconv -f rtsp -i rtsp://127.0.0.1:8554/stream_raw -c:v libx264 -c:a libfaac -b:v 1000k -f rtsp -metadata title=stream_h264 rtsp://127.0.0.1:9544/stream_h264
avconv version 11.3, Copyright (c) 2000-2014 the Libav developers
  built on Nov  4 2015 20:24:09 with gcc 4.8.3 (GCC) 20140911 (Red Hat 4.8.3-9)
[aac @ 0x28602a0] Audio object type 0 is not implemented. Update your Libav version to the newest one from Git. If the problem still occurs, it means that your file has a feature which has not been implemented.
[aac @ 0x28602a0] Audio object type 0 is not implemented. Update your Libav version to the newest one from Git. If the problem still occurs, it means that your file has a feature which has not been implemented.
[rtsp @ 0x284d1c0] Estimating duration from bitrate, this may be inaccurate
Guessed Channel Layout for  Input Stream #0.0 : 5.1
Input #0, rtsp, from 'rtsp://127.0.0.1:8554/stream_raw':
  Metadata:
    title           : Unnamed
    comment         : N/A
  Duration: N/A, start: 7876.744889, bitrate: N/A
    Stream #0.0: Audio: aac, 48000 Hz, 6 channels, fltp
    Stream #0.1: Video: mpeg4 (Simple Profile), yuv420p, 640x368 [PAR 1:1 DAR 40:23], 25 fps, 90k tbn, 25 tbc
[libx264 @ 0x28a50a0] using SAR=1/1
[libx264 @ 0x28a50a0] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX
[libx264 @ 0x28a50a0] profile High, level 3.0
[libx264 @ 0x28a50a0] 264 - core 142 - H.264/MPEG-4 AVC codec - Copyleft 2003-2014 - http://www.videolan.org/x264.html - options: cabac=1 ref=3 deblock=1:0:0 analyse=0x3:0x113 me=hex subme=7 psy=1 psy_rd=1.00:0.00 mixed_ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=1 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2 threads=6 lookahead_threads=1 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=3 b_pyramid=2 b_adapt=1 b_bias=0 direct=1 weightb=1 open_gop=0 weightp=2 keyint=250 keyint_min=25 scenecut=40 intra_refresh=0 rc_lookahead=40 rc=abr mbtree=1 bitrate=1000 ratetol=1.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00
[aac @ 0x28a0dc0] Audio object type 0 is not implemented. Update your Libav version to the newest one from Git. If the problem still occurs, it means that your file has a feature which has not been implemented.
Output #0, rtsp, to 'rtsp://127.0.0.1:9544/stream_h264':
  Metadata:
    comment         : N/A
    title           : stream_h264
    Stream #0.0: Video: libx264, yuv420p, 640x368 [PAR 1:1 DAR 40:23], q=-1--1, 1000 kb/s, 25 fps, 25 tbn, 25 tbc
    Metadata:
      encoder         : Lavc56.1.0 libx264
    Stream #0.1: Audio: libfaac, 48000 Hz, 5.1, s16, 200 kb/s
    Metadata:
      encoder         : Lavc56.1.0 libfaac
Stream mapping:
  Stream #0:1 -> #0:0 (mpeg4 (native) -> h264 (libx264))
  Stream #0:0 -> #0:1 (aac (native) -> aac (libfaac))
Error while opening decoder for input stream #0:0 : Function not implemented
[libx264 @ 0x28a50a0] final ratefactor: 22.46
[mark@alex-vostro Desktop]$ 
I can confirm that my installation is capable of converting the mp4.
$ /bin//evo-avconv -f mp4 -i /home/mark/Videos/SampleVideo_640x360_50mb.mp4 -c:v libx264 -c:a libfaac -b:v 1000k -f flv ~/test.flv
avconv version 11.3, Copyright (c) 2000-2014 the Libav developers
  built on Nov  4 2015 20:24:09 with gcc 4.8.3 (GCC) 20140911 (Red Hat 4.8.3-9)
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/home/mark/Videos/SampleVideo_640x360_50mb.mp4':
  Metadata:
    major_brand     : isom
    minor_version   : 512
    compatible_brands: isomiso2mp41
    creation_time   : 1970-01-01 00:00:00
    encoder         : Lavf53.24.2
  Duration: 00:05:01.95, start: 0.000000, bitrate: 1390 kb/s
    Stream #0.0(und): Video: mpeg4 (Simple Profile), yuv420p, 640x368 [PAR 1:1 DAR 40:23], 1002 kb/s, 25 fps, 12800 tbn, 25 tbc (default)
    Metadata:
      creation_time   : 1970-01-01 00:00:00
    Stream #0.1(und): Audio: aac, 48000 Hz, 5.1, fltp, 383 kb/s (default)
    Metadata:
      creation_time   : 1970-01-01 00:00:00
File '/home/mark/test.flv' already exists. Overwrite ? [y/N] y
[libx264 @ 0x2f248a0] using SAR=1/1
[libx264 @ 0x2f248a0] MB rate (11776000) > level limit (2073600)
[libx264 @ 0x2f248a0] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX
[libx264 @ 0x2f248a0] profile High, level 5.2
[libx264 @ 0x2f248a0] 264 - core 142 - H.264/MPEG-4 AVC codec - Copyleft 2003-2014 - http://www.videolan.org/x264.html - options: cabac=1 ref=3 deblock=1:0:0 analyse=0x3:0x113 me=hex subme=7 psy=1 psy_rd=1.00:0.00 mixed_ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=1 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2 threads=6 lookahead_threads=1 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=3 b_pyramid=2 b_adapt=1 b_bias=0 direct=1 weightb=1 open_gop=0 weightp=2 keyint=250 keyint_min=25 scenecut=40 intra_refresh=0 rc_lookahead=40 rc=abr mbtree=1 bitrate=1000 ratetol=1.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00
Output #0, flv, to '/home/mark/test.flv':
  Metadata:
    major_brand     : isom
    minor_version   : 512
    compatible_brands: isomiso2mp41
    creation_time   : 1970-01-01 00:00:00
    encoder         : Lavf56.1.0
    Stream #0.0(und): Video: libx264, yuv420p, 640x368 [PAR 1:1 DAR 40:23], q=-1--1, 1000 kb/s, 1k tbn, 12800 tbc (default)
    Metadata:
      creation_time   : 1970-01-01 00:00:00
      encoder         : Lavc56.1.0 libx264
    Stream #0.1(und): Audio: libfaac, 48000 Hz, 5.1, s16, 200 kb/s (default)
    Metadata:
      creation_time   : 1970-01-01 00:00:00
      encoder         : Lavc56.1.0 libfaac
Stream mapping:
  Stream #0:0 -> #0:0 (mpeg4 (native) -> h264 (libx264))
  Stream #0:1 -> #0:1 (aac (native) -> aac (libfaac))
Press ctrl-c to stop encoding
^Cframe= 1090 fps=183 q=-1.0 Lsize=    6171kB time=43.48 bitrate=1162.6kbits/s    
video:5051kB audio:1064kB other streams:0kB global headers:0kB muxing overhead: 0.910925%
[libx264 @ 0x2f248a0] frame I:11    Avg QP:12.82  size: 47667
[libx264 @ 0x2f248a0] frame P:680   Avg QP:17.24  size:  6186
[libx264 @ 0x2f248a0] frame B:399   Avg QP:20.69  size:  1104
[libx264 @ 0x2f248a0] consecutive B-frames: 49.5%  3.7%  3.9% 42.9%
[libx264 @ 0x2f248a0] mb I  I16..4: 16.2% 70.5% 13.3%
[libx264 @ 0x2f248a0] mb P  I16..4:  0.4%  2.8%  0.4%  P16..4: 30.2% 15.6% 12.3%  0.0%  0.0%    skip:38.4%
[libx264 @ 0x2f248a0] mb B  I16..4:  0.0%  0.3%  0.1%  B16..8: 20.9%  3.5%  1.1%  direct: 1.8%  skip:72.4%  L0:39.4% L1:42.1% BI:18.5%
[libx264 @ 0x2f248a0] final ratefactor: 16.43
[libx264 @ 0x2f248a0] 8x8 transform intra:75.7% inter:66.4%
[libx264 @ 0x2f248a0] coded y,uvDC,uvAC intra: 81.2% 86.5% 66.3% inter: 21.0% 21.9% 5.9%
[libx264 @ 0x2f248a0] i16 v,h,dc,p: 20% 42%  9% 29%
[libx264 @ 0x2f248a0] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 18% 20% 21%  5%  6%  7%  7%  8%  8%
[libx264 @ 0x2f248a0] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 18% 21% 12%  6% 10%  9%  9%  7%  8%
[libx264 @ 0x2f248a0] i8c dc,h,v,p: 42% 23% 21% 14%
[libx264 @ 0x2f248a0] Weighted P-Frames: Y:0.0% UV:0.0%
[libx264 @ 0x2f248a0] ref P L0: 75.5% 16.1%  6.8%  1.6%
[libx264 @ 0x2f248a0] ref B L0: 92.2%  6.8%  1.0%
[libx264 @ 0x2f248a0] ref B L1: 96.1%  3.9%
[libx264 @ 0x2f248a0] kb/s:948.89
Received signal 2: terminating.
Thanks in advance



Offcanvas

Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.