<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN">
<HTML>
<HEAD>
  <META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=UTF-8">
  <META NAME="GENERATOR" CONTENT="GtkHTML/3.32.1">
</HEAD>
<BODY>
Problem: mytharchive &quot;Failed while running ffmpeg to re-encode video&quot; I had it working before and after some upgrade did not work any more. I can not pinpoint when this occurred. <BR>
<BR>
Ref: <BR>
opnesuse 12.1 and opensuse 11.4 both 64b<BR>
ffmpeg 0.10.2-2.1-x64<BR>
myth 0.24.2<BR>
-Hauppage HD-PVR<BR>
<BR>
This is part of the log that shows that error: &quot;sps_id out of range..etc&quot; <BR>
<BR>
I appreciate any tips or direction where should I go.<BR>
-=terry=-<BR>
<BR>
----------------------------------------------------------<BR>
<BR>
<BR>
There are 1 files to process<BR>
Pre-processing recording 1: '/mnt_tb/video/1073_20120408070000.mpg'<BR>
2012-04-08 15:58:26.809 getFileInfo(): Opening '/mnt_tb/video/1073_20120408070000.mpg'<BR>
[h264 @ 0x6f9230] sps_id out of range<BR>
[h264 @ 0x6f9230] non-existing SPS 15 referenced in buffering period<BR>
[h264 @ 0x6f9230] non-existing PPS referenced<BR>
----------------------------snip----------------------------------------<BR>
[h264 @ 0x6f9230] sps_id out of range<BR>
[h264 @ 0x6f9230] non-existing SPS 32 referenced in buffering period<BR>
[h264 @ 0x6f9230] non-existing PPS 0 referenced<BR>
[h264 @ 0x6f9230] decode_slice_header error<BR>
[h264 @ 0x6f9230] no frame!<BR>
[h264 @ 0x6f9230] mmco: unref short failure<BR>
Input #0, mpegts, from '/mnt_tb/video/1073_20120408070000.mpg':<BR>
&nbsp; Duration: 03:29:55.19, start: 0.408378, bitrate: 1826 kb/s<BR>
&nbsp;&nbsp;&nbsp; Stream #0.0[0x1011]: Video: h264, yuv420p, 720x480 [PAR 8:9 DAR 4:3], 224.85 fps, 59.94 tbr, 90k tbn, 59.94 tbc<BR>
&nbsp;&nbsp;&nbsp; Stream #0.1[0x1100]: Audio: aac, 48000 Hz, stereo, s16, 126 kb/s<BR>
2012-04-08 15:58:26.820 duration = 12595<BR>
2012-04-08 15:58:26.820 Extracting details from: 1073_20120408070000.mpg<BR>
2012-04-08 15:58:26.820 chanid: 1073 starttime:2012-04-08T07:00:00 <BR>
2012-04-08 15:58:26.823 File is a MythTV recording.<BR>
2012-04-08 15:58:26.824 cutframes = 609925<BR>
2012-04-08 15:58:26.824 cutduration = 10175<BR>
QSqlDatabasePrivate::removeDatabase: connection 'DBManager0' is still in use, all queries will cease to work.<BR>
streaminfo.xml :-<BR>
&lt;?xml version=&quot;1.0&quot; ?&gt;&lt;!DOCTYPE FILEINFO&gt;&lt;file cutduration=&quot;2420&quot; duration=&quot;12595&quot; filename=&quot;/mnt_tb/video/1073_20120408070000.mpg&quot; type=&quot;mpegts&quot;&gt;&nbsp;&nbsp;&nbsp; <BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;streams count=&quot;2&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;video aspectratio=&quot;1.33333&quot; bitrate=&quot;0&quot; codec=&quot;h264&quot; ffmpegindex=&quot;0&quot; fps=&quot;59.9401&quot; height=&quot;480&quot; id=&quot;4113&quot; start_time=&quot;0.55855&quot; streamindex=&quot;0&quot; width=&quot;720&quot;/&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;audio bitrate=&quot;126000&quot; channels=&quot;2&quot; codec=&quot;aac&quot; ffmpegindex=&quot;1&quot; id=&quot;4352&quot; language=&quot;N/A&quot; samplerate=&quot;48000&quot; start_time=&quot;0.36754&quot; streamindex=&quot;1&quot;/&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/streams&gt;&nbsp;&nbsp;&nbsp; <BR>
&lt;/file&gt;<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Cycling<BR>
Video resolution is 720 by 480<BR>
*************************************************************<BR>
Processing recording 1: '/mnt_tb/video/1073_20120408070000.mpg'<BR>
*************************************************************<BR>
File type is 'mpegts'<BR>
Video codec is 'h264'<BR>
2012-04-08 15:58:27.098 getFileInfo(): Opening '/mnt_tb/video/1073_20120408070000.mpg'<BR>
[h264 @ 0x6f9230] sps_id out of range<BR>
[h264 @ 0x6f9230] non-existing SPS 15 referenced in buffering period<BR>
[h264 @ 0x6f9230] non-existing PPS referenced<BR>
[h264 @ 0x6f9230] sps_id out of range<BR>
-------------------------------snip--------------------------------------------------------<BR>
[h264 @ 0x6f9230] sps_id out of range<BR>
[h264 @ 0x6f9230] non-existing SPS 32 referenced in buffering period<BR>
[h264 @ 0x6f9230] non-existing PPS 0 referenced<BR>
[h264 @ 0x6f9230] decode_slice_header error<BR>
[h264 @ 0x6f9230] no frame!<BR>
[h264 @ 0x6f9230] mmco: unref short failure<BR>
Input #0, mpegts, from '/mnt_tb/video/1073_20120408070000.mpg':<BR>
&nbsp; Duration: 03:29:55.19, start: 0.408378, bitrate: 1826 kb/s<BR>
&nbsp;&nbsp;&nbsp; Stream #0.0[0x1011]: Video: h264, yuv420p, 720x480 [PAR 8:9 DAR 4:3], 224.85 fps, 59.94 tbr, 90k tbn, 59.94 tbc<BR>
&nbsp;&nbsp;&nbsp; Stream #0.1[0x1100]: Audio: aac, 48000 Hz, stereo, s16, 126 kb/s<BR>
2012-04-08 15:58:27.109 duration = 12595<BR>
2012-04-08 15:58:27.109 Extracting details from: 1073_20120408070000.mpg<BR>
2012-04-08 15:58:27.110 chanid: 1073 starttime:2012-04-08T07:00:00 <BR>
2012-04-08 15:58:27.112 File is a MythTV recording.<BR>
2012-04-08 15:58:27.114 cutframes = 609925<BR>
2012-04-08 15:58:27.114 cutduration = 10175<BR>
QSqlDatabasePrivate::removeDatabase: connection 'DBManager0' is still in use, all queries will cease to work.<BR>
streaminfo.xml :-<BR>
&lt;?xml version=&quot;1.0&quot; ?&gt;&lt;!DOCTYPE FILEINFO&gt;&lt;file cutduration=&quot;2420&quot; duration=&quot;12595&quot; filename=&quot;/mnt_tb/video/1073_20120408070000.mpg&quot; type=&quot;mpegts&quot;&gt;&nbsp;&nbsp;&nbsp; <BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;streams count=&quot;2&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;video aspectratio=&quot;1.33333&quot; bitrate=&quot;0&quot; codec=&quot;h264&quot; ffmpegindex=&quot;0&quot; fps=&quot;59.9401&quot; height=&quot;480&quot; id=&quot;4113&quot; start_time=&quot;0.55855&quot; streamindex=&quot;0&quot; width=&quot;720&quot;/&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;audio bitrate=&quot;126000&quot; channels=&quot;2&quot; codec=&quot;aac&quot; ffmpegindex=&quot;1&quot; id=&quot;4352&quot; language=&quot;N/A&quot; samplerate=&quot;48000&quot; start_time=&quot;0.36754&quot; streamindex=&quot;1&quot;/&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/streams&gt;&nbsp;&nbsp;&nbsp; <BR>
&lt;/file&gt;<BR>
Preferred audio languages eng and eng<BR>
Video id: 0x1011, Audio1: [1] 0x1100 (AAC, N/A), Audio2: [-1] - 0x-1 (N/A, N/A)<BR>
Aspect ratio is 4:3<BR>
Re-encoding audio and video<BR>
Using encoder profiles from /usr/share/mythtv/mytharchive/encoder_profiles/ffmpeg_dvd_ntsc.xml<BR>
Encoding profile (SP) found<BR>
ffmpeg -threads 8 -v 1 -i &quot;/mnt_tb/video/1073_20120408070000.mpg&quot; -r ntsc -target dvd -b 4771k -s 720x480 -acodec ac3 -ab 192k -ac 2 -copyts -aspect 4:3 &quot;/mnt_tb/dvd/work/1/newfile2.mpg&quot; -map 0:0 -map 0:1 <BR>
************************************************************<BR>
ERROR: Failed while running ffmpeg to re-encode video.<BR>
Command was ffmpeg -threads 8 -v 1 -i &quot;/mnt_tb/video/1073_20120408070000.mpg&quot; -r ntsc -target dvd -b 4771k -s 720x480 -acodec ac3 -ab 192k -ac 2 -copyts -aspect 4:3 &quot;/mnt_tb/dvd/work/1/newfile2.mpg&quot; -map 0:0 -map 0:1 <BR>
************************************************************<BR>
<BR>
</BODY>
</HTML>