[mythtvnz] Cutting H.264 DVB-T files with ffmpeg without transcoding

Craig Blaikie craig at gregor.co.nz
Thu Jul 22 02:22:16 BST 2010


> Craig Blaikie wrote:
>
> > I've been putting together a hdvideo2ipod.sh script that I'm happy to
share,
> > it works but is a bit rough around the edges.
> >
> > It uses ffmpeg to see if the audio is ok, then parses to VLC to convert
LTAM
> > audio to something useful, then hands the whole lot back to ffmpeg to do
the
> > final transcoding.
> >
> > I've put it up on my blog at
> > http://craigosaurous.blogspot.com/2010/07/hdvideo2ipodsh.html
> >
> > Cheers,
> >   Craig
> >
> 
> That's cool Craig. I was thinking of using ffmpeg to analyse the
> recording in a similar way to what you have done in your script. Couple
> of things: TV3 has an AC3 audio track that I use without transcoding
> (might not matter in your application) and it looks like the end of
> some
> of the script lines have been clipped off.
 
Hopefully the missing data should be there, either wrapped, or off the edge
of the page.
I'll also put up a link to a clean copy tonight.
The script detects if there is a ffmpeg compatible audio stream, and skips
the VLC part.
I also roughly detect the resolution and set the aspect ratio so things look
normal on the final output files.

I'll check it with a file from TV3 with AC3 and try that tonight also.

Cheers,
  Craig




More information about the mythtvnz mailing list