[mythtv-users] Atrpms: ffmpeg or transcode issues with nuvexport

Giacomo Shimmings giacomo_shimmings at hotmail.com
Tue Jul 10 11:55:57 UTC 2007


This is under Fedora Core 6, Pentium 4 2.2Ghz, 1Gb Ram, Nova-T PCI
# rpm -qa | grep myth
myththemes-0.20.1-111.atmythdvd-0.20.1-158.fc6mythvideo-0.20.1-158.fc6mythtv-frontend-0.20.1-158.fc6mythgallery-0.20.1-158.fc6libmyth-0.20.1-158.fc6mythtv-setup-0.20.1-158.fc6mythplugins-0.20.1-158.fc6mythstream-0.17_2-16.fc6mythcontrols-0.20.1-158.fc6mythweather-0.20.1-158.fc6mythtv-theme-MediaCenter-0.17-5.atmythtv-themes-0.20.1-158.fc6mythphone-0.20.1-158.fc6mythtv-suite-0.20.1-158.fc6mythtv-0.20.1-158.fc6mythgame-0.20.1-158.fc6mythmkmovie-1.1.4-5.fc6.atmythbrowser-0.20.1-158.fc6mythflix-0.20.1-158.fc6mythnews-0.20.1-158.fc6mythweb-0.20.1-158.fc6mythtv-backend-0.20.1-158.fc6mythmusic-0.20.1-158.fc6mytharchive-0.20.1-158.fc6
# rpm -qa | grep ffmpegffmpeg-0.4.9-23_r8743.fc6.atffmpeg-devel-0.4.9-23_r8743.fc6.at
# rpm -qa | grep nuvexportnuvexport-0.4-0.20070630.svn
Running nuvexport --debug to transcode a DVB-T mpeg file to MP3 gives me the following commands:
You have chosen to export 1 episode:
  1. BBC News; Weather:     (10/31/2006, 1:00 PM) 720x576 MPEG2 (4:3)     No Description
* Separate multiple episodes with spaces, or ranges with '-'
  c. Continue  n. Choose another show  q. Quit
Choose a function, or episode(s) to remove:  cWhere would you like to export the files to? [.] /home/mythtv/Enable Myth cutlist? [Yes]Audio bitrate? [128] 192
--------------------------------To encode:  BBC News; Weather:  UntitledUse the following commands:
system call:mkdir -m 0755 /tmp/fifodir_21423/
forking:/bin/nice -n19 /usr/bin/mythtranscode --showprogress -p autodetect -c 1501 -s 2006-10-31-13-00-00 -f "/tmp/fifodir_21423/" --honorcutlist --fifosync 2>&1
forking:cat /tmp/fifodir_21423/vidout > /dev/null
forking:/bin/nice -n19 ffmpeg -threads 2 -y -f s16le -ar 48000 -ac 2 -i /tmp/fifodir_21423/audout  -ab '196608' -acodec mp3 -f mp3 '/home/mythtv/BBC News; Weather.mp3' 2>&1
system call:id3tag -A 'Untitled' -a '1501' -c 'No Description' -s 'BBC News; Weather' '/home/mythtv/BBC News; Weather.mp3'
Cleaning up temp files.
----------------
Running the first forking command does generate the temporary folders:
$ ls -la /tmp/fifodir_21423/total 12drwxr-xr-x  2 mythtv mythtv 4096 Jul 10 12:34 .drwxrwxrwt 21 root   root   4096 Jul 10 12:31 ..prw-r--r--  1 mythtv mythtv    0 Jul 10 12:34 audoutprw-r--r--  1 mythtv mythtv    0 Jul 10 12:34 vidout
but after running the second forking command and the first process finishes the temp folder becomes empty:
$ ls -la /tmp/fifodir_21423/total 12drwxr-xr-x  2 mythtv mythtv 4096 Jul 10 12:36 .drwxrwxrwt 21 root   root   4096 Jul 10 12:35 ..
Running the third forking command whilst the first two are running gives this response:
$ /bin/nice -n19 ffmpeg -threads 2 -y -f s16le -ar 48000 -ac 2 -i /tmp/fifodir_21423/audout  -ab '196608' -acodec mp3 -f mp3 '/home/mythtv/BBC News; Weather.mp3' 2>&1
FFmpeg version SVN-r8743, Copyright (c) 2000-2007 Fabrice Bellard, et al.  configuration: --prefix=/usr --libdir=/usr/lib --shlibdir=/usr/lib --mandir=/usr/share/man --enable-shared --enable-gpl --enable-pp --enable-swscaler --enable-pthreads --enable-x11grab --enable-dc1394 --enable-liba52bin --enable-libdts --enable-libfaac --enable-libfaadbin --enable-libmp3lame --enable-libogg --enable-libtheora --enable-libvorbis --enable-xvid --extra-cflags=-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m32 -march=i386 -mtune=generic -fasynchronous-unwind-tables --disable-strip  libavutil version: 49.4.0  libavcodec version: 51.40.3  libavformat version: 51.12.1  built on Apr 23 2007 23:45:21, gcc: 4.1.1 20070105 (Red Hat 4.1.1-51)    Input #0, s16le, from '/tmp/fifodir_21423/audout':  Duration: N/A, bitrate: N/A  Stream #0.0: Audio: pcm_s16le, 48000 Hz, stereo, 1536 kb/sOutput #0, mp3, to '/home/mythtv/BBC News; Weather.mp3':  Stream #0.0: Audio: mp3, 48000 Hz, stereo, 196 kb/sStream mapping:  Stream #0.0 -> #0.0Error while opening codec for output stream #0.0 - maybe incorrect parameters such as bit_rate, rate, width or height
----
And of course if the temporary folder is empty then running the third forking command doesn't do anything:
FFmpeg version SVN-r8743, Copyright (c) 2000-2007 Fabrice Bellard, et al.  configuration: --prefix=/usr --libdir=/usr/lib --shlibdir=/usr/lib --mandir=/usr/share/man --enable-shared --enable-gpl --enable-pp --enable-swscaler --enable-pthreads --enable-x11grab --enable-dc1394 --enable-liba52bin --enable-libdts --enable-libfaac --enable-libfaadbin --enable-libmp3lame --enable-libogg --enable-libtheora --enable-libvorbis --enable-xvid --extra-cflags=-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m32 -march=i386 -mtune=generic -fasynchronous-unwind-tables --disable-strip      libavutil version: 49.4.0  libavcodec version: 51.40.3  libavformat version: 51.12.1  built on Apr 23 2007 23:45:21, gcc: 4.1.1 20070105 (Red Hat 4.1.1-51)    /tmp/fifodir_21423/audout: I/O error occuredUsually that means that input file is truncated and/or corrupted.
-------------------------
It looks like the command for ffmpeg is configuring the -ab correctly.  Is the issue I'm experiencing a problem with transcode not correctly detecting the video parameters and passing them onto ffmpeg?  
_________________________________________________________________
Celeb spotting – Play CelebMashup and win cool prizes
https://www.celebmashup.com/index2.html
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mythtv.org/pipermail/mythtv-users/attachments/20070710/b4cd0a91/attachment.htm 


More information about the mythtv-users mailing list