Re: [FFmpeg-user] 360 degree VR video streaming support in ffmpeg+HLS

2020-06-27 Thread Rama Krishna Thelagathoti
Ok thank you for your response, I will check and get back.

On Sat, Jun 27, 2020 at 3:16 AM Tom Sparks  wrote:

> On 27/06/2020, Rama Krishna Thelagathoti 
> wrote:
> > I am using VLC.
>
> it looks like no, ffmpeg cant add spatial media metadata
>
> if you were using a web based viewer (krpano/video.js) you would not
> need to add the spatial media metadata to the video file.
>
>
> >
> > On Sat, Jun 27, 2020 at 2:47 AM Tom Sparks 
> wrote:
> >
> >> what is the viewing software you are using?
> >> eg: krpano / video.js
> >>
> >> On 27/06/2020, Rama Krishna Thelagathoti 
> >> wrote:
> >> > could someone help me with this?
> >> >
> >> > On Thu, Jun 25, 2020 at 11:51 PM Rama Krishna Thelagathoti <
> >> > mrk.ramakris...@gmail.com> wrote:
> >> >
> >> >> Hello ffmpeg team
> >> >> Does ffmpeg support 360 degree VR video streaming through HLS/DASH?
> >> >> I could see its being supported in libx264 under
> >> unofficial/experimental ,
> >> >> but I do not see this support in HLS.
> >> >>
> >> >> when transcoding to HLS, looks like ffmpeg drops spatial metadata.
> >> please
> >> >> confirm.
> >> >>
> >> >> --
> >> >> Best Regards
> >> >> *Rama krishna Thelagathoti*
> >> >>
> >> >
> >> >
> >> > --
> >> > Best Regards
> >> > *Rama krishna Thelagathoti*
> >> > ___
> >> > ffmpeg-user mailing list
> >> > ffmpeg-user@ffmpeg.org
> >> > https://ffmpeg.org/mailman/listinfo/ffmpeg-user
> >> >
> >> > To unsubscribe, visit link above, or email
> >> > ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
> >> ___
> >> ffmpeg-user mailing list
> >> ffmpeg-user@ffmpeg.org
> >> https://ffmpeg.org/mailman/listinfo/ffmpeg-user
> >>
> >> To unsubscribe, visit link above, or email
> >> ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
> >
> > --
> > Best Regards
> > *Rama krishna Thelagathoti*
> > ___
> > ffmpeg-user mailing list
> > ffmpeg-user@ffmpeg.org
> > https://ffmpeg.org/mailman/listinfo/ffmpeg-user
> >
> > To unsubscribe, visit link above, or email
> > ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
> ___
> ffmpeg-user mailing list
> ffmpeg-user@ffmpeg.org
> https://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
> To unsubscribe, visit link above, or email
> ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".

-- 
Best Regards
*Rama krishna Thelagathoti*
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".

Re: [FFmpeg-user] 360 degree VR video streaming support in ffmpeg+HLS

2020-06-27 Thread Rama Krishna Thelagathoti
I am using VLC.

On Sat, Jun 27, 2020 at 2:47 AM Tom Sparks  wrote:

> what is the viewing software you are using?
> eg: krpano / video.js
>
> On 27/06/2020, Rama Krishna Thelagathoti 
> wrote:
> > could someone help me with this?
> >
> > On Thu, Jun 25, 2020 at 11:51 PM Rama Krishna Thelagathoti <
> > mrk.ramakris...@gmail.com> wrote:
> >
> >> Hello ffmpeg team
> >> Does ffmpeg support 360 degree VR video streaming through HLS/DASH?
> >> I could see its being supported in libx264 under
> unofficial/experimental ,
> >> but I do not see this support in HLS.
> >>
> >> when transcoding to HLS, looks like ffmpeg drops spatial metadata.
> please
> >> confirm.
> >>
> >> --
> >> Best Regards
> >> *Rama krishna Thelagathoti*
> >>
> >
> >
> > --
> > Best Regards
> > *Rama krishna Thelagathoti*
> > ___
> > ffmpeg-user mailing list
> > ffmpeg-user@ffmpeg.org
> > https://ffmpeg.org/mailman/listinfo/ffmpeg-user
> >
> > To unsubscribe, visit link above, or email
> > ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
> ___________
> ffmpeg-user mailing list
> ffmpeg-user@ffmpeg.org
> https://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
> To unsubscribe, visit link above, or email
> ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".

-- 
Best Regards
*Rama krishna Thelagathoti*
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".

Re: [FFmpeg-user] 360 degree VR video streaming support in ffmpeg+HLS

2020-06-26 Thread Rama Krishna Thelagathoti
could someone help me with this?

On Thu, Jun 25, 2020 at 11:51 PM Rama Krishna Thelagathoti <
mrk.ramakris...@gmail.com> wrote:

> Hello ffmpeg team
> Does ffmpeg support 360 degree VR video streaming through HLS/DASH?
> I could see its being supported in libx264 under unofficial/experimental ,
> but I do not see this support in HLS.
>
> when transcoding to HLS, looks like ffmpeg drops spatial metadata. please
> confirm.
>
> --
> Best Regards
> *Rama krishna Thelagathoti*
>


-- 
Best Regards
*Rama krishna Thelagathoti*
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".

[FFmpeg-user] 360 degree VR video streaming support in ffmpeg+HLS

2020-06-25 Thread Rama Krishna Thelagathoti
Hello ffmpeg team
Does ffmpeg support 360 degree VR video streaming through HLS/DASH?
I could see its being supported in libx264 under unofficial/experimental ,
but I do not see this support in HLS.

when transcoding to HLS, looks like ffmpeg drops spatial metadata. please
confirm.

-- 
Best Regards
*Rama krishna Thelagathoti*
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".

[FFmpeg-user] how to write stream level metadata

2020-06-17 Thread Rama Krishna Thelagathoti
8.29.100
Stream #0:0(und): Video: h264 (libx264) (avc1 / 0x31637661),
yuvj420p(pc), 3840x1920 [SAR 1:1 DAR 2:1], q=-1--1, 29.97 fps, 11988 tbn,
29.97 tbc (default)
Metadata:
  creation_time   : 2018-01-01T19:49:42.00Z
  handler_name: VideoHandler
  side_metadata_type: Spherical Mapping
  projection  : equirectangular
  yaw : 0
  pitch   : 0
  roll: 0
  encoder : Lavc58.54.100 libx264
Side data:
  cpb: bitrate max/min/avg: 0/0/0 buffer size: 0 vbv_delay: -1
  spherical: equirectangular (0.00/0.00/0.00)
Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, mono,
fltp, 69 kb/s (default)
Metadata:
  creation_time   : 2018-01-01T19:49:42.00Z
  handler_name: SoundHandler
  encoder : Lavc58.54.100 aac
frame=  106 fps=3.9 q=-1.0 Lsize=4891kB time=00:00:03.56
bitrate=11238.0kbits/s speed=0.132x
video:4855kB audio:30kB subtitle:0kB other streams:0kB global headers:0kB
muxing overhead: 0.105744%
[libx264 @ 0x5573abe38e00] frame I:1 Avg QP:22.07  size:280593
[libx264 @ 0x5573abe38e00] frame P:27Avg QP:21.59  size:101191
[libx264 @ 0x5573abe38e00] frame B:78Avg QP:24.55  size: 25105
[libx264 @ 0x5573abe38e00] consecutive B-frames:  1.9%  0.0%  0.0% 98.1%
[libx264 @ 0x5573abe38e00] mb I  I16..4: 29.7% 55.2% 15.1%
[libx264 @ 0x5573abe38e00] mb P  I16..4: 11.1% 10.5%  0.2%  P16..4: 38.4%
 9.9%  5.6%  0.0%  0.0%skip:24.3%
[libx264 @ 0x5573abe38e00] mb B  I16..4:  1.6%  1.1%  0.0%  B16..8: 38.7%
 1.8%  0.1%  direct: 2.0%  skip:54.7%  L0:48.8% L1:49.6% BI: 1.6%
[libx264 @ 0x5573abe38e00] 8x8 transform intra:46.9% inter:81.6%
[libx264 @ 0x5573abe38e00] coded y,uvDC,uvAC intra: 16.7% 40.6% 3.6% inter:
8.6% 14.1% 0.1%
[libx264 @ 0x5573abe38e00] i16 v,h,dc,p: 18% 51% 10% 21%
[libx264 @ 0x5573abe38e00] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 14% 36% 41%  1%
 1%  1%  2%  1%  2%
[libx264 @ 0x5573abe38e00] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 18% 32% 13%  5%
 7%  5% 10%  4%  8%
[libx264 @ 0x5573abe38e00] i8c dc,h,v,p: 51% 36% 10%  3%
[libx264 @ 0x5573abe38e00] Weighted P-Frames: Y:0.0% UV:0.0%
[libx264 @ 0x5573abe38e00] ref P L0: 61.7%  9.8% 20.9%  7.5%
[libx264 @ 0x5573abe38e00] ref B L0: 89.3%  8.4%  2.3%
[libx264 @ 0x5573abe38e00] ref B L1: 94.0%  6.0%
[libx264 @ 0x5573abe38e00] kb/s:11243.69
[aac @ 0x5573abe3bf00] Qavg: 845.908
-- 
Best Regards
*Rama krishna Thelagathoti*
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".

Re: [FFmpeg-user] ffmpeg drops 360 video metadata

2020-06-15 Thread Rama Krishna Thelagathoti
More over I do not want to use googles solution because I want to stream on
the fly live and google solution seems to be manual solution

On Mon, Jun 15, 2020 at 11:41 AM Rama Krishna Thelagathoti <
mrk.ramakris...@gmail.com> wrote:

> Thank you for your quick response. Let me clarify what I am looking for.
> I want to stream 360 degree video over rtmp port and nginx server is in
> the backend. I want to demonstrate dynamic bitrate adaptation(such as
> HLS/DASH) . non-360 degree video streaming is working as expected, However
> I have difficulty with 360 video. I tried following ways
>
> 1. ffmpeg  -loglevel verbose -i R0010309_er.MP4 -vcodec libx264 -strict
> unofficial -vprofile high  -acodec aac  -f flv
> rtmp://localhost/live/360streamR
> able to play stream at the sink but not playing in 360 degree mode because
> 360 degree video metadata is lost while format conversion
> (attached log 1)
>
> 2.  ffmpeg   -loglevel verbose -i R0010309_er.MP4  -preset veryfast -g 25
> -sc_threshold 0 -map v:0 -c:v:0 libx264 -strict unofficial -b:v:0 2000k
> -map v:0 -c:v:1 libx264 -strict unofficial -b:v:1 6000k -map a:0 -map a:0
> -c:a aac -b:a 128k -ac 2 -f hls -hls_time 4 -hls_playlist_type event
>  -master_pl_name R3601.m3u8 -var_stream_map "v:0,a:0 v:1,a:1"
> /mnt/hls/R360Stream1_%v.m3u8
> still same behaviour (log attached 2)
>
> Could you suggest a way where I can stream 360 degree video without
> losing spatial metadata and able to demonstrate bit rate adaption. Thanks
> in advance
>
> On Mon, Jun 15, 2020 at 10:54 AM Leo Butler via ffmpeg-user <
> ffmpeg-user@ffmpeg.org> wrote:
>
>> Rama Krishna Thelagathoti  writes:
>>
>> > Hello ffmpeg team, kindly help me with following issue
>> > 360sample.mp4 is 360 video and with following command out.mp4 is also
>> 360
>> > video.
>> >
>> > sudo ffmpeg -i 360sample.mp4 -vcodec libx264 -strict unofficial
>> > -vprofile high  -acodec aac out.mp4
>>
>> An aside: You shouldn't need to run these commands as root (i.e. no need
>> for sudo before ffmpeg).
>>
>> Leo
>> ___
>> ffmpeg-user mailing list
>> ffmpeg-user@ffmpeg.org
>> https://ffmpeg.org/mailman/listinfo/ffmpeg-user
>>
>> To unsubscribe, visit link above, or email
>> ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
>
>
>
> --
> Best Regards
> *Rama krishna Thelagathoti*
>


-- 
Best Regards
*Rama krishna Thelagathoti*
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".

Re: [FFmpeg-user] ffmpeg drops 360 video metadata

2020-06-15 Thread Rama Krishna Thelagathoti
Thank you for your quick response. Let me clarify what I am looking for.
I want to stream 360 degree video over rtmp port and nginx server is in the
backend. I want to demonstrate dynamic bitrate adaptation(such as HLS/DASH)
. non-360 degree video streaming is working as expected, However I have
difficulty with 360 video. I tried following ways

1. ffmpeg  -loglevel verbose -i R0010309_er.MP4 -vcodec libx264 -strict
unofficial -vprofile high  -acodec aac  -f flv
rtmp://localhost/live/360streamR
able to play stream at the sink but not playing in 360 degree mode because
360 degree video metadata is lost while format conversion
(attached log 1)

2.  ffmpeg   -loglevel verbose -i R0010309_er.MP4  -preset veryfast -g 25
-sc_threshold 0 -map v:0 -c:v:0 libx264 -strict unofficial -b:v:0 2000k
-map v:0 -c:v:1 libx264 -strict unofficial -b:v:1 6000k -map a:0 -map a:0
-c:a aac -b:a 128k -ac 2 -f hls -hls_time 4 -hls_playlist_type event
 -master_pl_name R3601.m3u8 -var_stream_map "v:0,a:0 v:1,a:1"
/mnt/hls/R360Stream1_%v.m3u8
still same behaviour (log attached 2)

Could you suggest a way where I can stream 360 degree video without
losing spatial metadata and able to demonstrate bit rate adaption. Thanks
in advance

On Mon, Jun 15, 2020 at 10:54 AM Leo Butler via ffmpeg-user <
ffmpeg-user@ffmpeg.org> wrote:

> Rama Krishna Thelagathoti  writes:
>
> > Hello ffmpeg team, kindly help me with following issue
> > 360sample.mp4 is 360 video and with following command out.mp4 is also 360
> > video.
> >
> > sudo ffmpeg -i 360sample.mp4 -vcodec libx264 -strict unofficial
> > -vprofile high  -acodec aac out.mp4
>
> An aside: You shouldn't need to run these commands as root (i.e. no need
> for sudo before ffmpeg).
>
> Leo
> ___
> ffmpeg-user mailing list
> ffmpeg-user@ffmpeg.org
> https://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
> To unsubscribe, visit link above, or email
> ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".



-- 
Best Regards
*Rama krishna Thelagathoti*
rthelagathoti@PKI369-NUC04:~/streaming$ ffmpeg  -loglevel verbose -i 
R0010309_er.MP4 -vcodec libx264 -strict unofficial -vprofile high  -acodec aac  
-f flv rtmp://localhost/live/360streamR

ffmpeg version 4.2.2-1ubuntu1~18.04.york0 Copyright (c) 2000-2019 the FFmpeg 
developers
  built with gcc 7 (Ubuntu 7.5.0-3ubuntu1~18.04)
  configuration: --prefix=/usr --extra-version='1ubuntu1~18.04.york0' 
--toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu 
--incdir=/usr/include/x86_64-linux-gnu --arch=amd64 --enable-gpl 
--disable-stripping --enable-avresample --disable-filter=resample 
--enable-avisynth --enable-gnutls --enable-ladspa --enable-libaom 
--enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca 
--enable-libcdio --enable-libcodec2 --enable-libflite --enable-libfontconfig 
--enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm 
--enable-libjack --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg 
--enable-libopenmpt --enable-libopus --enable-libpulse --enable-librsvg 
--enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr 
--enable-libspeex --enable-libssh --enable-libtheora --enable-libtwolame 
--enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwavpack 
--enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid 
--enable-libzmq --enable-libzvbi --enable-lv2 --enable-omx --enable-openal 
--enable-opencl --enable-opengl --enable-sdl2 --enable-libdc1394 
--enable-libdrm --enable-libiec61883 --enable-nvenc --enable-chromaprint 
--enable-frei0r --enable-libx264 --enable-shared
  libavutil  56. 31.100 / 56. 31.100
  libavcodec 58. 54.100 / 58. 54.100
  libavformat58. 29.100 / 58. 29.100
  libavdevice58.  8.100 / 58.  8.100
  libavfilter 7. 57.100 /  7. 57.100
  libavresample   4.  0.  0 /  4.  0.  0
  libswscale  5.  5.100 /  5.  5.100
  libswresample   3.  5.100 /  3.  5.100
  libpostproc55.  5.100 / 55.  5.100
Routing option strict to both codec and muxer layer
[h264 @ 0x562390046800] Reinit context to 3840x1920, pix_fmt: yuvj420p
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'R0010309_er.MP4':
  Metadata:
major_brand : isom
minor_version   : 512
compatible_brands: isomiso2avc1mp41
creation_time   : 2018-01-01T19:49:42.00Z
  Duration: 00:00:03.57, start: 0.00, bitrate: 62822 kb/s
Stream #0:0(und): Video: h264 (Constrained Baseline), 1 reference frame 
(avc1 / 0x31637661), yuvj420p(pc, left), 3840x1920 [SAR 1:1 DAR 2:1], 59135 
kb/s, 29.97 fps, 29.97 tbr, 29970 tbn, 59.94 tbc (default)
Metadata:
  creation_time   : 2018-01-01T19:49:42.00Z
  handler_name: VideoHandler
Side data:
  spherical: equirectangular (0.00/0.00/0.00)
Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, mono, 
fltp, 127 kb/s (default

[FFmpeg-user] ffmpeg drops 360 video metadata

2020-06-15 Thread Rama Krishna Thelagathoti
Hello ffmpeg team, kindly help me with following issue
360sample.mp4 is 360 video and with following command out.mp4 is also 360
video.

sudo ffmpeg -i 360sample.mp4 -vcodec libx264 -strict unofficial
-vprofile high  -acodec aac out.mp4

But with the following transcoding command out.mp4 is not 360 video, video
is playing top/bottom , spherical data as part of metadata is lost.

sudo ffmpeg -i R0010309_er.MP4 -vcodec libx264 -strict unofficial -vprofile
high  -acodec aac -f flv  RC.mp4

How to ensure that 360 metadata is preserve while transcoding.
-- 
Best Regards
*Rama krishna Thelagathoti*
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".