Hay i´m work on a JelleBean Rom and i have a problem with 720p Movie playing. The Video Sound is good and the Frame is not good. the reproduction stutters. if i istall the MX Player is the self problem with stutters.
this is a logcat from Movie Playing
Code:
11:31:31.866 Debug dalvikvm 1321 GC_CONCURRENT freed 2160K, 50% free 4904K/9799K, paused 4ms+8ms, total 72ms
11:31:31.866 Info ActivityManager 325 Displayed com.android.gallery3d/.app.MovieActivity: +159ms
11:31:32.303 Verbose StateManager 1321 saveState
11:31:32.303 Verbose StateManager 1321 saveState class com.android.gallery3d.app.AlbumSetPage
11:31:32.303 Verbose StateManager 1321 saveState class com.android.gallery3d.app.AlbumPage
11:31:32.303 Verbose StateManager 1321 saveState class com.android.gallery3d.app.PhotoPage
11:31:32.412 Info SampleTable 160 There are reordered frames present.
11:31:32.521 Info OMXCodec 160 [OMX.qcom.video.decoder.avc] Non-Interlaced format detected
11:31:32.521 Info OMXCodec 160 [OMX.qcom.video.decoder.avc] AVC profile = 100 (High), level = 41
11:31:32.521 Debug QCvdec 160
11:31:32.521 Debug QCvdec 160 VDEC Open with new H 720 and W 1280
11:31:32.521 Debug QCvdec 160 portDefn->nBufferSize 1382400 m_height 720 m_width 1280
11:31:32.521 Info OMXCodec 160 [OMX.qcom.video.decoder.avc] Enable frame by frame mode
11:31:32.521 Debug QCvdec 160 portDefn->nBufferSize 1382400 m_height 720 m_width 1280
11:31:32.521 Warning QCvdec 160 get_config: unknown param 117440527
11:31:32.521 Info OMXCodec 160 [OMX.qcom.video.decoder.avc] video dimensions are 1280 x 720
11:31:32.521 Debug QCvdec 160 portDefn->nBufferSize 1382400 m_height 720 m_width 1280
11:31:32.521 Debug MediaPlayer 1321 getMetadata
11:31:32.521 Warning QCvdec 160 H264_Utils::check_header
11:31:32.521 Warning QCvdec 160 check_header: start code 28
11:31:32.521 Warning QCvdec 160 check_header: start code got fisrt NAL 4
11:31:32.521 Warning QCvdec 160 check_header: start code looking for second NAL 4
11:31:32.521 Warning QCvdec 160 Error at extract rbsp line 1548
11:31:32.521 Warning QCvdec 160 check_header: start code partial nal in one buffer 28
11:31:32.521 Warning QCvdec 160 H264_Utils::check_header
11:31:32.521 Warning QCvdec 160 check_header: start code 8
11:31:32.521 Warning QCvdec 160 check_header: start code got fisrt NAL 4
11:31:32.521 Warning QCvdec 160 check_header: start code looking for second NAL 4
11:31:32.521 Warning QCvdec 160 Error at extract rbsp line 1548
11:31:32.521 Warning QCvdec 160 check_header: start code partial nal in one buffer 8
11:31:32.521 Warning QCvdec 160 H264 profile 100, level 41
11:31:32.630 Warning QCvdec 160 vdec_open
11:31:32.630 Warning QCvdec 160 ERROR - adsp: Request cpu_dma_freq read failed
11:31:32.958 Warning QCvdec 160 FA: Setting Tail to NULL
11:31:32.958 Debug QCvdec 160 portDefn->nBufferSize 1382400 m_height 720 m_width 1280
11:31:32.958 Warning QCvdec 160 get_config: unknown param 117440527
11:31:32.958 Info OMXCodec 160 [OMX.qcom.video.decoder.avc] video dimensions are 1280 x 720
11:31:32.958 Warning QCvdec 160 OMXCORE-SM:Recieved command ENABLE (3)
11:31:32.958 Debug QCvdec 160 portDefn->nBufferSize 1382400 m_height 720 m_width 1280
11:31:32.958 Warning QCvdec 160 VideoHeap : fd 33 data 1132441600 size 27160576
11:31:32.958 Warning QCvdec 160 m_heap_ptr =704987336
11:31:33.083 Info SoftAAC2 160 Reconfiguring decoder: 48000 Hz, 2 channels
11:31:33.083 Warning AudioPolicyManager 160 getDeviceForStrategy() unknown strategy: 3
11:31:33.083 Warning AudioPolicyManager 160 getDeviceForStrategy() unknown strategy: 5
11:31:33.083 Warning AudioPolicyManager 160 getDeviceForStrategy() unknown strategy: 3
11:31:33.083 Warning AudioPolicyManager 160 getDeviceForStrategy() unknown strategy: 3
11:31:33.083 Warning AudioPolicyManager 160 getDeviceForStrategy() unknown strategy: 5
11:31:33.083 Info SoftwareRenderer 160 Buffer color format: 0x7FA30C00
11:31:33.083 Info SoftwareRenderer 160 Video params: mWidth: 1280, mHeight: 720, mCropWidth: 1280, mCropHeight: 720, mCropTop: 0, mCropLeft: 0
11:31:51.974 Warning AudioPolicyManager 160 getDeviceForStrategy() unknown strategy: 3
11:31:51.974 Warning AudioPolicyManager 160 getDeviceForStrategy() unknown strategy: 5
11:31:51.974 Warning AudioPolicyManager 160 getDeviceForStrategy() unknown strategy: 3
11:31:51.974 Warning AudioPolicyManager 160 getDeviceForStrategy() unknown strategy: 3
11:31:51.974 Warning AudioPolicyManager 160 getDeviceForStrategy() unknown strategy: 5
11:31:52.208 Warning AudioFlinger 160 session id 6 not found for pid 1321
11:31:52.208 Info GalleryEGLConfigChooser 1321 Config chosen: R5 G6 B5 A0 D24 S8 ID3 CAVEAT12344
11:31:52.208 Info GLRootView 1321 GLObject has changed from [email protected] to [email protected]
11:31:52.208 Info GLRootView 1321 onSurfaceChanged: 480x762, gl10: [email protected]
11:31:52.318 Info GLRootView 1321 onSurfaceChanged: 480x762, gl10: [email protected]
11:31:52.864 Info AudioService 325 AudioFocus abandonAudioFocus() from [email protected]
11:31:55.048 Debug AudioHardwareQSD 160 AudioHardware pcm playback is going to standby.
can help me found the problem???
many thanks
What movie is that?
Anyway, I don't know the issue. I also doubt that anyone in the Q&A section would know how to help with cooking stuff. I suggest you contact some other expert chiefs via PM and ask them.
re
Marvlesz said:
What movie is that?
Anyway, I don't know the issue. I also doubt that anyone in the Q&A section would know how to help with cooking stuff. I suggest you contact some other expert chiefs via PM and ask them.
Click to expand...
Click to collapse
the movie is a test movie from other jellybean post.
Pixelfreak
-pixelfreak- said:
the movie is a test movie from other jellybean post.
Pixelfreak
Click to expand...
Click to collapse
FYI It's Serenity - the firefly movie.
Hopefully some devs can help, might be an idea to point out what libs you're using / where you got them.
re
HypoTurtle said:
FYI It's Serenity - the firefly movie.
Hopefully some devs can help, might be an idea to point out what libs you're using / where you got them.
Click to expand...
Click to collapse
i have insert the
- 720p_Patch_for_JB
- Camera_HW-Video-Encoder_for_HD2_JellyBean_10152012_by_tytung
- OMX_libs_update
from this board
pixelfreak
Related
My code is fairly simple:
Code:
ar = new AudioRecord(AudioSource.MIC,44100,AudioFormat.CHANNEL_IN_STEREO,AudioFormat.ENCODING_PCM_16BIT,16640);
Debug on my Galaxy Tab P1000 outputs:
12-10 15:07:41.331: INFO/AudioHardwareALSA(2395): AudioStreamInALSA - input - format = 1, channels = 12, rate = 44100
12-10 15:07:41.331: INFO/AudioHardwareALSA(2395): AudioStreamInALSA - default - format = 1, channels = 16, rate = 44100
12-10 15:07:41.331: INFO/AudioHardwareALSA(2395): AudioStreamInALSA - input - format = 1, channels = 16, rate = 44100
12-10 15:07:41.331: INFO/AudioHardwareALSA(2395): AudioStreamInALSA - default - format = 1, channels = 16, rate = 44100
12-10 15:07:41.331: ERROR/ALSALib(2395): external/alsa-lib/src/pcm/pcm.c:2201snd_pcm_open_noupdate) Unknown PCM AndroidRecord_Speaker
12-10 15:07:41.335: ERROR/ALSALib(2395): external/alsa-lib/src/pcm/pcm.c:2201snd_pcm_open_noupdate) Unknown PCM NULL_Device
12-10 15:07:41.335: INFO/AudioHardwareALSA(2395): Initialized ALSA CAPTURE device NULL_Device
12-10 15:07:41.335: ERROR/AudioHardwareALSA(2395): open (0,0x40000) = -2
12-10 15:07:41.335: ERROR/AudioHardwareALSA(2395): setInputDevice(0 , 0x40000) = -2
12-10 15:07:41.335: ERROR/AudioRecord(3980): Could not get audio input for record source 1
12-10 15:07:41.335: ERROR/AudioRecord-JNI(3980): Error creating AudioRecord instance: initialization check failed.
12-10 15:07:41.335: ERROR/AudioRecord-Java(3980): [ android.media.AudioRecord ] Error code -20 when initializing native AudioRecord object.
I tried various AudioSources, SampleRates, Channels, Encodings, BufferSizes, but it always stops with these errors.
It seems to me that the AudioSource is not transmitted correctly. The tab's "asound.conf" has no "AndroidRecord_Speaker" though it does have an "AndroidRecord_Microphone" which apparantly cannot be accessed by the AudioRecord constructor.
Someone knows at which point the AudioSource ENUM is mapped to the devices in asound.conf?
Or what else might be going wrong?
I've been keeping an eye on the Handbrake 720p thread for a while: http://forum.xda-developers.com/showthread.php?t=1060825 as I have been noticing jerky video playback since I got my Transformer a couple of months ago. As some of the guys in the thread are doing sterling work to try and solve the issue for us all I didn't want to hijack the thread with my workaround for smooth video playback as it means encoding to DivX. Let me explain:
I now encode to DivX using the DivX Plus Converter. I'm not sure about posting direct links to paid software so a quick Google search will point you in the right direction.
The settings are as follows:
Output Profile: DivX HD 720p
Custom Resolution: 1104 X 624 (this is important as I have found 1280 x 720 produces a slight judder at times)
Video Bitrate (kbps): 3000 kbps
Audio Bitrate (kbps): 128 kbps
The slightly lower resolution has no impact on quality at all and comparing the original MKV and the encoded file there is minimal difference in quality if any. After the file is encoded rename the extension from divx to mp4 and play it with Rockplayer or MoboPlayer (in software mode) this is important as the stock media player won't load the file.
I know there is a cost involved here with the encoder used and may not suit everyone but I'm also sure there are other free encoders out there that will do the same job , I just havent had time to try any.
Original file:
General
Unique ID : 198601087651856379593994534176452094873 (0x95692D9C86D819CA13C4B691D5EDAB99)
Complete name : D:\Transformer Convert\The Chicago Code.S01E01.mkv
Format : Matroska
File size : 1.09 GiB
Duration : 44mn 45s
Overall bit rate : 3 495 Kbps
Encoded date : UTC 2011-02-08 01:41:10
Writing application : mkvmerge v3.0.0 ('Hang up your Hang-Ups') built on Apr 19 2010 11:58:49
Writing library : libebml v0.7.7 + libmatroska v0.8.1
Video
ID : 1
Format : AVC
Format/Info : Advanced Video Codec
Format profile : [email protected]
Format settings, CABAC : Yes
Format settings, ReFrames : 8 frames
Format settings, GOP : M=6, N=22
Codec ID : V_MPEG4/ISO/AVC
Duration : 44mn 45s
Bit rate : 3 045 Kbps
Width : 1 280 pixels
Height : 720 pixels
Display aspect ratio : 16:9
Frame rate : 23.976 fps
Color space : YUV
Chroma subsampling : 4:2:0
Bit depth : 8 bits
Scan type : Progressive
Bits/(Pixel*Frame) : 0.138
Stream size : 953 MiB (85%)
Writing library : x264 core 105 r1732 2b04482
Encoding settings : cabac=1 / ref=8 / deblock=1:-2:-2 / analyse=0x3:0x113 / me=umh / subme=9 / psy=1 / psy_rd=1.00:0.00 / mixed_ref=1 / me_range=24 / chroma_me=1 / trellis=1 / 8x8dct=1 / cqm=0 / deadzone=21,11 / fast_pskip=0 / chroma_qp_offset=-2 / threads=6 / sliced_threads=0 / nr=0 / decimate=1 / interlaced=0 / constrained_intra=0 / bframes=5 / b_pyramid=2 / b_adapt=1 / b_bias=0 / direct=3 / weightb=1 / open_gop=0 / weightp=2 / keyint=250 / keyint_min=23 / scenecut=40 / intra_refresh=0 / rc_lookahead=40 / rc=2pass / mbtree=1 / bitrate=3045 / ratetol=1.0 / qcomp=0.60 / qpmin=10 / qpmax=51 / qpstep=4 / cplxblur=20.0 / qblur=0.5 / ip_ratio=1.40 / aq=1:1.00
Language : English
Audio
ID : 2
Format : AC-3
Format/Info : Audio Coding 3
Mode extension : CM (complete main)
Codec ID : A_AC3
Duration : 44mn 45s
Bit rate mode : Constant
Bit rate : 448 Kbps
Channel(s) : 6 channels
Channel positions : Front: L C R, Side: L R, LFE
Sampling rate : 48.0 KHz
Bit depth : 16 bits
Compression mode : Lossy
Stream size : 143 MiB (13%)
Encoded File (2min 23sec clip):
General
Complete name : D:\Transformer Convert\ASUS.TF101.DIVX.Sample.divx
Format : AVI
Format/Info : Audio Video Interleave
File size : 89.2 MiB
Duration : 2mn 23s
Overall bit rate : 5 209 Kbps
Writing library : Boilsoft AVI tool build 1/release
Video
ID : 0
Format : MPEG-4 Visual
Format settings, BVOP : 1
Format settings, QPel : No
Format settings, GMC : No warppoints
Format settings, Matrix : Default (H.263)
Muxing mode : Packed bitstream
Codec ID : DX50
Codec ID/Hint : DivX 5
Duration : 2mn 23s
Bit rate : 5 071 Kbps
Width : 1 100 pixels
Height : 620 pixels
Display aspect ratio : 16:9
Frame rate : 23.976 fps
Color space : YUV
Chroma subsampling : 4:2:0
Bit depth : 8 bits
Scan type : Progressive
Compression mode : Lossy
Bits/(Pixel*Frame) : 0.310
Stream size : 86.8 MiB (97%)
Writing library : DivX 3330
Audio
ID : 1
Format : MPEG Audio
Format version : Version 1
Format profile : Layer 3
Mode : Joint stereo
Mode extension : MS Stereo
Codec ID : 55
Codec ID/Hint : MP3
Duration : 2mn 23s
Bit rate mode : Constant
Bit rate : 128 Kbps
Channel(s) : 2 channels
Sampling rate : 44.1 KHz
Compression mode : Lossy
Delay relative to video : 14ms
Stream size : 2.19 MiB (2%)
Alignment : Split accross interleaves
Interleave, duration : 42 ms (1.00 video frame)
Interleave, preload duration : 500 ms
I have uploaded a sample here if anyone wants to check it out:
ASUS.TF101.DIVX.Sample.rar
I've also uploaded a converted 720p trailer of Prince Of Persia Sands Of Time as it has a lot of panning in it:
Prince Of Persia Trailer
And a converted 1080p trailer of Avatar
Avatar Trailer
Both the trailers have slightly different resolutions to the settings above: Avatar (1280x532), Prince Of Persia (1104x498), these were the defaults chosen by the encoder and I saw no reason to change them.
I am no expert in the field but was happy that I now have smooth video playback on my Transformer until the 720p issue is solved so I thought I would share my findings as I have had a lot of help from the forums on different matters in the last couple of months. I should also say my Transformer is rooted running Prime 1.5 but the results were the same running stock 3.1.
Mods, if there is anything in this post that needs editing please let me know.
Cheers SmithersJ0nes
I have 700mb video files that I would like to trim down to 500-625 mb to fit more on my xoom before I go away to school soon. I don't have much knowledge in video converting so thats why I'm posting. I have an idea but I would like input before I leave my PC on all night to be disappointed with the quality.
Here is a sample mediainfo export of the specs of my desired video files. I would like to know how would I go compressing without losing to much quality.
Format : AVI
Format/Info : Audio Video Interleave
File size : 742 MiB
Duration : 58mn 48s
Overall bit rate : 1 763 Kbps
Writing application : VirtualDubMod 1.5.10.2 (build 2540/release)
Writing library : VirtualDubMod build 2540/release
Video
ID : 0
Format : AVC
Format/Info : Advanced Video Codec
Format profile : [email protected]
Format settings, CABAC : Yes
Format settings, ReFrames : 2 frames
Codec ID : H264
Duration : 58mn 48s
Bit rate : 1 550 Kbps
Width : 800 pixels
Height : 450 pixels
Display aspect ratio : 16:9
Frame rate : 29.970 fps
Color space : YUV
Chroma subsampling : 4:2:0
Bit depth : 8 bits
Scan type : Progressive
Bits/(Pixel*Frame) : 0.144
Stream size : 656 MiB (88%)
Writing library : x264 core 50 svn-569
Encoding settings : cabac=1 / ref=1 / deblock=1:0:0 / analyse=0x3:0x133 / me=hex / subme=5 / brdo=0 / mixed_ref=0 / me_range=16 / chroma_me=1 / trellis=1 / 8x8dct=1 / cqm=0 / chroma_qp_offset=0 / slices=1 / nr=0 / decimate=1 / bframes=2 / b_pyramid=0 / b_adapt=1 / b_bias=0 / direct=2 / wpredb=1 / bime=0 / keyint=250 / keyint_min=25 / scenecut=40 / rc=abr / bitrate=1550 / ratetol=1.0 / rceq='blurCplx^(1-qComp)' / qcomp=0.60 / qpmin=10 / qpmax=51 / qpstep=4 / ip_ratio=1.40 / pb_ratio=1.30
Audio
ID : 1
Format : AC-3
Format/Info : Audio Coding 3
Mode extension : CM (complete main)
Codec ID : 2000
Duration : 58mn 48s
Bit rate mode : Constant
Bit rate : 192 Kbps
Channel(s) : 2 channels
Channel positions : Front: L R
Sampling rate : 48.0 KHz
Bit depth : 16 bits
Compression mode : Lossy
Stream size : 80.8 MiB (11%)
Alignment : Aligned on interleaves
Interleave, duration : 33 ms (1.00 video frame)
Interleave, preload duration : 512 ms
Use my script, and set video recode to Yes. Video looks fairly compressible at 1550Kbps, as SD res is usually well under 1000, depending on content. If it's a TV episode (ie low-action), probably 700-800.
Assume 900Kbs for video + 130Kbs for audio, (900+130)Kb/s * 3600 sec/hr / 8 bit/Byte / 1024 Kb/Mb = 453 MB for hour-long vid.
You can further reduce size by using 640 res, or quality 22+. Using VerySlow speed would eke out another 10-15% size reduction vs Medium, although for mobiles it's not recommended.
Hello everybody,
i have a new SM-T585 with Android 6.0.1 (EU) NON-Root and problems with some .ts videofiles from my TV-Headend-Setup.
When i try to play those files with H/W Accleration (MX-Player, BS Player, Kodi) i get vertical lines and screen shuttering (the whole screen with menue). When I try to play those files with SW-Mode the artifacts are gone but i have poor fps-performance.
My Honor 7 with H/W-Accleration has no problems with these files.
Here is one example of the .ts file:
Code:
dropbox.com/sh/8bt23ajttypy9p0/AABUFOE11zmFQr-C5YWPwbR2a?dl=0
Has anyone of you made the same experiences?
Code:
General
ID : 12 (0xC)
Complete name : /Volumes/Data/Benutzer/Dropbox/Samsung Tablet Screen Tearing/Sky-Sport-News-HD-Live-Sky-Sport-News-HD_-Spatreport.2017-03-25.ts
Format : MPEG-TS
File size : 60.9 MiB
Duration : 1mn 54s
Start time : UTC 2017-03-25 21:43:24
Overall bit rate mode : Variable
Overall bit rate : 4 395 Kbps
Country : DEU
Timezone : +01:00:00
Video
ID : 1023 (0x3FF)
Menu ID : 108 (0x6C)
Format : AVC
Format/Info : Advanced Video Codec
Format profile : [email protected]
Format settings, CABAC : Yes
Format settings, ReFrames : 4 frames
Codec ID : 27
Duration : 1mn 54s
Bit rate : 3 984 Kbps
Width : 1 920 pixels
Height : 1 080 pixels
Display aspect ratio : 16:9
Frame rate : 25.000 fps
Standard : Component
Color space : YUV
Chroma subsampling : 4:2:0
Bit depth : 8 bits
Scan type : MBAFF
Scan order : Top Field First
Bits/(Pixel*Frame) : 0.077
Stream size : 54.3 MiB (89%)
Color range : Limited
Color primaries : BT.709
Transfer characteristics : BT.709
Matrix coefficients : BT.709
Audio
ID : 1027 (0x403)
Menu ID : 108 (0x6C)
Format : AC-3
Format/Info : Audio Coding 3
Mode extension : CM (complete main)
Format settings, Endianness : Big
Codec ID : 129
Duration : 1mn 54s
Bit rate mode : Constant
Bit rate : 192 Kbps
Channel(s) : 2 channels
Channel positions : Front: L R
Sampling rate : 48.0 KHz
Compression mode : Lossy
Delay relative to video : -695ms
Stream size : 2.62 MiB (4%)
Language : German
When I record a video on my G6 (from T-mobile) and set the video resolution to FHD 16:9 60fps, the resulting MP4 video files have an incorrect frame rate. I see 59.51fps, instead of the expected 60.00 or 59.94. The result of this is that any video that's more than a few seconds long has audio/video getting out of sync, and the de-sync gets worse further into the video.
Here is the (trimmed) output from the ffprobe utility (from the ffmpeg project):
Code:
> ffprobe take1.mp4
ffprobe version 2.8.11-0ubuntu0.16.04.1 Copyright (c) 2007-2017 the FFmpeg developers
libavutil 54. 31.100 / 54. 31.100
libavcodec 56. 60.100 / 56. 60.100
libavformat 56. 40.101 / 56. 40.101
libavdevice 56. 4.100 / 56. 4.100
libavfilter 5. 40.101 / 5. 40.101
libavresample 2. 1. 0 / 2. 1. 0
libswscale 3. 1.101 / 3. 1.101
libswresample 1. 2.101 / 1. 2.101
libpostproc 53. 3.100 / 53. 3.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'take1.mp4':
Metadata:
major_brand : mp42
minor_version : 0
compatible_brands: isommp42
creation_time : 2017-10-22 01:04:08
location : [redacted]
location-eng : [redacted]
Duration: 00:02:43.91, start: 0.000000, bitrate: 24154 kb/s
Stream #0:0(eng): Video: h264 (High) (avc1 / 0x31637661), yuv420p(tv, bt709/bt709/smpte170m), 1920x1080, 23980 kb/s, SAR 1:1 DAR 16:9, 59.51 fps, 90k tbr, 90k tbn, 180k tbc (default)
Metadata:
creation_time : 2017-10-22 01:04:08
handler_name : VideoHandle
Stream #0:1(eng): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 155 kb/s (default)
Metadata:
creation_time : 2017-10-22 01:04:08
handler_name : SoundHandle
I was able to fix the time stamps (PTSs) using the mkvmerge utility, but that isn't the best solution. This does seem like an actual bug. Here's hoping that anyone from LG's engineering team checks this subreddit!