[mythtv-users] OT: ffmpeg - help with poor output quality

Chris Porter hoodlum7 at gmail.com
Thu Jun 28 20:45:35 UTC 2012


On Thu, Jun 28, 2012 at 6:22 AM, Michelle Dupuis <mdupuis at ocg.ca> wrote:

>  I tried your command line but ffmpeg seems to fail on the
> recording...(see below).  I tried replacing baseline with BP (since it
> complained about the word baseline too)...but neither seem right.  Ideas on
> what's wrong below?
>
> + ffmpeg -i /mythstorage/recordings/1625_20120627225900.mpg -acodec aac
> -strict experimental -strict experimental -ab 128k -ac 2 -s 800x600 -vcodec
> libx264 -profile BP -tune film -b 600k -r 30 -level 21 -g 90 -async 2
> -threads 0 -metadata title=Test1 /tmp/Test1.mp4
> ffmpeg version 0.10.2 Copyright (c) 2000-2012 the FFmpeg developers
>   built on Mar 20 2012 04:34:50 with gcc 4.4.6 20110731 (Red Hat 4.4.6-3)
>   configuration: --prefix=/usr --libdir=/usr/lib64 --shlibdir=/usr/lib64
> --mandir=/usr/share/man --enable-shared --enable-runtime-cpudetect
> --enable-gpl --enable-version3 --enable-postproc --enable-avfilter
> --enable-pthreads --enable-x11grab --enable-vdpau --disable-avisynth
> --enable-frei0r --enable-libopencv --enable-libdc1394 --enable-libdirac
> --enable-libgsm --enable-libmp3lame --enable-libnut
> --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg
> --enable-librtmp --enable-libschroedinger --enable-libspeex
> --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libx264
> --enable-libxavs --enable-libxvid --extra-cflags='-O2 -g -pipe -Wall
> -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector
> --param=ssp-buffer-size=4 -m64 -mtune=generic -fPIC' --disable-stripping
>   libavutil      51. 35.100 / 51. 35.100
>   libavcodec     53. 61.100 / 53. 61.100
>   libavformat    53. 32.100 / 53. 32.100
>   libavdevice    53.  4.100 / 53.  4.100
>   libavfilter     2. 61.100 /  2. 61.100
>   libswscale      2.  1.100 /  2.  1.100
>   libswresample   0.  6.100 /  0.  6.100
>   libpostproc    52.  0.100 / 52.  0.100
> [h264 @ 0x24ffae0] sps_id out of range
> [h264 @ 0x24ffae0] non-existing SPS 15 referenced in buffering period
> [h264 @ 0x24ffae0] non-existing PPS referenced
> [h264 @ 0x24ffae0] sps_id out of range
> [h264 @ 0x24ffae0] non-existing SPS 15 referenced in buffering period
> [h264 @ 0x24ffae0] non-existing PPS 0 referenced
> [h264 @ 0x24ffae0] decode_slice_header error
> [h264 @ 0x24ffae0] no frame!
> [h264 @ 0x24ffae0] sps_id out of range
> [h264 @ 0x24ffae0] non-existing SPS 32 referenced in buffering period
> [h264 @ 0x24ffae0] non-existing PPS referenced
> [h264 @ 0x24ffae0] sps_id out of range
> [h264 @ 0x24ffae0] non-existing SPS 32 referenced in buffering period
> [h264 @ 0x24ffae0] non-existing PPS 0 referenced
> [h264 @ 0x24ffae0] decode_slice_header error
> [h264 @ 0x24ffae0] no frame!
> [h264 @ 0x24ffae0] sps_id out of range
> [h264 @ 0x24ffae0] non-existing SPS 32 referenced in buffering period
> [h264 @ 0x24ffae0] non-existing PPS referenced
> [h264 @ 0x24ffae0] sps_id out of range
> [h264 @ 0x24ffae0] non-existing SPS 32 referenced in buffering period
> [h264 @ 0x24ffae0] non-existing PPS 0 referenced
> [h264 @ 0x24ffae0] decode_slice_header error
> [h264 @ 0x24ffae0] no frame!
> [h264 @ 0x24ffae0] sps_id out of range
> [h264 @ 0x24ffae0] non-existing SPS 32 referenced in buffering period
> [h264 @ 0x24ffae0] non-existing PPS referenced
> [h264 @ 0x24ffae0] sps_id out of range
> [h264 @ 0x24ffae0] non-existing SPS 32 referenced in buffering period
> [h264 @ 0x24ffae0] non-existing PPS 0 referenced
> [h264 @ 0x24ffae0] decode_slice_header error
> [h264 @ 0x24ffae0] no frame!
> [h264 @ 0x24ffae0] sps_id out of range
> [h264 @ 0x24ffae0] non-existing SPS 15 referenced in buffering period
> [h264 @ 0x24ffae0] non-existing PPS referenced
> [h264 @ 0x24ffae0] sps_id out of range
> [h264 @ 0x24ffae0] non-existing SPS 15 referenced in buffering period
> [h264 @ 0x24ffae0] non-existing PPS 0 referenced
> [h264 @ 0x24ffae0] decode_slice_header error
> [h264 @ 0x24ffae0] no frame!
> [h264 @ 0x24ffae0] sps_id out of range
> [h264 @ 0x24ffae0] non-existing SPS 32 referenced in buffering period
> [h264 @ 0x24ffae0] non-existing PPS referenced
> [h264 @ 0x24ffae0] sps_id out of range
> [h264 @ 0x24ffae0] non-existing SPS 32 referenced in buffering period
> [h264 @ 0x24ffae0] non-existing PPS 0 referenced
> [h264 @ 0x24ffae0] decode_slice_header error
> [h264 @ 0x24ffae0] no frame!
> [h264 @ 0x24ffae0] sps_id out of range
> [h264 @ 0x24ffae0] non-existing SPS 32 referenced in buffering period
> [h264 @ 0x24ffae0] non-existing PPS referenced
> [h264 @ 0x24ffae0] sps_id out of range
> [h264 @ 0x24ffae0] non-existing SPS 32 referenced in buffering period
> [h264 @ 0x24ffae0] non-existing PPS 0 referenced
> [h264 @ 0x24ffae0] decode_slice_header error
> [h264 @ 0x24ffae0] no frame!
> [h264 @ 0x24ffae0] sps_id out of range
> [h264 @ 0x24ffae0] non-existing SPS 32 referenced in buffering period
> [h264 @ 0x24ffae0] non-existing PPS referenced
> [h264 @ 0x24ffae0] sps_id out of range
> [h264 @ 0x24ffae0] non-existing SPS 32 referenced in buffering period
> [h264 @ 0x24ffae0] non-existing PPS 0 referenced
> [h264 @ 0x24ffae0] decode_slice_header error
> [h264 @ 0x24ffae0] no frame!
> [h264 @ 0x24ffae0] sps_id out of range
> [h264 @ 0x24ffae0] non-existing SPS 15 referenced in buffering period
> [h264 @ 0x24ffae0] non-existing PPS referenced
> [h264 @ 0x24ffae0] sps_id out of range
> [h264 @ 0x24ffae0] non-existing SPS 15 referenced in buffering period
> [h264 @ 0x24ffae0] non-existing PPS 0 referenced
> [h264 @ 0x24ffae0] decode_slice_header error
> [h264 @ 0x24ffae0] no frame!
> [h264 @ 0x24ffae0] sps_id out of range
> [h264 @ 0x24ffae0] non-existing SPS 32 referenced in buffering period
> [h264 @ 0x24ffae0] non-existing PPS referenced
> [h264 @ 0x24ffae0] sps_id out of range
> [h264 @ 0x24ffae0] non-existing SPS 32 referenced in buffering period
> [h264 @ 0x24ffae0] non-existing PPS 0 referenced
> [h264 @ 0x24ffae0] decode_slice_header error
> [h264 @ 0x24ffae0] no frame!
> [h264 @ 0x24ffae0] sps_id out of range
> [h264 @ 0x24ffae0] non-existing SPS 32 referenced in buffering period
> [h264 @ 0x24ffae0] non-existing PPS referenced
> [h264 @ 0x24ffae0] sps_id out of range
> [h264 @ 0x24ffae0] non-existing SPS 32 referenced in buffering period
> [h264 @ 0x24ffae0] non-existing PPS 0 referenced
> [h264 @ 0x24ffae0] decode_slice_header error
> [h264 @ 0x24ffae0] no frame!
> [h264 @ 0x24ffae0] sps_id out of range
> [h264 @ 0x24ffae0] non-existing SPS 32 referenced in buffering period
> [h264 @ 0x24ffae0] non-existing PPS referenced
> [h264 @ 0x24ffae0] sps_id out of range
> [h264 @ 0x24ffae0] non-existing SPS 32 referenced in buffering period
> [h264 @ 0x24ffae0] non-existing PPS 0 referenced
> [h264 @ 0x24ffae0] decode_slice_header error
> [h264 @ 0x24ffae0] no frame!
> [h264 @ 0x24ffae0] sps_id out of range
> [h264 @ 0x24ffae0] non-existing SPS 15 referenced in buffering period
> [h264 @ 0x24ffae0] non-existing PPS referenced
> [h264 @ 0x24ffae0] sps_id out of range
> [h264 @ 0x24ffae0] non-existing SPS 15 referenced in buffering period
> [h264 @ 0x24ffae0] non-existing PPS 0 referenced
> [h264 @ 0x24ffae0] decode_slice_header error
> [h264 @ 0x24ffae0] no frame!
> [h264 @ 0x24ffae0] sps_id out of range
> [h264 @ 0x24ffae0] non-existing SPS 32 referenced in buffering period
> [h264 @ 0x24ffae0] non-existing PPS referenced
> [h264 @ 0x24ffae0] sps_id out of range
> [h264 @ 0x24ffae0] non-existing SPS 32 referenced in buffering period
> [h264 @ 0x24ffae0] non-existing PPS 0 referenced
> [h264 @ 0x24ffae0] decode_slice_header error
> [h264 @ 0x24ffae0] no frame!
> [h264 @ 0x24ffae0] sps_id out of range
> [h264 @ 0x24ffae0] non-existing SPS 32 referenced in buffering period
> [h264 @ 0x24ffae0] non-existing PPS referenced
> [h264 @ 0x24ffae0] sps_id out of range
> [h264 @ 0x24ffae0] non-existing SPS 32 referenced in buffering period
> [h264 @ 0x24ffae0] non-existing PPS 0 referenced
> [h264 @ 0x24ffae0] decode_slice_header error
> [h264 @ 0x24ffae0] no frame!
> [h264 @ 0x24ffae0] sps_id out of range
> [h264 @ 0x24ffae0] non-existing SPS 32 referenced in buffering period
> [h264 @ 0x24ffae0] non-existing PPS referenced
> [h264 @ 0x24ffae0] sps_id out of range
> [h264 @ 0x24ffae0] non-existing SPS 32 referenced in buffering period
> [h264 @ 0x24ffae0] non-existing PPS 0 referenced
> [h264 @ 0x24ffae0] decode_slice_header error
> [h264 @ 0x24ffae0] no frame!
> [h264 @ 0x24ffae0] sps_id out of range
> [h264 @ 0x24ffae0] non-existing SPS 15 referenced in buffering period
> [h264 @ 0x24ffae0] non-existing PPS referenced
> [h264 @ 0x24ffae0] sps_id out of range
> [h264 @ 0x24ffae0] non-existing SPS 15 referenced in buffering period
> [h264 @ 0x24ffae0] non-existing PPS 0 referenced
> [h264 @ 0x24ffae0] decode_slice_header error
> [h264 @ 0x24ffae0] no frame!
> [h264 @ 0x24ffae0] sps_id out of range
> [h264 @ 0x24ffae0] non-existing SPS 32 referenced in buffering period
> [h264 @ 0x24ffae0] non-existing PPS referenced
> [h264 @ 0x24ffae0] sps_id out of range
> [h264 @ 0x24ffae0] non-existing SPS 32 referenced in buffering period
> [h264 @ 0x24ffae0] non-existing PPS 0 referenced
> [h264 @ 0x24ffae0] decode_slice_header error
> [h264 @ 0x24ffae0] no frame!
> [h264 @ 0x24ffae0] sps_id out of range
> [h264 @ 0x24ffae0] non-existing SPS 32 referenced in buffering period
> [h264 @ 0x24ffae0] non-existing PPS referenced
> [h264 @ 0x24ffae0] sps_id out of range
> [h264 @ 0x24ffae0] non-existing SPS 32 referenced in buffering period
> [h264 @ 0x24ffae0] non-existing PPS 0 referenced
> [h264 @ 0x24ffae0] decode_slice_header error
> [h264 @ 0x24ffae0] no frame!
> [h264 @ 0x24ffae0] sps_id out of range
> [h264 @ 0x24ffae0] non-existing SPS 32 referenced in buffering period
> [h264 @ 0x24ffae0] non-existing PPS referenced
> [h264 @ 0x24ffae0] sps_id out of range
> [h264 @ 0x24ffae0] non-existing SPS 32 referenced in buffering period
> [h264 @ 0x24ffae0] non-existing PPS 0 referenced
> [h264 @ 0x24ffae0] decode_slice_header error
> [h264 @ 0x24ffae0] no frame!
> [h264 @ 0x24ffae0] sps_id out of range
> [h264 @ 0x24ffae0] non-existing SPS 15 referenced in buffering period
> [h264 @ 0x24ffae0] non-existing PPS referenced
> [h264 @ 0x24ffae0] sps_id out of range
> [h264 @ 0x24ffae0] non-existing SPS 15 referenced in buffering period
> [h264 @ 0x24ffae0] non-existing PPS 0 referenced
> [h264 @ 0x24ffae0] decode_slice_header error
> [h264 @ 0x24ffae0] no frame!
> [h264 @ 0x24ffae0] sps_id out of range
> [h264 @ 0x24ffae0] non-existing SPS 32 referenced in buffering period
> [h264 @ 0x24ffae0] non-existing PPS referenced
> [h264 @ 0x24ffae0] sps_id out of range
> [h264 @ 0x24ffae0] non-existing SPS 32 referenced in buffering period
> [h264 @ 0x24ffae0] non-existing PPS 0 referenced
> [h264 @ 0x24ffae0] decode_slice_header error
> [h264 @ 0x24ffae0] no frame!
> [h264 @ 0x24ffae0] sps_id out of range
> [h264 @ 0x24ffae0] non-existing SPS 32 referenced in buffering period
> [h264 @ 0x24ffae0] non-existing PPS referenced
> [h264 @ 0x24ffae0] sps_id out of range
> [h264 @ 0x24ffae0] non-existing SPS 32 referenced in buffering period
> [h264 @ 0x24ffae0] non-existing PPS 0 referenced
> [h264 @ 0x24ffae0] decode_slice_header error
> [h264 @ 0x24ffae0] no frame!
> [h264 @ 0x24ffae0] sps_id out of range
> [h264 @ 0x24ffae0] non-existing SPS 32 referenced in buffering period
> [h264 @ 0x24ffae0] non-existing PPS referenced
> [h264 @ 0x24ffae0] sps_id out of range
> [h264 @ 0x24ffae0] non-existing SPS 32 referenced in buffering period
> [h264 @ 0x24ffae0] non-existing PPS 0 referenced
> [h264 @ 0x24ffae0] decode_slice_header error
> [h264 @ 0x24ffae0] no frame!
> [h264 @ 0x24ffae0] sps_id out of range
> [h264 @ 0x24ffae0] non-existing SPS 15 referenced in buffering period
> [h264 @ 0x24ffae0] non-existing PPS referenced
> [h264 @ 0x24ffae0] sps_id out of range
> [h264 @ 0x24ffae0] non-existing SPS 15 referenced in buffering period
> [h264 @ 0x24ffae0] non-existing PPS 0 referenced
> [h264 @ 0x24ffae0] decode_slice_header error
> [h264 @ 0x24ffae0] no frame!
> [h264 @ 0x24ffae0] sps_id out of range
> [h264 @ 0x24ffae0] non-existing SPS 32 referenced in buffering period
> [h264 @ 0x24ffae0] non-existing PPS referenced
> [h264 @ 0x24ffae0] sps_id out of range
> [h264 @ 0x24ffae0] non-existing SPS 32 referenced in buffering period
> [h264 @ 0x24ffae0] non-existing PPS 0 referenced
> [h264 @ 0x24ffae0] decode_slice_header error
> [h264 @ 0x24ffae0] no frame!
> [h264 @ 0x24ffae0] sps_id out of range
> [h264 @ 0x24ffae0] non-existing SPS 32 referenced in buffering period
> [h264 @ 0x24ffae0] non-existing PPS referenced
> [h264 @ 0x24ffae0] sps_id out of range
> [h264 @ 0x24ffae0] non-existing SPS 32 referenced in buffering period
> [h264 @ 0x24ffae0] non-existing PPS 0 referenced
> [h264 @ 0x24ffae0] decode_slice_header error
> [h264 @ 0x24ffae0] no frame!
> [h264 @ 0x24ffae0] sps_id out of range
> [h264 @ 0x24ffae0] non-existing SPS 32 referenced in buffering period
> [h264 @ 0x24ffae0] non-existing PPS referenced
> [h264 @ 0x24ffae0] sps_id out of range
> [h264 @ 0x24ffae0] non-existing SPS 32 referenced in buffering period
> [h264 @ 0x24ffae0] non-existing PPS 0 referenced
> [h264 @ 0x24ffae0] decode_slice_header error
> [h264 @ 0x24ffae0] no frame!
> [h264 @ 0x24ffae0] mmco: unref short failure
> [h264 @ 0x24ffae0] Increasing reorder buffer to 1
> [h264 @ 0x24ffae0] mmco: unref short failure
> [mpegts @ 0x24fbc00] max_analyze_duration 5000000 reached at 5024000
> Input #0, mpegts, from '/mythstorage/recordings/1625_20120627225900.mpg':
>   Duration: 00:31:00.81, start: 0.419044, bitrate: 3671 kb/s
>   Program 1
>     Stream #0:0[0x1011]: Video: h264 (Main) (HDMV / 0x564D4448), yuv420p,
> 1280x720 [SAR 1:1 DAR 16:9], 65.83 fps, 59.94 tbr, 90k tbn, 119.88 tbc
>     Stream #0:1[0x1100]: Audio: ac3 (AC-3 / 0x332D4341), 48000 Hz, stereo,
> s16, 384 kb/s
> Please use -b:a or -b:v, -b is ambiguous
> [buffer @ 0x25026c0] w:1280 h:720 pixfmt:yuv420p tb:1/1000000 sar:1/1
> sws_param:
> [scale @ 0x2504180] w:1280 h:720 fmt:yuv420p -> w:800 h:600 fmt:yuv420p
> flags:0x4
> Incompatible sample format 's16' for codec 'aac', auto-selecting format
> 'flt'
> x264 [error]: invalid profile: BP
> [libx264 @ 0x2501fa0] Error setting profile BP.
> Output #0, mp4, to '/tmp/Test1.mp4':
>   Metadata:
>     title           : Test1
>     Stream #0:0: Video: h264, yuv420p, 800x600 [SAR 4:3 DAR 16:9],
> q=-1--1, 600 kb/s, 90k tbn, 30 tbc
>     Stream #0:1: Audio: none, 48000 Hz, 2 channels, flt, 128 kb/s
> Stream mapping:
>   Stream #0:0 -> #0:0 (h264 -> libx264)
>   Stream #0:1 -> #0:1 (ac3 -> aac)
> Error while opening encoder for output stream #0:0 - maybe incorrect
> parameters such as bit_rate, rate, width or height
>
> _______________________________________________
> mythtv-users mailing list
> mythtv-users at mythtv.org
> http://www.mythtv.org/mailman/listinfo/mythtv-users
>
>
Are you getting "invalid profile baseline?" Try running x264 --help and
look for Presets:

it should look like this:
Presets:

      --profile <string>      Force the limits of an H.264 profile
                                  Overrides all settings.
                                  -
baseline,main,high,high10,high422,high444
      --preset <string>       Use a preset to select encoding settings
[medium]
                                  Overridden by user settings.
                                  - ultrafast,superfast,veryfast,faster,fast
                                  - medium,slow,slower,veryslow,placebo
      --tune <string>         Tune the settings for a particular type of
source
                              or situation
                                  Overridden by user settings.
                                  Multiple tunings are separated by commas.
                                  Only one psy tuning can be used at a time.
                                  - psy tunings: film,animation,grain,
                                                 stillimage,psnr,ssim
                                  - other tunings: fastdecode,zerolatency



-- 
Working on World Domination since 2001
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.mythtv.org/pipermail/mythtv-users/attachments/20120628/3da81819/attachment.html>


More information about the mythtv-users mailing list