[mythtv-users] Is someone using VLC to convert mythtv recordings into iPod or another format?

Martijn Morriën dj.escay at gmail.com
Wed Mar 7 20:06:22 UTC 2007


Thank you for the responses.

when I try Sven's approach:

[mythtv at 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
FFmpeg version SVN-r6524, Copyright (c) 2000-2006 Fabrice Bellard, et al.
  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
  libavutil version: 49.0.1
  libavcodec version: 51.16.0
  libavformat version: 50.5.0
  built on Oct 27 2006 08:43:35, gcc: 4.0.2 20051125 (Red Hat 4.0.2-8)

Seems that stream 0 comes from film source: 25.00 (25025/1001) -> 25.00(25/1)
Input #0, mpeg, from '2_20070306200447.mpg':
  Duration: 00:00:50.7, start: 0.276089, bitrate: 5211 kb/s
  Stream #0.0[0x1e0]: Video: mpeg2video, yuv420p, 720x576, 6000 kb/s,
25.00fps(r)
  Stream #0.1[0x1c0]: Audio: mp2, 48000 Hz, stereo, 384 kb/s
File 'output.avi' already exists. Overwrite ? [y/N] y
Output #0, avi, to 'output.avi':
  Stream #0.0: Video: mpeg4, yuv420p, 352x288, q=2-31, 0 kb/s, 25.00 fps(c)
  Stream #0.1: Audio: mp2, 48000 Hz, stereo, 80 kb/s
Stream mapping:
  Stream #0.0 -> #0.0
  Stream #0.1 -> #0.1
Press [q] to stop encoding
[mpeg2video @ 0x34b0f08]ac-tex damaged at 5 7bitrate= 113.3kbits/s
[mpeg2video @ 0x34b0f08]Warning MVs not available
[mpeg2video @ 0x34b0f08]concealing 1305 DC, 1305 AC, 1305 MV errors
frame= 1275 q=38.8 Lsize=     754kB time=50.7 bitrate= 121.9kbits/s
video:170kB audio:495kB global headers:0kB muxing overhead 13.483052%

it does encode to output.avi


And when I try Jon's approach it gives me the same error as via myth2ipod:

[mythtv at 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.mp4outfile && rm
outfile.temp.mp4
FFmpeg version SVN-r6524, Copyright (c) 2000-2006 Fabrice Bellard, et al.
  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
  libavutil version: 49.0.1
  libavcodec version: 51.16.0
  libavformat version: 50.5.0
  built on Oct 27 2006 08:43:35, gcc: 4.0.2 20051125 (Red Hat 4.0.2-8)

Seems that stream 0 comes from film source: 25.00 (25025/1001) -> 25.00(25/1)
Stream mapping:
  Stream #0.0 -> #0.0
  Stream #0.1 -> #0.1
[aac @ 0x34b0f08]libfaac doesn't support this output format!
Error while opening codec for output stream #0.1 - maybe incorrect
parameters such as bit_rate, rate, width or height


(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.. ?!)

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.

Thank you for all the pointers, the pdatranscode sounds promising once I get
ffmpeg to encode correctly I will certainly try it.

Martijn

On 3/7/07, Jon Larson <jtlarson at u.washington.edu> wrote:
>
>
>
> Sven Nielsen wrote:
> > Martijn Morriën schrieb:
> > > I'm trying to get myth2ipod working on my Fedora Core 4 (Jarod Wilson)
> MythTv
> > > 0.20 machine. All installs well, but when ffmpeg starts converting it
> fails.
> > > I'm trying to fix this, but that is another story....
> > >
> > > Instead of fixing my problem I saw that you can also use VLC to
> convert video
> > > files.
> > > VLC has rpm's available for easy installment and there is some good
> > > documentation at: http://wiki.videolan.org/Ipod
> > > <http://wiki.videolan.org/Ipod> for my conversion case. (I need to
> convert
> > > from PVR500: mpeg2 to mp4)
> > >
> > > I was wondering if there are MythTv users out there that use VLC to
> convert
> > > videos as a user task and what their experience is/was?
> > >
> > > Thank you,
> > >
> > > Martijn
> > >
> --------------------------------------------------------------------------------
> > >
> > > _______________________________________________
> > > mythtv-users mailing list
> > > mythtv-users at mythtv.org
> > > http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users
> > >
> >
> > During the last weeks nuvexport (which uses mythtranscode and ffmpeg)
> did not
> > work using the debian testing packages from www.debian-multimedia.org.
> > Communication between mythtranscode and ffmpeg was not working and
> ffmpeg failed
> > to get any data from the FIFOs mythtranscode set up. This problem was
> fixed a
> > few days ago with updated packages. This might be the reason for your
> problems
> > with ffmpeg?
> >
> > I do not recommend using vlc for transcoding. Quality is worse since it
> aims on
> > providing realtime transcoding for live streaming. Furthermore, ffmpeg
> gives you
> > a lot more codec options to control the transcoding process.
> >
> > If myth2ipod won´t work try the following or a similar line (i do not
> know the
> > exact codec resolution requirements of an ipod) with directly with any
> avi / mpg
> > / nuv file:
> >
> > /ffmpeg -i <some_avi_mpg_nuv_file> -vcodec mpeg4 -vtag MP4V -b 300 -g
> 300 -bf 2
> > -s 352x288 -acodec mp2 -ab 80 -ac 2 output.avi/
> >
> > If you can succesfully transcode and watch a video this way, file a bug
> for
> > myth2ipod, or, just wait a few days or weeks until somebody else
> recognizes and
> > corrects the error.
> >
> To follow up on what Sven said, you can also use the pdatranscode script
> as an alternative to myth2ipod, pdatranscode has some pre-defined
> encoding profiles for mencoder, and does not require nuvexport.
>
> If you want to use similar encoding settings to what you would get from
> myth2ipod+nuvexport+MP4Box, just insert this into the
> "transcodercommands" section and set the "transcoder" command in the
> config to 'ffmpeg' :
>
>   'ffmpeg' => '/usr/bin/nice -n19 ffmpeg -v quiet -y -i {infile} -aspect
> 1.33333333333333 -r 29.97 -croptop 10 -cropright 14 -cropbottom 10
> -cropleft  14 -s 320x240  -vcodec mpeg4 -bit_rate 300kb -flags
> +4mv+trell -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',
>
> I've modified the pdatranscode script for my own use and added the
> podcast functions from myth2ipod so that I get the more advanced
> file-management functions available in pdatranscode+the RSS feed
> functions from myth2ipod.
>
> The basic script is here:
> http://www.tux.org/~peterw/linux/pdatranscode.pl.txt
>
> Jon
>
> _______________________________________________
> mythtv-users mailing list
> mythtv-users at mythtv.org
> http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mythtv.org/pipermail/mythtv-users/attachments/20070307/72c23537/attachment.htm 


More information about the mythtv-users mailing list