require "./setup"

tp User.admin.kiwi_lemons
tp User.admin.kiwi_bananas

tp User.admin.kiwi_lemons.last
tp User.admin.kiwi_bananas.last
# >> |----+---------+-----------------+---------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------+---------------------------+---------------------------+---------------------------+------------+---------------+-----------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+---------------------------------------------------+-----------------------------+---------------------------+---------------------------|
# >> | id | user_id | recordable_type | recordable_id | all_params                                                                                                                                                | process_begin_at          | process_end_at            | successed_at              | errored_at | error_message | file_size | ffprobe_info                                                                                                                                                                                                                                                        | browser_path                                      | filename_human              | created_at                | updated_at                |
# >> |----+---------+-----------------+---------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------+---------------------------+---------------------------+---------------------------+------------+---------------+-----------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+---------------------------------------------------+-----------------------------+---------------------------+---------------------------|
# >> |  1 |       1 | FreeBattle      |            65 | {:media_builder_params=>{:recipe_key=>"is_recipe_mp4", :audio_theme_key=>"is_audio_theme_none", :width=>2, :height=>2, :renderer_override_params=>{}}} | 2021-09-24 14:42:58 +0900 | 2021-09-24 14:43:03 +0900 | 2021-09-24 14:43:03 +0900 |            |               |      1746 | {:pretty_format=>{"streams"=>[{"index"=>0, "codec_name"=>"h264", "codec_long_name"=>"H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10", "profile"=>"High", "codec_type"=>"video", "codec_tag_string"=>"avc1", "codec_tag"=>"0x31637661", "width"=>2, "height"=>2, "code... | /system/x-files/3d/c4/1_20210924144258_2x2_3s.mp4 | 1_20210924144258_2x2_3s.mp4 | 2021-09-24 14:42:58 +0900 | 2021-09-24 14:43:03 +0900 |
# >> |  2 |       1 | FreeBattle      |            66 | {:media_builder_params=>{:recipe_key=>"is_recipe_mp4", :audio_theme_key=>"is_audio_theme_none", :width=>2, :height=>2, :renderer_override_params=>{}}} | 2021-09-24 14:43:35 +0900 | 2021-09-24 14:43:40 +0900 | 2021-09-24 14:43:40 +0900 |            |               |      1746 | {:pretty_format=>{"streams"=>[{"index"=>0, "codec_name"=>"h264", "codec_long_name"=>"H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10", "profile"=>"High", "codec_type"=>"video", "codec_tag_string"=>"avc1", "codec_tag"=>"0x31637661", "width"=>2, "height"=>2, "code... | /system/x-files/3d/c4/2_20210924144335_2x2_3s.mp4 | 2_20210924144335_2x2_3s.mp4 | 2021-09-24 14:43:35 +0900 | 2021-09-24 14:43:40 +0900 |
# >> |----+---------+-----------------+---------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------+---------------------------+---------------------------+---------------------------+------------+---------------+-----------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+---------------------------------------------------+-----------------------------+---------------------------+---------------------------|
# >> |----+-------------+---------+-----------+----------+-------------+---------------+---------------------------+---------------------------+----------|
# >> | id | key         | user_id | folder_id | lemon_id | title       | description   | created_at                | updated_at                | tag_list |
# >> |----+-------------+---------+-----------+----------+-------------+---------------+---------------------------+---------------------------+----------|
# >> |  1 | y6NJpLUQSEA |       1 |         3 |        2 | y6NJpLUQSEA | (description) | 2021-09-24 14:43:41 +0900 | 2021-09-24 14:43:41 +0900 |          |
# >> |----+-------------+---------+-----------+----------+-------------+---------------+---------------------------+---------------------------+----------|
# >> |------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
# >> |               id | 2                                                                                                                                                                                                                                                                   |
# >> |          user_id | 1                                                                                                                                                                                                                                                                   |
# >> |  recordable_type | FreeBattle                                                                                                                                                                                                                                                          |
# >> |    recordable_id | 66                                                                                                                                                                                                                                                                  |
# >> |   all_params | {:media_builder_params=>{:recipe_key=>"is_recipe_mp4", :audio_theme_key=>"is_audio_theme_none", :width=>2, :height=>2, :renderer_override_params=>{}}}                                                                                                       |
# >> | process_begin_at | 2021-09-24 14:43:35 +0900                                                                                                                                                                                                                                           |
# >> |   process_end_at | 2021-09-24 14:43:40 +0900                                                                                                                                                                                                                                           |
# >> |     successed_at | 2021-09-24 14:43:40 +0900                                                                                                                                                                                                                                           |
# >> |       errored_at |                                                                                                                                                                                                                                                                     |
# >> |    error_message |                                                                                                                                                                                                                                                                     |
# >> |        file_size | 1746                                                                                                                                                                                                                                                                |
# >> |     ffprobe_info | {:pretty_format=>{"streams"=>[{"index"=>0, "codec_name"=>"h264", "codec_long_name"=>"H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10", "profile"=>"High", "codec_type"=>"video", "codec_tag_string"=>"avc1", "codec_tag"=>"0x31637661", "width"=>2, "height"=>2, "code... |
# >> |     browser_path | /system/x-files/3d/c4/2_20210924144335_2x2_3s.mp4                                                                                                                                                                                                                   |
# >> |   filename_human | 2_20210924144335_2x2_3s.mp4                                                                                                                                                                                                                                         |
# >> |       created_at | 2021-09-24 14:43:35 +0900                                                                                                                                                                                                                                           |
# >> |       updated_at | 2021-09-24 14:43:40 +0900                                                                                                                                                                                                                                           |
# >> |------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
# >> |-------------+---------------------------|
# >> |          id | 1                         |
# >> |         key | y6NJpLUQSEA               |
# >> |     user_id | 1                         |
# >> |   folder_id | 3                         |
# >> |    lemon_id | 2                         |
# >> |       title | y6NJpLUQSEA               |
# >> | description | (description)             |
# >> |  created_at | 2021-09-24 14:43:41 +0900 |
# >> |  updated_at | 2021-09-24 14:43:41 +0900 |
# >> |    tag_list |                           |
# >> |-------------+---------------------------|
