[FFmpeg-user] Streaming Syntax error

Mettavihari D tv.lists at gmail.com
Tue Jul 25 08:29:11 EEST 2017


Greetings

Thank you for your interpretation.
It looks you are spot on.

> We need to see the proper *actual* command line used (minus your hidden
> output URL). You can add "-loglevel debug", that will (among others)
> display ffmpeg's option parsing. But the easiest way is to add the
> option "-report" to the command line, and then grab the resulting file
> "ffmpeg-20170724-162640.log" (or similar) and show us the top where it
> says:

I am not able to interpret the information below and would like to
have your advice
I have cut out the bulk of the data from the log file and given you a
head and tail of the file.

regards
Mettavihari


ffmpeg started on 2017-07-25 at 10:20:01
Report written to "ffmpeg-20170725-102001.log"
Command line:
/root/bin/ffmpeg -re -i
/media/data/video/yupptv/sutta/satipattana-15m.mp4 -report -acodec
libfdk_aac "-b:a 128k" -vcodec libx264 "-preset:v medium" "-b:v 1500k"
-f flv -metadata "streamName=xlarge" rtmp://site
ffmpeg version N-86069-ga453f55 Copyright (c) 2000-2017 the FFmpeg developers
  built with gcc 4.8.5 (GCC) 20150623 (Red Hat 4.8.5-11)
  configuration: --prefix=/root/ffmpeg_build
--extra-cflags=-I/root/ffmpeg_build/include
--extra-ldflags='-L/root/ffmpeg_build/lib -ldl' --bindir=/root/bin
--pkg-config-flags=--static --enable-gpl --enable-nonfree
--enable-libfdk_aac --enable-libfreetype --enable-libmp3lame
--enable-libvorbis --enable-libvpx --enable-libx264
  libavutil      55. 62.100 / 55. 62.100
  libavcodec     57. 95.101 / 57. 95.101
  libavformat    57. 72.101 / 57. 72.101
  libavdevice    57.  7.100 / 57.  7.100
  libavfilter     6. 89.100 /  6. 89.100
  libswscale      4.  7.101 /  4.  7.101
  libswresample   2.  8.100 /  2.  8.100
  libpostproc    54.  6.100 / 54.  6.100
Splitting the commandline.
Reading option '-re' ... matched as option 're' (read input at native
frame rate) with argument '1'.
Reading option '-i' ... matched as input url with argument
'/media/data/video/yupptv/sutta/satipattana-15m.mp4'.
Reading option '-report' ... matched as option 'report' (generate a
report) with argument '1'.
Reading option '-acodec' ... matched as option 'acodec' (force audio
codec ('copy' to copy stream)) with argument 'libfdk_aac'.
Reading option '-b:a 128k' ... matched as option 'b' (video bitrate
(please use -b:v)) with argument '-vcodec'.
Reading option 'libx264' ... matched as output url.
Reading option '-preset:v medium' ... matched as AVOption 'preset:v
medium' with argument '-b:v 1500k'.
Reading option '-f' ... matched as option 'f' (force format) with
argument 'flv'.
Reading option '-metadata' ... matched as option 'metadata' (add
metadata) with argument 'streamName=xlarge'.
Reading option 'rtmp://site' ... matched as output url.
Finished splitting the commandline.
Parsing a group of options: global .
Applying option report (generate a report) with argument 1.
Successfully parsed a group of options.
Parsing a group of options: input url
/media/data/video/yupptv/sutta/satipattana-15m.mp4.
Applying option re (read input at native frame rate) with argument 1.
Successfully parsed a group of options.
Opening an input file: /media/data/video/yupptv/sutta/satipattana-15m.mp4.
[file @ 0x3f16300] Setting default whitelist 'file,crypto'
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x3f15a60] Format mov,mp4,m4a,3gp,3g2,mj2
probed with size=2048 and score=100
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x3f15a60] ISO: File Type Major Brand: isom
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x3f15a60] Unknown dref type 0x206c7275 size 12
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x3f15a60] Offset DTS by ctts[0].duration: 2
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x3f15a60] Processing st: 0, edit list 0 -
media time: 2, duration: 109194
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x3f15a60] shifted frame pts, curr_cts: 0 @
0, ctts: 2, ctts_count: 60872
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x3f15a60] shifted frame pts, curr_cts: 1 @
0, ctts: 2, ctts_count: 60872
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x3f15a60] shifted frame pts, curr_cts: 2 @
1, ctts: 3, ctts_count: 60872

[...]

[mov,mp4,m4a,3gp,3g2,mj2 @ 0x3f15a60] shifted frame pts, curr_cts:
109192 @ 60871, ctts: 2, ctts_count: 60872
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x3f15a60] shifted frame pts, curr_cts:
109193 @ 60871, ctts: 2, ctts_count: 60872
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x3f15a60] Unknown dref type 0x206c7275 size 12
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x3f15a60] Processing st: 1, edit list 0 -
media time: 0, duration: 192619274
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x3f15a60] Before
avformat_find_stream_info() pos: 4185665 bytes read:4207516 seeks:0
nb_streams:2
[h264 @ 0x3f17360] nal_unit_type: 7, nal_ref_idc: 3
[h264 @ 0x3f17360] nal_unit_type: 8, nal_ref_idc: 3
[h264 @ 0x3f17360] nal_unit_type: 6, nal_ref_idc: 0
[h264 @ 0x3f17360] nal_unit_type: 5, nal_ref_idc: 3
[h264 @ 0x3f17360] user data:"x264 - core 124 r2197 69a0443 -
H.264/MPEG-4 AVC codec - Copyleft 2003-2012 -
http://www.videolan.org/x264.html - options: cabac=1 ref=5
deblock=1:0:0 analyse=0x1:0x111 me=umh subme=8 psy=1 psy_rd=1.00:0.00
mixed_ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=0 cqm=0
deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2 threads=3
sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0
constrained_intra=0 bframes=3 b_pyramid=2 b_adapt=2 b_bias=0 direct=3
weightb=1 open_gop=0 weightp=2 keyint=250 keyint_min=25 scenecut=40
intra_refresh=0 rc_lookahead=50 rc=cbr mbtree=1 bitrate=1500
ratetol=1.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 vbv_maxrate=1500
vbv_bufsize=1500 nal_hrd=none ip_ratio=1.40 aq=1:1.00"
[h264 @ 0x3f17360] Reinit context to 704x400, pix_fmt: yuv420p
[h264 @ 0x3f17360] no picture
[aac @ 0x3f1c0c0] skip whole frame, skip left: 0
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x3f15a60] All info found
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x3f15a60] After
avformat_find_stream_info() pos: 4187178 bytes read:4207516 seeks:0
frames:3
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from
'/media/data/video/yupptv/sutta/satipattana-15m.mp4':
  Metadata:
    major_brand     : isom
    minor_version   : 512
    compatible_brands: isomiso2avc1mp41
    encoder         : Lavf54.3.100
  Duration: 01:12:47.78, start: 0.000000, bitrate: 1603 kb/s
    Stream #0:0(und), 2, 1/25: Video: h264 (Main) (avc1 / 0x31637661),
yuv420p, 704x396 [SAR 3:4 DAR 4:3], 1468 kb/s, 25 fps, 25 tbr, 25 tbn,
50 tbc (default)
    Metadata:
      handler_name    : VideoHandler
    Stream #0:1(und), 1, 1/44100: Audio: aac (LC) (mp4a / 0x6134706D),
44100 Hz, stereo, fltp, 127 kb/s (default)
    Metadata:
      handler_name    : SoundHandler
Successfully opened the file.
Parsing a group of options: output url libx264.
Applying option acodec (force audio codec ('copy' to copy stream))
with argument libfdk_aac.
Applying option b:a 128k (video bitrate (please use -b:v)) with
argument -vcodec.
Successfully parsed a group of options.
Opening an output file: libx264.
[NULL @ 0x3f3e220] Unable to find a suitable output format for 'libx264'
libx264: Invalid argument
[AVIOContext @ 0x3f1e640] Statistics: 4207516 bytes read, 0 seeks


More information about the ffmpeg-user mailing list