Help with GoPro Hero 4 mpegts stream on iOS
dkabyshev
dkabyshev at gmail.com
Tue Jul 21 02:46:21 PDT 2015
Hi,
I'm trying to use GStreamer (1.5.2) to play live feed from GoPro Hero 4
Silver.
I've been experimenting a lot and faced with an issue, that tsdemux can't
process frames, because, as I assume, time information is missing, here's a
link to debug log:
https://www.dropbox.com/s/0vef4jqv8xce0mm/gopro_mpegts?dl=0
<https://www.dropbox.com/s/0vef4jqv8xce0mm/gopro_mpegts?dl=0>
As a minimum test, I was trying this pipeline: udpsrc port=8554 !
video/mpegts, systemstream=(boolean)true ! tsdemux ! video/x-h264,
stream-format=(string)byte-stream, alignment=(string)nal ! fakesink
I would really appreciate any help on this.
I was able to test the stream from from GoPro with ffprobe and ffplay:
Input #0, mpegts, from 'udp://:8554':
Duration: N/A, start: 0.000000, bitrate: N/A
Program 1
Stream #0:0[0x1011]: Video: h264 (Main) ([27][0][0][0] / 0x001B),
yuvj420p(pc, bt709), 432x240 [SAR 1:1 DAR 9:5], 29.97 fps, 29.97 tbr, 90k
tbn, 59.94 tbc
Stream #0:1[0x1100]: Audio: aac (LC) ([15][0][0][0] / 0x000F), 48000 Hz,
stereo, fltp, 130 kb/s
Stream #0:2[0x200]: Unknown: none ([128][0][0][0] / 0x0080)
Unsupported codec with id 0 for input stream 2
[STREAM]
index=0
codec_name=h264
codec_long_name=H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10
profile=Main
codec_type=video
codec_time_base=1001/60000
codec_tag_string=[27][0][0][0]
codec_tag=0x001b
width=432
height=240
has_b_frames=1
sample_aspect_ratio=1:1
display_aspect_ratio=9:5
pix_fmt=yuvj420p
level=21
color_range=pc
color_space=bt709
color_transfer=bt709
color_primaries=bt709
chroma_location=left
timecode=N/A
refs=1
is_avc=0
nal_length_size=0
id=0x1011
r_frame_rate=30000/1001
avg_frame_rate=30000/1001
time_base=1/90000
start_pts=0
start_time=0.000000
duration_ts=N/A
duration=N/A
bit_rate=N/A
max_bit_rate=N/A
bits_per_raw_sample=8
nb_frames=N/A
nb_read_frames=N/A
nb_read_packets=N/A
DISPOSITION:default=0
DISPOSITION:dub=0
DISPOSITION:original=0
DISPOSITION:comment=0
DISPOSITION:lyrics=0
DISPOSITION:karaoke=0
DISPOSITION:forced=0
DISPOSITION:hearing_impaired=0
DISPOSITION:visual_impaired=0
DISPOSITION:clean_effects=0
DISPOSITION:attached_pic=0
[/STREAM]
[STREAM]
index=1
codec_name=aac
codec_long_name=AAC (Advanced Audio Coding)
profile=LC
codec_type=audio
codec_time_base=1/48000
codec_tag_string=[15][0][0][0]
codec_tag=0x000f
sample_fmt=fltp
sample_rate=48000
channels=2
channel_layout=stereo
bits_per_sample=0
id=0x1100
r_frame_rate=0/0
avg_frame_rate=0/0
time_base=1/90000
start_pts=0
start_time=0.000000
duration_ts=N/A
duration=N/A
bit_rate=130500
max_bit_rate=N/A
bits_per_raw_sample=N/A
nb_frames=N/A
nb_read_frames=N/A
nb_read_packets=N/A
DISPOSITION:default=0
DISPOSITION:dub=0
DISPOSITION:original=0
DISPOSITION:comment=0
DISPOSITION:lyrics=0
DISPOSITION:karaoke=0
DISPOSITION:forced=0
DISPOSITION:hearing_impaired=0
DISPOSITION:visual_impaired=0
DISPOSITION:clean_effects=0
DISPOSITION:attached_pic=0
[/STREAM]
[STREAM]
index=2
codec_name=unknown
codec_long_name=unknown
profile=unknown
codec_type=unknown
codec_time_base=0/1
codec_tag_string=[128][0][0][0]
codec_tag=0x0080
id=0x200
r_frame_rate=0/0
avg_frame_rate=0/0
time_base=1/90000
start_pts=N/A
start_time=N/A
duration_ts=N/A
duration=N/A
bit_rate=N/A
max_bit_rate=N/A
bits_per_raw_sample=N/A
nb_frames=N/A
nb_read_frames=N/A
nb_read_packets=N/A
DISPOSITION:default=0
DISPOSITION:dub=0
DISPOSITION:original=0
DISPOSITION:comment=0
DISPOSITION:lyrics=0
DISPOSITION:karaoke=0
DISPOSITION:forced=0
DISPOSITION:hearing_impaired=0
DISPOSITION:visual_impaired=0
DISPOSITION:clean_effects=0
DISPOSITION:attached_pic=0
[/STREAM]
[FORMAT]
filename=udp://:8554
nb_streams=3
nb_programs=1
format_name=mpegts
format_long_name=MPEG-TS (MPEG-2 Transport Stream)
start_time=0.000000
duration=N/A
size=N/A
bit_rate=N/A
probe_score=97
[/FORMAT]
Thanks in advance
--
View this message in context: http://gstreamer-devel.966125.n4.nabble.com/Help-with-GoPro-Hero-4-mpegts-stream-on-iOS-tp4672768.html
Sent from the GStreamer-devel mailing list archive at Nabble.com.
More information about the gstreamer-devel
mailing list