Created
March 17, 2011 22:27
-
-
Save NeMO84/875255 to your computer and use it in GitHub Desktop.
Remove place holder keys...
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{"muxer"=>{"__content__"=>"mp4"}, "filters"=>{"scale_width"=>{"__content__"=>"640"}, "scale_height"=>{"__content__"=>"480"}, "frame_rate"=>{"__content__"=>"30.00"}}, "codecs"=>{"codec"=>[{"name"=>{"__content__"=>"H264"}, "bit_rate"=>{"__content__"=>"1200000"}}, {"name"=>{"__content__"=>"AAC"}, "bit_rate"=>{"__content__"=>"128000"}, "channels"=>{"__content__"=>"2"}}]}} | |
# I want to convert the above into | |
{"muxer"=> {"mp4"}, "filters"=> {"scale_width"=> "640", "scale_height"=> "480", "scale_frate_rate"=> "30.00"}, "codecs"=> {"codec"=>[{"name" => "H264", "bit_rate" => "1200000"},{"name" => "AAC","bit_rate" => "128000","channels" => "2"}]}} | |
# Essentially remove the "__content__" place holders. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment