Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Server error when processing video's with toplevel key 'streams' #13

Closed
arifje opened this issue Jan 28, 2019 · 2 comments
Closed

Server error when processing video's with toplevel key 'streams' #13

arifje opened this issue Jan 28, 2019 · 2 comments

Comments

@arifje
Copy link
Contributor

arifje commented Jan 28, 2019

Now and then we get a server error after trying to process a video. It only happens when the video file has type "streams". The video seems to be a normal h264 encoded video though, playable in the browser.

screenshot 2019-01-28 at 11 36 16

Running Craft CMS 3.1.4

@arifje
Copy link
Contributor Author

arifje commented Jan 28, 2019

Video data:

(
    [streams] => Array
        (
            [0] => Array
                (
                    [index] => 0
                    [codec_name] => aac
                    [codec_long_name] => AAC (Advanced Audio Coding)
                    [profile] => LC
                    [codec_type] => audio
                    [codec_time_base] => 1/44100
                    [codec_tag_string] => mp4a
                    [codec_tag] => 0x6134706d
                    [sample_fmt] => fltp
                    [sample_rate] => 44100
                    [channels] => 1
                    [channel_layout] => mono
                    [bits_per_sample] => 0
                    [r_frame_rate] => 0/0
                    [avg_frame_rate] => 0/0
                    [time_base] => 1/44100
                    [start_pts] => 0
                    [start_time] => 0.000000
                    [duration_ts] => 186764
                    [duration] => 4.235011
                    [bit_rate] => 78499
                    [max_bit_rate] => 96000
                    [nb_frames] => 185
                    [disposition] => Array
                        (
                            [default] => 1
                            [dub] => 0
                            [original] => 0
                            [comment] => 0
                            [lyrics] => 0
                            [karaoke] => 0
                            [forced] => 0
                            [hearing_impaired] => 0
                            [visual_impaired] => 0
                            [clean_effects] => 0
                            [attached_pic] => 0
                            [timed_thumbnails] => 0
                        )

                    [tags] => Array
                        (
                            [creation_time] => 2019-01-27T11:54:35.000000Z
                            [language] => und
                            [handler_name] => Core Media Data Handler
                        )

                )

            [1] => Array
                (
                    [index] => 1
                    [codec_name] => h264
                    [codec_long_name] => H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10
                    [profile] => High
                    [codec_type] => video
                    [codec_time_base] => 1271/76200
                    [codec_tag_string] => avc1
                    [codec_tag] => 0x31637661
                    [width] => 1920
                    [height] => 1080
                    [coded_width] => 1920
                    [coded_height] => 1080
                    [has_b_frames] => 0
                    [sample_aspect_ratio] => 0:1
                    [display_aspect_ratio] => 0:1
                    [pix_fmt] => yuv420p
                    [level] => 40
                    [color_range] => tv
                    [color_space] => bt709
                    [color_transfer] => bt709
                    [color_primaries] => bt709
                    [chroma_location] => left
                    [refs] => 1
                    [is_avc] => true
                    [nal_length_size] => 4
                    [r_frame_rate] => 30000/1001
                    [avg_frame_rate] => 38100/1271
                    [time_base] => 1/600
                    [start_pts] => 0
                    [start_time] => 0.000000
                    [duration_ts] => 2542
                    [duration] => 4.236667
                    [bit_rate] => 4392653
                    [bits_per_raw_sample] => 8
                    [nb_frames] => 127
                    [disposition] => Array
                        (
                            [default] => 1
                            [dub] => 0
                            [original] => 0
                            [comment] => 0
                            [lyrics] => 0
                            [karaoke] => 0
                            [forced] => 0
                            [hearing_impaired] => 0
                            [visual_impaired] => 0
                            [clean_effects] => 0
                            [attached_pic] => 0
                            [timed_thumbnails] => 0
                        )

                    [tags] => Array
                        (
                            [rotate] => 180
                            [creation_time] => 2019-01-27T11:54:35.000000Z
                            [language] => und
                            [handler_name] => Core Media Data Handler
                            [encoder] => H.264
                        )

                    [side_data_list] => Array
                        (
                            [0] => Array
                                (
                                    [side_data_type] => Display Matrix
                                    [displaymatrix] => 
00000000:       -65536           0           0
00000001:            0      -65536           0
00000002:    125829120    70778880  1073741824

                                    [rotation] => -180
                                )

                        )

                )

            [2] => Array
                (
                    [index] => 2
                    [codec_type] => data
                    [codec_tag_string] => mebx
                    [codec_tag] => 0x7862656d
                    [r_frame_rate] => 0/0
                    [avg_frame_rate] => 0/0
                    [time_base] => 1/600
                    [start_pts] => 0
                    [start_time] => 0.000000
                    [duration_ts] => 2542
                    [duration] => 4.236667
                    [bit_rate] => 15
                    [nb_frames] => 1
                    [disposition] => Array
                        (
                            [default] => 1
                            [dub] => 0
                            [original] => 0
                            [comment] => 0
                            [lyrics] => 0
                            [karaoke] => 0
                            [forced] => 0
                            [hearing_impaired] => 0
                            [visual_impaired] => 0
                            [clean_effects] => 0
                            [attached_pic] => 0
                            [timed_thumbnails] => 0
                        )

                    [tags] => Array
                        (
                            [creation_time] => 2019-01-27T11:54:35.000000Z
                            [language] => und
                            [handler_name] => Core Media Data Handler
                        )

                )

            [3] => Array
                (
                    [index] => 3
                    [codec_type] => data
                    [codec_tag_string] => mebx
                    [codec_tag] => 0x7862656d
                    [r_frame_rate] => 0/0
                    [avg_frame_rate] => 0/0
                    [time_base] => 1/600
                    [start_pts] => 0
                    [start_time] => 0.000000
                    [duration_ts] => 2542
                    [duration] => 4.236667
                    [bit_rate] => 18
                    [nb_frames] => 1
                    [disposition] => Array
                        (
                            [default] => 1
                            [dub] => 0
                            [original] => 0
                            [comment] => 0
                            [lyrics] => 0
                            [karaoke] => 0
                            [forced] => 0
                            [hearing_impaired] => 0
                            [visual_impaired] => 0
                            [clean_effects] => 0
                            [attached_pic] => 0
                            [timed_thumbnails] => 0
                        )

                    [tags] => Array
                        (
                            [creation_time] => 2019-01-27T11:54:35.000000Z
                            [language] => und
                            [handler_name] => Core Media Data Handler
                        )

                )

        )

    [format] => Array
        (
            [filename] => /var/www/videos/36303/skft-e798765ce159efb8c969d7a9d25b1849.mp4
            [nb_streams] => 4
            [nb_programs] => 0
            [format_name] => mov,mp4,m4a,3gp,3g2,mj2
            [format_long_name] => QuickTime / MOV
            [start_time] => 0.000000
            [duration] => 4.236667
            [size] => 2373639
            [bit_rate] => 4482087
            [probe_score] => 100
            [tags] => Array
                (
                    [major_brand] => qt  
                    [minor_version] => 0
                    [compatible_brands] => qt  
                    [creation_time] => 2019-01-27T11:54:35.000000Z
                    [com.apple.quicktime.location.ISO6709] => +52.3633+004.9884+007.444/
                    [com.apple.quicktime.make] => Apple
                    [com.apple.quicktime.model] => iPhone 6s
                    [com.apple.quicktime.software] => 9.3.5
                    [com.apple.quicktime.creationdate] => 2018-10-31T18:29:01+0100
                )

        )

)

@khalwat
Copy link
Contributor

khalwat commented Mar 20, 2019

Fixed in 0e241eb

@khalwat khalwat closed this as completed Mar 20, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants