Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[enchantment] MJPEG encoding #8

Open
lestofante opened this issue May 31, 2013 · 3 comments
Open

[enchantment] MJPEG encoding #8

lestofante opened this issue May 31, 2013 · 3 comments

Comments

@lestofante
Copy link

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
Copy link
Owner

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
Copy link
Author

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 [email protected]

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//issues/8#issuecomment-18793880
.

@dickontoo
Copy link
Owner

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants