dickontoo / omxtx

OpenMAX transcoder for the Raspberry Pi
GNU General Public License v2.0
116 stars 36 forks source link

Request for deinterlacing option #4

Closed asclepius closed 11 years ago

asclepius commented 11 years ago

Nice job on the transcoder.

I have a large collection of 1080i mpeg2 video I would like to begin converting to h264.

Is it possible to integrate this into omxtx? The omxplayer hardware deinterlacer works very well for playback. I'd love to have a Pi running as part of my DVR for quick video transcoding.

omxplayer integrates the deinterlace feature here: https://github.com/huceke/omxplayer/blob/aec02f470e528ce3228d3b494a39cd7e785d9af0/OMXVideo.cpp#L304

Regards,

Paul

dickontoo commented 11 years ago

Try that. -d to enable it.

dickontoo commented 11 years ago

Ah. Doesn't work for HD. Works nicely in SD. I'll look into the 'bob' deinterlacer tomorrow.

asclepius commented 11 years ago

I was having trouble getting it to work for mpeg2 video at all last week. Sorry I am not at home to set up the pi and get debug info for you. Have you tried with mpeg2 video? My collection is largely 1080i firewire captures from a dct6200 cable box.

mediainfo output for an example file: https://gist.github.com/5288740

Thanks for the quick work on this.

dickontoo commented 11 years ago

Gimme a ten-second sample, ta. I've tried it and it works remarkably well for MPEG 2 SD, but ATM HD seems to be beyond it. With SD you can tell it to use its clever deint engine which seems sensible, but it just plain fails in HD.

It's a one-line change, but I want to investigate the implications.

asclepius commented 11 years ago

As of 4ece90bdf8e4fac92c8e6079079de0af1cbcbce2 it is still not working for my video. Did it do anything for you?

Here's my output: https://gist.github.com/anonymous/5357895

omxplayer plays the file.

Cheers.

dickontoo commented 11 years ago

Apologies; I've been sidetracked. Your problem there is that you're trying to put a stream type in the original stream into the mp4 container which doesn't like it. I don't know what that is.

Your best bet is to preprocess it with ffmpeg first, to remove all the unsupported streams. Something like:

ffmpeg -i foo.mpeg -acodec copy -vcodec copy -sn stripped.mp4
./omxtx stripped.mp4 output.mp4

should do it.

asclepius commented 11 years ago

Works for mpeg2 SD as above. Thanks.