ffmpeg drops 360 video metadata

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

ffmpeg drops 360 video metadata

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
[hidden email]
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: ffmpeg drops 360 video metadata

Moritz Barsnick
On Mon, Jun 15, 2020 at 07:33:06 -0500, Rama Krishna Thelagathoti wrote:

> 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

You are usually requested to also show us the complete, uncut console
output.

> How to ensure that 360 metadata is preserve while transcoding.

You are writing to FLV. ffmpeg does not support spatial data for FLV.
Is that even defined in the FLV spec?

Google's own spatial tools don't support FLV either:
https://github.com/google/spatial-media
(but can successfully inject into MP4).

Regards,
Moritz
_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: ffmpeg drops 360 video metadata

FFmpeg-users mailing list
In reply to this post by Rama Krishna Thelagathoti
Rama Krishna Thelagathoti <[hidden email]> 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
[hidden email]
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: ffmpeg drops 360 video metadata

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 <
[hidden email]> wrote:

> Rama Krishna Thelagathoti <[hidden email]> 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
> [hidden email]
> https://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
> To unsubscribe, visit link above, or email
> [hidden email] with subject "unsubscribe".


--
Best Regards
*Rama krishna Thelagathoti*

_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".

with_flv_1.txt (10K) Download Attachment
with_hls_2.txt (16K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: ffmpeg drops 360 video metadata

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 <
[hidden email]> 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 <
> [hidden email]> wrote:
>
>> Rama Krishna Thelagathoti <[hidden email]> 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
>> [hidden email]
>> https://ffmpeg.org/mailman/listinfo/ffmpeg-user
>>
>> To unsubscribe, visit link above, or email
>> [hidden email] with subject "unsubscribe".
>
>
>
> --
> Best Regards
> *Rama krishna Thelagathoti*
>


--
Best Regards
*Rama krishna Thelagathoti*
_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".