![]() |
Troubleshooting: video playback
Post moved from end of an old thread because its title wasn't, in fact, quite in line with what I need help with...
Aim: Play video file, whose details are below, with stock media player. Actual result: (a) Stock media player (h/w acc): 5 dots then unsupported format message. (b) KMplayer + mplayer: plays but a and v lose sync. Context: I'm having a little trouble with video playback. Below is output from various commands, including hexdump ( from new busybox ). I can't find an armv7 build of avinaptic at the moment so I hope what I've got is enough. This file does play, technically, in mplayer but video runs about 10% slower than audio so it doesn't take long for a lot of lag to develop. I would like to make use of the video h/w with the built in media player but I get that format unsupported message. I have installed as many of the codecs as I can see in the repositories (not the -dev or -dbg ones). How can I check to make sure it's profile is baseline? And if it's set to main or high, how can it be reset to baseline? mplayer can cope at approx 500kbps but I generally playback to a tv so would be better if higher quality were possible. I have found I can stream about 400kbps via the stock player but any higher then it's very skippy (and not in a good way!). These are bbc iplayer downloads/streams so I'd have thought the encoding would be the same for all resolutions and bitrates, for non-HD. All help gratefully received... File info file useful command but not sure how to get a more verbose output... Code:
~/MyDocs/.videos/iplayerTV $ file movie.mp4 Code:
~/MyDocs/.videos/iplayerTV $ mplayer -identify -frames 0 movie.mp4 Code:
~/MyDocs/.videos/iplayerTV $ hexdump -C movie.mp4 | head |
Re: Troubleshooting: video playback
Quote:
|
Re: Troubleshooting: video playback
O/S: Maemo5 PR1.3-v0.46
Kernel Settings: - frequency-range: 250MHz - 850MHz - profile: "ideal" Is there something I should do with these to make playback in the stock player possible. I can see how kernel settings would impact on mplayer performance, however, so please suggest optimal for playback. |
Re: Troubleshooting: video playback
Quote:
2. connect to internet. 3. enter: Code:
kernel-config show | pastebinit just for test sake, set the voltage/frequency back to default values and see how the stock player performs. |
Re: Troubleshooting: video playback
OK. I'll post back with how I get on. I hadn't thought frequency/voltage settings would effect the ability of media player to open.
Is there a way to check which profile the video is on the N900? |
Re: Troubleshooting: video playback
Pastebin...
http://pastebin.com/J5n53Pru Ah. For some reason I thought it was 250 - 850, must have forgotten to set lower limit. Got to go out but I'll reset freq and profile as soon as I can. Let me know if the above kernel settings might be contributing to the problem. ps.Truly amazing service paste bin - thanks for alerting me to it! |
Re: Troubleshooting: video playback
@Demolition
Clock speed does seem to have influence on playback. I use QCPUfreq and overclock on a per session basis (max @900), usually when I want to watch a movie from the phone, displayed on the TV. I only utilize mplayer from the command line, though, as my experiences with both the default media player as well as KMPlayer were not very good, especially when I wants to use (external) subtitles. That being said, however, I have ran in to some files that had trouble playing. What I did find is that ffmpeg does a pretty good job converting these "unplayable" files to something that actually does work. An example for converting a .flv to mpg can be found at the link below: http://www.ubuntugeek.com/convert-fl...ng-ffmpeg.html If you insist on using the default media player, converting on your n900 might be helpfull with that. |
Re: Troubleshooting: video playback
@fabio: thanks for removing your post.
--------- @ anthonie OK. I'll try winding the CPU up a bit. You say 900 can play full 360p on mplayer? I find KMplayer generally better than cli mplayer but suspect I'm not giving it the correct settings. I would prefer to use stock media player because it's h/w accelerated so cpu wouldn't need to run so fast and battery would last a bit longer. @ vi_ Made a mistake on the initial pastebin - think I must have been running post-crash so settings didn't load. http://pastebin.com/4LwMWzuF Set it to default - rebooting now so brb |
Re: Troubleshooting: video playback
Hi I have a similar query. I like to watch japanese anime. These are usually in .mkv format with dual audio. I use Sib as a front end because it has a library structure. Now using Mplayer is very good because I can switch the audio streams using the # shortcut key however sometimes certain videos lag using mplayer. I don't think it is hardware accelerated.
The same .mkv video plays well on the stock media player..but there is no way to switch the audio stream. Anything I can do? I never tried overclocking during playback. Usually I overclock only for multitasking. Do you think it would help with video playback? Or is there any way to make mplayer hardware accelerated? Or any way to switch audio streams using the stock media player. |
Re: Troubleshooting: video playback
Quote:
However, if you type mplayer --help, you'll notice there are some options like framedropping and post processing, which may or may not help you. Conclusion: Your mileage may vary. |
Re: Troubleshooting: video playback
Hmmm... You did make me curious now demolition.
This thread talks about HWA, stating it's only possible for the programs that use gstreamer as it's backend, which mplayer does not. http://talk.maemo.org/showthread.php?t=33127 Googling around brought me to the mplayer site, where it is stated that for nvidia cards (on desktop / laptop machines) there is an option -vdpau. http://www.mplayerhq.hu/design7/info.html Unless somebody with more knowledge can point us elsewhere, I'd say HWA is not used by mplayer. |
Re: Troubleshooting: video playback
Hardware accelerated playback will most often not worked with downloaded anime anyway, as the hardware acceleration only supports h264 baseline profile, and most people encode h264 with main or high profile.
|
Re: Troubleshooting: video playback
Bump.
Been looking through the (massive) world of mencoder, ffmpeg and all those flags! On our very own wiki there're some suggestions but I'm not sure how I could turn them to my use? Input: file type: mp4 video format: h.264 video codec: ffh264 audio format: mp4a audio codec: faad bitrate: 793kbps (v=698, a=95) dimensions: 640 px wide x 360 px high pixel depth: 24bpp fps: 25 length: 5338.98 (see post #1) I'm a bit baffled by all the flags etc so if anyone has had some experience with this, please let me know. I would like to create a near-identical copy of the Input video, which will play in the default media player. So I guess something like this? Based on what's in the wiki... Code:
~/MyDocs/.videos/iplayerTV $ ffmpeg -i movie.mp4 -threads 0 -vcodec libx264 -ac Ahh... could this explain it? gstreamer ffmpeg was configured with libx264 disabled. |
Re: Troubleshooting: video playback
I did eventually get it to encode. Not with libx264, though. I pretty much copied the original (same file size & mplayer -identify results) except I did add in -vpre baseline. Tried setting the pixel format to the h264 one listed in ffmpeg -pix_fmt list; also no effect. Next attempts will be to use yuv or something.
All ideas welcome... (aim: play this video in stock player) |
All times are GMT. The time now is 01:08. |
vBulletin® Version 3.8.8