{"action":"created","issue":{"url":"https://api.github.com/repos/google/ExoPlayer/issues/439","labels_url":"https://api.github.com/repos/google/ExoPlayer/issues/439/labels{/name}","comments_url":"https://api.github.com/repos/google/ExoPlayer/issues/439/comments","events_url":"https://api.github.com/repos/google/ExoPlayer/issues/439/events","html_url":"https://github.com/google/ExoPlayer/issues/439","id":74250132,"number":439,"title":"Can exoplayer play dash video with audio/video both in same file","user":{"login":"rashmichaudhari","id":12321480,"avatar_url":"https://avatars.githubusercontent.com/u/12321480?v=3","gravatar_id":"","url":"https://api.github.com/users/rashmichaudhari","html_url":"https://github.com/rashmichaudhari","followers_url":"https://api.github.com/users/rashmichaudhari/followers","following_url":"https://api.github.com/users/rashmichaudhari/following{/other_user}","gists_url":"https://api.github.com/users/rashmichaudhari/gists{/gist_id}","starred_url":"https://api.github.com/users/rashmichaudhari/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rashmichaudhari/subscriptions","organizations_url":"https://api.github.com/users/rashmichaudhari/orgs","repos_url":"https://api.github.com/users/rashmichaudhari/repos","events_url":"https://api.github.com/users/rashmichaudhari/events{/privacy}","received_events_url":"https://api.github.com/users/rashmichaudhari/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/google/ExoPlayer/labels/question","name":"question","color":"cc317c"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-05-08T06:24:20Z","updated_at":"2015-05-08T11:22:46Z","closed_at":null,"body":"Hi, I have dash video chunks created using mp4box which have both audio and video in same chunk.\r\nI was referring to demo app of exoplayer, but all samples in demo app have different segmentLists for audioChunkSource and videoChunkSource. \r\n As i have single segmentlist for both audio and video, I tried using same segmentList for audio and video renderer, which lead to exception\r\n \"Internal runtime error.\r\n  java.lang.NullPointerException\r\n  \tat android.media.MediaFormat.getInteger(MediaFormat.java:282)\r\n  \tat com.google.android.exoplayer.audio.AudioTrack.reconfigure(AudioTrack.java:363)\r\n  \tat com.google.android.exoplayer.audio.AudioTrack.reconfigure(AudioTrack.java:344)\r\n  \tat com.google.android.exoplayer.MediaCodecAudioTrackRenderer.onOutputFormatChanged(MediaCodecAudioTrackRenderer.java:173)\r\n  \tat com.google.android.exoplayer.MediaCodecTrackRenderer.drainOutputBuffer(MediaCodecTrackRenderer.java:825)\r\n  \tat com.google.android.exoplayer.MediaCodecTrackRenderer.doSomeWork(MediaCodecTrackRenderer.java:487)\r\n  \tat com.google.android.exoplayer.ExoPlayerImplInternal.doSomeWork(ExoPlayerImplInternal.java:422)\r\n  \tat com.google.android.exoplayer.ExoPlayerImplInternal.handleMessage(ExoPlayerImplInternal.java:211)\r\n  \tat android.os.Handler.dispatchMessage(Handler.java:98)\r\n  \tat android.os.Looper.loop(Looper.java:136)\r\n  \tat android.os.HandlerThread.run(HandlerThread.java:61)\r\n  \tat com.google.android.exoplayer.util.PriorityHandlerThread.run(PriorityHandlerThread.java:43) \"\r\n\r\nAlso, if I pass only video renderer to player, video plays smoothly without audio.\r\n\r\nStream info of my dash chunck using ffprobe is \r\n{ [STREAM]\r\nindex=0\r\ncodec_name=h264\r\ncodec_long_name=H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10\r\nprofile=unknown\r\ncodec_type=video\r\ncodec_time_base=1/32000\r\ncodec_tag_string=avc1\r\ncodec_tag=0x31637661\r\nwidth=640\r\nheight=360\r\nhas_b_frames=2\r\nsample_aspect_ratio=0:1\r\ndisplay_aspect_ratio=0:1\r\npix_fmt=unknown\r\nlevel=-99\r\ntimecode=N/A\r\nid=N/A\r\nr_frame_rate=32000/2\r\navg_frame_rate=0/0\r\ntime_base=1/16000\r\nstart_pts=N/A\r\nstart_time=N/A\r\nduration_ts=0\r\nduration=0.000000\r\nbit_rate=N/A\r\nnb_frames=N/A\r\nnb_read_frames=N/A\r\nnb_read_packets=N/A\r\nDISPOSITION:default=0\r\nDISPOSITION:dub=0\r\nDISPOSITION:original=0\r\nDISPOSITION:comment=0\r\nDISPOSITION:lyrics=0\r\nDISPOSITION:karaoke=0\r\nDISPOSITION:forced=0\r\nDISPOSITION:hearing_impaired=0\r\nDISPOSITION:visual_impaired=0\r\nDISPOSITION:clean_effects=0\r\nDISPOSITION:attached_pic=0\r\nTAG:language=und\r\nTAG:handler_name=VideoHandler\r\n[/STREAM]\r\n[STREAM]\r\nindex=1\r\ncodec_name=aac\r\ncodec_long_name=AAC (Advanced Audio Coding)\r\nprofile=unknown\r\ncodec_type=audio\r\ncodec_time_base=1/22050\r\ncodec_tag_string=mp4a\r\ncodec_tag=0x6134706d\r\nsample_fmt=fltp\r\nsample_rate=22050\r\nchannels=1\r\nbits_per_sample=0\r\nid=N/A\r\nr_frame_rate=0/0\r\navg_frame_rate=0/0\r\ntime_base=1/22050\r\nstart_pts=N/A\r\nstart_time=N/A\r\nduration_ts=0\r\nduration=0.000000\r\nbit_rate=N/A\r\nnb_frames=N/A\r\nnb_read_frames=N/A\r\nnb_read_packets=N/A\r\nDISPOSITION:default=0\r\nDISPOSITION:dub=0\r\nDISPOSITION:original=0\r\nDISPOSITION:comment=0\r\nDISPOSITION:lyrics=0\r\nDISPOSITION:karaoke=0\r\nDISPOSITION:forced=0\r\nDISPOSITION:hearing_impaired=0\r\nDISPOSITION:visual_impaired=0\r\nDISPOSITION:clean_effects=0\r\nDISPOSITION:attached_pic=0\r\nTAG:language=und\r\nTAG:handler_name=SoundHandler\r\n[/STREAM]\r\n}\r\n\r\nIs there any way i can use same segmentList for playing dash??\r\n\r\nPS: I checked stream info of AUDIO chunks from http://www-itec.uni-klu.ac.at/dash/ddash/mpdGenerator.php?segmentlength=6&type=full, MP4 dash chunk for AUDIO representation in this example had stream 0 as audio stream, whereas in my example stream 0 is video and stream 1 is audio.. Can this be source of problem..??"},"comment":{"url":"https://api.github.com/repos/google/ExoPlayer/issues/comments/100198267","html_url":"https://github.com/google/ExoPlayer/issues/439#issuecomment-100198267","issue_url":"https://api.github.com/repos/google/ExoPlayer/issues/439","id":100198267,"user":{"login":"rashmichaudhari","id":12321480,"avatar_url":"https://avatars.githubusercontent.com/u/12321480?v=3","gravatar_id":"","url":"https://api.github.com/users/rashmichaudhari","html_url":"https://github.com/rashmichaudhari","followers_url":"https://api.github.com/users/rashmichaudhari/followers","following_url":"https://api.github.com/users/rashmichaudhari/following{/other_user}","gists_url":"https://api.github.com/users/rashmichaudhari/gists{/gist_id}","starred_url":"https://api.github.com/users/rashmichaudhari/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rashmichaudhari/subscriptions","organizations_url":"https://api.github.com/users/rashmichaudhari/orgs","repos_url":"https://api.github.com/users/rashmichaudhari/repos","events_url":"https://api.github.com/users/rashmichaudhari/events{/privacy}","received_events_url":"https://api.github.com/users/rashmichaudhari/received_events","type":"User","site_admin":false},"created_at":"2015-05-08T11:22:46Z","updated_at":"2015-05-08T11:22:46Z","body":"okay.. Are you thinking to bring support for muxed streams in future, or already ruled it out?"}}