View Single Post
Posts: 560 | Thanked: 422 times | Joined on Mar 2011
#1
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
movie.mp4: ISO Media, MPEG v4 system
mplayer identify lots of stuff ...
Code:
~/MyDocs/.videos/iplayerTV $ mplayer -identify -frames 0 movie.mp4             
MPlayer SVN-r30099-4.2.1 (C) 2000-2009 MPlayer Team

Playing movie.mp4.
libavformat file format detected.
ID_VIDEO_ID=0
[lavf] Video stream found, -vid 0
ID_AUDIO_ID=1
[lavf] Audio stream found, -aid 1
ID_AID_1_LANG=und
VIDEO:  [H264]  640x360  24bpp  25.000 fps  698.3 kbps (85.2 kbyte/s)
Clip info:
 major_brand: isom
ID_CLIP_INFO_NAME0=major_brand
ID_CLIP_INFO_VALUE0=isom
 minor_version: 512
ID_CLIP_INFO_NAME1=minor_version
ID_CLIP_INFO_VALUE1=512
 compatible_brands: isomiso2avc1mp41
ID_CLIP_INFO_NAME2=compatible_brands
ID_CLIP_INFO_VALUE2=isomiso2avc1mp41
 encoder: Lavf52.31.0
ID_CLIP_INFO_NAME3=encoder
ID_CLIP_INFO_VALUE3=Lavf52.31.0
ID_CLIP_INFO_N=4
ID_FILENAME=movie.mp4
ID_DEMUXER=lavfpref
ID_VIDEO_FORMAT=H264
ID_VIDEO_BITRATE=698344
ID_VIDEO_WIDTH=640
ID_VIDEO_HEIGHT=360
ID_VIDEO_FPS=25.000
ID_VIDEO_ASPECT=1.7778
ID_AUDIO_FORMAT=MP4A
ID_AUDIO_BITRATE=94728
ID_AUDIO_RATE=24000
ID_AUDIO_NCH=2
ID_LENGTH=5338.98
ID_SEEKABLE=1
ID_CHAPTERS=0
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
Unsupported PixelFormat -1
Selected video codec: [ffh264] vfm: ffmpeg (FFmpeg H.264)
==========================================================================
ID_VIDEO_CODEC=ffh264
==========================================================================
Opening audio decoder: [faad] AAC (MPEG2/4 Advanced Audio Coding)
AUDIO: 24000 Hz, 2 ch, s16le, 94.7 kbit/12.33% (ratio: 11841->96000)
ID_AUDIO_BITRATE=94728
ID_AUDIO_RATE=24000
ID_AUDIO_NCH=2
Selected audio codec: [faad] afm: faad (FAAD AAC (MPEG-2/MPEG-4 Audio))
==========================================================================
[AO OSS] audio_setup: Can't open audio device /dev/dsp: No such file or directory
AO: [alsa] 24000Hz 2ch s16le (2 bytes per sample)
ID_AUDIO_CODEC=faad
Starting playback...


Exiting... (End of file)
ID_EXIT=EOF
hexdump command only available in upgraded busybox
Code:
~/MyDocs/.videos/iplayerTV $ hexdump -C movie.mp4 | head
00000000  00 00 00 20 66 74 79 70  69 73 6f 6d 00 00 02 00  |... ftypisom....|
00000010  69 73 6f 6d 69 73 6f 32  61 76 63 31 6d 70 34 31  |isomiso2avc1mp41|
00000020  00 00 00 08 66 72 65 65  1f 8c 35 d0 6d 64 61 74  |....free..5.mdat|
00000030  00 00 00 27 06 00 11 80  04 38 0c 80 00 00 03 00  |...'.....8......|
00000040  00 04 38 0c 80 00 00 03  00 40 01 0c 00 00 03 00  |..8......@......|
00000050  00 40 90 80 08 00 00 03  00 08 80 00 00 01 6a 65  |.@............je|
00000060  88 80 40 0d bf bc 11 f8  86 ff c1 66 0b 8f bd 26  |..@........f...&|
00000070  13 68 2a fa 13 67 0b ef  fd 3b 22 b2 09 d9 54 94  |.h*..g...;"...T.|
00000080  f1 ea b1 e6 0a 9f 82 d5  39 dc 37 ee 4a 9b a8 10  |........9.7.J...|
00000090  d8 64 ff d1 69 be fa 3f  ac 5c 7c a2 a2 c4 08 ce  |.d..i..?.\|.....|