LinHES Forums http://forums.linhes.org/ |
|
Failure in DVD creation from .nuv file in R5E50 http://forums.linhes.org/viewtopic.php?f=6&t=13552 |
Page 1 of 1 |
Author: | bruce_s01 [ Mon Jan 15, 2007 9:11 pm ] |
Post subject: | Failure in DVD creation from .nuv file in R5E50 |
Before carrying this out, I followed Cecils instructions here along with IEnigmusIs' instructions about copying nuvexport to /usr/local/bin and nuvexportrc. I carried out a Manual scheduled recording* using the following settings for the default profile: Width: 352 Height 576 Codec: MPEG4 Bitrate:3000 Max Quality: 2 Min Quality: 14 Max Diff between frames: 3 Scale bitrate for frame size All other options are off. Codec:MP3 Sampling rate:32000 MP3 Quality: 4 Volume (%):91 The recording was scheduled for 30minutes. The MythArchive settings are as follows: Video format: PAL Always encode to ac3 is not set. Always use Mythtranscode Use FIFOs Main Menu Aspect ratio: 4:3 Chapter Aspect Ratio: Video All the commands are set to the correct commands, eg. ffmpeg = ffmpeg. The file was selected OK, then selected Export Video Files ->Create DVD. A single layer DVD was selected along with write to ISO. The item was selected, then the Compact theme was selected. Encoder Profile SP (2hrs), Original size is given as 439MB, New Size 0KB. The DVD creation commences then fails, the mythburn.log was as follows: Code: mythburn.py (0.1.20061201-1) starting up...
Process priority 8 script path:/usr/share/mythtv/mytharchive/scripts myth share path:/usr/share/mythtv passed job file: /myth/tmp/config/mydata.xml passed progress log file: /myth/tmp/logs/progress.log mythburn.py (0.1.20061201-1) starting up... Found 1 CPUs Obtaining MythTV settings from MySQL database for hostname homenet-pvr1 Processing Mythburn job number 1. Options - mediatype = 0, doburn = 0, createiso = 1, erasedvdrw = 0 savefilename = '' Looking for: /usr/share/mythtv/mytharchive/themes/Compact/theme.xml Loading font 0, /usr/share/mythtv/FreeSans.ttf size 23 Loading font 1, /usr/share/mythtv/FreeSans.ttf size 18 Loading font 2, /usr/share/mythtv/FreeSans.ttf size 16 wantIntro: 1, wantMainMenu: 1, wantChapterMenu:0, wantDetailsPage: 0 Final DVD Video format will be pal There are 1 files to process Pre-processing file '1004_20070116000500.nuv' of type 'recording' Test13 (Manual Record) 2007-01-16 00:59:21.181 Opening /myth/tv/1004_20070116000500.nuv Input #0, nuv, from '/myth/tv/1004_20070116000500.nuv': Duration: 00:43:32.4, start: 0.000000, bitrate: 1411 kb/s Stream #0.0: Video: mpeg4, yuv420p, 352x576, 0.04 fps(r) Stream #0.1: Audio: mp3, 32000 Hz, stereo, 1411 kb/s 0: start_time: 0.000 duration: 2.612 1: start_time: 0.000 duration: 2.612 stream: start_time: 0.000 duration: 2612.480 bitrate=1411 kb/s 2007-01-16 00:59:21.203 duration = 2612 streaminfo.xml :- <?xml version="1.0" ?><!DOCTYPE FILEINFO><file duration="2612" filename="/myth/tv/1004_20070116000500.nuv" type="nuv"> <streams count="2"> <video aspectratio="1.33333" bitrate="0" codec="mpeg4" ffmpegindex="0" fps="0.04" height="576" id="0" streamindex="0" width="352"/> <audio bitrate="1411200" channels="2" codec="mp3" ffmpegindex="1" id="1" language="N/A" samplerate="32000" streamindex="1"/> </streams> </file> Video resolution is 352 by 576 ************************************************************* Processing file 1004_20070116000500.nuv of type recording ************************************************************* File type is 'nuv' Video codec is 'mpeg4' 2007-01-16 00:59:22.288 Opening /myth/tv/1004_20070116000500.nuv Input #0, nuv, from '/myth/tv/1004_20070116000500.nuv': Duration: 00:43:32.4, start: 0.000000, bitrate: 1411 kb/s Stream #0.0: Video: mpeg4, yuv420p, 352x576, 0.04 fps(r) Stream #0.1: Audio: mp3, 32000 Hz, stereo, 1411 kb/s 0: start_time: 0.000 duration: 2.612 1: start_time: 0.000 duration: 2.612 stream: start_time: 0.000 duration: 2612.480 bitrate=1411 kb/s 2007-01-16 00:59:22.309 duration = 2612 streaminfo.xml :- <?xml version="1.0" ?><!DOCTYPE FILEINFO><file duration="2612" filename="/myth/tv/1004_20070116000500.nuv" type="nuv"> <streams count="2"> <video aspectratio="1.33333" bitrate="0" codec="mpeg4" ffmpegindex="0" fps="0.04" height="576" id="0" streamindex="0" width="352"/> <audio bitrate="1411200" channels="2" codec="mp3" ffmpegindex="1" id="1" language="N/A" samplerate="32000" streamindex="1"/> </streams> </file> Preferred audio languages eng and eng Video id: 0x0, Audio1: [1] 0x1 (MP3, N/A), Audio2: [-1] - 0x-1 (N/A, N/A) Aspect ratio is 4:3 Re-encoding audio and video from nuv file Encoding profile (SP) found mythtranscode started PID = 3828 Waiting for mythtranscode to create the fifos 2007-01-16 00:59:23.122 Using runtime prefix = /usr 2007-01-16 00:59:23.204 New DB connection, total: 1 2007-01-16 00:59:23.234 Enabled verbose msgs: important 2007-01-16 00:59:23.244 New DB connection, total: 2 Waiting for mythtranscode to create the fifos 2007-01-16 00:59:23.396 Using protocol version 31 2007-01-16 00:59:23.794 mythtranscode: 0% Completed @ 0 fps. Running ffmpeg FFmpeg version SVN-rUNKNOWN, Copyright (c) 2000-2004 Fabrice Bellard configuration: --prefix=/usr --libdir=${prefix}/lib --shlibdir=${prefix}/lib --incdir=${prefix}/include/ffmpeg --enable-shared --enable-mp3lame --enable-gpl --enable-faad --mandir=${prefix}/share/man --enable-vorbis --enable-pthreads --enable-faac --enable-xvid --enable-dts --enable-amr_nb --enable-amr_wb --enable-pp --enable-libogg --enable-libgsm --enable-x264 --enable-a52 --extra-cflags=-Wall -g -fPIC -DPIC libavutil version: 49.0.0 libavcodec version: 51.11.0 libavformat version: 50.5.0 built on Oct 14 2006 21:20:45, gcc: 4.1.2 20061007 (prerelease) (Debian 4.1.1-16) Input #0, s16le, from '/myth/tmp/work/1/audout': Duration: N/A, bitrate: N/A Stream #0.0: Audio: pcm_s16le, 32000 Hz, stereo, 1024 kb/s Input #1, rawvideo, from '/myth/tmp/work/1/vidout': Duration: N/A, bitrate: N/A Stream #1.0: Video: rawvideo, yuv420p, 352x576, 0.04 fps(r) Output #0, dvd, to '/myth/tmp/work/1/newfile2.mpg': Stream #0.0: Video: mpeg2video, yuv420p, 720x576, q=5-31, 4771 kb/s, 5.00 fps(c) Stream #0.1: Audio: ac3, 48000 Hz, stereo, 192 kb/s Stream mapping: Stream #1.0 -> #0.0 Stream #0.0 -> #0.1 [mpeg2video @ 0xb7e8eee8]MPEG1/2 does not support 5/1 fps Error while opening codec for output stream #0.0 - maybe incorrect parameters such as bit_rate, rate, width or height ************************************************************ ERROR: Failed while running ffmpeg to re-encode video. Command was ffmpeg -y -f s16le -ar 32000 -ac 2 -i /myth/tmp/work/1/audout -f rawvideo -pix_fmt yuv420p -s 352x576 -aspect 1.33333 -r 0.04 -i /myth/tmp/work/1/vidout -aspect 1.33333 -r 0.04 -s 720x576 -b 4771k -vcodec mpeg2video -qmin 5 -ab 192 -ar 48000 -acodec ac3 -f dvd "/myth/tmp/work/1/newfile2.mpg" ************************************************************ Terminated I tried rerunning with FIFOs disabled, there appears to be no change. I'm not familiar with this, so I don't know where to start. Bruce S. *Using this system:PIII 650MHz FC+Slocket, Gigabyte GA-6BXD, 768Mb, Dual channel ATA-100 PCI ATA HBA, 80Gb PATA HDD, LG GDR8161B DVD-ROM, LG GCE-8520B CD-RW, XFX GeForce FX5200, Hauppauge WinTV Theater, Intel Gigabit Ethernet, Creative Labs SB Live! KM R5E50. Edited to correct spelling in subject |
Author: | bruce_s01 [ Sat Jan 20, 2007 7:27 am ] |
Post subject: | |
Is there anything else I need to document to help to find a solution? I forgot to ask as well, has anyone got the DVD creation to work with .nuv in R5E50, what were your settings? Bruce S. ETA:Second question. |
Author: | bruce_s01 [ Sun Jan 21, 2007 7:58 am ] |
Post subject: | |
I decided to see what would happen if I changed source codec, so I switched over RTjepg, so setting to: Size=352x576 Quality=170 Luma=0 Chroma=0 MP3 Rate=32000 Quality=4 Volume=90 The recording was scheduled for 20minutes. The MythArchive settings are as follows: Video format: PAL Always encode to ac3 is not set. Always use Mythtranscode Don't Use FIFOs Main Menu Aspect ratio: 4:3 Chapter Aspect Ratio: Video The file was selected OK, then selected Export Video Files ->Create DVD. A single layer DVD was selected along with write to ISO. The item was selected, then the Compact theme was selected. Encoder Profile SP (2hrs) The DVD creation commences than fails, but it gets much further than previously. Code: DVDAuthor::spumux, version 0.6.11. Build options: gnugetopt magick iconv freetype fribidi Send bugs to <dvdauthor-users@lists.sourceforge.net> INFO: Locale=C INFO: Converting filenames to ANSI_X3.4-1968 STAT: 0:00:00.000^MINFO: Picture /myth/tmp/work/backgroundmask-1.png had 2 color s INFO: Picture /myth/tmp/work/backgroundmask-1.png had 2 colors INFO: Constructing blank img INFO: Pickbuttongroups, success with 1 groups, useimg=1 INFO: Found EOF in .sub file. INFO: Max_sub_size=348 WARN: Read 0, expected 4 INFO: 1 subtitles added, 0 subtitles skipped, stream: 32, offset: 0.18 Statistics: - Processed 0 subtitles. - The longest display line had -1 characters. - The maximum number of displayed lines was 0. - The normal display height of the font arial.ttf was 0. - The bottom display height of the font arial.ttf was 0. - The biggest subtitle box had 348 bytes. Menu items per page 6 Creating DVD XML file for dvd author Menu page 1 aspect ratio is: 1.33333 aspect ratio is: 1.33333 Total size of video files, before multiplexing, is 404 Mbytes, audio is 27 MByte s, menus are 1 MBytes. Video will fit onto DVD. 4029.8 MBytes of space remaining on recordable DVD. Multiplexing MPEG stream to /myth/tmp/work/1/final.mpg Available streams - video and one audio stream ++ WARN: [mplex] Stream e0: data will arrive too late sent(SCR)=32683154 require d(DTS)=32683019 ++ WARN: [mplex] Video e0: buf= 57873 frame=009075 sector=00072105 ++ WARN: [mplex] Audio bd: buf= 1725 frame=011345 sector=00004322 **ERROR: [mplex] MUX STATUS: Frame data under-runs detected! ************************************************************ ERROR: mplex failed with result 1 ************************************************************ Terminated So this works but fails at the remultiplexing So I enable FIFOs and recommence the process results in (from progress.log) : Code: 2007-01-21 12:10:35 mythburn.py (0.1.20061201-1) starting up...
2007-01-21 12:10:35 Found 1 CPUs 2007-01-21 12:10:35 Obtaining MythTV settings from MySQL database for hostname h omenet-pvr1 2007-01-21 12:10:36 Processing Mythburn job number 1. 2007-01-21 12:10:36 Options - mediatype = 0, doburn = 0, createiso = 1, erasedvd rw = 0 2007-01-21 12:10:36 savefilename = '' 2007-01-21 12:10:36 Looking for: /usr/share/mythtv/mytharchive/themes/Compact/th eme.xml 2007-01-21 12:10:36 Loading font 0, /usr/share/mythtv/FreeSans.ttf size 23 2007-01-21 12:10:36 Loading font 1, /usr/share/mythtv/FreeSans.ttf size 18 2007-01-21 12:10:36 Loading font 2, /usr/share/mythtv/FreeSans.ttf size 16 2007-01-21 12:10:36 wantIntro: 1, wantMainMenu: 1, wantChapterMenu:0, wantDetail sPage: 0 2007-01-21 12:10:36 Final DVD Video format will be pal 2007-01-21 12:10:36 There are 1 files to process 2007-01-21 12:10:38 Pre-processing file '1004_20070121030000.nuv' of type 'recor ding' 2007-01-21 12:10:38 Test19 (Manual Record) 2007-01-21 12:10:39 streaminfo.xml :- <?xml version="1.0" ?><!DOCTYPE FILEINFO><file duration="3396" filename="/myth/t v/1004_20070121030000.nuv" type="nuv"> <streams count="2"> <video aspectratio="1.33333" bitrate="0" codec="RJPG / 0x47504A5 2" ffmpegindex="0" fps="25" height="576" id="0" streamindex="0" width="352"/> <audio bitrate="1411200" channels="2" codec="mp3" ffmpegindex="1 " id="1" language="N/A" samplerate="32000" streamindex="1"/> </streams> </file> 2007-01-21 12:10:39 Video resolution is 352 by 576 2007-01-21 12:10:39 ************************************************************ * 2007-01-21 12:10:39 Processing file 1004_20070121030000.nuv of type recording 2007-01-21 12:10:39 ************************************************************ * 2007-01-21 12:10:39 File type is 'nuv' 2007-01-21 12:10:39 Video codec is 'RJPG / 0x47504A52' 2007-01-21 12:10:40 streaminfo.xml :- <?xml version="1.0" ?><!DOCTYPE FILEINFO><file duration="3396" filename="/myth/t v/1004_20070121030000.nuv" type="nuv"> <streams count="2"> <video aspectratio="1.33333" bitrate="0" codec="RJPG / 0x47504A5 2" ffmpegindex="0" fps="25" height="576" id="0" streamindex="0" width="352"/> <audio bitrate="1411200" channels="2" codec="mp3" ffmpegindex="1 " id="1" language="N/A" samplerate="32000" streamindex="1"/> </streams> </file> 2007-01-21 12:10:40 Preferred audio languages eng and eng 2007-01-21 12:10:40 Video id: 0x0, Audio1: [1] 0x1 (MP3, N/A), Audio2: [-1] - 0x -1 (N/A, N/A) 2007-01-21 12:10:40 Aspect ratio is 4:3 2007-01-21 12:10:40 Re-encoding audio and video from nuv file 2007-01-21 12:10:40 Encoding profile (SP) found 2007-01-21 12:10:40 mythtranscode started PID = 4994 2007-01-21 12:10:40 Waiting for mythtranscode to create the fifos 2007-01-21 12:10:41 Waiting for mythtranscode to create the fifos 2007-01-21 12:10:42 Running ffmpeg 2007-01-21 13:09:16 streaminfo.xml :- ?xml version="1.0" ?><!DOCTYPE FILEINFO><file duration="1196" filename="/myth/t mp/work/1/newfile2.mpg" type="mpeg"> <streams count="2"> <video aspectratio="1.33333" bitrate="104857200" codec="mpeg2vid eo" ffmpegindex="0" fps="25" height="576" id="480" streamindex="0" width="720"/> <audio bitrate="192000" channels="2" codec="ac3" ffmpegindex="1" id="128" language="N/A" samplerate="48000" streamindex="1"/> </streams> </file> 2007-01-21 13:09:16 Preferred audio languages eng and eng 2007-01-21 13:09:16 Video id: 0x1e0, Audio1: [1] 0x80 (AC3, N/A), Audio2: [-1] - 0x-1 (N/A, N/A) 2007-01-21 13:09:16 Splitting MPEG stream into audio and video parts 2007-01-21 13:09:16 Running: mythreplex --demux --fix_sync -o /myth/tmp/work/1/ stream -v 224 -c 128 "/myth/tmp/work/1/newfile2.mpg" 2007-01-21 13:11:53 Audio is already in ac3 format 2007-01-21 13:11:53 ************************************************************ * 2007-01-21 13:11:53 Finished processing file 1004_20070121030000.nuv 2007-01-21 13:11:53 ************************************************************ * 2007-01-21 13:11:53 Menu items per page 6 2007-01-21 13:11:53 Background image file is /usr/share/mythtv/mytharchive/theme s/Compact/Compact-Background.png 2007-01-21 13:11:53 Music is menumusic.ac3, length is 15 seconds 2007-01-21 13:11:53 Creating DVD menus 2007-01-21 13:11:53 Menu page 1 2007-01-21 13:12:04 Encoding Menu Page 1 using aspect ratio '4:3' 2007-01-21 13:13:49 Menu items per page 6 2007-01-21 13:13:49 Creating DVD XML file for dvd author 2007-01-21 13:13:49 Menu page 1 2007-01-21 13:13:49 aspect ratio is: 1.33333 2007-01-21 13:13:49 aspect ratio is: 1.33333 2007-01-21 13:13:49 Total size of video files, before multiplexing, is 437 Mbyte s, audio is 27 MBytes, menus are 1 MBytes. 2007-01-21 13:13:49 Video will fit onto DVD. 3995.15 MBytes of space remaining o n recordable DVD. 2007-01-21 13:13:49 Multiplexing MPEG stream to /myth/tmp/work/1/final.mpg 2007-01-21 13:13:49 Available streams - video and one audio stream 2007-01-21 13:13:49 Multiplex started PID=5084 2007-01-21 13:13:49 Starting dvdauthor 2007-01-21 13:16:17 Finished dvdauthor 2007-01-21 13:16:17 Creating ISO image 2007-01-21 13:17:35 Finished creating ISO image 2007-01-21 13:17:35 Finished processing jobs!!! So what can be seen that the frame rate is correctly identified in the source RTjpeg .nuv file as compared with the MPEG4 .nuv, apparently there is something wrong in the app that identifies the frame rate in the MPEG4 .nuv file, or the app that produced it in the first place. So it appears there is a workaround for this problem, if you are using a card which does not produce MPEG2 files: Capture in RTjpeg Use FIFOs. Bruce S. |
Author: | bruce_s01 [ Wed Jan 24, 2007 7:16 pm ] |
Post subject: | |
Further updates, trying out various resolutions and quality settings. There seems to be a huge difference in file size capturing at 352x576 and 720x576 at the same quality setting (for 20mins 0.56GB vs 13.4GB). Nevermind on playback on DVD, when you fast forwarded, sound and vision got out of sync, it was OK before the fast forward, but after, the sound led the video by a couple of seconds. I managed to capture 20 minutes using MPEG4 and I was able to get it passed through ffmpeg as the correct frame rate was set (25 fps). There does seem to be something screwy with the initial file detection and parsing to get the header data from the file (possibly MythTV db as well?) before the actual processing. Bruce S. |
Author: | bruce_s01 [ Wed Jan 31, 2007 9:40 am ] |
Post subject: | |
Just as an update, looking at some of the output generated, I think there's something else going on here. My suspicion of why the dodgy frame rate info is being passed to ffmpeg is that the system is not fast enough, to capture so .nuv file is being marked with a strange frame rate. It seems that 5E50 and/or Myth 0.20 does seem to have upped the minimum system requirements, even for a record only system. Bruce S. |
Author: | alien [ Thu Feb 01, 2007 1:52 am ] |
Post subject: | |
I've been having a lot of problems with the demux/replex stages of mytharchive. Since I am working with mpeg2 files, this isn't really necessary. Rather than do some heavy script editing, after building a DVD, I copy the original mpeg2 files to <mytharchiveWorkDir>/work/[1-9]/final.mpeg and then re-run dvdauthor (in the work dir dvdauthor -x dvdauthor.xml). If you can transcode to mpeg2 (I think mythtranscode command line might do it), you might try this to fix some of the problems. Note: Problems I'm seeing are: Audio out of sync Audio tracks lost 16:9 tagged as 4:3 Audio tags all N/A MPEG files are PAL, from either my capture cards, or DV files converted to MPEG with kino. |
Author: | bruce_s01 [ Mon Feb 05, 2007 1:48 pm ] |
Post subject: | |
Just to update a bit more. putting the card+HDD in a different but faster system I've found that the frame rate passed to ffmpeg is set to 0.04 when capturing from the tuner input. So it seems I've found where that was coming from. I noticed when ramping up the frame rate and capturing from the composite input, I started getting weird frame rate numbers such as 31.something and 21.something (the "something" respresents the figures, of course). Bruce S. |
Author: | cliffsjunk [ Fri Jul 27, 2007 9:57 pm ] |
Post subject: | Solution (hack) found!!! |
(I edited this post on 2007-10-22 to include new information) It appears that "manual recordings" are indeed the source of the re-createable problem, but I have also experienced problems with a few normal recordings. Two things are required to get your system to work: First: Edit /usr/share/mythtv/mytharchive/scripts/mythburn.py with your favorite editor and search for: Code: fps = video.attributes["fps"].value I have found that this fps value can also sometimes be too high (not just too low) which causes other issues, including audio sync issues and refusal to use more than 3% of the CPU while creating the DVD (it takes days instead of hours to create a DVD). I now recommend adding this line after the "fps = video.attributes["fps"].value" line. The line you found is left there so all you have to do is delete what you added to put it back the way it was: Code: """Cliff added this to fix bad fps values in manual recordings""" fps = "29.97" I originally recommended the following to fix the low values, but no longer recommend it because I have found cases of high values needing to be fixed: Code: """Cliff added this to fix bad fps values in manual recordings""" """This is no longer the recommended fix""" if float(fps) < 10.0: fps = "29.97" Second: If you use the cutlist you must have a cut (at least a very short one) at the very beginning of the video. - This is not the perfect fix as it does not address the cause of the issue. - This will cause all recordings/videos to be treated as 29.97 (NTSC) - Those outside the USA will probably need to use or "23.976" or "25.00" or some other strange value instead of "29.97" (Additional discussion) I had the problem too... and same result after applying Cecil's instructions. and same result after applying IEnigmusIs' patch to that. The problem may be that the calculated video duration / fps / bitrates are wrong. For my video, the duration should be 1:50:00 but it is 14:48:25. The video bitrate is apparently unknown as the combined bitrate of 1411 is the same as the audio bit rate taken alone. The video frame rate of 0.03 (and 5 fps in another place) is way off too. Maybe some of this is causing a miscalculation resulting in the 5 frames per second frame rate complained about in the error message in the mythburn.log FYI: - I encode directly to MPEG4 and do not transcode. - I have tweaked my encoder quality way up (0-2). - I increased my encoder resolution to 640x480. - I increased my encoder bit rate to 5000. - Scale bitrate for frame size is ON - Enable high-quality encoding is ON - Enable 4MV encoding is ON - Enable interlaced DCT encoding is OFF - Enable interlaced moti(on ...) is OFF - My MythArchive settings are completely stock as I recall. - This was from a manual record, but I don't have reason to suspect that. <edit> This apparently was exactly the problem </edit> - I recall not having this problem with a normal recording under R5E50 and on this hardware. - The chmod errors at the end of the log are probably because I created some test files in that directory when logged in as root. R5F1 upgraded from R5E50. I also had a problem in R5F27. Older Intel Dual core CPU at 3.0 ghz. 512meg RAM. Cliff Code: *** Here is my mythburn.log (long lines manually wrapped) ***
mythburn.py (0.1.20070428-1.fixes) starting up... Process priority 8 script path:/usr/share/mythtv/mytharchive/scripts myth share path:/usr/share/mythtv passed job file: /myth/tmp/config/mydata.xml passed progress log file: /myth/tmp/logs/progress.log mythburn.py (0.1.20070428-1.fixes) starting up... Found 2 CPUs Obtaining MythTV settings from MySQL database for hostname mythtv2 temppath: /myth/tmp/work logpath: /myth/tmp/logs Processing Mythburn job number 1. Options - mediatype = 1, doburn = 1, createiso = 1, erasedvdrw = 0 savefilename = '' Looking for: /usr/share/mythtv/mytharchive/themes/MythCenter/theme.xml Loading font 0, /usr/share/mythtv/FreeSans.ttf size 19 Loading font 1, /usr/share/mythtv/FreeSans.ttf size 15 Loading font 2, /usr/share/mythtv/FreeSans.ttf size 13 wantIntro: 1, wantMainMenu: 1, wantChapterMenu:1, wantDetailsPage: 0 Final DVD Video format will be ntsc There are 1 files to process Pre-processing file '11416_20070724190000.nuv' of type 'recording' 2007-07-27 17:48:26.749 Opening /myth/tv/11416_20070724190000.nuv Input #0, nuv, from '/myth/tv/11416_20070724190000.nuv': Duration: 14:48:25.5, start: 0.000000, bitrate: 1411 kb/s Stream #0.0: Video: mpeg4, yuv420p, 640x480, 0.03 fps(r) Stream #0.1: Audio: mp3, 44100 Hz, stereo, 1411 kb/s 0: start_time: 0.000 duration: 53.306 1: start_time: 0.000 duration: 53.306 stream: start_time: 0.000 duration: 53305.588 bitrate=1411 kb/s 2007-07-27 17:48:26.755 duration = 53305 streaminfo.xml :- <?xml version="1.0" ?><!DOCTYPE FILEINFO><file duration="1765" \ filename="/myth/tv/11416_20070724190000.nuv" type="nuv"> <streams count="2"> <video aspectratio="1.33333" bitrate="0" codec="mpeg4" \ ffmpegindex="0" fps="0.0333667" height="480" id="0" \ start_time="0.0" streamindex="0" width="640"/> <audio bitrate="1411200" channels="2" codec="mp3" \ ffmpegindex="1" id="1" language="N/A" samplerate="44100" \ start_time="0.0" streamindex="1"/> </streams> </file> Kiki's Delivery Service (Manual Record) Video resolution is 640 by 480 ************************************************************* Processing file 11416_20070724190000.nuv of type recording ************************************************************* File type is 'nuv' Video codec is 'mpeg4' 2007-07-27 17:48:27.006 Opening /myth/tv/11416_20070724190000.nuv Input #0, nuv, from '/myth/tv/11416_20070724190000.nuv': Duration: 14:48:25.5, start: 0.000000, bitrate: 1411 kb/s Stream #0.0: Video: mpeg4, yuv420p, 640x480, 0.03 fps(r) Stream #0.1: Audio: mp3, 44100 Hz, stereo, 1411 kb/s 0: start_time: 0.000 duration: 53.306 1: start_time: 0.000 duration: 53.306 stream: start_time: 0.000 duration: 53305.588 bitrate=1411 kb/s 2007-07-27 17:48:27.012 duration = 53305 streaminfo.xml :- <?xml version="1.0" ?><!DOCTYPE FILEINFO><file duration="1765" \ filename="/myth/tv/11416_20070724190000.nuv" type="nuv"> <streams count="2"> <video aspectratio="1.33333" bitrate="0" codec="mpeg4" \ ffmpegindex="0" fps="0.0333667" height="480" id="0" \ start_time="0.0" streamindex="0" width="640"/> <audio bitrate="1411200" channels="2" codec="mp3" \ ffmpegindex="1" id="1" language="N/A" samplerate="44100" \ start_time="0.0" streamindex="1"/> </streams> </file> Preferred audio languages eng and eng Video id: 0x0, Audio1: [1] 0x1 (MP3, N/A), Audio2: [-1] - 0x-1 (N/A, N/A) Aspect ratio is 4:3 Re-encoding audio and video from nuv file Encoding profile (HQ) found mythtranscode started (using cut list) PID = 11508 Waiting for mythtranscode to create the fifos 2007-07-27 17:48:27.195 Using runtime prefix = /usr 2007-07-27 17:48:27.216 New DB connection, total: 1 2007-07-27 17:48:27.223 Enabled verbose msgs: important 2007-07-27 17:48:27.226 New DB connection, total: 2 2007-07-27 17:48:27.244 Using protocol version 31 Running ffmpeg FFmpeg version SVN-rUNKNOWN, Copyright (c) 2000-2004 Fabrice Bellard configuration: --prefix=/usr --libdir=${prefix}/lib \ --shlibdir=${prefix}/lib --incdir=${prefix}/include/ffmpeg \ --enable-shared --enable-mp3lame --enable-gpl --enable-faad \ --mandir=${prefix}/share/man --enable-vorbis --enable-pthreads \ --enable-faac --enable-xvid --enable-dts --enable-amr_nb \ --enable-amr_wb --enable-pp --enable-libogg --enable-libgsm \ --enable-x264 --enable-a52 --extra-cflags=-Wall -g -fPIC -DPIC libavutil version: 49.0.0 libavcodec version: 51.11.0 libavformat version: 50.5.0 built on Oct 14 2006 21:20:45, gcc: 4.1.2 20061007 (prerelease) \ (Debian 4.1.1-16) Input #0, s16le, from '/myth/tmp/work/1/audout': Duration: N/A, bitrate: N/A Stream #0.0: Audio: pcm_s16le, 44100 Hz, stereo, 1411 kb/s Input #1, rawvideo, from '/myth/tmp/work/1/vidout': Duration: N/A, bitrate: N/A Stream #1.0: Video: rawvideo, yuv420p, 640x480, 0.03 fps(r) Output #0, dvd, to '/myth/tmp/work/1/newfile2.mpg': Stream #0.0: Video: mpeg2video, yuv420p, 720x480, q=5-31, \ 9000 kb/s, 5.00 fps(c) Stream #0.1: Audio: ac3, 48000 Hz, stereo, 192 kb/s Stream mapping: Stream #1.0 -> #0.0 Stream #0.0 -> #0.1 [mpeg2video @ 0xb7eb5ee8]MPEG1/2 does not support 5/1 fps Error while opening codec for output stream #0.0 - maybe \ incorrect parameters such as bit_rate, rate, width or height ************************************************************ ERROR: Failed while running ffmpeg to re-encode video. Command was ffmpeg -y -threads 2 -f s16le -ar 44100 -ac 2 -i \ /myth/tmp/work/1/audout -f rawvideo -pix_fmt yuv420p -s 640x480 \ -aspect 1.33333 -r 0.0333667 -i /myth/tmp/work/1/vidout -aspect \ 1.33333 -r 0.0333667 -s 720x480 -b 9000k -vcodec mpeg2video \ -qmin 5 -ab 192k -ar 48000 -acodec ac3 -f dvd \ "/myth/tmp/work/1/newfile2.mpg" ************************************************************ chmod: changing permissions of `/myth/tmp/logs/tt.log': \ Operation not permitted chmod: changing permissions of `/myth/tmp/logs/ff': \ Operation not permitted Terminated (The chmod errors at the end are because of some files I left in /myth/tmp. The problem still occurs when the files are removed.) |
Author: | paulh [ Tue Oct 30, 2007 9:24 am ] |
Post subject: | |
cliffsjunk Interesting. Thanks for looking at this. So it looks like libavformat isn't getting the correct fps for nuv files which is causing all sorts of problems. Any chance of a small sample file say 5 - 10Mb that I can have a play with to see if I can workout how to fix this. |
Author: | stevenj [ Fri May 09, 2008 10:09 pm ] |
Post subject: | |
The audio sync drift with MythArchive has been a problem for me for a long time so I finally started researching the problem today after trying every possible variation of the MythArchive settings on one particular recording. Cliffsjunk's solution of: Quote: Second: If you use the cutlist you must have a cut (at least a very short one) at the very beginning of the video.
fixed the problem for me. All my recordings are mpeg2 and I cut out the commercials for burning to DVD. But the audio would be out of sync with the video by up to 1 or 2 seconds by the end of some recordings when burned to DVD. I probably tried burning one show about 10 times today before fixing it by cutting the first frame off. I use MythArchive a lot and have never been able to figure out why some recordings do this when burned to DVD. This particular recording I hadn't cut anything off at the beginning. I think I do with most. Thanks for this tip. |
Page 1 of 1 | All times are UTC - 6 hours |
Powered by phpBB® Forum Software © phpBB Group http://www.phpbb.com/ |