dickontoo / omxtx

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

[enchantment] MJPEG encoding #8

Open lestofante opened 11 years ago

lestofante commented 11 years ago

Is it possible to encode a MJPEG stream (like from webcam) to h264 using this library? If yes can you point out how? if not, do you plan to implement it?

dickontoo commented 11 years ago

Not yet. I believe it is now possible to decode MJPEG in hardware, so actually doing it shouldn't be difficult. ATM I have no MJPEG sources to test with, though. If you could drop one somewhere, I'd appreciate it.

lestofante commented 11 years ago

thank you very much. this is a link of a raw output from the webcam with "ffmpeg -y -f video4linux2 -input_format mjpeg -s 1280x720 -i /dev/video0 -vcodec copy /tmp/web.avi" https://docs.google.com/file/d/0B2pk_9TX_tqDdUY2RjVjbXRFY0U/edit?usp=sharing

2013/6/1 Dickon Hood notifications@github.com

Not yet. I believe it is now possible to decode MJPEG in hardware, so actually doing it shouldn't be difficult. ATM I have no MJPEG sources to test with, though. If you could drop one somewhere, I'd appreciate it.

— Reply to this email directly or view it on GitHubhttps://github.com/dickontoo/omxtx/issues/8#issuecomment-18793880 .

dickontoo commented 11 years ago

I've added what I believe is needed to support it, and I can transcode the samples referred to by http://www.raspberrypi.org/phpBB3/viewtopic.php?f=29&t=19334&start=275#p269992 quite happily, but it won't touch yours, and neither will omxplayer. I expect that once you've managed to get omxplayer to play a stream, omxtx will transcode it. Unfortunately, I have no idea what that may entail.