[mythtv-users] Nuvexport, ffmpeg and x264 .mp4 fc10 issue - libx264 non monotone timestamps

Giacomo Shimmings giacomo_shimmings at hotmail.com
Fri Jun 12 10:13:55 UTC 2009


Thanks Chase, 


I uninstalled ffmpeg and downloaded the source for 0.5 to try your patch:


rpm -e --nodeps libavutil49 libavcodec52 libavformat52 libavdevice52 libswscale0 libpostproc51 libavfilter0 ffmpeg


Grabbed the source for ffmpeg 0.5 and extracted it:


wget http://www.ffmpeg.org/releases/ffmpeg-0.5.tar.bz2 ;  bunzip2 ffmpeg-0.5.tar.bz2 ;  tar -xvf ffmpeg-0.5.tar ; cd ffmpeg-0.5/libavformat


Downloaded your patch and applied it, successfully:


wget http://roundup.ffmpeg.org/roundup/ffmpeg/file330/duration.patch ; patch utils.c < duration.patch ; cd ../


And built and installed ffmpeg:


./configure  --prefix=/usr --enable-static --enable-shared  --disable-logging  --enable-gpl   --enable-nonfree   --enable-postproc   --enable-pthreads   --enable-libfaac --enable-libfaad  --enable-libfaadbin  --enable-libmp3lame   --enable-libtheora  --enable-libvorbis  --enable-libx264  --enable-libxvid --enable-avfilter --enable-avfilter-lavf --enable-libamr-nb; \
make; make install;


I already had this version of nuvexport installed:


[root at 192 ~]# rpm -qa nuvexport
nuvexport-0.5-0.20090413.svn.noarch


running nuvexport in debug mode I started to get ffmpeg.pm errors, so I found the same issue and implemented this fix (guess it hasn't made it into the nuvexprt svn yet):


http://www.gossamer-threads.com/lists/mythtv/users/379851#379851


... however, same non monotone timestamps errors when forking the nuvexport.


here's my nuvexport commands:


system call:
mkdir -m 0755 /tmp/fifodir_29405/


forking:
/bin/nice -n19 /usr/bin/mythtranscode --showprogress -p '51' -c '5164' -s '2009-06-12T09:29:00' -f "/tmp/fifodir_29405/" --honorcutlist 2>&1


forking:
/bin/nice -n19 ffmpeg -f rawvideo -s 720x576 -r 25.000 -i /tmp/fifodir_29405/vidout -f yuv4mpegpipe - 2> /dev/null | /bin/nice -n19 yuvdenoise 2> /dev/null | /bin/nice -n19 ffmpeg -threads 2 -y -f s16le -ar 48000 -ac 2 -i /tmp/fifodir_29405/audout -f yuv4mpegpipe -s 720x576 -aspect 1.77777777777778 -r 25.000 -i - -aspect 1.77777777777778 -r 25 -deinterlace -croptop    2 -cropright 4 -cropbottom 2 -cropleft  4 -s 480x272  -vcodec libx264 -b '384k' -level 30 -flags loop+slice -g 250 -keyint_min 25 -sc_threshold 40 -rc_eq 'blurCplx^(1-qComp)' -bt '384k' -maxrate '1372k' -bufsize '2000k' -i_qfactor '0.71428572' -b_qfactor '0.76923078' -bf '0' -me_method umh -refs 2 -subq 7 -partitions parti4x4+parti8x8+partp4x4+partp8x8+partb8x8 -flags2 +bpyramid+wpred+mixed_refs+8x8dct -me_range 21 -trellis 2 -cmp 1 -deblockalpha 0 -deblockbeta 0 -acodec libfaac -ar 48000 -async 1 -ab '128k' '/mnt/video/ipod/callsigns - Fri Jun 12 09-29-00 2009.2.mp4' 2>&1


and the errors from the fork:


FFmpeg version 0.5, Copyright (c) 2000-2009 Fabrice Bellard, et al.
  configuration: --prefix=/usr --enable-static --enable-shared --disable-logging --enable-gpl --enable-nonfree --enable-postproc --enable-pthreads --enable-libfaac --enable-libfaad --enable-libfaadbin --enable-libmp3lame --enable-libtheora --enable-libvorbis --enable-libx264 --enable-libxvid --enable-avfilter --enable-avfilter-lavf --enable-libamr-nb
  libavutil     49.15. 0 / 49.15. 0
  libavcodec    52.20. 0 / 52.20. 0
  libavformat   52.31. 0 / 52.31. 0
  libavdevice   52. 1. 0 / 52. 1. 0
  libavfilter    0. 4. 0 /  0. 4. 0
  libpostproc   51. 2. 0 / 51. 2. 0
  built on Jun 12 2009 10:59:03, gcc: 4.3.2 20081105 (Red Hat 4.3.2-7)


Input #0, s16le, from '/tmp/fifodir_29405/audout':
  Duration: N/A, start: 0.000000, bitrate: N/A
    Stream #0.0: Audio: pcm_s16le, 48000 Hz, stereo, s16, 1536 kb/s
Input #1, yuv4mpegpipe, from 'pipe:':
  Duration: N/A, bitrate: N/A
    Stream #1.0: Video: rawvideo, yuv420p, 720x576, 25 tbr, 25 tbn, 25 tbc
Output #0, mp4, to '/mnt/video/ipod/callsigns - Fri Jun 12 09-29-00 2009.2.mp4':
    Stream #0.0: Video: libx264, yuv420p, 480x272 [PAR 136:135 DAR 16:9], q=2-31, 384 kb/s, 90k tbn, 25 tbc
    Stream #0.1: Audio: libfaac, 48000 Hz, stereo, s16, 128 kb/s
Stream mapping:
  Stream #1.0 -> #0.0
  Stream #0.0 -> #0.1
[libx264 @ 0x88b5e10]using SAR=136/135
[libx264 @ 0x88b5e10]using cpu capabilities: MMX2 SSE2 Cache64
[libx264 @ 0x88b5e10]profile Baseline, level 3.0
[libx264 @ 0x88b5e10]error, non monotone timestamps -2147483648>= -2147483648
av_interleaved_write_frame(): Error while opening file

What do you think?



_________________________________________________________________
Get the best of MSN on your mobile
http://clk.atdmt.com/UKM/go/147991039/direct/01/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mythtv.org/pipermail/mythtv-users/attachments/20090612/d35ac8e6/attachment.htm>


More information about the mythtv-users mailing list