<br><br><div class="gmail_quote">On Nov 13, 2007 9:01 AM, Stephen Robertson <<a href="mailto:stephengrobertson@gmail.com">stephengrobertson@gmail.com</a>> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="Ih2E3d">On Nov 13, 2007 11:16 AM, Stephen Robertson <<a href="mailto:stephengrobertson@gmail.com">stephengrobertson@gmail.com</a>> wrote:<br>><br>> >On 11/11/07, Chris Isip <<a href="mailto:cmisipster@gmail.com">
cmisipster@gmail.com</a>> wrote:<br>> ><br>> > On Nov 8, 2007 3:26 PM, Fred Squires <<a href="mailto:fsquires@gmail.com">fsquires@gmail.com</a>> wrote:<br>> ><br>> > On Nov 8, 2007 12:03 PM, Stephen Robertson <
<a href="mailto:stephengrobertson@gmail.com">stephengrobertson@gmail.com</a>> wrote:<br>> > > I wonder if anyone is having any success with exporting video to an<br>> > > ipod, specifically in this case one of the nanos that can do video if
<br>> > > that's relevant.<br>> ><br>> > I got this from the net somewhere and seems to work well for my ipod touch.<br>> ><br>> > #!/bin/bash<br>> > rm -rf tmp.mpg*
2> /dev/null<br>> > mythtranscode --mpeg2 -i $1 -o tmp.mpg<br>> > /usr/bin/ffmpeg -i tmp.mpg -acodec aac -ac 2 -ar 44100 -ab 128k -s 320x240 -vcodec h264 -b 300k -flags +loop -cmp +chroma >-partitions +parti4x4+partp8x8+partb8x8 -me umh -subq 5 -trellis 1 -refs 1 -coder 0 -me_range 16 -g 300 -keyint_min 25 -sc_threshold 40 >-i_qfactor
0.71 -bt 300k -maxrate 300k -bufsize 300k -rc_eq 'blurCplx^(1-qComp)' -qcomp 0.6 -qmin 15 -qmax 51 -qdiff 4 -level 30 -aspect >320:240 $2<br>> > rm -rf tmp.mpg* 2> /dev/null<br>> ><br>> >
<br>> >Thanks - this worked quite well for me for my iPhone.<br>> ><br>> >In case anyone elses tries it - to make it work on a recent ffmpeg -<br>> you need to change 'aac' to 'libfaac' and 'h264' to 'libx264'
<br>><br>> Anyone got any clues why I am having problems using this? The error<br>> I'm getting is below. A far as I can tell I have the aac codec<br>> compiled in. Probably something obvious as usual!!
<br>><br>> Thanks<br>> Stephen<br><br></div>Knew there would be something obvious! Somehow in my mucking about I<br>had two ffmpeg one at /usr/bin and one in /usr/local/bin. When doing<br>ffmpeg -formats it was picking up the /local one but the script went
<br>to the other one.<br><br>However I'm not a huge amount further ahead. It now runs and produces<br>a video file which if I load up with quicktime on a windows pc then it<br>plays and I get audio but just a blank screen instead of any image.
<br>If its any sort of clue I get a movie fps of 25 but a playing fps of 0<br>from the "movie inspector" part of quicktime<br><br>I've tried reducing the commands passed to ffmpeg to a minimum with<br>the aim of getting some sort of output and then gradually add them
<br>back in to optimise it.<br><br>I have tried it with<br>/usr/local/bin/ffmpeg -i tmp.mpg -acodec aac -ac 2 -ar 44100 -ab 128k<br>-s 320x240 -vcodec h264 -b 300k $2<br><br>I'm just a bit puzzled if other people are having success.
<br><br>Thanks<br><font color="#888888">Stephen<br></font><div><div></div><div class="Wj3C7c">_______________________________________________<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" target="_blank">http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users</a></div></div></blockquote><div><br>Since you are dealing with aac you might have to enable both a52 and a52bin in the compile of ffmpeg. It doesn't help that you have multiple versions of ffmpeg installed. Ffmpeg also depends on a lot of other libraries such as avodec, avformat, avutil, postproc etc which you might have multiple versions.
<br><br><br></div></div><br>