Thank you for the responses.<br>
<br>
when I try Sven's approach:<br>
<br>
[mythtv@mythtv video]$ ffmpeg -i 2_20070306200447.mpg -vcodec mpeg4
-vtag MP4V -b 300 -g 300 -bf 2 -s 352x288 -acodec mp2 -ab 80 -ac 2
output.avi<br>
FFmpeg version SVN-r6524, Copyright (c) 2000-2006 Fabrice Bellard, et al.<br>
configuration: --prefix=/usr --libdir=/usr/lib
--shlibdir=/usr/lib --mandir=/usr/share/man --enable-mp3lame
--enable-libogg --enable-vorbis --enable-faadbin --enable-faac
--enable-xvid --enable-x264 --enable-a52 --enable-a52bin --enable-dts
--enable-pp --enable-shared --enable-pthreads --enable-dc1394
--enable-gpl --disable-strip --extra-cflags=-O2 -g -pipe -Wall
-Wp,-D_FORTIFY_SOURCE=2 -fexceptions -m32 -march=i386
-fasynchronous-unwind-tables<br>
libavutil version: 49.0.1<br>
libavcodec version: 51.16.0<br>
libavformat version: 50.5.0<br>
built on Oct 27 2006 08:43:35, gcc: 4.0.2 20051125 (Red Hat 4.0.2-8)<br>
<br>
Seems that stream 0 comes from film source: 25.00 (25025/1001) -> 25.00 (25/1)<br>
Input #0, mpeg, from '2_20070306200447.mpg':<br>
Duration: 00:00:50.7, start: 0.276089, bitrate: 5211 kb/s<br>
Stream #0.0[0x1e0]: Video: mpeg2video, yuv420p, 720x576, 6000 kb/s, 25.00 fps(r)<br>
Stream #0.1[0x1c0]: Audio: mp2, 48000 Hz, stereo, 384 kb/s<br>
File 'output.avi' already exists. Overwrite ? [y/N] y<br>
Output #0, avi, to 'output.avi':<br>
Stream #0.0: Video: mpeg4, yuv420p, 352x288, q=2-31, 0 kb/s, 25.00 fps(c)<br>
Stream #0.1: Audio: mp2, 48000 Hz, stereo, 80 kb/s<br>
Stream mapping:<br>
Stream #0.0 -> #0.0<br>
Stream #0.1 -> #0.1<br>
Press [q] to stop encoding<br>
[mpeg2video @ 0x34b0f08]ac-tex damaged at 5 7bitrate= 113.3kbits/s<br>
[mpeg2video @ 0x34b0f08]Warning MVs not available<br>
[mpeg2video @ 0x34b0f08]concealing 1305 DC, 1305 AC, 1305 MV errors<br>
frame= 1275 q=38.8 Lsize= 754kB time=50.7 bitrate= 121.9kbits/s<br>
video:170kB audio:495kB global headers:0kB muxing overhead 13.483052%<br>
<br>
it does encode to output.avi<br>
<br>
<br>
And when I try Jon's approach it gives me the same error as via myth2ipod:<br>
<br>
[mythtv@mythtv video]$ /bin/nice -n19 ffmpeg -v quiet -y -i
2_20070306200447.mpg -aspect 1.33333333333333 -r 25.00 -croptop 10
-cropright 14 -cropbottom 10 -cropleft 14 -s 320x240 -vcodec mpeg4 -b
300kb -flags +4mv+trell -f mp4 -aic 2 -cmp 2 -subcmp 2 -acodec aac -ar
32000 -async 1 -ac 1 -ab 64 \'outfile.temp.mp4\' && MP4Box -add
outfile.temp.mp4 outfile && rm outfile.temp.mp4<br>
FFmpeg version SVN-r6524, Copyright (c) 2000-2006 Fabrice Bellard, et al.<br>
configuration: --prefix=/usr --libdir=/usr/lib
--shlibdir=/usr/lib --mandir=/usr/share/man --enable-mp3lame
--enable-libogg --enable-vorbis --enable-faadbin --enable-faac
--enable-xvid --enable-x264 --enable-a52 --enable-a52bin --enable-dts
--enable-pp --enable-shared --enable-pthreads --enable-dc1394
--enable-gpl --disable-strip --extra-cflags=-O2 -g -pipe -Wall
-Wp,-D_FORTIFY_SOURCE=2 -fexceptions -m32 -march=i386
-fasynchronous-unwind-tables<br>
libavutil version: 49.0.1<br>
libavcodec version: 51.16.0<br>
libavformat version: 50.5.0<br>
built on Oct 27 2006 08:43:35, gcc: 4.0.2 20051125 (Red Hat 4.0.2-8)<br>
<br>
Seems that stream 0 comes from film source: 25.00 (25025/1001) -> 25.00 (25/1)<br>
Stream mapping:<br>
Stream #0.0 -> #0.0<br>
Stream #0.1 -> #0.1<br>
[aac @ 0x34b0f08]libfaac doesn't support this output format!<br>
Error while opening codec for output stream #0.1 - maybe incorrect parameters such as bit_rate, rate, width or height<br>
<br>
<br>
(I had to change the bit_rate because my ffmpeg doesn't know this option, and I had to add -f mp4 to get it to run.. ?!)<br>
<br>
I tried to find a solution for the "Error while opening codec for
output stream #0.1" problem, but all i could find are people
experiencing the same problem.<br>
<br>
Thank you for all the pointers, the pdatranscode sounds promising once I get ffmpeg to encode correctly I will certainly try it.<br>
<br>
Martijn<br><br><div><span class="gmail_quote">On 3/7/07, <b class="gmail_sendername">Jon Larson</b> <<a href="mailto:jtlarson@u.washington.edu">jtlarson@u.washington.edu</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br><br>Sven Nielsen wrote:<br>> Martijn Morriën schrieb:<br>> > I'm trying to get myth2ipod working on my Fedora Core 4 (Jarod Wilson) MythTv<br>> > 0.20 machine. All installs well, but when ffmpeg starts converting it fails.
<br>> > I'm trying to fix this, but that is another story....<br>> ><br>> > Instead of fixing my problem I saw that you can also use VLC to convert video<br>> > files.<br>> > VLC has rpm's available for easy installment and there is some good
<br>> > documentation at: <a href="http://wiki.videolan.org/Ipod">http://wiki.videolan.org/Ipod</a><br>> > <<a href="http://wiki.videolan.org/Ipod">http://wiki.videolan.org/Ipod</a>> for my conversion case. (I need to convert
<br>> > from PVR500: mpeg2 to mp4)<br>> ><br>> > I was wondering if there are MythTv users out there that use VLC to convert<br>> > videos as a user task and what their experience is/was?<br>> >
<br>> > Thank you,<br>> ><br>> > Martijn<br>> > --------------------------------------------------------------------------------<br>> ><br>> > _______________________________________________
<br>> > mythtv-users mailing list<br>> > <a href="mailto:mythtv-users@mythtv.org">mythtv-users@mythtv.org</a><br>> > <a href="http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users">http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users
</a><br>> ><br>><br>> During the last weeks nuvexport (which uses mythtranscode and ffmpeg) did not<br>> work using the debian testing packages from <a href="http://www.debian-multimedia.org">www.debian-multimedia.org
</a>.<br>> Communication between mythtranscode and ffmpeg was not working and ffmpeg failed<br>> to get any data from the FIFOs mythtranscode set up. This problem was fixed a<br>> few days ago with updated packages. This might be the reason for your problems
<br>> with ffmpeg?<br>><br>> I do not recommend using vlc for transcoding. Quality is worse since it aims on<br>> providing realtime transcoding for live streaming. Furthermore, ffmpeg gives you<br>> a lot more codec options to control the transcoding process.
<br>><br>> If myth2ipod won´t work try the following or a similar line (i do not know the<br>> exact codec resolution requirements of an ipod) with directly with any avi / mpg<br>> / nuv file:<br>><br>> /ffmpeg -i <some_avi_mpg_nuv_file> -vcodec mpeg4 -vtag MP4V -b 300 -g 300 -bf 2
<br>> -s 352x288 -acodec mp2 -ab 80 -ac 2 output.avi/<br>><br>> If you can succesfully transcode and watch a video this way, file a bug for<br>> myth2ipod, or, just wait a few days or weeks until somebody else recognizes and
<br>> corrects the error.<br>><br>To follow up on what Sven said, you can also use the pdatranscode script<br>as an alternative to myth2ipod, pdatranscode has some pre-defined<br>encoding profiles for mencoder, and does not require nuvexport.
<br><br>If you want to use similar encoding settings to what you would get from<br>myth2ipod+nuvexport+MP4Box, just insert this into the<br>"transcodercommands" section and set the "transcoder" command in the
<br>config to 'ffmpeg' :<br><br> 'ffmpeg' => '/usr/bin/nice -n19 ffmpeg -v quiet -y -i {infile} -aspect<br>1.33333333333333 -r 29.97 -croptop 10 -cropright 14 -cropbottom 10<br>-cropleft 14 -s 320x240 -vcodec mpeg4 -bit_rate 300kb -flags
<br>+4mv+trell -aic 2 -cmp 2 -subcmp 2 -acodec aac -ar 32000 -async 1 -ac 1<br>-ab 64 \'{outfile}.temp.mp4\' && MP4Box -add {outfile}.temp.mp4<br>{outfile} && rm {outfile}.temp.mp4',<br><br>I've modified the pdatranscode script for my own use and added the
<br>podcast functions from myth2ipod so that I get the more advanced<br>file-management functions available in pdatranscode+the RSS feed<br>functions from myth2ipod.<br><br>The basic script is here:<br><a href="http://www.tux.org/~peterw/linux/pdatranscode.pl.txt">
http://www.tux.org/~peterw/linux/pdatranscode.pl.txt</a><br><br>Jon<br><br>_______________________________________________<br>mythtv-users mailing list<br><a href="mailto:mythtv-users@mythtv.org">mythtv-users@mythtv.org</a>
<br><a href="http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users">http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users</a><br></blockquote></div><br>