Lossless video playback using MediaCodec/MediaExtractor - Other Tools & General Discussion

Hi there,
I'm struggling with this for a dozen days now, maybe you can help: I need a lossless video codec to be able to drive an LED display of 64x192px in size. Has to run on a Hardkernel Odroid XU3 with Android 4.4.4, willing to use Android 5 if I find an OS image.
So far I tried h264 lossless, VP9 lossless and also using maximum quality but lossless, but none of them worked. Android didn't want to load the file or the quality wasn't appropriate.
Whatever codec I use, android only likes the yuv420 pixel format, causing our videos to look blurry.
I'd love to have a codec that just accepts a PNG file list or something else, RGB run length encoding would be a good candiate, like Apples RGB format.
Is there any codec that I overlooked that is capable of doing this?
Best,
Lyve

Related

Why does a video from my Fuze not play on my PC?

Anyone else have an issue? I use Zoomplayer and I have ffdshow. I didn't know anything was left to not be playable!
Check what codec it wants with Gspot(http://www.headbands.com/gspot/)
For a player you can try MediaPlayerClassic(http://sourceforge.net/project/showfiles.php?group_id=82303&package_id=84358&release_id=403110) or get MPC included with a pretty robust codec pack CCCP(http://www.cccp-project.net/download.php?type=cccp)
As a last resort try VLC(http://www.videolan.org/vlc/) it plays pretty much anything, but not always in an optimized way
FFDShow can play TouchPro/Fuze videos, but it may not be configured to recognize the files by default.
GSpot reports video: MP4V, and audio: AMR.
Look under your start menu for the link to ffdshow config (eg: Start > Programs > ffdshow > ... or CCCP > Filters > ... if you use that pack)
Choose FFDShow Audio Decoder Configuration
→ Under the Codecs category, look for AMR and set Decoder to libavcodec.
Then choose FFDShow Video Decoder Configuration
→ Under the Codecs category, look for Other MPEG4 (you will see MP4V noted in the FourCC) and set Decoder to libavcodec
Close ZoomPlayer (or MPC, which I highly recommend), and reload. FFDShow will now properly decode and play the videos.
Man I hate the nightmare over which player to use. I used to use only MPC, but people told me it had inferior video quality and/or couldn't support 5.1.
If you're using the default video format (.mp4), here's a trick that will usually play the video on a PC using Quicktime.
Change the .mp4 file extension to .3gp.
In the advanced menu on the video camera, you can also change the capture format to H.263 and those files seem to play fine on my PC without any changes.
thehyecircus said:
Man I hate the nightmare over which player to use. I used to use only MPC, but people told me it had inferior video quality and/or couldn't support 5.1.
Click to expand...
Click to collapse
Technically MPC isn't a factor when it comes to video quality or support for additional features. Video/audio quality depends on the filters/decoders being used (such as ffdshow, coreavc, powerdvd, etc). Support for extra features comes from splitters (such as Haali Media Splitter, which will tell MPC how to read/playback different kinds of data in a file) and other kinds of filters (such as directvobsub for rendering subtitles).
MPC is pretty much just a GUI that lets you control all those splitters/filters. Without any splitters/filters, MPC is pretty useless, and the default filters would use (that are included in Windows) are indeed pretty low-quality. But ffdshow is one of the best quality decoders out there.
Just for reference, ZoomPlayer is also a good player which uses the same splitters/filters to play media files--it's just a matter of GUI preference. The CCCP package is popular because it includes both MPC and ZoomPlayer as well as the best (non-commercial) splitters and filters like Haali and ffdshow.
If you're interested in getting more information, this is a good start:
http://www.cccp-project.net/wiki/index.php?title=Media_Players
Hopefully this isn't too far off-topic
Is H.263 a poor video quality? I can open it with Media Player and I installed the CCCP, but it takes a while to open my original video file for some reason. And I'd rather never use Quicktime, in fact The CCCP site had me uninstall it. But anyway - does H.263 matter compared to MPEG4? What can I do to have my next video file not be such a pain?
"Choose FFDShow Audio Decoder Configuration
→ Under the Codecs category, look for AMR and set Decoder to libavcodec.
Then choose FFDShow Video Decoder Configuration
→ Under the Codecs category, look for Other MPEG4 (you will see MP4V noted in the FourCC) and set Decoder to libavcodec"
I am going to do that now. I would have done it before, but I did not have those files.
http://en.wikipedia.org/wiki/H.263
There's a lot of rude and ignorant posters on this site, aren't there? I went to the Wiki page first thing - and guess what, there's no information. So *gasp* I asked here. Directing me backwards won't help.
It's pretty complicated so I'll just try to keep it simple:
MP4V is just an identifier for MPEG-4 video. There's a lot of technical stuff behind MPEG-4 codecs concerning quality, but I would say it's safe to assume the Fuze/TouchPro uses just the simple profiles (optimized for handhelds). H.263 is quite simply just an older codec but is similarly intended for handhelds. MPEG-4 technically can offer much better quality, but the Fuze/TouchPro does not let you change the codec's internal settings (since it's built-in to the camera app and/or camera chip).
So whether one codec is better than the other isn't clear; you'll just have to test both modes and see which one you prefer (but at 320x240, I doubt the difference will be very noticable). If the quality is almost the same, the other significant factor is that one codec may produce smaller files.
Hope that helps.

[Q] Best format for video

What is the best for playing movies? I plan to rip some from Dvds, and wondered what would play best. I am using Vegan 3. I dont know much about divx vs other codecs.
I use mp4 I have 22 video and they only take 20gb of space. I have heard of guys using .mov but I think it is a full 1080 few so it will probably use a lot more space. I think mp4 is only 720 capable
JoeMofknDot said:
I use mp4 I have 22 video and they only take 20gb of space. I have heard of guys using .mov but I think it is a full 1080 few so it will probably use a lot more space. I think mp4 is only 720 capable
Click to expand...
Click to collapse
I want to convert some mkvs and some DVDs to mp4 for an up coming trip, has anyone used handbrake? If so what profile or preset are you using?
jamesgf said:
I want to convert some mkvs and some DVDs to mp4 for an up coming trip, has anyone used handbrake? If so what profile or preset are you using?
Click to expand...
Click to collapse
Handbrakes stock settings work fine for me I tried anyvideoconverter but converted files gave corrupt error
Depends on the source. DVD = standard video, so I would actually recommend Xvid in an AVI container. They play very nicely, plus it's a pretty standard format. And for problematic AC3 audio, you can use an app like Rockplayer. MKV also works nicely in Rockplayer. Or you can even encode to MP4 if you want iPod / iPad compatibility.
For High-Def, I would personally recommend MP4 (h263), only because h264 is so problematic. I use Handbrake and then alter the iPad Profile from h264 to MP4 (h263) and it works very nicely on our device. Yes, it's not "standard" so my files are really only for this device or my PC.
I'm not an expert on video formats or ripping/converting. However, I've spent the last couple of days (off and on) trying to find the best way to get vids on the gTab. As of this morning, the best option I've found is using Pazera. I used the "Video to iPod" converter with the following settings:
Output file format
MP4 (MPEG-4/AAC)
Bitrate: 1000 kbit/s
FPS: 30
Audio - Left it in "Auto"
Advanced Settings
Resolution: 1280 x 720 - HD720
The quality looks really good. No issues with the audio either. My only problem is the file size is 1.2GB. The vid I converted was 2 1/2 hours but I still think I want the file size around 500 to 700MB. I'm going to adjust the settings some more and see if I can find the balance between video quality and file size. It just takes an hour or so to convert it so this may take a few days.
I hope this is helpful to everyone. If anyone else has any experience with Pazera and can recommend good settings, I'm all ears!
Sly Soft's AnyDVD to rip and them AnyDVDMobile to convert (I use ipad's default settings on the mobile conversion and they work great - I use those settings b/c I my kids use the same rips for the ipod touch and it comes out as something they all can use (rather than keeping multiple copies for each device).
I have been using this to convert HD video into something the hardware decoder can play without issue:
Code:
INPUT="My_movie.mkv"
OUTPUT="My_movie-gtab.mp4"
ABITRATE=64k
VBITRATE=1500k
RESIZETO="-s 1024x576"
ffmpeg -strict experimental -y -i $INPUT -f mp4 $RESIZETO -vcodec libx264 \
-vpre default -vpre ipod640 -acodec aac -ab $ABITRATE \
-ac 2 -b $VBITRATE -threads 0 $OUTPUT
1000k for the video bitrate would net you about 480M/hour, with 1500k at about 700M/hour (which is fine by me).
The RESIZETO will work for 720p and 1080p content as it's resizing for the longer width. If you have SD content (DVDs) just comment out the RESIZETO. If you have something that is anamorphic (check ffmpeg -i $FILENAME) you will need to do your own math, or just leave it and up the bitrate. A good rule of thumb for high quality is:
0.14 * Height * Width * frames/sec
So 0.14 * 576 * 1024 * 29.97 = 2477260bps, or ~ 2500k, about 1.1G/hour
adjusting the number downward will reduce quality, but it's a choice between video quality and size at this point.
I have tested this with a few videos (Big Buck Bunny, originally 1080p content) and with some 720p videos. 1500k worked out really well.
Great info ckelly33 and ckelly. I'm starting to think the question is more on "what are the acceptable formats". Everyone is different and the output they are looking for is just as different. I'm still trying for 500 to 700MB.
I tried again and I think I've got it like I want it. Need to test it some more. On the last conversion I noticed a button for max file size. That got me right where I want to be!
ima_UNC_fan said:
Great info ckelly33 and ckelly. I'm starting to think the question is more on "what are the acceptable formats". Everyone is different and the output they are looking for is just as different. I'm still trying for 500 to 700MB.
I tried again and I think I've got it like I want it. Need to test it some more. On the last conversion I noticed a button for max file size. That got me right where I want to be!
Click to expand...
Click to collapse
So far, It has accepted mp4 and avi containers (I prefer mp4), as well as mp3/aac for audio and h.264(main profile). Reports from roebeet says h.263 works as well. I have not tested xvid yet. I had issues with ac3 audio, so I don't think it supports that.
Of all of those, h.264 is a very very high quality codec, so I would recommend trying to use h.264/aac for encoding if at all possible.

[Q] Converting to mp4 with Avidmux

Hello
I'm trying to convert video to Android compatible format (mp4 H.264). My phone: HTC Hero. Because of available video filters I would like to use Avidemux for this purpose. There are several tutorials with settings for Avidemux. I have tried lots of them but I am receiving files which cannot be played with hardware decoding. I have experimented with different settings and encoders. MPEG-4 AVC should be the right one (H.264) but I receive only unplayable files. MPEG-4 ASP (avcodec) is giving playable output, but quality is poor. When I try to rise bitrate I receive big files with rather medium quality. I have tried also some custom scripts, settings for IPhone, for Playstation Portable and nothing.
Nowadays I am encoding video with Avidemux (+ filters like contrast, size, crop,
adding hard subtitles etc.) and then I am doing second conversion with Handbrake (IPhone & IPod Touch settings). This way I have video which is playable but I have do encode it twice. Far from optimal.
Does anyone knows which settings should be used in Avidemux to get mp4 playable on Andriod phone?

Video Converter Software

Hello.
Well, I have been trying to work my way round the Video Softwares for the Note.
I already have a good software - Badaboom which is nVidia Certfiied as it uses the GPU for both Encode & Decode.
The format that I use with it for the Motorola Xoom, same display resolution as the Galaxy Note.
However, I have noticed that the output is not as what it should be.
It seems a bit off.
The movie which I have encoded is a Full HD 1080p. - Original Size is 7.8 Gigs or so and the Rip comes out to 3.02 Gigs.
There is a little noticeable Lip Sync, but the picture is little different.
Have you tried MoboPlayer? It has a soft decode feature which can play back pretty much any format (no need to convert any files at all ).
DVD Catalyst?
Badaboom sucks. It's fast, but quality...meh. GPU encoding has a long way to go.
If you have a decent CPU and are not too technically minded try Handbrake, it works wonders.
I owned a Xoom myself. The screen is nowhere near as rich as the Note although they have similar pixel resolution.
I tried handbrake and it looks nice but doesn't take dvd rips, ie .vob files? But it will scan a dvd to rib? I alway rip my dvds with dvdripper on mac then convert them when i fell like it. Even though it seems more realistic to just rip the dvd to the desired format in the beginning.
Edit: so i tried some things. for awhile i was doing full dvd rips, then i started just doing main feature extraction(to save space) and in handbrake when trying to load the main feature rip it says no source found. When i select a full dvd rip it loads. Im assuming handbrake is looking for the audio ts folder among other things to think its a valid source ... Bummer because i save 1-2gb by not doing a full dvd rip...
MX Player will play .vob and almost all other formats.
Sent witH desire from One X
nahhush said:
Hello.
Well, I have been trying to work my way round the Video Softwares for the Note.
I already have a good software - Badaboom which is nVidia Certfiied as it uses the GPU for both Encode & Decode.
The format that I use with it for the Motorola Xoom, same display resolution as the Galaxy Note.
However, I have noticed that the output is not as what it should be.
It seems a bit off.
The movie which I have encoded is a Full HD 1080p. - Original Size is 7.8 Gigs or so and the Rip comes out to 3.02 Gigs.
There is a little noticeable Lip Sync, but the picture is little different.
Click to expand...
Click to collapse
Try VLC Player, Its only beta at the moment and is almost identical to mx player, I use it on my pc and you can adjust audio sync and stuff, I'm sure these features will be available soon on the android version.
Sent from my HTC One X using xda premium
I have to say I am not sure what you are trying to do here, have you ripped a DVD to VOBS and then try to encode it again?, why don't you just rip the DVD straight to a compatible file with a compatible codec that your PC, Phone and Tablet can handle.
Most devices can handle a 1080p Hn64 high profile rip as long as you have summed audio channels to stereo, this way you can have very large bitrates and upscale your DVD's to play on your PC as well. Playing them on your Tablet and phone will be smooth if you use the sammy video player as hardware acceleration will come in to play.

[Q] Best way to improve performance of playback of this anime?

Hey guys,
I downloaded this torrent of Hunter x Hunter the other day and since the files are in 10-bit, I have to play them with the S/W decoder, which causes the playback to be pretty laggy in a half the scenes.
nyaa.se/?page=view&tid=662318
My first idea was to convert all the files to 8-bit, but I'm not sure if the difference in quality is worth it. If it is, what is the best way of converting them to 8-bit video? Also, does 10-bit make a difference in 1080p phones?
After thinking about the possible loss of quality from the conversion, I was thinking of other ways to modify the files to smoothen playback or to enable HW/HW+ decoder support, but I couldn't think of anything.
Also, I have a Nexus 5 and I enabled "Use speedup tricks" and set the CPU core limit to 4.
Is there any way I could improve the performance of the playback (including converting files)?
Finally, this is a bit off-topic, but what color format should I use when watching anime? I heard that YUV is the best for Blu-ray rips, but I'm not sure. I also don't know the best color format for DVD and TV rips.
Thanks you. Any help is greatly appreciated.
Bump.
There is a thead for speaking about 10-bit videos.
http://forum.xda-developers.com/showthread.php?t=2725241

Categories

Resources